@keystrokehq/segmetrics 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/create-product.cjs +1 -0
- package/dist/actions/create-product.cjs.map +1 -1
- package/dist/actions/create-product.d.cts +3 -24
- package/dist/actions/create-product.d.cts.map +1 -1
- package/dist/actions/create-product.d.mts +3 -24
- package/dist/actions/create-product.d.mts.map +1 -1
- package/dist/actions/create-product.mjs +1 -0
- package/dist/actions/create-product.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -0
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +3 -19
- package/dist/actions/delete-contact.d.cts.map +1 -1
- package/dist/actions/delete-contact.d.mts +3 -19
- package/dist/actions/delete-contact.d.mts.map +1 -1
- package/dist/actions/delete-contact.mjs +1 -0
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/v1-add-or-update-contact.cjs +1 -0
- package/dist/actions/v1-add-or-update-contact.cjs.map +1 -1
- package/dist/actions/v1-add-or-update-contact.d.cts +3 -30
- package/dist/actions/v1-add-or-update-contact.d.cts.map +1 -1
- package/dist/actions/v1-add-or-update-contact.d.mts +3 -30
- package/dist/actions/v1-add-or-update-contact.d.mts.map +1 -1
- package/dist/actions/v1-add-or-update-contact.mjs +1 -0
- package/dist/actions/v1-add-or-update-contact.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":["segmetrics","executeSegmetricsTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { segmetrics } from \"./app\";\nimport { executeSegmetricsTool } 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":["segmetrics","executeSegmetricsTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { segmetrics } from \"./app\";\nimport { executeSegmetricsTool } 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 segmetrics.credential> {\n return segmetrics.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 executeSegmetricsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO0D;CAC1D,OAAOA,YAAAA,WAAW,OAAO;EACvB,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,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;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 { segmetrics } from \"./app\";\nimport { executeSegmetricsTool } 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 { segmetrics } from \"./app\";\nimport { executeSegmetricsTool } 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 segmetrics.credential> {\n return segmetrics.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 executeSegmetricsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO0D;CAC1D,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.cjs","names":["z","action"],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsCreateProductInput = z.object({\n id: z.string().describe(\"Unique identifier for the product.\"),\n name: z.string().describe(\"Name of the product.\"),\n type: z.enum([\"digital\", \"physical\"]).describe(\"Type of product. Must be 'digital' or 'physical'.\").optional(),\n price: z.number().describe(\"Default price of the product, must be non-negative.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n description: z.string().describe(\"Description of the product.\").optional(),\n external_id: z.string().describe(\"External system reference ID for the product.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this product belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n});\nexport const SegmetricsCreateProductOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough();\n\nexport const segmetricsCreateProduct = action(\"SEGMETRICS_CREATE_PRODUCT\", {\n slug: \"segmetrics-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in SegMetrics. Use after confirming product details.\",\n input: SegmetricsCreateProductInput,\n output: SegmetricsCreateProductOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-product.cjs","names":["z","action"],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsCreateProductInput = z.object({\n id: z.string().describe(\"Unique identifier for the product.\"),\n name: z.string().describe(\"Name of the product.\"),\n type: z.enum([\"digital\", \"physical\"]).describe(\"Type of product. Must be 'digital' or 'physical'.\").optional(),\n price: z.number().describe(\"Default price of the product, must be non-negative.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n description: z.string().describe(\"Description of the product.\").optional(),\n external_id: z.string().describe(\"External system reference ID for the product.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this product belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n});\nexport const SegmetricsCreateProductOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough();\n\nexport const segmetricsCreateProduct: AppAction<\n typeof SegmetricsCreateProductInput,\n typeof SegmetricsCreateProductOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_CREATE_PRODUCT\", {\n slug: \"segmetrics-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in SegMetrics. Use after confirming product details.\",\n input: SegmetricsCreateProductInput,\n output: SegmetricsCreateProductOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,KAAK,CAAC,WAAW,UAAU,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;AAC7K,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segmetrics } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-product.d.ts
|
|
@@ -17,30 +19,7 @@ declare const SegmetricsCreateProductInput: z.ZodObject<{
|
|
|
17
19
|
declare const SegmetricsCreateProductOutput: z.ZodObject<{
|
|
18
20
|
status: z.ZodNullable<z.ZodString>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const segmetricsCreateProduct:
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
account_id: string;
|
|
24
|
-
integration_id: string;
|
|
25
|
-
type?: "digital" | "physical" | undefined;
|
|
26
|
-
price?: number | undefined;
|
|
27
|
-
description?: string | undefined;
|
|
28
|
-
external_id?: string | undefined;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
generic_id: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
generic_id: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const segmetricsCreateProduct: AppAction<typeof SegmetricsCreateProductInput, typeof SegmetricsCreateProductOutput, typeof segmetrics.credential>;
|
|
44
23
|
//#endregion
|
|
45
24
|
export { segmetricsCreateProduct };
|
|
46
25
|
//# sourceMappingURL=create-product.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.d.cts","names":[],"sources":["../../src/actions/create-product.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-product.d.cts","names":[],"sources":["../../src/actions/create-product.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segmetrics } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-product.d.ts
|
|
@@ -17,30 +19,7 @@ declare const SegmetricsCreateProductInput: z.ZodObject<{
|
|
|
17
19
|
declare const SegmetricsCreateProductOutput: z.ZodObject<{
|
|
18
20
|
status: z.ZodNullable<z.ZodString>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const segmetricsCreateProduct:
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
account_id: string;
|
|
24
|
-
integration_id: string;
|
|
25
|
-
type?: "digital" | "physical" | undefined;
|
|
26
|
-
price?: number | undefined;
|
|
27
|
-
description?: string | undefined;
|
|
28
|
-
external_id?: string | undefined;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
generic_id: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
generic_id: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const segmetricsCreateProduct: AppAction<typeof SegmetricsCreateProductInput, typeof SegmetricsCreateProductOutput, typeof segmetrics.credential>;
|
|
44
23
|
//#endregion
|
|
45
24
|
export { segmetricsCreateProduct };
|
|
46
25
|
//# sourceMappingURL=create-product.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.d.mts","names":[],"sources":["../../src/actions/create-product.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-product.d.mts","names":[],"sources":["../../src/actions/create-product.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.mjs","names":[],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsCreateProductInput = z.object({\n id: z.string().describe(\"Unique identifier for the product.\"),\n name: z.string().describe(\"Name of the product.\"),\n type: z.enum([\"digital\", \"physical\"]).describe(\"Type of product. Must be 'digital' or 'physical'.\").optional(),\n price: z.number().describe(\"Default price of the product, must be non-negative.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n description: z.string().describe(\"Description of the product.\").optional(),\n external_id: z.string().describe(\"External system reference ID for the product.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this product belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n});\nexport const SegmetricsCreateProductOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough();\n\nexport const segmetricsCreateProduct = action(\"SEGMETRICS_CREATE_PRODUCT\", {\n slug: \"segmetrics-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in SegMetrics. Use after confirming product details.\",\n input: SegmetricsCreateProductInput,\n output: SegmetricsCreateProductOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-product.mjs","names":[],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsCreateProductInput = z.object({\n id: z.string().describe(\"Unique identifier for the product.\"),\n name: z.string().describe(\"Name of the product.\"),\n type: z.enum([\"digital\", \"physical\"]).describe(\"Type of product. Must be 'digital' or 'physical'.\").optional(),\n price: z.number().describe(\"Default price of the product, must be non-negative.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n description: z.string().describe(\"Description of the product.\").optional(),\n external_id: z.string().describe(\"External system reference ID for the product.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this product belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n});\nexport const SegmetricsCreateProductOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough();\n\nexport const segmetricsCreateProduct: AppAction<\n typeof SegmetricsCreateProductInput,\n typeof SegmetricsCreateProductOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_CREATE_PRODUCT\", {\n slug: \"segmetrics-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in SegMetrics. Use after confirming product details.\",\n input: SegmetricsCreateProductInput,\n output: SegmetricsCreateProductOutput,\n});\n"],"mappings":";;;AAoBA,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,KAAK,CAAC,WAAW,UAAU,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;CAC7K,CAaS;CACP,QAb2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsDeleteContactInput = z.object({\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n contact_id_or_email: z.string().describe(\"The unique identifier (contact_id) or email address of the contact to delete. Using an email will delete all contacts with that email in the integration.\"),\n}).describe(\"Request schema for deleting a contact.\");\nexport const SegmetricsDeleteContactOutput = z.object({\n id: z.string().describe(\"The ID of the deleted contact.\").nullable().optional(),\n object: z.string().describe(\"Object type, expected 'contact'.\").nullable().optional(),\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n deleted: z.boolean().describe(\"Whether the contact was deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for successful deletion.\\n\\nA successful delete returns a JSON object with deletion confirmation.\");\n\nexport const segmetricsDeleteContact = action(\"SEGMETRICS_DELETE_CONTACT\", {\n slug: \"segmetrics-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to permanently delete a specific contact by ID or email from SegMetrics. Use after confirming the contact exists. This action is irreversible. Note: Associated invoices and purchases remain in the system.\",\n input: SegmetricsDeleteContactInput,\n output: SegmetricsDeleteContactOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsDeleteContactInput = z.object({\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n contact_id_or_email: z.string().describe(\"The unique identifier (contact_id) or email address of the contact to delete. Using an email will delete all contacts with that email in the integration.\"),\n}).describe(\"Request schema for deleting a contact.\");\nexport const SegmetricsDeleteContactOutput = z.object({\n id: z.string().describe(\"The ID of the deleted contact.\").nullable().optional(),\n object: z.string().describe(\"Object type, expected 'contact'.\").nullable().optional(),\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n deleted: z.boolean().describe(\"Whether the contact was deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for successful deletion.\\n\\nA successful delete returns a JSON object with deletion confirmation.\");\n\nexport const segmetricsDeleteContact: AppAction<\n typeof SegmetricsDeleteContactInput,\n typeof SegmetricsDeleteContactOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_DELETE_CONTACT\", {\n slug: \"segmetrics-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to permanently delete a specific contact by ID or email from SegMetrics. Use after confirming the contact exists. This action is irreversible. Note: Associated invoices and purchases remain in the system.\",\n input: SegmetricsDeleteContactInput,\n output: SegmetricsDeleteContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACtJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;CAC3K,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J;AACtM,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mHAAmH;AAE7I,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segmetrics } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-contact.d.ts
|
|
@@ -12,25 +14,7 @@ declare const SegmetricsDeleteContactOutput: z.ZodObject<{
|
|
|
12
14
|
status: z.ZodNullable<z.ZodString>;
|
|
13
15
|
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const segmetricsDeleteContact:
|
|
16
|
-
account_id: string;
|
|
17
|
-
integration_id: string;
|
|
18
|
-
contact_id_or_email: string;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
generic_api_key: z.ZodString;
|
|
25
|
-
generic_id: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
generic_id: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const segmetricsDeleteContact: AppAction<typeof SegmetricsDeleteContactInput, typeof SegmetricsDeleteContactOutput, typeof segmetrics.credential>;
|
|
34
18
|
//#endregion
|
|
35
19
|
export { segmetricsDeleteContact };
|
|
36
20
|
//# sourceMappingURL=delete-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-contact.d.cts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-contact.d.cts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAK5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segmetrics } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-contact.d.ts
|
|
@@ -12,25 +14,7 @@ declare const SegmetricsDeleteContactOutput: z.ZodObject<{
|
|
|
12
14
|
status: z.ZodNullable<z.ZodString>;
|
|
13
15
|
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const segmetricsDeleteContact:
|
|
16
|
-
account_id: string;
|
|
17
|
-
integration_id: string;
|
|
18
|
-
contact_id_or_email: string;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
generic_api_key: z.ZodString;
|
|
25
|
-
generic_id: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
generic_id: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const segmetricsDeleteContact: AppAction<typeof SegmetricsDeleteContactInput, typeof SegmetricsDeleteContactOutput, typeof segmetrics.credential>;
|
|
34
18
|
//#endregion
|
|
35
19
|
export { segmetricsDeleteContact };
|
|
36
20
|
//# sourceMappingURL=delete-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-contact.d.mts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-contact.d.mts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAK5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsDeleteContactInput = z.object({\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n contact_id_or_email: z.string().describe(\"The unique identifier (contact_id) or email address of the contact to delete. Using an email will delete all contacts with that email in the integration.\"),\n}).describe(\"Request schema for deleting a contact.\");\nexport const SegmetricsDeleteContactOutput = z.object({\n id: z.string().describe(\"The ID of the deleted contact.\").nullable().optional(),\n object: z.string().describe(\"Object type, expected 'contact'.\").nullable().optional(),\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n deleted: z.boolean().describe(\"Whether the contact was deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for successful deletion.\\n\\nA successful delete returns a JSON object with deletion confirmation.\");\n\nexport const segmetricsDeleteContact = action(\"SEGMETRICS_DELETE_CONTACT\", {\n slug: \"segmetrics-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to permanently delete a specific contact by ID or email from SegMetrics. Use after confirming the contact exists. This action is irreversible. Note: Associated invoices and purchases remain in the system.\",\n input: SegmetricsDeleteContactInput,\n output: SegmetricsDeleteContactOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsDeleteContactInput = z.object({\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n contact_id_or_email: z.string().describe(\"The unique identifier (contact_id) or email address of the contact to delete. Using an email will delete all contacts with that email in the integration.\"),\n}).describe(\"Request schema for deleting a contact.\");\nexport const SegmetricsDeleteContactOutput = z.object({\n id: z.string().describe(\"The ID of the deleted contact.\").nullable().optional(),\n object: z.string().describe(\"Object type, expected 'contact'.\").nullable().optional(),\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n deleted: z.boolean().describe(\"Whether the contact was deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for successful deletion.\\n\\nA successful delete returns a JSON object with deletion confirmation.\");\n\nexport const segmetricsDeleteContact: AppAction<\n typeof SegmetricsDeleteContactInput,\n typeof SegmetricsDeleteContactOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_DELETE_CONTACT\", {\n slug: \"segmetrics-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to permanently delete a specific contact by ID or email from SegMetrics. Use after confirming the contact exists. This action is irreversible. Note: Associated invoices and purchases remain in the system.\",\n input: SegmetricsDeleteContactInput,\n output: SegmetricsDeleteContactOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0C,EAAE,OAAO;EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EACtJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;EAC3K,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J;CACtM,CAAC,CAAC,CAAC,SAAS,wCAgBH;CACP,QAhB2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mHAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-add-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsV1AddOrUpdateContactInput = z.object({\n email: z.string().describe(\"Contact's email address.\"),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Contact status, either 'active' or 'inactive'.\").optional(),\n utm_term: z.string().describe(\"UTM term parameter.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n contact_id: z.string().describe(\"Unique identifier for the contact (string or numeric). Optional if email is provided.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n utm_medium: z.string().describe(\"UTM medium parameter.\").optional(),\n utm_source: z.string().describe(\"UTM source parameter.\").optional(),\n utm_content: z.string().describe(\"UTM content parameter.\").optional(),\n date_created: z.string().describe(\"Creation timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n last_updated: z.string().describe(\"Last-update timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n}).describe(\"Request schema for adding or updating a contact in SegMetrics.\");\nexport const SegmetricsV1AddOrUpdateContactOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough().describe(\"Response schema for add or update contact in SegMetrics.\");\n\nexport const segmetricsV1AddOrUpdateContact = action(\"SEGMETRICS_V1_ADD_OR_UPDATE_CONTACT\", {\n slug: \"segmetrics-v1-add-or-update-contact\",\n name: \"Add or Update Contact\",\n description: \"Tool to add or update a contact in SegMetrics. Use when you need to upsert the contact record during data import.\",\n input: SegmetricsV1AddOrUpdateContactInput,\n output: SegmetricsV1AddOrUpdateContactOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"v1-add-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsV1AddOrUpdateContactInput = z.object({\n email: z.string().describe(\"Contact's email address.\"),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Contact status, either 'active' or 'inactive'.\").optional(),\n utm_term: z.string().describe(\"UTM term parameter.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n contact_id: z.string().describe(\"Unique identifier for the contact (string or numeric). Optional if email is provided.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n utm_medium: z.string().describe(\"UTM medium parameter.\").optional(),\n utm_source: z.string().describe(\"UTM source parameter.\").optional(),\n utm_content: z.string().describe(\"UTM content parameter.\").optional(),\n date_created: z.string().describe(\"Creation timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n last_updated: z.string().describe(\"Last-update timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n}).describe(\"Request schema for adding or updating a contact in SegMetrics.\");\nexport const SegmetricsV1AddOrUpdateContactOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough().describe(\"Response schema for add or update contact in SegMetrics.\");\n\nexport const segmetricsV1AddOrUpdateContact: AppAction<\n typeof SegmetricsV1AddOrUpdateContactInput,\n typeof SegmetricsV1AddOrUpdateContactOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_V1_ADD_OR_UPDATE_CONTACT\", {\n slug: \"segmetrics-v1-add-or-update-contact\",\n name: \"Add or Update Contact\",\n description: \"Tool to add or update a contact in SegMetrics. Use when you need to upsert the contact record during data import.\",\n input: SegmetricsV1AddOrUpdateContactInput,\n output: SegmetricsV1AddOrUpdateContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACtJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAClI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACpE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACtE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;AAC7K,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,iCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segmetrics } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/v1-add-or-update-contact.d.ts
|
|
@@ -23,36 +25,7 @@ declare const SegmetricsV1AddOrUpdateContactInput: z.ZodObject<{
|
|
|
23
25
|
declare const SegmetricsV1AddOrUpdateContactOutput: z.ZodObject<{
|
|
24
26
|
status: z.ZodNullable<z.ZodString>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const segmetricsV1AddOrUpdateContact:
|
|
27
|
-
email: string;
|
|
28
|
-
account_id: string;
|
|
29
|
-
integration_id: string;
|
|
30
|
-
status?: "active" | "inactive" | undefined;
|
|
31
|
-
utm_term?: string | undefined;
|
|
32
|
-
last_name?: string | undefined;
|
|
33
|
-
contact_id?: string | undefined;
|
|
34
|
-
first_name?: string | undefined;
|
|
35
|
-
utm_medium?: string | undefined;
|
|
36
|
-
utm_source?: string | undefined;
|
|
37
|
-
utm_content?: string | undefined;
|
|
38
|
-
date_created?: string | undefined;
|
|
39
|
-
last_updated?: string | undefined;
|
|
40
|
-
utm_campaign?: string | undefined;
|
|
41
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
generic_api_key: z.ZodString;
|
|
47
|
-
generic_id: z.ZodString;
|
|
48
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
generic_id: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const segmetricsV1AddOrUpdateContact: AppAction<typeof SegmetricsV1AddOrUpdateContactInput, typeof SegmetricsV1AddOrUpdateContactOutput, typeof segmetrics.credential>;
|
|
56
29
|
//#endregion
|
|
57
30
|
export { segmetricsV1AddOrUpdateContact };
|
|
58
31
|
//# sourceMappingURL=v1-add-or-update-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-add-or-update-contact.d.cts","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"v1-add-or-update-contact.d.cts","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAgBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segmetrics } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/v1-add-or-update-contact.d.ts
|
|
@@ -23,36 +25,7 @@ declare const SegmetricsV1AddOrUpdateContactInput: z.ZodObject<{
|
|
|
23
25
|
declare const SegmetricsV1AddOrUpdateContactOutput: z.ZodObject<{
|
|
24
26
|
status: z.ZodNullable<z.ZodString>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const segmetricsV1AddOrUpdateContact:
|
|
27
|
-
email: string;
|
|
28
|
-
account_id: string;
|
|
29
|
-
integration_id: string;
|
|
30
|
-
status?: "active" | "inactive" | undefined;
|
|
31
|
-
utm_term?: string | undefined;
|
|
32
|
-
last_name?: string | undefined;
|
|
33
|
-
contact_id?: string | undefined;
|
|
34
|
-
first_name?: string | undefined;
|
|
35
|
-
utm_medium?: string | undefined;
|
|
36
|
-
utm_source?: string | undefined;
|
|
37
|
-
utm_content?: string | undefined;
|
|
38
|
-
date_created?: string | undefined;
|
|
39
|
-
last_updated?: string | undefined;
|
|
40
|
-
utm_campaign?: string | undefined;
|
|
41
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
generic_api_key: z.ZodString;
|
|
47
|
-
generic_id: z.ZodString;
|
|
48
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segmetrics", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
generic_id: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const segmetricsV1AddOrUpdateContact: AppAction<typeof SegmetricsV1AddOrUpdateContactInput, typeof SegmetricsV1AddOrUpdateContactOutput, typeof segmetrics.credential>;
|
|
56
29
|
//#endregion
|
|
57
30
|
export { segmetricsV1AddOrUpdateContact };
|
|
58
31
|
//# sourceMappingURL=v1-add-or-update-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-add-or-update-contact.d.mts","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"v1-add-or-update-contact.d.mts","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAgBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,UAAA,CAAW,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-add-or-update-contact.mjs","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsV1AddOrUpdateContactInput = z.object({\n email: z.string().describe(\"Contact's email address.\"),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Contact status, either 'active' or 'inactive'.\").optional(),\n utm_term: z.string().describe(\"UTM term parameter.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n contact_id: z.string().describe(\"Unique identifier for the contact (string or numeric). Optional if email is provided.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n utm_medium: z.string().describe(\"UTM medium parameter.\").optional(),\n utm_source: z.string().describe(\"UTM source parameter.\").optional(),\n utm_content: z.string().describe(\"UTM content parameter.\").optional(),\n date_created: z.string().describe(\"Creation timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n last_updated: z.string().describe(\"Last-update timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n}).describe(\"Request schema for adding or updating a contact in SegMetrics.\");\nexport const SegmetricsV1AddOrUpdateContactOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough().describe(\"Response schema for add or update contact in SegMetrics.\");\n\nexport const segmetricsV1AddOrUpdateContact = action(\"SEGMETRICS_V1_ADD_OR_UPDATE_CONTACT\", {\n slug: \"segmetrics-v1-add-or-update-contact\",\n name: \"Add or Update Contact\",\n description: \"Tool to add or update a contact in SegMetrics. Use when you need to upsert the contact record during data import.\",\n input: SegmetricsV1AddOrUpdateContactInput,\n output: SegmetricsV1AddOrUpdateContactOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"v1-add-or-update-contact.mjs","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsV1AddOrUpdateContactInput = z.object({\n email: z.string().describe(\"Contact's email address.\"),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Contact status, either 'active' or 'inactive'.\").optional(),\n utm_term: z.string().describe(\"UTM term parameter.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n contact_id: z.string().describe(\"Unique identifier for the contact (string or numeric). Optional if email is provided.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n utm_medium: z.string().describe(\"UTM medium parameter.\").optional(),\n utm_source: z.string().describe(\"UTM source parameter.\").optional(),\n utm_content: z.string().describe(\"UTM content parameter.\").optional(),\n date_created: z.string().describe(\"Creation timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n last_updated: z.string().describe(\"Last-update timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n}).describe(\"Request schema for adding or updating a contact in SegMetrics.\");\nexport const SegmetricsV1AddOrUpdateContactOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough().describe(\"Response schema for add or update contact in SegMetrics.\");\n\nexport const segmetricsV1AddOrUpdateContact: AppAction<\n typeof SegmetricsV1AddOrUpdateContactInput,\n typeof SegmetricsV1AddOrUpdateContactOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_V1_ADD_OR_UPDATE_CONTACT\", {\n slug: \"segmetrics-v1-add-or-update-contact\",\n name: \"Add or Update Contact\",\n description: \"Tool to add or update a contact in SegMetrics. Use when you need to upsert the contact record during data import.\",\n input: SegmetricsV1AddOrUpdateContactInput,\n output: SegmetricsV1AddOrUpdateContactOutput,\n});\n"],"mappings":";;;AA0BA,MAAa,iCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BiD,EAAE,OAAO;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACrD,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EACtJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAClI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACpE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACtE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;CAC7K,CAAC,CAAC,CAAC,SAAS,gEAaH;CACP,QAbkD,EAAE,OAAO,EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;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
|
+
generic_api_key: zod.z.string(),
|
|
6
|
+
generic_id: zod.z.string()
|
|
7
|
+
};
|
|
4
8
|
const segmetrics = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
9
|
slug: "segmetrics",
|
|
6
10
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
8
|
-
generic_api_key: zod.z.string(),
|
|
9
|
-
generic_id: zod.z.string()
|
|
10
|
-
}
|
|
11
|
+
credential
|
|
11
12
|
});
|
|
12
13
|
//#endregion
|
|
13
14
|
exports.segmetrics = segmetrics;
|
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 segmetrics = defineApp({\n slug: \"segmetrics\",\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 generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const segmetrics: KeystrokeApp<\"segmetrics\", typeof credential> = defineApp({\n slug: \"segmetrics\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,iBAAiBA,IAAAA,EAAE,OAAO;CAC1B,YAAYA,IAAAA,EAAE,OAAO;AACvB;AAEA,MAAa,cAAA,GAAA,2BAAA,UAAA,CAAsE;CACjF,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
|
generic_api_key: z.ZodString;
|
|
10
7
|
generic_id: z.ZodString;
|
|
11
|
-
}
|
|
8
|
+
};
|
|
9
|
+
declare const segmetrics: KeystrokeApp<"segmetrics", typeof credential>;
|
|
12
10
|
//#endregion
|
|
13
11
|
export { segmetrics };
|
|
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;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,UAAA,EAAY,YAAY,sBAAsB,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
|
generic_api_key: z.ZodString;
|
|
10
7
|
generic_id: z.ZodString;
|
|
11
|
-
}
|
|
8
|
+
};
|
|
9
|
+
declare const segmetrics: KeystrokeApp<"segmetrics", typeof credential>;
|
|
12
10
|
//#endregion
|
|
13
11
|
export { segmetrics };
|
|
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;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,UAAA,EAAY,YAAY,sBAAsB,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 segmetrics = defineApp({\n slug: \"segmetrics\",\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 generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const segmetrics: KeystrokeApp<\"segmetrics\", typeof credential> = defineApp({\n slug: \"segmetrics\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,aAA4D,UAAU;CACjF,MAAM;CACN,MAAM;CACN;EAPA,iBAAiB,EAAE,OAAO;EAC1B,YAAY,EAAE,OAAO;CAMrB;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { segmetrics } from "./app.cjs";
|
|
1
2
|
import { segmetricsCreateProduct } from "./actions/create-product.cjs";
|
|
2
3
|
import { segmetricsDeleteContact } from "./actions/delete-contact.cjs";
|
|
3
4
|
import { segmetricsV1AddOrUpdateContact } from "./actions/v1-add-or-update-contact.cjs";
|
|
4
|
-
import { segmetrics } from "./app.cjs";
|
|
5
5
|
import { segmetricsCatalog } from "./catalog.cjs";
|
|
6
6
|
export { segmetrics, segmetricsCatalog, segmetricsCreateProduct, segmetricsDeleteContact, segmetricsV1AddOrUpdateContact };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { segmetrics } from "./app.mjs";
|
|
1
2
|
import { segmetricsCreateProduct } from "./actions/create-product.mjs";
|
|
2
3
|
import { segmetricsDeleteContact } from "./actions/delete-contact.mjs";
|
|
3
4
|
import { segmetricsV1AddOrUpdateContact } from "./actions/v1-add-or-update-contact.mjs";
|
|
4
|
-
import { segmetrics } from "./app.mjs";
|
|
5
5
|
import { segmetricsCatalog } from "./catalog.mjs";
|
|
6
6
|
export { segmetrics, segmetricsCatalog, segmetricsCreateProduct, segmetricsDeleteContact, segmetricsV1AddOrUpdateContact };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/segmetrics",
|
|
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": {
|