@keystrokehq/simplesat 0.1.0 → 0.1.2
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-or-update-customer2.cjs +2 -2
- package/dist/actions/create-or-update-customer2.cjs.map +1 -1
- package/dist/actions/create-or-update-customer2.d.cts +25 -3
- package/dist/actions/create-or-update-customer2.d.cts.map +1 -1
- package/dist/actions/create-or-update-customer2.d.mts +25 -3
- package/dist/actions/create-or-update-customer2.d.mts.map +1 -1
- package/dist/actions/create-or-update-customer2.mjs +2 -2
- package/dist/actions/create-or-update-customer2.mjs.map +1 -1
- package/dist/actions/create-or-update-team-member.cjs +4 -4
- package/dist/actions/create-or-update-team-member.cjs.map +1 -1
- package/dist/actions/create-or-update-team-member.d.cts +25 -3
- package/dist/actions/create-or-update-team-member.d.cts.map +1 -1
- package/dist/actions/create-or-update-team-member.d.mts +25 -3
- package/dist/actions/create-or-update-team-member.d.mts.map +1 -1
- package/dist/actions/create-or-update-team-member.mjs +4 -4
- package/dist/actions/create-or-update-team-member.mjs.map +1 -1
- package/dist/actions/get-customer.cjs +1 -1
- package/dist/actions/get-customer.cjs.map +1 -1
- package/dist/actions/get-customer.d.cts +15 -3
- package/dist/actions/get-customer.d.cts.map +1 -1
- package/dist/actions/get-customer.d.mts +15 -3
- package/dist/actions/get-customer.d.mts.map +1 -1
- package/dist/actions/get-customer.mjs +1 -1
- package/dist/actions/get-customer.mjs.map +1 -1
- package/dist/actions/list-questions.cjs +3 -3
- package/dist/actions/list-questions.cjs.map +1 -1
- package/dist/actions/list-questions.d.cts +43 -3
- package/dist/actions/list-questions.d.cts.map +1 -1
- package/dist/actions/list-questions.d.mts +43 -3
- package/dist/actions/list-questions.d.mts.map +1 -1
- package/dist/actions/list-questions.mjs +3 -3
- package/dist/actions/list-questions.mjs.map +1 -1
- package/dist/actions/list-surveys.cjs +3 -3
- package/dist/actions/list-surveys.cjs.map +1 -1
- package/dist/actions/list-surveys.d.cts +15 -3
- package/dist/actions/list-surveys.d.cts.map +1 -1
- package/dist/actions/list-surveys.d.mts +15 -3
- package/dist/actions/list-surveys.d.mts.map +1 -1
- package/dist/actions/list-surveys.mjs +3 -3
- package/dist/actions/list-surveys.mjs.map +1 -1
- package/dist/actions/search-answers.cjs +2 -2
- package/dist/actions/search-answers.cjs.map +1 -1
- package/dist/actions/search-answers.d.cts +96 -3
- package/dist/actions/search-answers.d.cts.map +1 -1
- package/dist/actions/search-answers.d.mts +96 -3
- package/dist/actions/search-answers.d.mts.map +1 -1
- package/dist/actions/search-answers.mjs +2 -2
- package/dist/actions/search-answers.mjs.map +1 -1
- package/dist/actions/search-responses.cjs.map +1 -1
- package/dist/actions/search-responses.d.cts +62 -3
- package/dist/actions/search-responses.d.cts.map +1 -1
- package/dist/actions/search-responses.d.mts +62 -3
- package/dist/actions/search-responses.d.mts.map +1 -1
- package/dist/actions/search-responses.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +1 -1
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +27 -3
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +27 -3
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +1 -1
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-responses.cjs","names":["z","action"],"sources":["../../src/actions/search-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchResponsesInput
|
|
1
|
+
{"version":3,"file":"search-responses.cjs","names":["z","action"],"sources":["../../src/actions/search-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchResponsesInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Starts at 1.\").optional(),\n filters: z.array(z.object({\n key: z.enum([\"choice_value\", \"collaborator\", \"company\", \"comment\", \"customer\", \"sentiment\", \"metric\", \"survey\", \"tag\", \"team_member\", \"ticket_id\"]).describe(\"The field to filter on (e.g., choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, ticket_id, or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by for the specified key\"),\n comparison: z.enum([\"is\", \"is_not\"]).describe(\"Comparison operator for the filter. 'is' checks if the field matches any of the values, 'is_not' checks if the field does not match any of the values.\"),\n}).describe(\"Filter object for searching responses.\")).describe(\"Array of filter objects to narrow down responses by specific criteria such as sentiment, customer, team member, survey, etc.\").optional(),\n end_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to end displaying responses. If not specified, defaults to current date/time.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to combine multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page. Default is 100, maximum is 100.\").optional(),\n start_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to start displaying responses. If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching responses.\");\nconst SimplesatSearchResponses_ResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the response\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the response\").nullable().optional(),\n metric: z.record(z.string(), z.unknown()).describe(\"Metric information associated with the response\").nullable().optional(),\n survey: z.record(z.string(), z.unknown()).describe(\"Survey information associated with the response\").nullable().optional(),\n comment: z.string().describe(\"Text comment provided with the response\").nullable().optional(),\n customer: z.record(z.string(), z.unknown()).describe(\"Customer information associated with the response\").nullable().optional(),\n sentiment: z.string().describe(\"Sentiment of the response (positive, neutral, negative)\").nullable().optional(),\n ticket_id: z.string().describe(\"Associated ticket ID if available\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the response was created\").nullable().optional(),\n team_member: z.record(z.string(), z.unknown()).describe(\"Team member information associated with the response\").nullable().optional(),\n choice_value: z.string().describe(\"The choice/rating value of the response\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes associated with the response\").nullable().optional(),\n}).describe(\"Individual response data.\");\nexport const SimplesatSearchResponsesOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of responses matching the criteria\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of records per page\").nullable().optional(),\n responses: z.array(SimplesatSearchResponses_ResponseDataSchema).describe(\"List of response objects matching the search criteria\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n}).describe(\"Response model for searching responses.\");\n\nexport const simplesatSearchResponses = action(\"SIMPLESAT_SEARCH_RESPONSES\", {\n slug: \"simplesat-search-responses\",\n name: \"Search Responses\",\n description: \"Tool to search and retrieve responses from Simplesat by applying specific filters. Returns all responses from the last 30 days by default if no date range is specified. Supports filtering by date range, choice value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team member, ticket_id, and custom attributes. Use this when you need to find specific responses based on criteria like sentiment, customer, or time period.\",\n input: SimplesatSearchResponsesInput,\n output: SimplesatSearchResponsesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,KAAKA,IAAAA,EAAE,KAAK;GAAC;GAAgB;GAAgB;GAAW;GAAW;GAAY;GAAa;GAAU;GAAU;GAAO;GAAe;EAAW,CAAC,CAAC,CAAC,SAAS,qK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A,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,68 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search-responses.d.ts
|
|
4
|
-
declare const SimplesatSearchResponsesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SimplesatSearchResponsesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7
|
+
key: z.ZodEnum<{
|
|
8
|
+
company: "company";
|
|
9
|
+
metric: "metric";
|
|
10
|
+
survey: "survey";
|
|
11
|
+
comment: "comment";
|
|
12
|
+
sentiment: "sentiment";
|
|
13
|
+
choice_value: "choice_value";
|
|
14
|
+
collaborator: "collaborator";
|
|
15
|
+
customer: "customer";
|
|
16
|
+
tag: "tag";
|
|
17
|
+
team_member: "team_member";
|
|
18
|
+
ticket_id: "ticket_id";
|
|
19
|
+
}>;
|
|
20
|
+
values: z.ZodArray<z.ZodString>;
|
|
21
|
+
comparison: z.ZodEnum<{
|
|
22
|
+
is: "is";
|
|
23
|
+
is_not: "is_not";
|
|
24
|
+
}>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
end_date: z.ZodOptional<z.ZodString>;
|
|
27
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
and: "and";
|
|
29
|
+
or: "or";
|
|
30
|
+
}>>;
|
|
31
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
start_date: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
declare const SimplesatSearchResponsesOutput: z.ZodObject<{
|
|
35
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
page_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
|
+
responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
41
|
+
metric: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
|
+
survey: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
43
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
customer: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
45
|
+
sentiment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
ticket_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
team_member: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
49
|
+
choice_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
|
+
}, z.core.$strip>>>>;
|
|
52
|
+
total_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
declare const simplesatSearchResponses: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
55
|
+
page?: number | undefined;
|
|
56
|
+
filters?: {
|
|
57
|
+
key: "company" | "metric" | "survey" | "comment" | "sentiment" | "choice_value" | "collaborator" | "customer" | "tag" | "team_member" | "ticket_id";
|
|
58
|
+
values: string[];
|
|
59
|
+
comparison: "is" | "is_not";
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
end_date?: string | undefined;
|
|
62
|
+
operator?: "and" | "or" | undefined;
|
|
63
|
+
page_size?: number | undefined;
|
|
64
|
+
start_date?: string | undefined;
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
66
|
//#endregion
|
|
8
67
|
export { simplesatSearchResponses };
|
|
9
68
|
//# sourceMappingURL=search-responses.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-responses.d.cts","names":[],"sources":["../../src/actions/search-responses.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"search-responses.d.cts","names":[],"sources":["../../src/actions/search-responses.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAQ9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,68 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search-responses.d.ts
|
|
4
|
-
declare const SimplesatSearchResponsesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SimplesatSearchResponsesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7
|
+
key: z.ZodEnum<{
|
|
8
|
+
company: "company";
|
|
9
|
+
metric: "metric";
|
|
10
|
+
survey: "survey";
|
|
11
|
+
comment: "comment";
|
|
12
|
+
sentiment: "sentiment";
|
|
13
|
+
choice_value: "choice_value";
|
|
14
|
+
collaborator: "collaborator";
|
|
15
|
+
customer: "customer";
|
|
16
|
+
tag: "tag";
|
|
17
|
+
team_member: "team_member";
|
|
18
|
+
ticket_id: "ticket_id";
|
|
19
|
+
}>;
|
|
20
|
+
values: z.ZodArray<z.ZodString>;
|
|
21
|
+
comparison: z.ZodEnum<{
|
|
22
|
+
is: "is";
|
|
23
|
+
is_not: "is_not";
|
|
24
|
+
}>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
end_date: z.ZodOptional<z.ZodString>;
|
|
27
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
and: "and";
|
|
29
|
+
or: "or";
|
|
30
|
+
}>>;
|
|
31
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
start_date: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
declare const SimplesatSearchResponsesOutput: z.ZodObject<{
|
|
35
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
page_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
|
+
responses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
41
|
+
metric: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
|
+
survey: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
43
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
customer: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
45
|
+
sentiment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
ticket_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
team_member: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
49
|
+
choice_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
|
+
}, z.core.$strip>>>>;
|
|
52
|
+
total_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
declare const simplesatSearchResponses: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
55
|
+
page?: number | undefined;
|
|
56
|
+
filters?: {
|
|
57
|
+
key: "company" | "metric" | "survey" | "comment" | "sentiment" | "choice_value" | "collaborator" | "customer" | "tag" | "team_member" | "ticket_id";
|
|
58
|
+
values: string[];
|
|
59
|
+
comparison: "is" | "is_not";
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
end_date?: string | undefined;
|
|
62
|
+
operator?: "and" | "or" | undefined;
|
|
63
|
+
page_size?: number | undefined;
|
|
64
|
+
start_date?: string | undefined;
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
66
|
//#endregion
|
|
8
67
|
export { simplesatSearchResponses };
|
|
9
68
|
//# sourceMappingURL=search-responses.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-responses.d.mts","names":[],"sources":["../../src/actions/search-responses.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"search-responses.d.mts","names":[],"sources":["../../src/actions/search-responses.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAQ9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-responses.mjs","names":[],"sources":["../../src/actions/search-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchResponsesInput
|
|
1
|
+
{"version":3,"file":"search-responses.mjs","names":[],"sources":["../../src/actions/search-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchResponsesInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Starts at 1.\").optional(),\n filters: z.array(z.object({\n key: z.enum([\"choice_value\", \"collaborator\", \"company\", \"comment\", \"customer\", \"sentiment\", \"metric\", \"survey\", \"tag\", \"team_member\", \"ticket_id\"]).describe(\"The field to filter on (e.g., choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, ticket_id, or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by for the specified key\"),\n comparison: z.enum([\"is\", \"is_not\"]).describe(\"Comparison operator for the filter. 'is' checks if the field matches any of the values, 'is_not' checks if the field does not match any of the values.\"),\n}).describe(\"Filter object for searching responses.\")).describe(\"Array of filter objects to narrow down responses by specific criteria such as sentiment, customer, team member, survey, etc.\").optional(),\n end_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to end displaying responses. If not specified, defaults to current date/time.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to combine multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page. Default is 100, maximum is 100.\").optional(),\n start_date: z.string().describe(\"The date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to start displaying responses. If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching responses.\");\nconst SimplesatSearchResponses_ResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the response\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the response\").nullable().optional(),\n metric: z.record(z.string(), z.unknown()).describe(\"Metric information associated with the response\").nullable().optional(),\n survey: z.record(z.string(), z.unknown()).describe(\"Survey information associated with the response\").nullable().optional(),\n comment: z.string().describe(\"Text comment provided with the response\").nullable().optional(),\n customer: z.record(z.string(), z.unknown()).describe(\"Customer information associated with the response\").nullable().optional(),\n sentiment: z.string().describe(\"Sentiment of the response (positive, neutral, negative)\").nullable().optional(),\n ticket_id: z.string().describe(\"Associated ticket ID if available\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the response was created\").nullable().optional(),\n team_member: z.record(z.string(), z.unknown()).describe(\"Team member information associated with the response\").nullable().optional(),\n choice_value: z.string().describe(\"The choice/rating value of the response\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes associated with the response\").nullable().optional(),\n}).describe(\"Individual response data.\");\nexport const SimplesatSearchResponsesOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable().optional(),\n total: z.number().int().describe(\"Total number of responses matching the criteria\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of records per page\").nullable().optional(),\n responses: z.array(SimplesatSearchResponses_ResponseDataSchema).describe(\"List of response objects matching the search criteria\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n}).describe(\"Response model for searching responses.\");\n\nexport const simplesatSearchResponses = action(\"SIMPLESAT_SEARCH_RESPONSES\", {\n slug: \"simplesat-search-responses\",\n name: \"Search Responses\",\n description: \"Tool to search and retrieve responses from Simplesat by applying specific filters. Returns all responses from the last 30 days by default if no date range is specified. Supports filtering by date range, choice value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team member, ticket_id, and custom attributes. Use this when you need to find specific responses based on criteria like sentiment, customer, or time period.\",\n input: SimplesatSearchResponsesInput,\n output: SimplesatSearchResponsesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,KAAK,EAAE,KAAK;GAAC;GAAgB;GAAgB;GAAW;GAAW;GAAY;GAAa;GAAU;GAAU;GAAO;GAAe;EAAW,CAAC,CAAC,CAAC,SAAS,qKAAqK;EAClU,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;EACxF,YAAY,EAAE,KAAK,CAAC,MAAM,QAAQ,CAAC,CAAC,CAAC,SAAS,wJAAwJ;CACxM,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CACvM,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS;CACpL,UAAU,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC7G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;AACpL,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAA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AA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,WAAW,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ const SimplesatUpdateCustomerInput = zod.z.object({
|
|
|
11
11
|
custom_attributes: zod.z.object({}).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
|
-
id: zod.z.number().int().describe("Unique identifier of the customer"),
|
|
14
|
+
id: zod.z.number().int().describe("Unique identifier of the customer").nullable(),
|
|
15
15
|
name: zod.z.string().describe("Full name of the customer").nullable().optional(),
|
|
16
16
|
tags: zod.z.array(zod.z.string()).describe("List of tags associated with the customer").nullable().optional(),
|
|
17
17
|
email: zod.z.string().describe("Email address of the customer").nullable().optional(),
|
|
@@ -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
|
|
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.object({}).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});\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,EA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C,SAAS;AACzH,CAAC;AAED,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-customer.d.ts
|
|
4
|
-
declare const SimplesatUpdateCustomerInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SimplesatUpdateCustomerInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
+
email: z.ZodOptional<z.ZodString>;
|
|
9
|
+
company: z.ZodOptional<z.ZodString>;
|
|
10
|
+
external_id: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
custom_attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SimplesatUpdateCustomerOutput: z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const simplesatUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
id: string;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
tags?: string[] | undefined;
|
|
26
|
+
email?: string | undefined;
|
|
27
|
+
company?: string | undefined;
|
|
28
|
+
external_id?: number | undefined;
|
|
29
|
+
custom_attributes?: Record<string, never> | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { simplesatUpdateCustomer };
|
|
9
33
|
//# sourceMappingURL=update-customer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.d.cts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"update-customer.d.cts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAU7B,uBAAA,gCAAuB,wBAAA;;;;;;;sBAMlC,MAAA;AAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-customer.d.ts
|
|
4
|
-
declare const SimplesatUpdateCustomerInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SimplesatUpdateCustomerInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
+
email: z.ZodOptional<z.ZodString>;
|
|
9
|
+
company: z.ZodOptional<z.ZodString>;
|
|
10
|
+
external_id: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
custom_attributes: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SimplesatUpdateCustomerOutput: z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const simplesatUpdateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
id: string;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
tags?: string[] | undefined;
|
|
26
|
+
email?: string | undefined;
|
|
27
|
+
company?: string | undefined;
|
|
28
|
+
external_id?: number | undefined;
|
|
29
|
+
custom_attributes?: Record<string, never> | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { simplesatUpdateCustomer };
|
|
9
33
|
//# sourceMappingURL=update-customer.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer.d.mts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"update-customer.d.mts","names":[],"sources":["../../src/actions/update-customer.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAU7B,uBAAA,gCAAuB,wBAAA;;;;;;;sBAMlC,MAAA;AAAA"}
|
|
@@ -14,7 +14,7 @@ const simplesatUpdateCustomer = action("SIMPLESAT_UPDATE_CUSTOMER", {
|
|
|
14
14
|
custom_attributes: z.object({}).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
|
-
id: z.number().int().describe("Unique identifier of the customer"),
|
|
17
|
+
id: z.number().int().describe("Unique identifier of the customer").nullable(),
|
|
18
18
|
name: z.string().describe("Full name of the customer").nullable().optional(),
|
|
19
19
|
tags: z.array(z.string()).describe("List of tags associated with the customer").nullable().optional(),
|
|
20
20
|
email: z.string().describe("Email address of the customer").nullable().optional(),
|
|
@@ -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
|
|
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.object({}).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});\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":";;AAuBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACxF,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACvK,CAeS;CACP,QAf2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAOU;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const simplesatCatalog = {
|
|
|
7
7
|
"category": "CRM",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/simplesat",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your Simplesat API Token"
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.simplesatCatalog = simplesatCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const simplesatCatalog = {\n \"slug\": \"simplesat\",\n \"name\": \"Simplesat\",\n \"description\": \"Simplesat captures customer feedback and CSAT scores through surveys, integrating directly with helpdesk systems for real-time performance insights\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/simplesat\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const simplesatCatalog = {\n \"slug\": \"simplesat\",\n \"name\": \"Simplesat\",\n \"description\": \"Simplesat captures customer feedback and CSAT scores through surveys, integrating directly with helpdesk systems for real-time performance insights\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/simplesat\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Your Simplesat API Token\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const simplesatCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/simplesat";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your Simplesat API Token";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { simplesatCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const simplesatCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/simplesat";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "Your Simplesat API Token";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { simplesatCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const simplesatCatalog = {
|
|
|
7
7
|
"category": "CRM",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/simplesat",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "Your Simplesat API Token"
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { simplesatCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const simplesatCatalog = {\n \"slug\": \"simplesat\",\n \"name\": \"Simplesat\",\n \"description\": \"Simplesat captures customer feedback and CSAT scores through surveys, integrating directly with helpdesk systems for real-time performance insights\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/simplesat\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const simplesatCatalog = {\n \"slug\": \"simplesat\",\n \"name\": \"Simplesat\",\n \"description\": \"Simplesat captures customer feedback and CSAT scores through surveys, integrating directly with helpdesk systems for real-time performance insights\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/simplesat\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Your Simplesat API Token\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/simplesat",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|