@keystrokehq/plain 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/add-customer-to-group.cjs +7 -7
- package/dist/actions/add-customer-to-group.cjs.map +1 -1
- package/dist/actions/add-customer-to-group.d.cts +8 -7
- package/dist/actions/add-customer-to-group.d.mts +8 -7
- package/dist/actions/add-customer-to-group.mjs +7 -7
- package/dist/actions/add-customer-to-group.mjs.map +1 -1
- package/dist/actions/create-customer-group.cjs +5 -5
- package/dist/actions/create-customer-group.cjs.map +1 -1
- package/dist/actions/create-customer-group.d.cts +6 -6
- package/dist/actions/create-customer-group.d.mts +6 -6
- package/dist/actions/create-customer-group.mjs +5 -5
- package/dist/actions/create-customer-group.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +10 -10
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +11 -10
- package/dist/actions/create-thread.d.mts +11 -10
- package/dist/actions/create-thread.mjs +10 -10
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs +3 -3
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +3 -3
- package/dist/actions/delete-customer.d.mts +3 -3
- package/dist/actions/delete-customer.mjs +3 -3
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +3 -3
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +3 -3
- package/dist/actions/delete-user.d.mts +3 -3
- package/dist/actions/delete-user.mjs +3 -3
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/fetch-company.cjs +3 -3
- package/dist/actions/fetch-company.cjs.map +1 -1
- package/dist/actions/fetch-company.d.cts +4 -4
- package/dist/actions/fetch-company.d.mts +4 -4
- package/dist/actions/fetch-company.mjs +3 -3
- package/dist/actions/fetch-company.mjs.map +1 -1
- package/dist/actions/fetch-issues.cjs +2 -2
- package/dist/actions/fetch-issues.cjs.map +1 -1
- package/dist/actions/fetch-issues.d.cts +2 -2
- package/dist/actions/fetch-issues.d.mts +2 -2
- package/dist/actions/fetch-issues.mjs +2 -2
- package/dist/actions/fetch-issues.mjs.map +1 -1
- package/dist/actions/fetch-tier.cjs +3 -3
- package/dist/actions/fetch-tier.cjs.map +1 -1
- package/dist/actions/fetch-tier.d.cts +4 -4
- package/dist/actions/fetch-tier.d.mts +4 -4
- package/dist/actions/fetch-tier.mjs +3 -3
- package/dist/actions/fetch-tier.mjs.map +1 -1
- package/dist/actions/get-customer-by-email.cjs +5 -5
- package/dist/actions/get-customer-by-email.cjs.map +1 -1
- package/dist/actions/get-customer-by-email.d.cts +6 -6
- package/dist/actions/get-customer-by-email.d.mts +6 -6
- package/dist/actions/get-customer-by-email.mjs +5 -5
- package/dist/actions/get-customer-by-email.mjs.map +1 -1
- package/dist/actions/get-customer-by-id.cjs +1 -1
- package/dist/actions/get-customer-by-id.cjs.map +1 -1
- package/dist/actions/get-customer-by-id.d.cts +1 -1
- package/dist/actions/get-customer-by-id.d.mts +1 -1
- package/dist/actions/get-customer-by-id.mjs +1 -1
- package/dist/actions/get-customer-by-id.mjs.map +1 -1
- package/dist/actions/get-customers.cjs +7 -7
- package/dist/actions/get-customers.cjs.map +1 -1
- package/dist/actions/get-customers.d.cts +7 -7
- package/dist/actions/get-customers.d.mts +7 -7
- package/dist/actions/get-customers.mjs +7 -7
- package/dist/actions/get-customers.mjs.map +1 -1
- package/dist/actions/get-thread-by-id.cjs +9 -9
- package/dist/actions/get-thread-by-id.cjs.map +1 -1
- package/dist/actions/get-thread-by-id.d.cts +15 -15
- package/dist/actions/get-thread-by-id.d.mts +15 -15
- package/dist/actions/get-thread-by-id.mjs +9 -9
- package/dist/actions/get-thread-by-id.mjs.map +1 -1
- package/dist/actions/get-user-by-id.cjs +4 -4
- package/dist/actions/get-user-by-id.cjs.map +1 -1
- package/dist/actions/get-user-by-id.d.cts +4 -4
- package/dist/actions/get-user-by-id.d.mts +4 -4
- package/dist/actions/get-user-by-id.mjs +4 -4
- package/dist/actions/get-user-by-id.mjs.map +1 -1
- package/dist/actions/list-customer-groups.cjs +5 -5
- package/dist/actions/list-customer-groups.cjs.map +1 -1
- package/dist/actions/list-customer-groups.d.cts +5 -5
- package/dist/actions/list-customer-groups.d.mts +5 -5
- package/dist/actions/list-customer-groups.mjs +5 -5
- package/dist/actions/list-customer-groups.mjs.map +1 -1
- package/dist/actions/list-tiers.cjs +5 -5
- package/dist/actions/list-tiers.cjs.map +1 -1
- package/dist/actions/list-tiers.d.cts +5 -5
- package/dist/actions/list-tiers.d.mts +5 -5
- package/dist/actions/list-tiers.mjs +5 -5
- package/dist/actions/list-tiers.mjs.map +1 -1
- package/dist/actions/query-threads.cjs +7 -7
- package/dist/actions/query-threads.cjs.map +1 -1
- package/dist/actions/query-threads.d.cts +7 -7
- package/dist/actions/query-threads.d.mts +7 -7
- package/dist/actions/query-threads.mjs +7 -7
- package/dist/actions/query-threads.mjs.map +1 -1
- package/dist/actions/remove-customer-from-group.cjs +4 -4
- package/dist/actions/remove-customer-from-group.cjs.map +1 -1
- package/dist/actions/remove-customer-from-group.d.cts +5 -4
- package/dist/actions/remove-customer-from-group.d.mts +5 -4
- package/dist/actions/remove-customer-from-group.mjs +4 -4
- package/dist/actions/remove-customer-from-group.mjs.map +1 -1
- package/dist/actions/run-graphql-query.cjs +4 -4
- package/dist/actions/run-graphql-query.cjs.map +1 -1
- package/dist/actions/run-graphql-query.d.cts +4 -4
- package/dist/actions/run-graphql-query.d.mts +4 -4
- package/dist/actions/run-graphql-query.mjs +4 -4
- package/dist/actions/run-graphql-query.mjs.map +1 -1
- package/dist/actions/send-message.cjs +5 -5
- package/dist/actions/send-message.cjs.map +1 -1
- package/dist/actions/send-message.d.cts +7 -5
- package/dist/actions/send-message.d.mts +7 -5
- package/dist/actions/send-message.mjs +5 -5
- package/dist/actions/send-message.mjs.map +1 -1
- package/dist/actions/update-company.cjs +5 -5
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +5 -5
- package/dist/actions/update-company.d.mts +5 -5
- package/dist/actions/update-company.mjs +5 -5
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-thread.cjs +5 -5
- package/dist/actions/update-thread.cjs.map +1 -1
- package/dist/actions/update-thread.d.cts +5 -5
- package/dist/actions/update-thread.d.mts +5 -5
- package/dist/actions/update-thread.mjs +5 -5
- package/dist/actions/update-thread.mjs.map +1 -1
- package/dist/actions/upsert-customer.cjs +7 -7
- package/dist/actions/upsert-customer.cjs.map +1 -1
- package/dist/actions/upsert-customer.d.cts +9 -7
- package/dist/actions/upsert-customer.d.mts +9 -7
- package/dist/actions/upsert-customer.mjs +7 -7
- package/dist/actions/upsert-customer.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ const PlainAddCustomerToGroupInput = zod.z.object({
|
|
|
7
7
|
externalId: zod.z.string().describe("Your external ID for the customer group. NOTE: The Plain API does not support this field for adding customers to groups - use customerGroupId or customerGroupKey instead.").optional(),
|
|
8
8
|
customerGroupId: zod.z.string().describe("Plain internal ID of the customer group. Use this or customerGroupKey (not externalId).").optional(),
|
|
9
9
|
customerGroupKey: zod.z.string().describe("Unique key of the customer group. Use this or customerGroupId (not externalId).").optional()
|
|
10
|
-
})).describe("List of customer group identifiers. Must contain at least one identifier.")
|
|
10
|
+
}).passthrough()).describe("List of customer group identifiers. Must contain at least one identifier.")
|
|
11
11
|
});
|
|
12
12
|
const PlainAddCustomerToGroup_MutationFieldErrorSchema = zod.z.object({
|
|
13
13
|
type: zod.z.enum([
|
|
@@ -17,7 +17,7 @@ const PlainAddCustomerToGroup_MutationFieldErrorSchema = zod.z.object({
|
|
|
17
17
|
]).describe("Type of field error.").nullable(),
|
|
18
18
|
field: zod.z.string().describe("Name of the field where error occurred.").nullable(),
|
|
19
19
|
message: zod.z.string().describe("Technical error message.").nullable()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const PlainAddCustomerToGroup_MutationErrorSchema = zod.z.object({
|
|
22
22
|
code: zod.z.string().describe("Fixed error code from the API.").nullable(),
|
|
23
23
|
type: zod.z.enum([
|
|
@@ -27,22 +27,22 @@ const PlainAddCustomerToGroup_MutationErrorSchema = zod.z.object({
|
|
|
27
27
|
]).describe("Type of error.").nullable(),
|
|
28
28
|
fields: zod.z.array(PlainAddCustomerToGroup_MutationFieldErrorSchema).describe("List of field-specific errors, if any.").nullable().optional(),
|
|
29
29
|
message: zod.z.string().describe("Technical error message.").nullable()
|
|
30
|
-
});
|
|
31
|
-
const PlainAddCustomerToGroup_CreatedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp of creation.").nullable() });
|
|
30
|
+
}).passthrough();
|
|
31
|
+
const PlainAddCustomerToGroup_CreatedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp of creation.").nullable() }).passthrough();
|
|
32
32
|
const PlainAddCustomerToGroup_CustomerGroupSchema = zod.z.object({
|
|
33
33
|
id: zod.z.string().describe("ID of the customer group.").nullable(),
|
|
34
34
|
key: zod.z.string().describe("Key of the customer group.").nullable(),
|
|
35
35
|
name: zod.z.string().describe("Name of the customer group.").nullable()
|
|
36
|
-
});
|
|
36
|
+
}).passthrough();
|
|
37
37
|
const PlainAddCustomerToGroup_CustomerGroupMembershipSchema = zod.z.object({
|
|
38
38
|
createdAt: PlainAddCustomerToGroup_CreatedAtSchema.nullable(),
|
|
39
39
|
customerId: zod.z.string().describe("ID of the customer.").nullable(),
|
|
40
40
|
customerGroup: PlainAddCustomerToGroup_CustomerGroupSchema.nullable()
|
|
41
|
-
});
|
|
41
|
+
}).passthrough();
|
|
42
42
|
const PlainAddCustomerToGroupOutput = zod.z.object({
|
|
43
43
|
error: PlainAddCustomerToGroup_MutationErrorSchema.nullable().optional(),
|
|
44
44
|
customerGroupMemberships: zod.z.array(PlainAddCustomerToGroup_CustomerGroupMembershipSchema).nullable().optional()
|
|
45
|
-
});
|
|
45
|
+
}).passthrough();
|
|
46
46
|
const plainAddCustomerToGroup = require_action.action("PLAIN_ADD_CUSTOMER_TO_GROUP", {
|
|
47
47
|
slug: "plain-add-customer-to-group",
|
|
48
48
|
name: "Add Customer To Group",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-customer-to-group.cjs","names":["z","action"],"sources":["../../src/actions/add-customer-to-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainAddCustomerToGroupInput = z.object({\n customerId: z.string().describe(\"ID of the customer to add to groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n externalId: z.string().describe(\"Your external ID for the customer group. NOTE: The Plain API does not support this field for adding customers to groups - use customerGroupId or customerGroupKey instead.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group. Use this or customerGroupKey (not externalId).\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group. Use this or customerGroupId (not externalId).\").optional(),\n})).describe(\"List of customer group identifiers. Must contain at least one identifier.\"),\n});\nconst PlainAddCustomerToGroup_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\").nullable(),\n field: z.string().describe(\"Name of the field where error occurred.\").nullable(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n});\nconst PlainAddCustomerToGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code from the API.\").nullable(),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\").nullable(),\n fields: z.array(PlainAddCustomerToGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n});\nconst PlainAddCustomerToGroup_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n});\nconst PlainAddCustomerToGroup_CustomerGroupSchema = z.object({\n id: z.string().describe(\"ID of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n});\nconst PlainAddCustomerToGroup_CustomerGroupMembershipSchema = z.object({\n createdAt: PlainAddCustomerToGroup_CreatedAtSchema.nullable(),\n customerId: z.string().describe(\"ID of the customer.\").nullable(),\n customerGroup: PlainAddCustomerToGroup_CustomerGroupSchema.nullable(),\n});\nexport const PlainAddCustomerToGroupOutput = z.object({\n error: PlainAddCustomerToGroup_MutationErrorSchema.nullable().optional(),\n customerGroupMemberships: z.array(PlainAddCustomerToGroup_CustomerGroupMembershipSchema).nullable().optional(),\n});\n\nexport const plainAddCustomerToGroup = action(\"PLAIN_ADD_CUSTOMER_TO_GROUP\", {\n slug: \"plain-add-customer-to-group\",\n name: \"Add Customer To Group\",\n description: \"Tool to add a customer to one or more customer groups. Use when you have a customer and groups ready.\",\n input: PlainAddCustomerToGroupInput,\n output: PlainAddCustomerToGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,0BAA0BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EACvN,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EACzI,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;
|
|
1
|
+
{"version":3,"file":"add-customer-to-group.cjs","names":["z","action"],"sources":["../../src/actions/add-customer-to-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainAddCustomerToGroupInput = z.object({\n customerId: z.string().describe(\"ID of the customer to add to groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n externalId: z.string().describe(\"Your external ID for the customer group. NOTE: The Plain API does not support this field for adding customers to groups - use customerGroupId or customerGroupKey instead.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group. Use this or customerGroupKey (not externalId).\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group. Use this or customerGroupId (not externalId).\").optional(),\n}).passthrough()).describe(\"List of customer group identifiers. Must contain at least one identifier.\"),\n});\nconst PlainAddCustomerToGroup_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\").nullable(),\n field: z.string().describe(\"Name of the field where error occurred.\").nullable(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code from the API.\").nullable(),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\").nullable(),\n fields: z.array(PlainAddCustomerToGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupSchema = z.object({\n id: z.string().describe(\"ID of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupMembershipSchema = z.object({\n createdAt: PlainAddCustomerToGroup_CreatedAtSchema.nullable(),\n customerId: z.string().describe(\"ID of the customer.\").nullable(),\n customerGroup: PlainAddCustomerToGroup_CustomerGroupSchema.nullable(),\n}).passthrough();\nexport const PlainAddCustomerToGroupOutput = z.object({\n error: PlainAddCustomerToGroup_MutationErrorSchema.nullable().optional(),\n customerGroupMemberships: z.array(PlainAddCustomerToGroup_CustomerGroupMembershipSchema).nullable().optional(),\n}).passthrough();\n\nexport const plainAddCustomerToGroup = action(\"PLAIN_ADD_CUSTOMER_TO_GROUP\", {\n slug: \"plain-add-customer-to-group\",\n name: \"Add Customer To Group\",\n description: \"Tool to add a customer to one or more customer groups. Use when you have a customer and groups ready.\",\n input: PlainAddCustomerToGroupInput,\n output: PlainAddCustomerToGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,0BAA0BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EACvN,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EACzI,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACtG,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAa;CAAU,CAAC,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,WAAW,wCAAwC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,eAAe,4CAA4C,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAO,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACvE,0BAA0BA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const PlainAddCustomerToGroupInput: z.ZodObject<{
|
|
|
7
7
|
externalId: z.ZodOptional<z.ZodString>;
|
|
8
8
|
customerGroupId: z.ZodOptional<z.ZodString>;
|
|
9
9
|
customerGroupKey: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const PlainAddCustomerToGroupOutput: z.ZodObject<{
|
|
13
13
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -25,24 +25,25 @@ declare const PlainAddCustomerToGroupOutput: z.ZodObject<{
|
|
|
25
25
|
}>>;
|
|
26
26
|
field: z.ZodNullable<z.ZodString>;
|
|
27
27
|
message: z.ZodNullable<z.ZodString>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>>;
|
|
29
29
|
message: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
31
|
customerGroupMemberships: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
32
32
|
createdAt: z.ZodNullable<z.ZodObject<{
|
|
33
33
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
35
|
customerId: z.ZodNullable<z.ZodString>;
|
|
36
36
|
customerGroup: z.ZodNullable<z.ZodObject<{
|
|
37
37
|
id: z.ZodNullable<z.ZodString>;
|
|
38
38
|
key: z.ZodNullable<z.ZodString>;
|
|
39
39
|
name: z.ZodNullable<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
41
|
-
}, z.core.$
|
|
42
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
}, z.core.$loose>>>>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
43
|
declare const plainAddCustomerToGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
44
|
customerId: string;
|
|
45
45
|
customerGroupIdentifiers: {
|
|
46
|
+
[x: string]: unknown;
|
|
46
47
|
externalId?: string | undefined;
|
|
47
48
|
customerGroupId?: string | undefined;
|
|
48
49
|
customerGroupKey?: string | undefined;
|
|
@@ -7,7 +7,7 @@ declare const PlainAddCustomerToGroupInput: z.ZodObject<{
|
|
|
7
7
|
externalId: z.ZodOptional<z.ZodString>;
|
|
8
8
|
customerGroupId: z.ZodOptional<z.ZodString>;
|
|
9
9
|
customerGroupKey: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const PlainAddCustomerToGroupOutput: z.ZodObject<{
|
|
13
13
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -25,24 +25,25 @@ declare const PlainAddCustomerToGroupOutput: z.ZodObject<{
|
|
|
25
25
|
}>>;
|
|
26
26
|
field: z.ZodNullable<z.ZodString>;
|
|
27
27
|
message: z.ZodNullable<z.ZodString>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>>;
|
|
29
29
|
message: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
31
|
customerGroupMemberships: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
32
32
|
createdAt: z.ZodNullable<z.ZodObject<{
|
|
33
33
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
35
|
customerId: z.ZodNullable<z.ZodString>;
|
|
36
36
|
customerGroup: z.ZodNullable<z.ZodObject<{
|
|
37
37
|
id: z.ZodNullable<z.ZodString>;
|
|
38
38
|
key: z.ZodNullable<z.ZodString>;
|
|
39
39
|
name: z.ZodNullable<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
41
|
-
}, z.core.$
|
|
42
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
}, z.core.$loose>>>>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
43
|
declare const plainAddCustomerToGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
44
|
customerId: string;
|
|
45
45
|
customerGroupIdentifiers: {
|
|
46
|
+
[x: string]: unknown;
|
|
46
47
|
externalId?: string | undefined;
|
|
47
48
|
customerGroupId?: string | undefined;
|
|
48
49
|
customerGroupKey?: string | undefined;
|
|
@@ -7,7 +7,7 @@ const PlainAddCustomerToGroupInput = z.object({
|
|
|
7
7
|
externalId: z.string().describe("Your external ID for the customer group. NOTE: The Plain API does not support this field for adding customers to groups - use customerGroupId or customerGroupKey instead.").optional(),
|
|
8
8
|
customerGroupId: z.string().describe("Plain internal ID of the customer group. Use this or customerGroupKey (not externalId).").optional(),
|
|
9
9
|
customerGroupKey: z.string().describe("Unique key of the customer group. Use this or customerGroupId (not externalId).").optional()
|
|
10
|
-
})).describe("List of customer group identifiers. Must contain at least one identifier.")
|
|
10
|
+
}).passthrough()).describe("List of customer group identifiers. Must contain at least one identifier.")
|
|
11
11
|
});
|
|
12
12
|
const PlainAddCustomerToGroup_MutationFieldErrorSchema = z.object({
|
|
13
13
|
type: z.enum([
|
|
@@ -17,7 +17,7 @@ const PlainAddCustomerToGroup_MutationFieldErrorSchema = z.object({
|
|
|
17
17
|
]).describe("Type of field error.").nullable(),
|
|
18
18
|
field: z.string().describe("Name of the field where error occurred.").nullable(),
|
|
19
19
|
message: z.string().describe("Technical error message.").nullable()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const PlainAddCustomerToGroup_MutationErrorSchema = z.object({
|
|
22
22
|
code: z.string().describe("Fixed error code from the API.").nullable(),
|
|
23
23
|
type: z.enum([
|
|
@@ -27,18 +27,18 @@ const PlainAddCustomerToGroup_MutationErrorSchema = z.object({
|
|
|
27
27
|
]).describe("Type of error.").nullable(),
|
|
28
28
|
fields: z.array(PlainAddCustomerToGroup_MutationFieldErrorSchema).describe("List of field-specific errors, if any.").nullable().optional(),
|
|
29
29
|
message: z.string().describe("Technical error message.").nullable()
|
|
30
|
-
});
|
|
31
|
-
const PlainAddCustomerToGroup_CreatedAtSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp of creation.").nullable() });
|
|
30
|
+
}).passthrough();
|
|
31
|
+
const PlainAddCustomerToGroup_CreatedAtSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp of creation.").nullable() }).passthrough();
|
|
32
32
|
const PlainAddCustomerToGroup_CustomerGroupSchema = z.object({
|
|
33
33
|
id: z.string().describe("ID of the customer group.").nullable(),
|
|
34
34
|
key: z.string().describe("Key of the customer group.").nullable(),
|
|
35
35
|
name: z.string().describe("Name of the customer group.").nullable()
|
|
36
|
-
});
|
|
36
|
+
}).passthrough();
|
|
37
37
|
const PlainAddCustomerToGroup_CustomerGroupMembershipSchema = z.object({
|
|
38
38
|
createdAt: PlainAddCustomerToGroup_CreatedAtSchema.nullable(),
|
|
39
39
|
customerId: z.string().describe("ID of the customer.").nullable(),
|
|
40
40
|
customerGroup: PlainAddCustomerToGroup_CustomerGroupSchema.nullable()
|
|
41
|
-
});
|
|
41
|
+
}).passthrough();
|
|
42
42
|
const plainAddCustomerToGroup = action("PLAIN_ADD_CUSTOMER_TO_GROUP", {
|
|
43
43
|
slug: "plain-add-customer-to-group",
|
|
44
44
|
name: "Add Customer To Group",
|
|
@@ -47,7 +47,7 @@ const plainAddCustomerToGroup = action("PLAIN_ADD_CUSTOMER_TO_GROUP", {
|
|
|
47
47
|
output: z.object({
|
|
48
48
|
error: PlainAddCustomerToGroup_MutationErrorSchema.nullable().optional(),
|
|
49
49
|
customerGroupMemberships: z.array(PlainAddCustomerToGroup_CustomerGroupMembershipSchema).nullable().optional()
|
|
50
|
-
})
|
|
50
|
+
}).passthrough()
|
|
51
51
|
});
|
|
52
52
|
//#endregion
|
|
53
53
|
export { plainAddCustomerToGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-customer-to-group.mjs","names":[],"sources":["../../src/actions/add-customer-to-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainAddCustomerToGroupInput = z.object({\n customerId: z.string().describe(\"ID of the customer to add to groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n externalId: z.string().describe(\"Your external ID for the customer group. NOTE: The Plain API does not support this field for adding customers to groups - use customerGroupId or customerGroupKey instead.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group. Use this or customerGroupKey (not externalId).\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group. Use this or customerGroupId (not externalId).\").optional(),\n})).describe(\"List of customer group identifiers. Must contain at least one identifier.\"),\n});\nconst PlainAddCustomerToGroup_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\").nullable(),\n field: z.string().describe(\"Name of the field where error occurred.\").nullable(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n});\nconst PlainAddCustomerToGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code from the API.\").nullable(),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\").nullable(),\n fields: z.array(PlainAddCustomerToGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n});\nconst PlainAddCustomerToGroup_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n});\nconst PlainAddCustomerToGroup_CustomerGroupSchema = z.object({\n id: z.string().describe(\"ID of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n});\nconst PlainAddCustomerToGroup_CustomerGroupMembershipSchema = z.object({\n createdAt: PlainAddCustomerToGroup_CreatedAtSchema.nullable(),\n customerId: z.string().describe(\"ID of the customer.\").nullable(),\n customerGroup: PlainAddCustomerToGroup_CustomerGroupSchema.nullable(),\n});\nexport const PlainAddCustomerToGroupOutput = z.object({\n error: PlainAddCustomerToGroup_MutationErrorSchema.nullable().optional(),\n customerGroupMemberships: z.array(PlainAddCustomerToGroup_CustomerGroupMembershipSchema).nullable().optional(),\n});\n\nexport const plainAddCustomerToGroup = action(\"PLAIN_ADD_CUSTOMER_TO_GROUP\", {\n slug: \"plain-add-customer-to-group\",\n name: \"Add Customer To Group\",\n description: \"Tool to add a customer to one or more customer groups. Use when you have a customer and groups ready.\",\n input: PlainAddCustomerToGroupInput,\n output: PlainAddCustomerToGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,0BAA0B,EAAE,MAAM,EAAE,OAAO;EAC3C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EACvN,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EACzI,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;
|
|
1
|
+
{"version":3,"file":"add-customer-to-group.mjs","names":[],"sources":["../../src/actions/add-customer-to-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainAddCustomerToGroupInput = z.object({\n customerId: z.string().describe(\"ID of the customer to add to groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n externalId: z.string().describe(\"Your external ID for the customer group. NOTE: The Plain API does not support this field for adding customers to groups - use customerGroupId or customerGroupKey instead.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group. Use this or customerGroupKey (not externalId).\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group. Use this or customerGroupId (not externalId).\").optional(),\n}).passthrough()).describe(\"List of customer group identifiers. Must contain at least one identifier.\"),\n});\nconst PlainAddCustomerToGroup_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\").nullable(),\n field: z.string().describe(\"Name of the field where error occurred.\").nullable(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code from the API.\").nullable(),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\").nullable(),\n fields: z.array(PlainAddCustomerToGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupSchema = z.object({\n id: z.string().describe(\"ID of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupMembershipSchema = z.object({\n createdAt: PlainAddCustomerToGroup_CreatedAtSchema.nullable(),\n customerId: z.string().describe(\"ID of the customer.\").nullable(),\n customerGroup: PlainAddCustomerToGroup_CustomerGroupSchema.nullable(),\n}).passthrough();\nexport const PlainAddCustomerToGroupOutput = z.object({\n error: PlainAddCustomerToGroup_MutationErrorSchema.nullable().optional(),\n customerGroupMemberships: z.array(PlainAddCustomerToGroup_CustomerGroupMembershipSchema).nullable().optional(),\n}).passthrough();\n\nexport const plainAddCustomerToGroup = action(\"PLAIN_ADD_CUSTOMER_TO_GROUP\", {\n slug: \"plain-add-customer-to-group\",\n name: \"Add Customer To Group\",\n description: \"Tool to add a customer to one or more customer groups. Use when you have a customer and groups ready.\",\n input: PlainAddCustomerToGroupInput,\n output: PlainAddCustomerToGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,0BAA0B,EAAE,MAAM,EAAE,OAAO;EAC3C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EACvN,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EACzI,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACtG,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,KAAK;EAAC;EAAc;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAChG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,KAAK;EAAC;EAAc;EAAa;CAAU,CAAC,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAC1F,QAAQ,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wDAAwD,EAAE,OAAO;CACrE,WAAW,wCAAwC,SAAS;CAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,eAAe,4CAA4C,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,OAAO,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACvE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -11,14 +11,14 @@ const PlainCreateCustomerGroup_MutationFieldErrorSchema = zod.z.object({
|
|
|
11
11
|
type: zod.z.string().describe("Type of the field error, e.g., REQUIRED or VALIDATION").nullable(),
|
|
12
12
|
field: zod.z.string().describe("Field with validation error").nullable(),
|
|
13
13
|
message: zod.z.string().describe("Technical error message for the field error").nullable()
|
|
14
|
-
});
|
|
14
|
+
}).passthrough();
|
|
15
15
|
const PlainCreateCustomerGroup_MutationErrorSchema = zod.z.object({
|
|
16
16
|
code: zod.z.string().describe("Fixed error code identifying the error").nullable(),
|
|
17
17
|
type: zod.z.string().describe("High-level error type, e.g., VALIDATION, FORBIDDEN").nullable(),
|
|
18
18
|
fields: zod.z.array(PlainCreateCustomerGroup_MutationFieldErrorSchema).describe("List of field-specific errors if any").nullable().optional(),
|
|
19
19
|
message: zod.z.string().describe("Technical error message for the mutation failure").nullable()
|
|
20
|
-
});
|
|
21
|
-
const PlainCreateCustomerGroup_DateTimeModelSchema = zod.z.object({ iso8601: zod.z.string().describe("Date and time in ISO 8601 format").nullable() });
|
|
20
|
+
}).passthrough();
|
|
21
|
+
const PlainCreateCustomerGroup_DateTimeModelSchema = zod.z.object({ iso8601: zod.z.string().describe("Date and time in ISO 8601 format").nullable() }).passthrough();
|
|
22
22
|
const PlainCreateCustomerGroup_CustomerGroupModelSchema = zod.z.object({
|
|
23
23
|
id: zod.z.string().describe("ID of the created customer group").nullable(),
|
|
24
24
|
key: zod.z.string().describe("Unique key for the customer group").nullable(),
|
|
@@ -27,11 +27,11 @@ const PlainCreateCustomerGroup_CustomerGroupModelSchema = zod.z.object({
|
|
|
27
27
|
createdAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),
|
|
28
28
|
updatedAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),
|
|
29
29
|
externalId: zod.z.string().describe("Optional external ID of the group").nullable().optional()
|
|
30
|
-
});
|
|
30
|
+
}).passthrough();
|
|
31
31
|
const PlainCreateCustomerGroupOutput = zod.z.object({
|
|
32
32
|
error: PlainCreateCustomerGroup_MutationErrorSchema.nullable().optional(),
|
|
33
33
|
customerGroup: PlainCreateCustomerGroup_CustomerGroupModelSchema.nullable().optional()
|
|
34
|
-
});
|
|
34
|
+
}).passthrough();
|
|
35
35
|
const plainCreateCustomerGroup = require_action.action("PLAIN_CREATE_CUSTOMER_GROUP", {
|
|
36
36
|
slug: "plain-create-customer-group",
|
|
37
37
|
name: "Create Customer Group",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-customer-group.cjs","names":["z","action"],"sources":["../../src/actions/create-customer-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateCustomerGroupInput = z.object({\n key: z.string().describe(\"Unique identifier key for the customer group. Must be unique across all customer groups in your workspace. Use lowercase with underscores (e.g., 'vip_customers').\"),\n name: z.string().describe(\"Display name of the customer group (e.g., 'VIP Customers', 'Free Tier'). Used for organization and display purposes.\"),\n color: z.string().describe(\"Hex color code for the group (e.g., #FF5733). Must be a valid 6-digit hex color starting with #.\"),\n externalId: z.string().describe(\"Optional external ID to link this customer group with an identifier from your system (e.g., Stripe plan ID, internal database ID).\").optional(),\n});\nconst PlainCreateCustomerGroup_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"Field with validation error\").nullable(),\n message: z.string().describe(\"Technical error message for the field error\").nullable(),\n});\nconst PlainCreateCustomerGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION, FORBIDDEN\").nullable(),\n fields: z.array(PlainCreateCustomerGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors if any\").nullable().optional(),\n message: z.string().describe(\"Technical error message for the mutation failure\").nullable(),\n});\nconst PlainCreateCustomerGroup_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"Date and time in ISO 8601 format\").nullable(),\n});\nconst PlainCreateCustomerGroup_CustomerGroupModelSchema = z.object({\n id: z.string().describe(\"ID of the created customer group\").nullable(),\n key: z.string().describe(\"Unique key for the customer group\").nullable(),\n name: z.string().describe(\"Name of the customer group\").nullable(),\n color: z.string().describe(\"Hex color code for the group\").nullable(),\n createdAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n updatedAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n externalId: z.string().describe(\"Optional external ID of the group\").nullable().optional(),\n});\nexport const PlainCreateCustomerGroupOutput = z.object({\n error: PlainCreateCustomerGroup_MutationErrorSchema.nullable().optional(),\n customerGroup: PlainCreateCustomerGroup_CustomerGroupModelSchema.nullable().optional(),\n});\n\nexport const plainCreateCustomerGroup = action(\"PLAIN_CREATE_CUSTOMER_GROUP\", {\n slug: \"plain-create-customer-group\",\n name: \"Create Customer Group\",\n description: \"Creates a new customer group in Plain for organizing and segmenting customers. Customer groups allow you to categorize customers (e.g., by pricing tier, feature access, or support level) and manage them more effectively in your support workflow. Each group has a unique key, display name, and visual color for easy identification. Use this when you need to create a new customer segment for organization or filtering purposes.\",\n input: PlainCreateCustomerGroupInput,\n output: PlainCreateCustomerGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;CAC7L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC;AACD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACvF,CAAC;
|
|
1
|
+
{"version":3,"file":"create-customer-group.cjs","names":["z","action"],"sources":["../../src/actions/create-customer-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateCustomerGroupInput = z.object({\n key: z.string().describe(\"Unique identifier key for the customer group. Must be unique across all customer groups in your workspace. Use lowercase with underscores (e.g., 'vip_customers').\"),\n name: z.string().describe(\"Display name of the customer group (e.g., 'VIP Customers', 'Free Tier'). Used for organization and display purposes.\"),\n color: z.string().describe(\"Hex color code for the group (e.g., #FF5733). Must be a valid 6-digit hex color starting with #.\"),\n externalId: z.string().describe(\"Optional external ID to link this customer group with an identifier from your system (e.g., Stripe plan ID, internal database ID).\").optional(),\n});\nconst PlainCreateCustomerGroup_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"Field with validation error\").nullable(),\n message: z.string().describe(\"Technical error message for the field error\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION, FORBIDDEN\").nullable(),\n fields: z.array(PlainCreateCustomerGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors if any\").nullable().optional(),\n message: z.string().describe(\"Technical error message for the mutation failure\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"Date and time in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_CustomerGroupModelSchema = z.object({\n id: z.string().describe(\"ID of the created customer group\").nullable(),\n key: z.string().describe(\"Unique key for the customer group\").nullable(),\n name: z.string().describe(\"Name of the customer group\").nullable(),\n color: z.string().describe(\"Hex color code for the group\").nullable(),\n createdAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n updatedAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n externalId: z.string().describe(\"Optional external ID of the group\").nullable().optional(),\n}).passthrough();\nexport const PlainCreateCustomerGroupOutput = z.object({\n error: PlainCreateCustomerGroup_MutationErrorSchema.nullable().optional(),\n customerGroup: PlainCreateCustomerGroup_CustomerGroupModelSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainCreateCustomerGroup = action(\"PLAIN_CREATE_CUSTOMER_GROUP\", {\n slug: \"plain-create-customer-group\",\n name: \"Create Customer Group\",\n description: \"Creates a new customer group in Plain for organizing and segmenting customers. Customer groups allow you to categorize customers (e.g., by pricing tier, feature access, or support level) and manage them more effectively in your support workflow. Each group has a unique key, display name, and visual color for easy identification. Use this when you need to create a new customer segment for organization or filtering purposes.\",\n input: PlainCreateCustomerGroupInput,\n output: PlainCreateCustomerGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;CAC7L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC;AACD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+CA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,WAAW,6CAA6C,SAAS;CACjE,WAAW,6CAA6C,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;CACxE,eAAe,kDAAkD,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,9 +15,9 @@ declare const PlainCreateCustomerGroupOutput: z.ZodObject<{
|
|
|
15
15
|
type: z.ZodNullable<z.ZodString>;
|
|
16
16
|
field: z.ZodNullable<z.ZodString>;
|
|
17
17
|
message: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
19
|
message: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>>;
|
|
21
21
|
customerGroup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
22
|
id: z.ZodNullable<z.ZodString>;
|
|
23
23
|
key: z.ZodNullable<z.ZodString>;
|
|
@@ -25,13 +25,13 @@ declare const PlainCreateCustomerGroupOutput: z.ZodObject<{
|
|
|
25
25
|
color: z.ZodNullable<z.ZodString>;
|
|
26
26
|
createdAt: z.ZodNullable<z.ZodObject<{
|
|
27
27
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
29
|
updatedAt: z.ZodNullable<z.ZodObject<{
|
|
30
30
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
}, z.core.$
|
|
34
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const plainCreateCustomerGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
key: string;
|
|
37
37
|
name: string;
|
|
@@ -15,9 +15,9 @@ declare const PlainCreateCustomerGroupOutput: z.ZodObject<{
|
|
|
15
15
|
type: z.ZodNullable<z.ZodString>;
|
|
16
16
|
field: z.ZodNullable<z.ZodString>;
|
|
17
17
|
message: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
19
|
message: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>>;
|
|
21
21
|
customerGroup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
22
|
id: z.ZodNullable<z.ZodString>;
|
|
23
23
|
key: z.ZodNullable<z.ZodString>;
|
|
@@ -25,13 +25,13 @@ declare const PlainCreateCustomerGroupOutput: z.ZodObject<{
|
|
|
25
25
|
color: z.ZodNullable<z.ZodString>;
|
|
26
26
|
createdAt: z.ZodNullable<z.ZodObject<{
|
|
27
27
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
29
|
updatedAt: z.ZodNullable<z.ZodObject<{
|
|
30
30
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
}, z.core.$
|
|
34
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const plainCreateCustomerGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
key: string;
|
|
37
37
|
name: string;
|
|
@@ -11,14 +11,14 @@ const PlainCreateCustomerGroup_MutationFieldErrorSchema = z.object({
|
|
|
11
11
|
type: z.string().describe("Type of the field error, e.g., REQUIRED or VALIDATION").nullable(),
|
|
12
12
|
field: z.string().describe("Field with validation error").nullable(),
|
|
13
13
|
message: z.string().describe("Technical error message for the field error").nullable()
|
|
14
|
-
});
|
|
14
|
+
}).passthrough();
|
|
15
15
|
const PlainCreateCustomerGroup_MutationErrorSchema = z.object({
|
|
16
16
|
code: z.string().describe("Fixed error code identifying the error").nullable(),
|
|
17
17
|
type: z.string().describe("High-level error type, e.g., VALIDATION, FORBIDDEN").nullable(),
|
|
18
18
|
fields: z.array(PlainCreateCustomerGroup_MutationFieldErrorSchema).describe("List of field-specific errors if any").nullable().optional(),
|
|
19
19
|
message: z.string().describe("Technical error message for the mutation failure").nullable()
|
|
20
|
-
});
|
|
21
|
-
const PlainCreateCustomerGroup_DateTimeModelSchema = z.object({ iso8601: z.string().describe("Date and time in ISO 8601 format").nullable() });
|
|
20
|
+
}).passthrough();
|
|
21
|
+
const PlainCreateCustomerGroup_DateTimeModelSchema = z.object({ iso8601: z.string().describe("Date and time in ISO 8601 format").nullable() }).passthrough();
|
|
22
22
|
const PlainCreateCustomerGroup_CustomerGroupModelSchema = z.object({
|
|
23
23
|
id: z.string().describe("ID of the created customer group").nullable(),
|
|
24
24
|
key: z.string().describe("Unique key for the customer group").nullable(),
|
|
@@ -27,7 +27,7 @@ const PlainCreateCustomerGroup_CustomerGroupModelSchema = z.object({
|
|
|
27
27
|
createdAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),
|
|
28
28
|
updatedAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),
|
|
29
29
|
externalId: z.string().describe("Optional external ID of the group").nullable().optional()
|
|
30
|
-
});
|
|
30
|
+
}).passthrough();
|
|
31
31
|
const plainCreateCustomerGroup = action("PLAIN_CREATE_CUSTOMER_GROUP", {
|
|
32
32
|
slug: "plain-create-customer-group",
|
|
33
33
|
name: "Create Customer Group",
|
|
@@ -36,7 +36,7 @@ const plainCreateCustomerGroup = action("PLAIN_CREATE_CUSTOMER_GROUP", {
|
|
|
36
36
|
output: z.object({
|
|
37
37
|
error: PlainCreateCustomerGroup_MutationErrorSchema.nullable().optional(),
|
|
38
38
|
customerGroup: PlainCreateCustomerGroup_CustomerGroupModelSchema.nullable().optional()
|
|
39
|
-
})
|
|
39
|
+
}).passthrough()
|
|
40
40
|
});
|
|
41
41
|
//#endregion
|
|
42
42
|
export { plainCreateCustomerGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-customer-group.mjs","names":[],"sources":["../../src/actions/create-customer-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateCustomerGroupInput = z.object({\n key: z.string().describe(\"Unique identifier key for the customer group. Must be unique across all customer groups in your workspace. Use lowercase with underscores (e.g., 'vip_customers').\"),\n name: z.string().describe(\"Display name of the customer group (e.g., 'VIP Customers', 'Free Tier'). Used for organization and display purposes.\"),\n color: z.string().describe(\"Hex color code for the group (e.g., #FF5733). Must be a valid 6-digit hex color starting with #.\"),\n externalId: z.string().describe(\"Optional external ID to link this customer group with an identifier from your system (e.g., Stripe plan ID, internal database ID).\").optional(),\n});\nconst PlainCreateCustomerGroup_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"Field with validation error\").nullable(),\n message: z.string().describe(\"Technical error message for the field error\").nullable(),\n});\nconst PlainCreateCustomerGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION, FORBIDDEN\").nullable(),\n fields: z.array(PlainCreateCustomerGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors if any\").nullable().optional(),\n message: z.string().describe(\"Technical error message for the mutation failure\").nullable(),\n});\nconst PlainCreateCustomerGroup_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"Date and time in ISO 8601 format\").nullable(),\n});\nconst PlainCreateCustomerGroup_CustomerGroupModelSchema = z.object({\n id: z.string().describe(\"ID of the created customer group\").nullable(),\n key: z.string().describe(\"Unique key for the customer group\").nullable(),\n name: z.string().describe(\"Name of the customer group\").nullable(),\n color: z.string().describe(\"Hex color code for the group\").nullable(),\n createdAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n updatedAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n externalId: z.string().describe(\"Optional external ID of the group\").nullable().optional(),\n});\nexport const PlainCreateCustomerGroupOutput = z.object({\n error: PlainCreateCustomerGroup_MutationErrorSchema.nullable().optional(),\n customerGroup: PlainCreateCustomerGroup_CustomerGroupModelSchema.nullable().optional(),\n});\n\nexport const plainCreateCustomerGroup = action(\"PLAIN_CREATE_CUSTOMER_GROUP\", {\n slug: \"plain-create-customer-group\",\n name: \"Create Customer Group\",\n description: \"Creates a new customer group in Plain for organizing and segmenting customers. Customer groups allow you to categorize customers (e.g., by pricing tier, feature access, or support level) and manage them more effectively in your support workflow. Each group has a unique key, display name, and visual color for easy identification. Use this when you need to create a new customer segment for organization or filtering purposes.\",\n input: PlainCreateCustomerGroupInput,\n output: PlainCreateCustomerGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;CAC7L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAChJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC;AACD,MAAM,oDAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACvF,CAAC;
|
|
1
|
+
{"version":3,"file":"create-customer-group.mjs","names":[],"sources":["../../src/actions/create-customer-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateCustomerGroupInput = z.object({\n key: z.string().describe(\"Unique identifier key for the customer group. Must be unique across all customer groups in your workspace. Use lowercase with underscores (e.g., 'vip_customers').\"),\n name: z.string().describe(\"Display name of the customer group (e.g., 'VIP Customers', 'Free Tier'). Used for organization and display purposes.\"),\n color: z.string().describe(\"Hex color code for the group (e.g., #FF5733). Must be a valid 6-digit hex color starting with #.\"),\n externalId: z.string().describe(\"Optional external ID to link this customer group with an identifier from your system (e.g., Stripe plan ID, internal database ID).\").optional(),\n});\nconst PlainCreateCustomerGroup_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"Field with validation error\").nullable(),\n message: z.string().describe(\"Technical error message for the field error\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION, FORBIDDEN\").nullable(),\n fields: z.array(PlainCreateCustomerGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors if any\").nullable().optional(),\n message: z.string().describe(\"Technical error message for the mutation failure\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"Date and time in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_CustomerGroupModelSchema = z.object({\n id: z.string().describe(\"ID of the created customer group\").nullable(),\n key: z.string().describe(\"Unique key for the customer group\").nullable(),\n name: z.string().describe(\"Name of the customer group\").nullable(),\n color: z.string().describe(\"Hex color code for the group\").nullable(),\n createdAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n updatedAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n externalId: z.string().describe(\"Optional external ID of the group\").nullable().optional(),\n}).passthrough();\nexport const PlainCreateCustomerGroupOutput = z.object({\n error: PlainCreateCustomerGroup_MutationErrorSchema.nullable().optional(),\n customerGroup: PlainCreateCustomerGroup_CustomerGroupModelSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainCreateCustomerGroup = action(\"PLAIN_CREATE_CUSTOMER_GROUP\", {\n slug: \"plain-create-customer-group\",\n name: \"Create Customer Group\",\n description: \"Creates a new customer group in Plain for organizing and segmenting customers. Customer groups allow you to categorize customers (e.g., by pricing tier, feature access, or support level) and manage them more effectively in your support workflow. Each group has a unique key, display name, and visual color for easy identification. Use this when you need to create a new customer segment for organization or filtering purposes.\",\n input: PlainCreateCustomerGroupInput,\n output: PlainCreateCustomerGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;CAC7L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAChJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC;AACD,MAAM,oDAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+C,EAAE,OAAO,EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oDAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,WAAW,6CAA6C,SAAS;CACjE,WAAW,6CAA6C,SAAS;CACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;EACxE,eAAe,kDAAkD,SAAS,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -4,7 +4,7 @@ let zod = require("zod");
|
|
|
4
4
|
const PlainCreateThreadInput = zod.z.object({
|
|
5
5
|
title: zod.z.string().describe("Title of the new thread"),
|
|
6
6
|
assignedTo: zod.z.object({ userId: zod.z.string().describe("Plain user ID to assign the thread to") }).describe("Optional user assignment for the thread").optional(),
|
|
7
|
-
components: zod.z.array(zod.z.object({ componentText: zod.z.object({ text: zod.z.string().describe("Text content of the component") }).describe("A text component to include in the thread").optional() })).describe("Optional list of content components for the thread").optional(),
|
|
7
|
+
components: zod.z.array(zod.z.object({ componentText: zod.z.object({ text: zod.z.string().describe("Text content of the component") }).describe("A text component to include in the thread").optional() }).passthrough()).describe("Optional list of content components for the thread").optional(),
|
|
8
8
|
labelTypeIds: zod.z.array(zod.z.string()).describe("Optional list of label type IDs to assign").optional(),
|
|
9
9
|
customerIdentifier: zod.z.object({
|
|
10
10
|
customerId: zod.z.string().describe("Plain customer ID to identify the customer").optional(),
|
|
@@ -15,18 +15,18 @@ const PlainCreateThreadInput = zod.z.object({
|
|
|
15
15
|
const PlainCreateThread_ThreadLabelTypeSchema = zod.z.object({
|
|
16
16
|
id: zod.z.string().describe("LabelType unique identifier").nullable(),
|
|
17
17
|
name: zod.z.string().describe("LabelType name").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const PlainCreateThread_ThreadLabelSchema = zod.z.object({
|
|
20
20
|
id: zod.z.string().describe("Label unique identifier").nullable(),
|
|
21
21
|
labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable()
|
|
22
|
-
});
|
|
23
|
-
const PlainCreateThread_CustomerEmailSchema = zod.z.object({ email: zod.z.string().describe("Email address of the customer").nullable() });
|
|
22
|
+
}).passthrough();
|
|
23
|
+
const PlainCreateThread_CustomerEmailSchema = zod.z.object({ email: zod.z.string().describe("Email address of the customer").nullable() }).passthrough();
|
|
24
24
|
const PlainCreateThread_CustomerSchema = zod.z.object({
|
|
25
25
|
id: zod.z.string().describe("Customer unique identifier").nullable(),
|
|
26
26
|
email: PlainCreateThread_CustomerEmailSchema.nullable(),
|
|
27
27
|
fullName: zod.z.string().describe("Full name of the customer").nullable()
|
|
28
|
-
});
|
|
29
|
-
const PlainCreateThread_StatusChangedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp of last status change in ISO8601 format").nullable() });
|
|
28
|
+
}).passthrough();
|
|
29
|
+
const PlainCreateThread_StatusChangedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp of last status change in ISO8601 format").nullable() }).passthrough();
|
|
30
30
|
const PlainCreateThread_ThreadSchema = zod.z.object({
|
|
31
31
|
id: zod.z.string().describe("Thread unique identifier").nullable(),
|
|
32
32
|
title: zod.z.string().describe("Title of the thread").nullable(),
|
|
@@ -35,10 +35,10 @@ const PlainCreateThread_ThreadSchema = zod.z.object({
|
|
|
35
35
|
customer: PlainCreateThread_CustomerSchema.nullable(),
|
|
36
36
|
priority: zod.z.number().int().describe("Priority level of the thread").nullable(),
|
|
37
37
|
statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable()
|
|
38
|
-
});
|
|
39
|
-
const PlainCreateThread_CreateThreadDataSchema = zod.z.object({ thread: PlainCreateThread_ThreadSchema.nullable().optional() });
|
|
40
|
-
const PlainCreateThread_CreateThreadPayloadSchema = zod.z.object({ createThread: PlainCreateThread_CreateThreadDataSchema.nullable() });
|
|
41
|
-
const PlainCreateThreadOutput = zod.z.object({ data: PlainCreateThread_CreateThreadPayloadSchema.nullable() });
|
|
38
|
+
}).passthrough();
|
|
39
|
+
const PlainCreateThread_CreateThreadDataSchema = zod.z.object({ thread: PlainCreateThread_ThreadSchema.nullable().optional() }).passthrough();
|
|
40
|
+
const PlainCreateThread_CreateThreadPayloadSchema = zod.z.object({ createThread: PlainCreateThread_CreateThreadDataSchema.nullable() }).passthrough();
|
|
41
|
+
const PlainCreateThreadOutput = zod.z.object({ data: PlainCreateThread_CreateThreadPayloadSchema.nullable() }).passthrough();
|
|
42
42
|
const plainCreateThread = require_action.action("PLAIN_CREATE_THREAD", {
|
|
43
43
|
slug: "plain-create-thread",
|
|
44
44
|
name: "Create Thread",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-thread.cjs","names":["z","action"],"sources":["../../src/actions/create-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateThreadInput = z.object({\n title: z.string().describe(\"Title of the new thread\"),\n assignedTo: z.object({\n userId: z.string().describe(\"Plain user ID to assign the thread to\"),\n}).describe(\"Optional user assignment for the thread\").optional(),\n components: z.array(z.object({\n componentText: z.object({\n text: z.string().describe(\"Text content of the component\"),\n}).describe(\"A text component to include in the thread\").optional(),\n})).describe(\"Optional list of content components for the thread\").optional(),\n labelTypeIds: z.array(z.string()).describe(\"Optional list of label type IDs to assign\").optional(),\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier object for the customer\"),\n});\nconst PlainCreateThread_ThreadLabelTypeSchema = z.object({\n id: z.string().describe(\"LabelType unique identifier\").nullable(),\n name: z.string().describe(\"LabelType name\").nullable(),\n});\nconst PlainCreateThread_ThreadLabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable(),\n});\nconst PlainCreateThread_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n});\nconst PlainCreateThread_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainCreateThread_CustomerEmailSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n});\nconst PlainCreateThread_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp of last status change in ISO8601 format\").nullable(),\n});\nconst PlainCreateThread_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable(),\n labels: z.array(PlainCreateThread_ThreadLabelSchema).describe(\"Labels assigned to the thread\"),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainCreateThread_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable(),\n});\nconst PlainCreateThread_CreateThreadDataSchema = z.object({\n thread: PlainCreateThread_ThreadSchema.nullable().optional(),\n});\nconst PlainCreateThread_CreateThreadPayloadSchema = z.object({\n createThread: PlainCreateThread_CreateThreadDataSchema.nullable(),\n});\nexport const PlainCreateThreadOutput = z.object({\n data: PlainCreateThread_CreateThreadPayloadSchema.nullable(),\n});\n\nexport const plainCreateThread = action(\"PLAIN_CREATE_THREAD\", {\n slug: \"plain-create-thread\",\n name: \"Create Thread\",\n description: \"Tool to create a new thread. Use after obtaining valid customer identifier.\",\n input: PlainCreateThreadInput,\n output: PlainCreateThreadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,YAAYA,IAAAA,EAAE,OAAO,EACrB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACrE,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9D,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC7B,eAAeA,IAAAA,EAAE,OAAO,EACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EAC3D,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"create-thread.cjs","names":["z","action"],"sources":["../../src/actions/create-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateThreadInput = z.object({\n title: z.string().describe(\"Title of the new thread\"),\n assignedTo: z.object({\n userId: z.string().describe(\"Plain user ID to assign the thread to\"),\n}).describe(\"Optional user assignment for the thread\").optional(),\n components: z.array(z.object({\n componentText: z.object({\n text: z.string().describe(\"Text content of the component\"),\n}).describe(\"A text component to include in the thread\").optional(),\n}).passthrough()).describe(\"Optional list of content components for the thread\").optional(),\n labelTypeIds: z.array(z.string()).describe(\"Optional list of label type IDs to assign\").optional(),\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier object for the customer\"),\n});\nconst PlainCreateThread_ThreadLabelTypeSchema = z.object({\n id: z.string().describe(\"LabelType unique identifier\").nullable(),\n name: z.string().describe(\"LabelType name\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadLabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainCreateThread_CustomerEmailSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp of last status change in ISO8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable(),\n labels: z.array(PlainCreateThread_ThreadLabelSchema).describe(\"Labels assigned to the thread\"),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainCreateThread_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadDataSchema = z.object({\n thread: PlainCreateThread_ThreadSchema.nullable().optional(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadPayloadSchema = z.object({\n createThread: PlainCreateThread_CreateThreadDataSchema.nullable(),\n}).passthrough();\nexport const PlainCreateThreadOutput = z.object({\n data: PlainCreateThread_CreateThreadPayloadSchema.nullable(),\n}).passthrough();\n\nexport const plainCreateThread = action(\"PLAIN_CREATE_THREAD\", {\n slug: \"plain-create-thread\",\n name: \"Create Thread\",\n description: \"Tool to create a new thread. Use after obtaining valid customer identifier.\",\n input: PlainCreateThreadInput,\n output: PlainCreateThreadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,YAAYA,IAAAA,EAAE,OAAO,EACrB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACrE,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9D,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC7B,eAAeA,IAAAA,EAAE,OAAO,EACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EAC3D,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,oBAAoBA,IAAAA,EAAE,OAAO;EAC7B,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AACvD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5D,WAAW,wCAAwC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwCA,IAAAA,EAAE,OAAO,EACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,OAAO,sCAAsC,SAAS;CACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC7F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC3D,QAAQA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+BAA+B;CAC7F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,UAAU,iCAAiC,SAAS;CACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC7E,iBAAiB,wCAAwC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2CA,IAAAA,EAAE,OAAO,EACxD,QAAQ,+BAA+B,SAAS,CAAC,CAAC,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO,EAC3D,cAAc,yCAAyC,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,MAAM,4CAA4C,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const PlainCreateThreadInput: z.ZodObject<{
|
|
|
10
10
|
componentText: z.ZodOptional<z.ZodObject<{
|
|
11
11
|
text: z.ZodString;
|
|
12
12
|
}, z.core.$strip>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>>;
|
|
14
14
|
labelTypeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
15
|
customerIdentifier: z.ZodObject<{
|
|
16
16
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -29,24 +29,24 @@ declare const PlainCreateThreadOutput: z.ZodObject<{
|
|
|
29
29
|
labelType: z.ZodNullable<z.ZodObject<{
|
|
30
30
|
id: z.ZodNullable<z.ZodString>;
|
|
31
31
|
name: z.ZodNullable<z.ZodString>;
|
|
32
|
-
}, z.core.$
|
|
33
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
status: z.ZodNullable<z.ZodString>;
|
|
35
35
|
customer: z.ZodNullable<z.ZodObject<{
|
|
36
36
|
id: z.ZodNullable<z.ZodString>;
|
|
37
37
|
email: z.ZodNullable<z.ZodObject<{
|
|
38
38
|
email: z.ZodNullable<z.ZodString>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>>;
|
|
40
40
|
fullName: z.ZodNullable<z.ZodString>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
priority: z.ZodNullable<z.ZodNumber>;
|
|
43
43
|
statusChangedAt: z.ZodNullable<z.ZodObject<{
|
|
44
44
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
45
|
-
}, z.core.$
|
|
46
|
-
}, z.core.$
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
49
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
}, z.core.$loose>>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
50
|
declare const plainCreateThread: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
51
51
|
title: string;
|
|
52
52
|
customerIdentifier: {
|
|
@@ -58,6 +58,7 @@ declare const plainCreateThread: import("@keystrokehq/action").WorkflowActionDef
|
|
|
58
58
|
userId: string;
|
|
59
59
|
} | undefined;
|
|
60
60
|
components?: {
|
|
61
|
+
[x: string]: unknown;
|
|
61
62
|
componentText?: {
|
|
62
63
|
text: string;
|
|
63
64
|
} | undefined;
|
|
@@ -10,7 +10,7 @@ declare const PlainCreateThreadInput: z.ZodObject<{
|
|
|
10
10
|
componentText: z.ZodOptional<z.ZodObject<{
|
|
11
11
|
text: z.ZodString;
|
|
12
12
|
}, z.core.$strip>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>>;
|
|
14
14
|
labelTypeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
15
|
customerIdentifier: z.ZodObject<{
|
|
16
16
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -29,24 +29,24 @@ declare const PlainCreateThreadOutput: z.ZodObject<{
|
|
|
29
29
|
labelType: z.ZodNullable<z.ZodObject<{
|
|
30
30
|
id: z.ZodNullable<z.ZodString>;
|
|
31
31
|
name: z.ZodNullable<z.ZodString>;
|
|
32
|
-
}, z.core.$
|
|
33
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
status: z.ZodNullable<z.ZodString>;
|
|
35
35
|
customer: z.ZodNullable<z.ZodObject<{
|
|
36
36
|
id: z.ZodNullable<z.ZodString>;
|
|
37
37
|
email: z.ZodNullable<z.ZodObject<{
|
|
38
38
|
email: z.ZodNullable<z.ZodString>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>>;
|
|
40
40
|
fullName: z.ZodNullable<z.ZodString>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
priority: z.ZodNullable<z.ZodNumber>;
|
|
43
43
|
statusChangedAt: z.ZodNullable<z.ZodObject<{
|
|
44
44
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
45
|
-
}, z.core.$
|
|
46
|
-
}, z.core.$
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
49
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
}, z.core.$loose>>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
50
|
declare const plainCreateThread: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
51
51
|
title: string;
|
|
52
52
|
customerIdentifier: {
|
|
@@ -58,6 +58,7 @@ declare const plainCreateThread: import("@keystrokehq/action").WorkflowActionDef
|
|
|
58
58
|
userId: string;
|
|
59
59
|
} | undefined;
|
|
60
60
|
components?: {
|
|
61
|
+
[x: string]: unknown;
|
|
61
62
|
componentText?: {
|
|
62
63
|
text: string;
|
|
63
64
|
} | undefined;
|