@keystrokehq/segmetrics 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/create-product.cjs +1 -1
- package/dist/actions/create-product.cjs.map +1 -1
- package/dist/actions/create-product.d.cts +1 -1
- package/dist/actions/create-product.d.mts +1 -1
- package/dist/actions/create-product.mjs +1 -1
- package/dist/actions/create-product.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -1
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +1 -1
- package/dist/actions/delete-contact.d.mts +1 -1
- package/dist/actions/delete-contact.mjs +1 -1
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/v1-add-or-update-contact.cjs +1 -1
- package/dist/actions/v1-add-or-update-contact.cjs.map +1 -1
- package/dist/actions/v1-add-or-update-contact.d.cts +1 -1
- package/dist/actions/v1-add-or-update-contact.d.mts +1 -1
- package/dist/actions/v1-add-or-update-contact.mjs +1 -1
- package/dist/actions/v1-add-or-update-contact.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ const SegmetricsCreateProductInput = zod.z.object({
|
|
|
11
11
|
external_id: zod.z.string().describe("External system reference ID for the product.").optional(),
|
|
12
12
|
integration_id: zod.z.string().describe("Integration ID to which this product belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.")
|
|
13
13
|
});
|
|
14
|
-
const SegmetricsCreateProductOutput = zod.z.object({ status: zod.z.string().describe("API response status, expected 'success'.").nullable() });
|
|
14
|
+
const SegmetricsCreateProductOutput = zod.z.object({ status: zod.z.string().describe("API response status, expected 'success'.").nullable() }).passthrough();
|
|
15
15
|
const segmetricsCreateProduct = require_action.action("SEGMETRICS_CREATE_PRODUCT", {
|
|
16
16
|
slug: "segmetrics-create-product",
|
|
17
17
|
name: "Create Product",
|
|
@@ -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});\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":";;;AAIA,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;
|
|
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":";;;AAIA,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,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,7 +16,7 @@ declare const SegmetricsCreateProductInput: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const SegmetricsCreateProductOutput: z.ZodObject<{
|
|
18
18
|
status: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>;
|
|
20
20
|
declare const segmetricsCreateProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
@@ -16,7 +16,7 @@ declare const SegmetricsCreateProductInput: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const SegmetricsCreateProductOutput: z.ZodObject<{
|
|
18
18
|
status: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>;
|
|
20
20
|
declare const segmetricsCreateProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
@@ -14,7 +14,7 @@ const segmetricsCreateProduct = action("SEGMETRICS_CREATE_PRODUCT", {
|
|
|
14
14
|
external_id: z.string().describe("External system reference ID for the product.").optional(),
|
|
15
15
|
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.")
|
|
16
16
|
}),
|
|
17
|
-
output: z.object({ status: z.string().describe("API response status, expected 'success'.").nullable() })
|
|
17
|
+
output: z.object({ status: z.string().describe("API response status, expected 'success'.").nullable() }).passthrough()
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
20
|
export { segmetricsCreateProduct };
|
|
@@ -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});\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":";;AAkBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB0C,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,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,
|
|
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":";;AAkBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB0C,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,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ const SegmetricsDeleteContactOutput = zod.z.object({
|
|
|
11
11
|
object: zod.z.string().describe("Object type, expected 'contact'.").nullable().optional(),
|
|
12
12
|
status: zod.z.string().describe("API response status, expected 'success'.").nullable(),
|
|
13
13
|
deleted: zod.z.boolean().describe("Whether the contact was deleted.").nullable().optional()
|
|
14
|
-
}).describe("Response schema for successful deletion.\n\nA successful delete returns a JSON object with deletion confirmation.");
|
|
14
|
+
}).passthrough().describe("Response schema for successful deletion.\n\nA successful delete returns a JSON object with deletion confirmation.");
|
|
15
15
|
const segmetricsDeleteContact = require_action.action("SEGMETRICS_DELETE_CONTACT", {
|
|
16
16
|
slug: "segmetrics-delete-contact",
|
|
17
17
|
name: "Delete Contact",
|
|
@@ -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}).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":";;;AAIA,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,SAAS,mHAAmH;
|
|
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":";;;AAIA,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,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const SegmetricsDeleteContactOutput: z.ZodObject<{
|
|
|
11
11
|
object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
status: z.ZodNullable<z.ZodString>;
|
|
13
13
|
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const segmetricsDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
account_id: string;
|
|
17
17
|
integration_id: string;
|
|
@@ -11,7 +11,7 @@ declare const SegmetricsDeleteContactOutput: z.ZodObject<{
|
|
|
11
11
|
object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
status: z.ZodNullable<z.ZodString>;
|
|
13
13
|
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const segmetricsDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
account_id: string;
|
|
17
17
|
integration_id: string;
|
|
@@ -14,7 +14,7 @@ const segmetricsDeleteContact = action("SEGMETRICS_DELETE_CONTACT", {
|
|
|
14
14
|
object: z.string().describe("Object type, expected 'contact'.").nullable().optional(),
|
|
15
15
|
status: z.string().describe("API response status, expected 'success'.").nullable(),
|
|
16
16
|
deleted: z.boolean().describe("Whether the contact was deleted.").nullable().optional()
|
|
17
|
-
}).describe("Response schema for successful deletion.\n\nA successful delete returns a JSON object with deletion confirmation.")
|
|
17
|
+
}).passthrough().describe("Response schema for successful deletion.\n\nA successful delete returns a JSON object with deletion confirmation.")
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
20
|
export { segmetricsDeleteContact };
|
|
@@ -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}).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":";;AAgBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0C,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,wCAYH;CACP,QAZ2C,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,SAAS,
|
|
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":";;AAgBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0C,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,wCAYH;CACP,QAZ2C,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,mHAOhB;AACV,CAAC"}
|
|
@@ -17,7 +17,7 @@ const SegmetricsV1AddOrUpdateContactInput = zod.z.object({
|
|
|
17
17
|
utm_campaign: zod.z.string().describe("UTM campaign parameter.").optional(),
|
|
18
18
|
integration_id: zod.z.string().describe("Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.")
|
|
19
19
|
}).describe("Request schema for adding or updating a contact in SegMetrics.");
|
|
20
|
-
const SegmetricsV1AddOrUpdateContactOutput = zod.z.object({ status: zod.z.string().describe("API response status, expected 'success'.").nullable() }).describe("Response schema for add or update contact in SegMetrics.");
|
|
20
|
+
const SegmetricsV1AddOrUpdateContactOutput = zod.z.object({ status: zod.z.string().describe("API response status, expected 'success'.").nullable() }).passthrough().describe("Response schema for add or update contact in SegMetrics.");
|
|
21
21
|
const segmetricsV1AddOrUpdateContact = require_action.action("SEGMETRICS_V1_ADD_OR_UPDATE_CONTACT", {
|
|
22
22
|
slug: "segmetrics-v1-add-or-update-contact",
|
|
23
23
|
name: "Add or Update Contact",
|
|
@@ -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}).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":";;;AAIA,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,SAAS,0DAA0D;
|
|
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":";;;AAIA,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,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -22,7 +22,7 @@ declare const SegmetricsV1AddOrUpdateContactInput: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
declare const SegmetricsV1AddOrUpdateContactOutput: z.ZodObject<{
|
|
24
24
|
status: z.ZodNullable<z.ZodString>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const segmetricsV1AddOrUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
email: string;
|
|
28
28
|
account_id: string;
|
|
@@ -22,7 +22,7 @@ declare const SegmetricsV1AddOrUpdateContactInput: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
declare const SegmetricsV1AddOrUpdateContactOutput: z.ZodObject<{
|
|
24
24
|
status: z.ZodNullable<z.ZodString>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const segmetricsV1AddOrUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
email: string;
|
|
28
28
|
account_id: string;
|
|
@@ -20,7 +20,7 @@ const segmetricsV1AddOrUpdateContact = action("SEGMETRICS_V1_ADD_OR_UPDATE_CONTA
|
|
|
20
20
|
utm_campaign: z.string().describe("UTM campaign parameter.").optional(),
|
|
21
21
|
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.")
|
|
22
22
|
}).describe("Request schema for adding or updating a contact in SegMetrics."),
|
|
23
|
-
output: z.object({ status: z.string().describe("API response status, expected 'success'.").nullable() }).describe("Response schema for add or update contact in SegMetrics.")
|
|
23
|
+
output: z.object({ status: z.string().describe("API response status, expected 'success'.").nullable() }).passthrough().describe("Response schema for add or update contact in SegMetrics.")
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
|
26
26
|
export { segmetricsV1AddOrUpdateContact };
|
|
@@ -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}).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":";;AAwBA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBiD,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,gEASH;CACP,QATkD,EAAE,OAAO,EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,SAAS,
|
|
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":";;AAwBA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBiD,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,gEASH;CACP,QATkD,EAAE,OAAO,EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|