@keystrokehq/salesmate 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-product.cjs +1 -0
- package/dist/actions/add-product.cjs.map +1 -1
- package/dist/actions/add-product.d.cts +3 -26
- package/dist/actions/add-product.d.cts.map +1 -1
- package/dist/actions/add-product.d.mts +3 -26
- package/dist/actions/add-product.d.mts.map +1 -1
- package/dist/actions/add-product.mjs +1 -0
- package/dist/actions/add-product.mjs.map +1 -1
- package/dist/actions/create-company.cjs +1 -0
- package/dist/actions/create-company.cjs.map +1 -1
- package/dist/actions/create-company.d.cts +3 -35
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +3 -35
- package/dist/actions/create-company.d.mts.map +1 -1
- package/dist/actions/create-company.mjs +1 -0
- package/dist/actions/create-company.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +1 -0
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +3 -17
- package/dist/actions/delete-product.d.cts.map +1 -1
- package/dist/actions/delete-product.d.mts +3 -17
- package/dist/actions/delete-product.d.mts.map +1 -1
- package/dist/actions/delete-product.mjs +1 -0
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/get-active-users.cjs +1 -0
- package/dist/actions/get-active-users.cjs.map +1 -1
- package/dist/actions/get-active-users.d.cts +3 -15
- package/dist/actions/get-active-users.d.cts.map +1 -1
- package/dist/actions/get-active-users.d.mts +3 -15
- package/dist/actions/get-active-users.d.mts.map +1 -1
- package/dist/actions/get-active-users.mjs +1 -0
- package/dist/actions/get-active-users.mjs.map +1 -1
- package/dist/actions/get-company.cjs +1 -0
- package/dist/actions/get-company.cjs.map +1 -1
- package/dist/actions/get-company.d.cts +3 -17
- package/dist/actions/get-company.d.cts.map +1 -1
- package/dist/actions/get-company.d.mts +3 -17
- package/dist/actions/get-company.d.mts.map +1 -1
- package/dist/actions/get-company.mjs +1 -0
- package/dist/actions/get-company.mjs.map +1 -1
- package/dist/actions/list-modules.cjs +1 -0
- package/dist/actions/list-modules.cjs.map +1 -1
- package/dist/actions/list-modules.d.cts +3 -15
- package/dist/actions/list-modules.d.cts.map +1 -1
- package/dist/actions/list-modules.d.mts +3 -15
- package/dist/actions/list-modules.d.mts.map +1 -1
- package/dist/actions/list-modules.mjs +1 -0
- package/dist/actions/list-modules.mjs.map +1 -1
- package/dist/app.cjs +5 -4
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["salesmate","executeSalesmateTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof salesmate.credential> {\n return salesmate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSalesmateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof salesmate.credential> {\n return salesmate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSalesmateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-product.cjs","names":["z","action"],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateAddProductInput = z.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: SalesmateAddProductOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-product.cjs","names":["z","action"],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\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: AppAction<\n typeof SalesmateAddProductInput,\n typeof SalesmateAddProductOutput,\n typeof salesmate.credential\n> = action(\"SALESMATE_ADD_PRODUCT\", {\n slug: \"salesmate-add-product\",\n name: \"Add Product\",\n description: \"Tool to add a new product. Use when you need to create a new product in Salesmate before referencing it (e.g., in deals or orders). Example: \\\"Add a product named 'Widget Pro' (SKU WPRO1) priced at 199.99 USD.\\\"\",\n input: SalesmateAddProductInput,\n output: SalesmateAddProductOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACzE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,uCAAuC;CACrG,UAAU,uCAAuC,SAAS;CAC1D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAM,yCAAyC,SAAS;CACxD,QAAQA,IAAAA,EAAE,KAAK,CAAC,WAAW,SAAS,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-product.d.ts
|
|
@@ -39,32 +41,7 @@ declare const SalesmateAddProductOutput: z.ZodObject<{
|
|
|
39
41
|
failure: "failure";
|
|
40
42
|
}>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const salesmateAddProduct:
|
|
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<"salesmate", z.ZodObject<{
|
|
54
|
-
connectionId: z.ZodString;
|
|
55
|
-
entityId: z.ZodString;
|
|
56
|
-
instanceId: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
subdomain: z.ZodString;
|
|
59
|
-
bearer_token: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
61
|
-
connectionId: z.ZodString;
|
|
62
|
-
entityId: z.ZodString;
|
|
63
|
-
instanceId: z.ZodString;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
subdomain: z.ZodString;
|
|
66
|
-
bearer_token: z.ZodString;
|
|
67
|
-
}, z.core.$strip>>]>;
|
|
44
|
+
declare const salesmateAddProduct: AppAction<typeof SalesmateAddProductInput, typeof SalesmateAddProductOutput, typeof salesmate.credential>;
|
|
68
45
|
//#endregion
|
|
69
46
|
export { salesmateAddProduct };
|
|
70
47
|
//# sourceMappingURL=add-product.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-product.d.cts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-product.d.cts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAkCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-product.d.ts
|
|
@@ -39,32 +41,7 @@ declare const SalesmateAddProductOutput: z.ZodObject<{
|
|
|
39
41
|
failure: "failure";
|
|
40
42
|
}>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const salesmateAddProduct:
|
|
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<"salesmate", z.ZodObject<{
|
|
54
|
-
connectionId: z.ZodString;
|
|
55
|
-
entityId: z.ZodString;
|
|
56
|
-
instanceId: z.ZodString;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
subdomain: z.ZodString;
|
|
59
|
-
bearer_token: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
61
|
-
connectionId: z.ZodString;
|
|
62
|
-
entityId: z.ZodString;
|
|
63
|
-
instanceId: z.ZodString;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
subdomain: z.ZodString;
|
|
66
|
-
bearer_token: z.ZodString;
|
|
67
|
-
}, z.core.$strip>>]>;
|
|
44
|
+
declare const salesmateAddProduct: AppAction<typeof SalesmateAddProductInput, typeof SalesmateAddProductOutput, typeof salesmate.credential>;
|
|
68
45
|
//#endregion
|
|
69
46
|
export { salesmateAddProduct };
|
|
70
47
|
//# sourceMappingURL=add-product.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-product.d.mts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-product.d.mts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAkCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-product.mjs","names":[],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateAddProductInput = z.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: SalesmateAddProductOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-product.mjs","names":[],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\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: AppAction<\n typeof SalesmateAddProductInput,\n typeof SalesmateAddProductOutput,\n typeof salesmate.credential\n> = action(\"SALESMATE_ADD_PRODUCT\", {\n slug: \"salesmate-add-product\",\n name: \"Add Product\",\n description: \"Tool to add a new product. Use when you need to create a new product in Salesmate before referencing it (e.g., in deals or orders). Example: \\\"Add a product named 'Widget Pro' (SKU WPRO1) priced at 199.99 USD.\\\"\",\n input: SalesmateAddProductInput,\n output: SalesmateAddProductOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACzE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,uCAAuC;CACrG,UAAU,uCAAuC,SAAS;CAC1D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduC,EAAE,OAAO;EAChD,MAAM,yCAAyC,SAAS;EACxD,QAAQ,EAAE,KAAK,CAAC,WAAW,SAAS,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateCreateCompanyInput = z.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":"
|
|
1
|
+
{"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\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: AppAction<\n typeof SalesmateCreateCompanyInput,\n typeof SalesmateCreateCompanyOutput,\n typeof salesmate.credential\n> = 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":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CAC1D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAC5D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAChE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACxE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC1F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5E,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,yDAAyDA,IAAAA,EAAE,OAAO,EACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,EAC9E,CAAC,CAAC,CAAC,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,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-company.d.ts
|
|
@@ -28,41 +30,7 @@ declare const SalesmateCreateCompanyOutput: z.ZodObject<{
|
|
|
28
30
|
}, z.core.$loose>>;
|
|
29
31
|
Status: z.ZodNullable<z.ZodString>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const salesmateCreateCompany:
|
|
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<"salesmate", z.ZodObject<{
|
|
52
|
-
connectionId: z.ZodString;
|
|
53
|
-
entityId: z.ZodString;
|
|
54
|
-
instanceId: z.ZodString;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
subdomain: z.ZodString;
|
|
57
|
-
bearer_token: z.ZodString;
|
|
58
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
59
|
-
connectionId: z.ZodString;
|
|
60
|
-
entityId: z.ZodString;
|
|
61
|
-
instanceId: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
subdomain: z.ZodString;
|
|
64
|
-
bearer_token: z.ZodString;
|
|
65
|
-
}, z.core.$strip>>]>;
|
|
33
|
+
declare const salesmateCreateCompany: AppAction<typeof SalesmateCreateCompanyInput, typeof SalesmateCreateCompanyOutput, typeof salesmate.credential>;
|
|
66
34
|
//#endregion
|
|
67
35
|
export { salesmateCreateCompany };
|
|
68
36
|
//# sourceMappingURL=create-company.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAwB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-company.d.ts
|
|
@@ -28,41 +30,7 @@ declare const SalesmateCreateCompanyOutput: z.ZodObject<{
|
|
|
28
30
|
}, z.core.$loose>>;
|
|
29
31
|
Status: z.ZodNullable<z.ZodString>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const salesmateCreateCompany:
|
|
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<"salesmate", z.ZodObject<{
|
|
52
|
-
connectionId: z.ZodString;
|
|
53
|
-
entityId: z.ZodString;
|
|
54
|
-
instanceId: z.ZodString;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
subdomain: z.ZodString;
|
|
57
|
-
bearer_token: z.ZodString;
|
|
58
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
59
|
-
connectionId: z.ZodString;
|
|
60
|
-
entityId: z.ZodString;
|
|
61
|
-
instanceId: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
subdomain: z.ZodString;
|
|
64
|
-
bearer_token: z.ZodString;
|
|
65
|
-
}, z.core.$strip>>]>;
|
|
33
|
+
declare const salesmateCreateCompany: AppAction<typeof SalesmateCreateCompanyInput, typeof SalesmateCreateCompanyOutput, typeof salesmate.credential>;
|
|
66
34
|
//#endregion
|
|
67
35
|
export { salesmateCreateCompany };
|
|
68
36
|
//# sourceMappingURL=create-company.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAwB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateCreateCompanyInput = z.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":"
|
|
1
|
+
{"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\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: AppAction<\n typeof SalesmateCreateCompanyInput,\n typeof SalesmateCreateCompanyOutput,\n typeof salesmate.credential\n> = 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":";;;;AAMA,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,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd0C,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,yCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-product.cjs","names":["z","action"],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateDeleteProductInput = z.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":"
|
|
1
|
+
{"version":3,"file":"delete-product.cjs","names":["z","action"],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\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: AppAction<\n typeof SalesmateDeleteProductInput,\n typeof SalesmateDeleteProductOutput,\n typeof salesmate.credential\n> = 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":";;;;AAMA,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,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-product.d.ts
|
|
@@ -8,23 +10,7 @@ declare const SalesmateDeleteProductOutput: z.ZodObject<{
|
|
|
8
10
|
Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
11
|
Status: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const salesmateDeleteProduct:
|
|
12
|
-
product_id: number;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
subdomain: z.ZodString;
|
|
19
|
-
bearer_token: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
subdomain: z.ZodString;
|
|
26
|
-
bearer_token: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const salesmateDeleteProduct: AppAction<typeof SalesmateDeleteProductInput, typeof SalesmateDeleteProductOutput, typeof salesmate.credential>;
|
|
28
14
|
//#endregion
|
|
29
15
|
export { salesmateDeleteProduct };
|
|
30
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":"
|
|
1
|
+
{"version":3,"file":"delete-product.d.cts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-product.d.ts
|
|
@@ -8,23 +10,7 @@ declare const SalesmateDeleteProductOutput: z.ZodObject<{
|
|
|
8
10
|
Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
11
|
Status: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const salesmateDeleteProduct:
|
|
12
|
-
product_id: number;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
subdomain: z.ZodString;
|
|
19
|
-
bearer_token: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
subdomain: z.ZodString;
|
|
26
|
-
bearer_token: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const salesmateDeleteProduct: AppAction<typeof SalesmateDeleteProductInput, typeof SalesmateDeleteProductOutput, typeof salesmate.credential>;
|
|
28
14
|
//#endregion
|
|
29
15
|
export { salesmateDeleteProduct };
|
|
30
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":"
|
|
1
|
+
{"version":3,"file":"delete-product.d.mts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-product.mjs","names":[],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateDeleteProductInput = z.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":"
|
|
1
|
+
{"version":3,"file":"delete-product.mjs","names":[],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\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: AppAction<\n typeof SalesmateDeleteProductInput,\n typeof SalesmateDeleteProductOutput,\n typeof salesmate.credential\n> = 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":";;;AAcA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhByC,EAAE,OAAO,EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,8CAcH;CACP,QAd0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-active-users.cjs","names":["z","action"],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetActiveUsersInput = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n role: z.string().describe(\"Role of the user within the organization\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n lastName: z.string().describe(\"Last name of the user\").nullable(),\n firstName: z.string().describe(\"First name of the user\").nullable(),\n}).passthrough();\nexport const SalesmateGetActiveUsersOutput = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n}).passthrough();\n\nexport const salesmateGetActiveUsers = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-active-users.cjs","names":["z","action"],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\n\nexport const SalesmateGetActiveUsersInput = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n role: z.string().describe(\"Role of the user within the organization\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n lastName: z.string().describe(\"Last name of the user\").nullable(),\n firstName: z.string().describe(\"First name of the user\").nullable(),\n}).passthrough();\nexport const SalesmateGetActiveUsersOutput = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n}).passthrough();\n\nexport const salesmateGetActiveUsers: AppAction<\n typeof SalesmateGetActiveUsersInput,\n typeof SalesmateGetActiveUsersOutput,\n typeof salesmate.credential\n> = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC7K,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-active-users.d.ts
|
|
@@ -12,21 +14,7 @@ declare const SalesmateGetActiveUsersOutput: z.ZodObject<{
|
|
|
12
14
|
firstName: z.ZodNullable<z.ZodString>;
|
|
13
15
|
}, z.core.$loose>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const salesmateGetActiveUsers:
|
|
16
|
-
connectionId: z.ZodString;
|
|
17
|
-
entityId: z.ZodString;
|
|
18
|
-
instanceId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
subdomain: z.ZodString;
|
|
21
|
-
bearer_token: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
subdomain: z.ZodString;
|
|
28
|
-
bearer_token: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const salesmateGetActiveUsers: AppAction<typeof SalesmateGetActiveUsersInput, typeof SalesmateGetActiveUsersOutput, typeof salesmate.credential>;
|
|
30
18
|
//#endregion
|
|
31
19
|
export { salesmateGetActiveUsers };
|
|
32
20
|
//# sourceMappingURL=get-active-users.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-active-users.d.cts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-active-users.d.cts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-active-users.d.ts
|
|
@@ -12,21 +14,7 @@ declare const SalesmateGetActiveUsersOutput: z.ZodObject<{
|
|
|
12
14
|
firstName: z.ZodNullable<z.ZodString>;
|
|
13
15
|
}, z.core.$loose>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const salesmateGetActiveUsers:
|
|
16
|
-
connectionId: z.ZodString;
|
|
17
|
-
entityId: z.ZodString;
|
|
18
|
-
instanceId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
subdomain: z.ZodString;
|
|
21
|
-
bearer_token: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
subdomain: z.ZodString;
|
|
28
|
-
bearer_token: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const salesmateGetActiveUsers: AppAction<typeof SalesmateGetActiveUsersInput, typeof SalesmateGetActiveUsersOutput, typeof salesmate.credential>;
|
|
30
18
|
//#endregion
|
|
31
19
|
export { salesmateGetActiveUsers };
|
|
32
20
|
//# sourceMappingURL=get-active-users.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-active-users.d.mts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-active-users.d.mts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-active-users.mjs","names":[],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetActiveUsersInput = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n role: z.string().describe(\"Role of the user within the organization\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n lastName: z.string().describe(\"Last name of the user\").nullable(),\n firstName: z.string().describe(\"First name of the user\").nullable(),\n}).passthrough();\nexport const SalesmateGetActiveUsersOutput = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n}).passthrough();\n\nexport const salesmateGetActiveUsers = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-active-users.mjs","names":[],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\n\nexport const SalesmateGetActiveUsersInput = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n role: z.string().describe(\"Role of the user within the organization\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n lastName: z.string().describe(\"Last name of the user\").nullable(),\n firstName: z.string().describe(\"First name of the user\").nullable(),\n}).passthrough();\nexport const SalesmateGetActiveUsersOutput = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n}).passthrough();\n\nexport const salesmateGetActiveUsers: AppAction<\n typeof SalesmateGetActiveUsersInput,\n typeof SalesmateGetActiveUsersOutput,\n typeof salesmate.credential\n> = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC7K,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb2C,EAAE,OAAO,EACpD,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-company.cjs","names":["z","action"],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetCompanyInput = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-company.cjs","names":["z","action"],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\n\nexport const SalesmateGetCompanyInput = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany: AppAction<\n typeof SalesmateGetCompanyInput,\n typeof SalesmateGetCompanyOutput,\n typeof salesmate.credential\n> = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0FAA0F;AAEpH,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-company.d.ts
|
|
@@ -8,23 +10,7 @@ declare const SalesmateGetCompanyOutput: z.ZodObject<{
|
|
|
8
10
|
Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
11
|
Status: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const salesmateGetCompany:
|
|
12
|
-
company_id: number;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
subdomain: z.ZodString;
|
|
19
|
-
bearer_token: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
subdomain: z.ZodString;
|
|
26
|
-
bearer_token: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const salesmateGetCompany: AppAction<typeof SalesmateGetCompanyInput, typeof SalesmateGetCompanyOutput, typeof salesmate.credential>;
|
|
28
14
|
//#endregion
|
|
29
15
|
export { salesmateGetCompany };
|
|
30
16
|
//# sourceMappingURL=get-company.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-company.d.cts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-company.d.cts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-company.d.ts
|
|
@@ -8,23 +10,7 @@ declare const SalesmateGetCompanyOutput: z.ZodObject<{
|
|
|
8
10
|
Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
11
|
Status: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const salesmateGetCompany:
|
|
12
|
-
company_id: number;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
subdomain: z.ZodString;
|
|
19
|
-
bearer_token: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
subdomain: z.ZodString;
|
|
26
|
-
bearer_token: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const salesmateGetCompany: AppAction<typeof SalesmateGetCompanyInput, typeof SalesmateGetCompanyOutput, typeof salesmate.credential>;
|
|
28
14
|
//#endregion
|
|
29
15
|
export { salesmateGetCompany };
|
|
30
16
|
//# sourceMappingURL=get-company.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-company.d.mts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-company.d.mts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-company.mjs","names":[],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetCompanyInput = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-company.mjs","names":[],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\n\nexport const SalesmateGetCompanyInput = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany: AppAction<\n typeof SalesmateGetCompanyInput,\n typeof SalesmateGetCompanyOutput,\n typeof salesmate.credential\n> = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":";;;AAcA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,sDAcH;CACP,QAduC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0FAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-modules.cjs","names":["z","action"],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateListModulesInput = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\").nullable(),\n name: z.string().describe(\"Name of the module\").nullable(),\n api_name: z.string().describe(\"API endpoint name for the module\").nullable(),\n description: z.string().describe(\"Description of the module\").nullable(),\n}).passthrough();\nexport const SalesmateListModulesOutput = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n}).passthrough();\n\nexport const salesmateListModules = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-modules.cjs","names":["z","action"],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\n\nexport const SalesmateListModulesInput = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\").nullable(),\n name: z.string().describe(\"Name of the module\").nullable(),\n api_name: z.string().describe(\"API endpoint name for the module\").nullable(),\n description: z.string().describe(\"Description of the module\").nullable(),\n}).passthrough();\nexport const SalesmateListModulesOutput = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n}).passthrough();\n\nexport const salesmateListModules: AppAction<\n typeof SalesmateListModulesInput,\n typeof SalesmateListModulesOutput,\n typeof salesmate.credential\n> = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACxJ,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iCAAiC,EACxG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-modules.d.ts
|
|
@@ -10,21 +12,7 @@ declare const SalesmateListModulesOutput: z.ZodObject<{
|
|
|
10
12
|
description: z.ZodNullable<z.ZodString>;
|
|
11
13
|
}, z.core.$loose>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const salesmateListModules:
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
subdomain: z.ZodString;
|
|
19
|
-
bearer_token: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
subdomain: z.ZodString;
|
|
26
|
-
bearer_token: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const salesmateListModules: AppAction<typeof SalesmateListModulesInput, typeof SalesmateListModulesOutput, typeof salesmate.credential>;
|
|
28
16
|
//#endregion
|
|
29
17
|
export { salesmateListModules };
|
|
30
18
|
//# sourceMappingURL=list-modules.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-modules.d.cts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-modules.d.cts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesmate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-modules.d.ts
|
|
@@ -10,21 +12,7 @@ declare const SalesmateListModulesOutput: z.ZodObject<{
|
|
|
10
12
|
description: z.ZodNullable<z.ZodString>;
|
|
11
13
|
}, z.core.$loose>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const salesmateListModules:
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
subdomain: z.ZodString;
|
|
19
|
-
bearer_token: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesmate", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
subdomain: z.ZodString;
|
|
26
|
-
bearer_token: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const salesmateListModules: AppAction<typeof SalesmateListModulesInput, typeof SalesmateListModulesOutput, typeof salesmate.credential>;
|
|
28
16
|
//#endregion
|
|
29
17
|
export { salesmateListModules };
|
|
30
18
|
//# sourceMappingURL=list-modules.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-modules.d.mts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-modules.d.mts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-modules.mjs","names":[],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateListModulesInput = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\").nullable(),\n name: z.string().describe(\"Name of the module\").nullable(),\n api_name: z.string().describe(\"API endpoint name for the module\").nullable(),\n description: z.string().describe(\"Description of the module\").nullable(),\n}).passthrough();\nexport const SalesmateListModulesOutput = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n}).passthrough();\n\nexport const salesmateListModules = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-modules.mjs","names":[],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesmate } from \"../app\";\n\nexport const SalesmateListModulesInput = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\").nullable(),\n name: z.string().describe(\"Name of the module\").nullable(),\n api_name: z.string().describe(\"API endpoint name for the module\").nullable(),\n description: z.string().describe(\"Description of the module\").nullable(),\n}).passthrough();\nexport const SalesmateListModulesOutput = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n}).passthrough();\n\nexport const salesmateListModules: AppAction<\n typeof SalesmateListModulesInput,\n typeof SalesmateListModulesOutput,\n typeof salesmate.credential\n> = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACxJ,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbwC,EAAE,OAAO,EACjD,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iCAAiC,EACxG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/app.ts
|
|
4
|
+
const credential = {
|
|
5
|
+
subdomain: zod.z.string(),
|
|
6
|
+
bearer_token: zod.z.string()
|
|
7
|
+
};
|
|
4
8
|
const salesmate = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
9
|
slug: "salesmate",
|
|
6
10
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
8
|
-
subdomain: zod.z.string(),
|
|
9
|
-
bearer_token: zod.z.string()
|
|
10
|
-
}
|
|
11
|
+
credential
|
|
11
12
|
});
|
|
12
13
|
//#endregion
|
|
13
14
|
exports.salesmate = salesmate;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const salesmate = defineApp({\n slug: \"salesmate\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n subdomain: z.string(),\n bearer_token: z.string(),\n};\n\nexport const salesmate: KeystrokeApp<\"salesmate\", typeof credential> = defineApp({\n slug: \"salesmate\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,WAAWA,IAAAA,EAAE,OAAO;CACpB,cAAcA,IAAAA,EAAE,OAAO;AACzB;AAEA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAoE;CAC/E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
subdomain: z.ZodString;
|
|
10
7
|
bearer_token: z.ZodString;
|
|
11
|
-
}
|
|
8
|
+
};
|
|
9
|
+
declare const salesmate: KeystrokeApp<"salesmate", typeof credential>;
|
|
12
10
|
//#endregion
|
|
13
11
|
export { salesmate };
|
|
14
12
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;aAGL,CAAA,CAAA,SAAA;gBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,SAAA,EAAW,YAAY,qBAAqB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
subdomain: z.ZodString;
|
|
10
7
|
bearer_token: z.ZodString;
|
|
11
|
-
}
|
|
8
|
+
};
|
|
9
|
+
declare const salesmate: KeystrokeApp<"salesmate", typeof credential>;
|
|
12
10
|
//#endregion
|
|
13
11
|
export { salesmate };
|
|
14
12
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;aAGL,CAAA,CAAA,SAAA;gBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,SAAA,EAAW,YAAY,qBAAqB,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const salesmate = defineApp({\n slug: \"salesmate\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n subdomain: z.string(),\n bearer_token: z.string(),\n};\n\nexport const salesmate: KeystrokeApp<\"salesmate\", typeof credential> = defineApp({\n slug: \"salesmate\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,YAA0D,UAAU;CAC/E,MAAM;CACN,MAAM;CACN;EAPA,WAAW,EAAE,OAAO;EACpB,cAAc,EAAE,OAAO;CAMvB;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { salesmate } from "./app.cjs";
|
|
1
2
|
import { salesmateAddProduct } from "./actions/add-product.cjs";
|
|
2
3
|
import { salesmateCreateCompany } from "./actions/create-company.cjs";
|
|
3
4
|
import { salesmateDeleteProduct } from "./actions/delete-product.cjs";
|
|
4
5
|
import { salesmateGetActiveUsers } from "./actions/get-active-users.cjs";
|
|
5
6
|
import { salesmateGetCompany } from "./actions/get-company.cjs";
|
|
6
7
|
import { salesmateListModules } from "./actions/list-modules.cjs";
|
|
7
|
-
import { salesmate } from "./app.cjs";
|
|
8
8
|
import { salesmateCatalog } from "./catalog.cjs";
|
|
9
9
|
export { salesmate, salesmateAddProduct, salesmateCatalog, salesmateCreateCompany, salesmateDeleteProduct, salesmateGetActiveUsers, salesmateGetCompany, salesmateListModules };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { salesmate } from "./app.mjs";
|
|
1
2
|
import { salesmateAddProduct } from "./actions/add-product.mjs";
|
|
2
3
|
import { salesmateCreateCompany } from "./actions/create-company.mjs";
|
|
3
4
|
import { salesmateDeleteProduct } from "./actions/delete-product.mjs";
|
|
4
5
|
import { salesmateGetActiveUsers } from "./actions/get-active-users.mjs";
|
|
5
6
|
import { salesmateGetCompany } from "./actions/get-company.mjs";
|
|
6
7
|
import { salesmateListModules } from "./actions/list-modules.mjs";
|
|
7
|
-
import { salesmate } from "./app.mjs";
|
|
8
8
|
import { salesmateCatalog } from "./catalog.mjs";
|
|
9
9
|
export { salesmate, salesmateAddProduct, salesmateCatalog, salesmateCreateCompany, salesmateDeleteProduct, salesmateGetActiveUsers, salesmateGetCompany, salesmateListModules };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/salesmate",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|