@keystrokehq/simplesat 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-or-update-customer2.cjs +1 -1
- package/dist/actions/create-or-update-customer2.cjs.map +1 -1
- package/dist/actions/create-or-update-customer2.d.cts +1 -1
- package/dist/actions/create-or-update-customer2.d.mts +1 -1
- package/dist/actions/create-or-update-customer2.mjs +1 -1
- package/dist/actions/create-or-update-customer2.mjs.map +1 -1
- package/dist/actions/create-or-update-team-member.cjs +1 -1
- package/dist/actions/create-or-update-team-member.cjs.map +1 -1
- package/dist/actions/create-or-update-team-member.d.cts +1 -1
- package/dist/actions/create-or-update-team-member.d.mts +1 -1
- package/dist/actions/create-or-update-team-member.mjs +1 -1
- package/dist/actions/create-or-update-team-member.mjs.map +1 -1
- package/dist/actions/get-customer.cjs +2 -2
- package/dist/actions/get-customer.cjs.map +1 -1
- package/dist/actions/get-customer.d.cts +2 -2
- package/dist/actions/get-customer.d.mts +2 -2
- package/dist/actions/get-customer.mjs +2 -2
- package/dist/actions/get-customer.mjs.map +1 -1
- package/dist/actions/list-questions.cjs +5 -5
- package/dist/actions/list-questions.cjs.map +1 -1
- package/dist/actions/list-questions.d.cts +5 -5
- package/dist/actions/list-questions.d.mts +5 -5
- package/dist/actions/list-questions.mjs +5 -5
- package/dist/actions/list-questions.mjs.map +1 -1
- package/dist/actions/list-surveys.cjs +2 -2
- package/dist/actions/list-surveys.cjs.map +1 -1
- package/dist/actions/list-surveys.d.cts +2 -2
- package/dist/actions/list-surveys.d.mts +2 -2
- package/dist/actions/list-surveys.mjs +2 -2
- package/dist/actions/list-surveys.mjs.map +1 -1
- package/dist/actions/search-answers.cjs +9 -9
- package/dist/actions/search-answers.cjs.map +1 -1
- package/dist/actions/search-answers.d.cts +13 -12
- package/dist/actions/search-answers.d.mts +13 -12
- package/dist/actions/search-answers.mjs +9 -9
- package/dist/actions/search-answers.mjs.map +1 -1
- package/dist/actions/search-responses.cjs +3 -3
- package/dist/actions/search-responses.cjs.map +1 -1
- package/dist/actions/search-responses.d.cts +4 -3
- package/dist/actions/search-responses.d.mts +4 -3
- package/dist/actions/search-responses.mjs +3 -3
- package/dist/actions/search-responses.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +2 -2
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +3 -3
- package/dist/actions/update-customer.d.mts +3 -3
- package/dist/actions/update-customer.mjs +2 -2
- package/dist/actions/update-customer.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ const SimplesatUpdateCustomerInput = zod.z.object({
|
|
|
8
8
|
email: zod.z.string().describe("Email address of the customer").optional(),
|
|
9
9
|
company: zod.z.string().describe("Company name of the customer").optional(),
|
|
10
10
|
external_id: zod.z.number().int().describe("External identifier for the customer").optional(),
|
|
11
|
-
custom_attributes: zod.z.
|
|
11
|
+
custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.").optional()
|
|
12
12
|
});
|
|
13
13
|
const SimplesatUpdateCustomerOutput = zod.z.object({
|
|
14
14
|
id: zod.z.number().int().describe("Unique identifier of the customer").nullable(),
|
|
@@ -18,7 +18,7 @@ const SimplesatUpdateCustomerOutput = zod.z.object({
|
|
|
18
18
|
company: zod.z.string().describe("Company name of the customer").nullable().optional(),
|
|
19
19
|
external_id: zod.z.number().int().describe("External identifier for the customer").nullable().optional(),
|
|
20
20
|
custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes of the customer").nullable().optional()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const simplesatUpdateCustomer = require_action.action("SIMPLESAT_UPDATE_CUSTOMER", {
|
|
23
23
|
slug: "simplesat-update-customer",
|
|
24
24
|
name: "Update Customer",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatUpdateCustomerInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to update\"),\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tags associated with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").optional(),\n custom_attributes: z.
|
|
1
|
+
{"version":3,"file":"update-customer.cjs","names":["z","action"],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatUpdateCustomerInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to update\"),\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tags associated with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.\").optional(),\n});\nexport const SimplesatUpdateCustomerOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).passthrough();\n\nexport const simplesatUpdateCustomer = action(\"SIMPLESAT_UPDATE_CUSTOMER\", {\n slug: \"simplesat-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer by their Simplesat ID. Use when you need to modify customer information such as name, email, company, external ID, tags, or custom attributes.\",\n input: SimplesatUpdateCustomerInput,\n output: SimplesatUpdateCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACxF,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;AAC5L,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare const SimplesatUpdateCustomerInput: z.ZodObject<{
|
|
|
8
8
|
email: z.ZodOptional<z.ZodString>;
|
|
9
9
|
company: z.ZodOptional<z.ZodString>;
|
|
10
10
|
external_id: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
custom_attributes: z.ZodOptional<z.
|
|
11
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
declare const SimplesatUpdateCustomerOutput: z.ZodObject<{
|
|
14
14
|
id: z.ZodNullable<z.ZodNumber>;
|
|
@@ -18,7 +18,7 @@ declare const SimplesatUpdateCustomerOutput: z.ZodObject<{
|
|
|
18
18
|
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const simplesatUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
id: string;
|
|
24
24
|
name?: string | undefined;
|
|
@@ -26,7 +26,7 @@ declare const simplesatUpdateCustomer: import("@keystrokehq/action").WorkflowAct
|
|
|
26
26
|
email?: string | undefined;
|
|
27
27
|
company?: string | undefined;
|
|
28
28
|
external_id?: number | undefined;
|
|
29
|
-
custom_attributes?: Record<string,
|
|
29
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
30
30
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { simplesatUpdateCustomer };
|
|
@@ -8,7 +8,7 @@ declare const SimplesatUpdateCustomerInput: z.ZodObject<{
|
|
|
8
8
|
email: z.ZodOptional<z.ZodString>;
|
|
9
9
|
company: z.ZodOptional<z.ZodString>;
|
|
10
10
|
external_id: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
custom_attributes: z.ZodOptional<z.
|
|
11
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
declare const SimplesatUpdateCustomerOutput: z.ZodObject<{
|
|
14
14
|
id: z.ZodNullable<z.ZodNumber>;
|
|
@@ -18,7 +18,7 @@ declare const SimplesatUpdateCustomerOutput: z.ZodObject<{
|
|
|
18
18
|
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const simplesatUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
id: string;
|
|
24
24
|
name?: string | undefined;
|
|
@@ -26,7 +26,7 @@ declare const simplesatUpdateCustomer: import("@keystrokehq/action").WorkflowAct
|
|
|
26
26
|
email?: string | undefined;
|
|
27
27
|
company?: string | undefined;
|
|
28
28
|
external_id?: number | undefined;
|
|
29
|
-
custom_attributes?: Record<string,
|
|
29
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
30
30
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { simplesatUpdateCustomer };
|
|
@@ -11,7 +11,7 @@ const simplesatUpdateCustomer = action("SIMPLESAT_UPDATE_CUSTOMER", {
|
|
|
11
11
|
email: z.string().describe("Email address of the customer").optional(),
|
|
12
12
|
company: z.string().describe("Company name of the customer").optional(),
|
|
13
13
|
external_id: z.number().int().describe("External identifier for the customer").optional(),
|
|
14
|
-
custom_attributes: z.
|
|
14
|
+
custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.").optional()
|
|
15
15
|
}),
|
|
16
16
|
output: z.object({
|
|
17
17
|
id: z.number().int().describe("Unique identifier of the customer").nullable(),
|
|
@@ -21,7 +21,7 @@ const simplesatUpdateCustomer = action("SIMPLESAT_UPDATE_CUSTOMER", {
|
|
|
21
21
|
company: z.string().describe("Company name of the customer").nullable().optional(),
|
|
22
22
|
external_id: z.number().int().describe("External identifier for the customer").nullable().optional(),
|
|
23
23
|
custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes of the customer").nullable().optional()
|
|
24
|
-
})
|
|
24
|
+
}).passthrough()
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { simplesatUpdateCustomer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.mjs","names":[],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatUpdateCustomerInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to update\"),\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tags associated with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").optional(),\n custom_attributes: z.
|
|
1
|
+
{"version":3,"file":"update-customer.mjs","names":[],"sources":["../../src/actions/update-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatUpdateCustomerInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to update\"),\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tags associated with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer\").optional(),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes as key-value pairs. Any custom attribute fields that didn't previously exist will be created.\").optional(),\n});\nexport const SimplesatUpdateCustomerOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.number().int().describe(\"External identifier for the customer\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).passthrough();\n\nexport const simplesatUpdateCustomer = action(\"SIMPLESAT_UPDATE_CUSTOMER\", {\n slug: \"simplesat-update-customer\",\n name: \"Update Customer\",\n description: \"Tool to update an existing customer by their Simplesat ID. Use when you need to modify customer information such as name, email, company, external ID, tags, or custom attributes.\",\n input: SimplesatUpdateCustomerInput,\n output: SimplesatUpdateCustomerOutput,\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