@keystrokehq/plain 0.1.0 → 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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-customer-to-group.cjs +17 -17
- package/dist/actions/add-customer-to-group.cjs.map +1 -1
- package/dist/actions/add-customer-to-group.d.cts +48 -3
- package/dist/actions/add-customer-to-group.d.cts.map +1 -1
- package/dist/actions/add-customer-to-group.d.mts +48 -3
- package/dist/actions/add-customer-to-group.d.mts.map +1 -1
- package/dist/actions/add-customer-to-group.mjs +17 -17
- package/dist/actions/add-customer-to-group.mjs.map +1 -1
- package/dist/actions/create-customer-group.cjs +15 -15
- package/dist/actions/create-customer-group.cjs.map +1 -1
- package/dist/actions/create-customer-group.d.cts +37 -3
- package/dist/actions/create-customer-group.d.cts.map +1 -1
- package/dist/actions/create-customer-group.d.mts +37 -3
- package/dist/actions/create-customer-group.d.mts.map +1 -1
- package/dist/actions/create-customer-group.mjs +15 -15
- package/dist/actions/create-customer-group.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +19 -19
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +64 -3
- package/dist/actions/create-thread.d.cts.map +1 -1
- package/dist/actions/create-thread.d.mts +64 -3
- package/dist/actions/create-thread.d.mts.map +1 -1
- package/dist/actions/create-thread.mjs +19 -19
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs +9 -9
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +18 -3
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +18 -3
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-customer.mjs +9 -9
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +9 -9
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +18 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +18 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +9 -9
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/fetch-company.cjs +11 -11
- package/dist/actions/fetch-company.cjs.map +1 -1
- package/dist/actions/fetch-company.d.cts +26 -3
- package/dist/actions/fetch-company.d.cts.map +1 -1
- package/dist/actions/fetch-company.d.mts +26 -3
- package/dist/actions/fetch-company.d.mts.map +1 -1
- package/dist/actions/fetch-company.mjs +11 -11
- package/dist/actions/fetch-company.mjs.map +1 -1
- package/dist/actions/fetch-issues.cjs +9 -9
- package/dist/actions/fetch-issues.cjs.map +1 -1
- package/dist/actions/fetch-issues.d.cts +24 -3
- package/dist/actions/fetch-issues.d.cts.map +1 -1
- package/dist/actions/fetch-issues.d.mts +24 -3
- package/dist/actions/fetch-issues.d.mts.map +1 -1
- package/dist/actions/fetch-issues.mjs +9 -9
- package/dist/actions/fetch-issues.mjs.map +1 -1
- package/dist/actions/fetch-tier.cjs +11 -11
- package/dist/actions/fetch-tier.cjs.map +1 -1
- package/dist/actions/fetch-tier.d.cts +25 -3
- package/dist/actions/fetch-tier.d.cts.map +1 -1
- package/dist/actions/fetch-tier.d.mts +25 -3
- package/dist/actions/fetch-tier.d.mts.map +1 -1
- package/dist/actions/fetch-tier.mjs +11 -11
- package/dist/actions/fetch-tier.mjs.map +1 -1
- package/dist/actions/get-customer-by-email.cjs +9 -9
- package/dist/actions/get-customer-by-email.cjs.map +1 -1
- package/dist/actions/get-customer-by-email.d.cts +26 -3
- package/dist/actions/get-customer-by-email.d.cts.map +1 -1
- package/dist/actions/get-customer-by-email.d.mts +26 -3
- package/dist/actions/get-customer-by-email.d.mts.map +1 -1
- package/dist/actions/get-customer-by-email.mjs +9 -9
- package/dist/actions/get-customer-by-email.mjs.map +1 -1
- package/dist/actions/get-customer-by-id.cjs +6 -6
- package/dist/actions/get-customer-by-id.cjs.map +1 -1
- package/dist/actions/get-customer-by-id.d.cts +13 -3
- package/dist/actions/get-customer-by-id.d.cts.map +1 -1
- package/dist/actions/get-customer-by-id.d.mts +13 -3
- package/dist/actions/get-customer-by-id.d.mts.map +1 -1
- package/dist/actions/get-customer-by-id.mjs +6 -6
- package/dist/actions/get-customer-by-id.mjs.map +1 -1
- package/dist/actions/get-customers.cjs +14 -14
- package/dist/actions/get-customers.cjs.map +1 -1
- package/dist/actions/get-customers.d.cts +59 -3
- package/dist/actions/get-customers.d.cts.map +1 -1
- package/dist/actions/get-customers.d.mts +59 -3
- package/dist/actions/get-customers.d.mts.map +1 -1
- package/dist/actions/get-customers.mjs +14 -14
- package/dist/actions/get-customers.mjs.map +1 -1
- package/dist/actions/get-thread-by-id.cjs +22 -22
- package/dist/actions/get-thread-by-id.cjs.map +1 -1
- package/dist/actions/get-thread-by-id.d.cts +63 -3
- package/dist/actions/get-thread-by-id.d.cts.map +1 -1
- package/dist/actions/get-thread-by-id.d.mts +63 -3
- package/dist/actions/get-thread-by-id.d.mts.map +1 -1
- package/dist/actions/get-thread-by-id.mjs +22 -22
- package/dist/actions/get-thread-by-id.mjs.map +1 -1
- package/dist/actions/get-user-by-id.cjs +9 -9
- package/dist/actions/get-user-by-id.cjs.map +1 -1
- package/dist/actions/get-user-by-id.d.cts +21 -3
- package/dist/actions/get-user-by-id.d.cts.map +1 -1
- package/dist/actions/get-user-by-id.d.mts +21 -3
- package/dist/actions/get-user-by-id.d.mts.map +1 -1
- package/dist/actions/get-user-by-id.mjs +9 -9
- package/dist/actions/get-user-by-id.mjs.map +1 -1
- package/dist/actions/list-customer-groups.cjs +14 -14
- package/dist/actions/list-customer-groups.cjs.map +1 -1
- package/dist/actions/list-customer-groups.d.cts +40 -3
- package/dist/actions/list-customer-groups.d.cts.map +1 -1
- package/dist/actions/list-customer-groups.d.mts +40 -3
- package/dist/actions/list-customer-groups.d.mts.map +1 -1
- package/dist/actions/list-customer-groups.mjs +14 -14
- package/dist/actions/list-customer-groups.mjs.map +1 -1
- package/dist/actions/list-tiers.cjs +9 -9
- package/dist/actions/list-tiers.cjs.map +1 -1
- package/dist/actions/list-tiers.d.cts +31 -3
- package/dist/actions/list-tiers.d.cts.map +1 -1
- package/dist/actions/list-tiers.d.mts +31 -3
- package/dist/actions/list-tiers.d.mts.map +1 -1
- package/dist/actions/list-tiers.mjs +9 -9
- package/dist/actions/list-tiers.mjs.map +1 -1
- package/dist/actions/query-threads.cjs +15 -15
- package/dist/actions/query-threads.cjs.map +1 -1
- package/dist/actions/query-threads.d.cts +31 -3
- package/dist/actions/query-threads.d.cts.map +1 -1
- package/dist/actions/query-threads.d.mts +31 -3
- package/dist/actions/query-threads.d.mts.map +1 -1
- package/dist/actions/query-threads.mjs +15 -15
- package/dist/actions/query-threads.mjs.map +1 -1
- package/dist/actions/remove-customer-from-group.cjs +10 -10
- package/dist/actions/remove-customer-from-group.cjs.map +1 -1
- package/dist/actions/remove-customer-from-group.d.cts +35 -3
- package/dist/actions/remove-customer-from-group.d.cts.map +1 -1
- package/dist/actions/remove-customer-from-group.d.mts +35 -3
- package/dist/actions/remove-customer-from-group.d.mts.map +1 -1
- package/dist/actions/remove-customer-from-group.mjs +10 -10
- package/dist/actions/remove-customer-from-group.mjs.map +1 -1
- package/dist/actions/run-graphql-query.cjs +7 -7
- package/dist/actions/run-graphql-query.cjs.map +1 -1
- package/dist/actions/run-graphql-query.d.cts +23 -3
- package/dist/actions/run-graphql-query.d.cts.map +1 -1
- package/dist/actions/run-graphql-query.d.mts +23 -3
- package/dist/actions/run-graphql-query.d.mts.map +1 -1
- package/dist/actions/run-graphql-query.mjs +7 -7
- 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 +61 -3
- package/dist/actions/send-message.d.cts.map +1 -1
- package/dist/actions/send-message.d.mts +61 -3
- package/dist/actions/send-message.d.mts.map +1 -1
- package/dist/actions/send-message.mjs +5 -5
- package/dist/actions/send-message.mjs.map +1 -1
- package/dist/actions/update-company.cjs +15 -15
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +37 -3
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +37 -3
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +15 -15
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-thread.cjs +13 -13
- package/dist/actions/update-thread.cjs.map +1 -1
- package/dist/actions/update-thread.d.cts +27 -3
- package/dist/actions/update-thread.d.cts.map +1 -1
- package/dist/actions/update-thread.d.mts +27 -3
- package/dist/actions/update-thread.d.mts.map +1 -1
- package/dist/actions/update-thread.mjs +13 -13
- package/dist/actions/update-thread.mjs.map +1 -1
- package/dist/actions/upsert-customer.cjs +17 -17
- package/dist/actions/upsert-customer.cjs.map +1 -1
- package/dist/actions/upsert-customer.d.cts +112 -3
- package/dist/actions/upsert-customer.d.cts.map +1 -1
- package/dist/actions/upsert-customer.d.mts +112 -3
- package/dist/actions/upsert-customer.d.mts.map +1 -1
- package/dist/actions/upsert-customer.mjs +17 -17
- package/dist/actions/upsert-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":"update-company.mjs","names":[],"sources":["../../src/actions/update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateCompanyInput
|
|
1
|
+
{"version":3,"file":"update-company.mjs","names":[],"sources":["../../src/actions/update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateCompanyInput = z.object({\n name: z.string().describe(\"Name for the company.\"),\n companyId: z.string().describe(\"Existing company ID to update (format: 'co_...'). Provide either companyId OR companyDomainName.\").optional(),\n domainName: z.string().describe(\"Domain name for the company (e.g., 'acme.com').\"),\n contractValue: z.number().int().describe(\"Optional contract value in cents. Must be non-negative.\").optional(),\n companyDomainName: z.string().describe(\"Company domain name for lookup/upsert (e.g., 'acme.com'). Provide either companyId OR companyDomainName.\").optional(),\n accountOwnerUserId: z.string().describe(\"ID of the user to assign as account owner.\").optional(),\n});\nconst PlainUpdateCompany_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).\").nullable(),\n field: z.string().describe(\"Name of the input field with an error.\").nullable(),\n message: z.string().describe(\"Technical description of the field error.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code for handling specific errors.\").nullable(),\n type: z.string().describe(\"Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).\").nullable(),\n fields: z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe(\"List of field-level errors if validation failed.\").nullable().optional(),\n message: z.string().describe(\"Technical description of the mutation error.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"Unique ID of the company.\").nullable(),\n name: z.string().describe(\"Name of the company.\").nullable(),\n createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company.\").nullable(),\n}).passthrough();\nexport const PlainUpdateCompanyOutput = z.object({\n error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),\n result: z.string().describe(\"Upsert result: 'CREATED' or 'UPDATED'.\").nullable(),\n company: PlainUpdateCompany_CompanySchema.nullable(),\n}).passthrough();\n\nexport const plainUpdateCompany = action(\"PLAIN_UPDATE_COMPANY\", {\n slug: \"plain-update-company\",\n name: \"Update Company\",\n description: \"Upserts (creates or updates) a company in Plain. Provide either companyId (for updating an existing company by ID) or companyDomainName (for upserting by domain). Use this to create new companies, update existing company details (name, domain, contract value), or assign account owners.\",\n input: PlainUpdateCompanyInput,\n output: PlainUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC5I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC5J,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACjG,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrG,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,qCAAqC,EAAE,OAAO,EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,WAAW,mCAAmC,SAAS;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC/E,SAAS,iCAAiC,SAAS;CACrD,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -6,26 +6,26 @@ const PlainUpdateThreadInput = zod.z.object({
|
|
|
6
6
|
threadId: zod.z.string().describe("Unique identifier of the thread to update")
|
|
7
7
|
});
|
|
8
8
|
const PlainUpdateThread_MutationFieldErrorSchema = zod.z.object({
|
|
9
|
-
type: zod.z.string().describe("Type of the field error, e.g., REQUIRED or VALIDATION"),
|
|
10
|
-
field: zod.z.string().describe("The name of the field with an error"),
|
|
11
|
-
message: zod.z.string().describe("Technical message describing the field error")
|
|
12
|
-
});
|
|
9
|
+
type: zod.z.string().describe("Type of the field error, e.g., REQUIRED or VALIDATION").nullable(),
|
|
10
|
+
field: zod.z.string().describe("The name of the field with an error").nullable(),
|
|
11
|
+
message: zod.z.string().describe("Technical message describing the field error").nullable()
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const PlainUpdateThread_MutationErrorSchema = zod.z.object({
|
|
14
|
-
code: zod.z.string().describe("Fixed error code identifying the error"),
|
|
15
|
-
type: zod.z.string().describe("High-level error type, e.g., VALIDATION or FORBIDDEN"),
|
|
14
|
+
code: zod.z.string().describe("Fixed error code identifying the error").nullable(),
|
|
15
|
+
type: zod.z.string().describe("High-level error type, e.g., VALIDATION or FORBIDDEN").nullable(),
|
|
16
16
|
fields: zod.z.array(PlainUpdateThread_MutationFieldErrorSchema).describe("List of field-specific errors, if any").nullable().optional(),
|
|
17
|
-
message: zod.z.string().describe("Technical message describing the mutation failure")
|
|
18
|
-
});
|
|
19
|
-
const PlainUpdateThread_DateTimeModelSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp string") });
|
|
17
|
+
message: zod.z.string().describe("Technical message describing the mutation failure").nullable()
|
|
18
|
+
}).passthrough();
|
|
19
|
+
const PlainUpdateThread_DateTimeModelSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp string").nullable() }).passthrough();
|
|
20
20
|
const PlainUpdateThread_ThreadModelSchema = zod.z.object({
|
|
21
|
-
id: zod.z.string().describe("Thread unique identifier"),
|
|
22
|
-
title: zod.z.string().describe("Thread title"),
|
|
21
|
+
id: zod.z.string().describe("Thread unique identifier").nullable(),
|
|
22
|
+
title: zod.z.string().describe("Thread title").nullable(),
|
|
23
23
|
updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable()
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const PlainUpdateThreadOutput = zod.z.object({
|
|
26
26
|
error: PlainUpdateThread_MutationErrorSchema.nullable().optional(),
|
|
27
27
|
thread: PlainUpdateThread_ThreadModelSchema.nullable().optional()
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const plainUpdateThread = require_action.action("PLAIN_UPDATE_THREAD", {
|
|
30
30
|
slug: "plain-update-thread",
|
|
31
31
|
name: "Update Thread",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-thread.cjs","names":["z","action"],"sources":["../../src/actions/update-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateThreadInput
|
|
1
|
+
{"version":3,"file":"update-thread.cjs","names":["z","action"],"sources":["../../src/actions/update-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateThreadInput = z.object({\n title: z.string().describe(\"New title for the thread\"),\n threadId: z.string().describe(\"Unique identifier of the thread to update\"),\n});\nconst PlainUpdateThread_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"The name of the field with an error\").nullable(),\n message: z.string().describe(\"Technical message describing the field error\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_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 or FORBIDDEN\").nullable(),\n fields: z.array(PlainUpdateThread_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any\").nullable().optional(),\n message: z.string().describe(\"Technical message describing the mutation failure\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp string\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_ThreadModelSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Thread title\").nullable(),\n updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable(),\n}).passthrough();\nexport const PlainUpdateThreadOutput = z.object({\n error: PlainUpdateThread_MutationErrorSchema.nullable().optional(),\n thread: PlainUpdateThread_ThreadModelSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainUpdateThread = action(\"PLAIN_UPDATE_THREAD\", {\n slug: \"plain-update-thread\",\n name: \"Update Thread\",\n description: \"Tool to update a thread's title. Use when renaming a thread after confirming its ID.\",\n input: PlainUpdateThreadInput,\n output: PlainUpdateThreadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC3E,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,WAAW,sCAAsC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS;CACjE,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,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-thread.d.ts
|
|
4
|
-
declare const PlainUpdateThreadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlainUpdateThreadInput: z.ZodObject<{
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
threadId: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PlainUpdateThreadOutput: z.ZodObject<{
|
|
9
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
code: z.ZodNullable<z.ZodString>;
|
|
11
|
+
type: z.ZodNullable<z.ZodString>;
|
|
12
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
type: z.ZodNullable<z.ZodString>;
|
|
14
|
+
field: z.ZodNullable<z.ZodString>;
|
|
15
|
+
message: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$loose>>>>;
|
|
17
|
+
message: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
|
+
thread: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
title: z.ZodNullable<z.ZodString>;
|
|
22
|
+
updatedAt: z.ZodNullable<z.ZodObject<{
|
|
23
|
+
iso8601: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const plainUpdateThread: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
title: string;
|
|
29
|
+
threadId: string;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { plainUpdateThread };
|
|
9
33
|
//# sourceMappingURL=update-thread.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-thread.d.cts","names":[],"sources":["../../src/actions/update-thread.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"update-thread.d.cts","names":[],"sources":["../../src/actions/update-thread.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAuBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-thread.d.ts
|
|
4
|
-
declare const PlainUpdateThreadInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlainUpdateThreadInput: z.ZodObject<{
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
threadId: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PlainUpdateThreadOutput: z.ZodObject<{
|
|
9
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
code: z.ZodNullable<z.ZodString>;
|
|
11
|
+
type: z.ZodNullable<z.ZodString>;
|
|
12
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
type: z.ZodNullable<z.ZodString>;
|
|
14
|
+
field: z.ZodNullable<z.ZodString>;
|
|
15
|
+
message: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$loose>>>>;
|
|
17
|
+
message: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
|
+
thread: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
title: z.ZodNullable<z.ZodString>;
|
|
22
|
+
updatedAt: z.ZodNullable<z.ZodObject<{
|
|
23
|
+
iso8601: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const plainUpdateThread: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
title: string;
|
|
29
|
+
threadId: string;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { plainUpdateThread };
|
|
9
33
|
//# sourceMappingURL=update-thread.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-thread.d.mts","names":[],"sources":["../../src/actions/update-thread.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"update-thread.d.mts","names":[],"sources":["../../src/actions/update-thread.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAuBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -6,22 +6,22 @@ const PlainUpdateThreadInput = z.object({
|
|
|
6
6
|
threadId: z.string().describe("Unique identifier of the thread to update")
|
|
7
7
|
});
|
|
8
8
|
const PlainUpdateThread_MutationFieldErrorSchema = z.object({
|
|
9
|
-
type: z.string().describe("Type of the field error, e.g., REQUIRED or VALIDATION"),
|
|
10
|
-
field: z.string().describe("The name of the field with an error"),
|
|
11
|
-
message: z.string().describe("Technical message describing the field error")
|
|
12
|
-
});
|
|
9
|
+
type: z.string().describe("Type of the field error, e.g., REQUIRED or VALIDATION").nullable(),
|
|
10
|
+
field: z.string().describe("The name of the field with an error").nullable(),
|
|
11
|
+
message: z.string().describe("Technical message describing the field error").nullable()
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const PlainUpdateThread_MutationErrorSchema = z.object({
|
|
14
|
-
code: z.string().describe("Fixed error code identifying the error"),
|
|
15
|
-
type: z.string().describe("High-level error type, e.g., VALIDATION or FORBIDDEN"),
|
|
14
|
+
code: z.string().describe("Fixed error code identifying the error").nullable(),
|
|
15
|
+
type: z.string().describe("High-level error type, e.g., VALIDATION or FORBIDDEN").nullable(),
|
|
16
16
|
fields: z.array(PlainUpdateThread_MutationFieldErrorSchema).describe("List of field-specific errors, if any").nullable().optional(),
|
|
17
|
-
message: z.string().describe("Technical message describing the mutation failure")
|
|
18
|
-
});
|
|
19
|
-
const PlainUpdateThread_DateTimeModelSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp string") });
|
|
17
|
+
message: z.string().describe("Technical message describing the mutation failure").nullable()
|
|
18
|
+
}).passthrough();
|
|
19
|
+
const PlainUpdateThread_DateTimeModelSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp string").nullable() }).passthrough();
|
|
20
20
|
const PlainUpdateThread_ThreadModelSchema = z.object({
|
|
21
|
-
id: z.string().describe("Thread unique identifier"),
|
|
22
|
-
title: z.string().describe("Thread title"),
|
|
21
|
+
id: z.string().describe("Thread unique identifier").nullable(),
|
|
22
|
+
title: z.string().describe("Thread title").nullable(),
|
|
23
23
|
updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable()
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const plainUpdateThread = action("PLAIN_UPDATE_THREAD", {
|
|
26
26
|
slug: "plain-update-thread",
|
|
27
27
|
name: "Update Thread",
|
|
@@ -30,7 +30,7 @@ const plainUpdateThread = action("PLAIN_UPDATE_THREAD", {
|
|
|
30
30
|
output: z.object({
|
|
31
31
|
error: PlainUpdateThread_MutationErrorSchema.nullable().optional(),
|
|
32
32
|
thread: PlainUpdateThread_ThreadModelSchema.nullable().optional()
|
|
33
|
-
})
|
|
33
|
+
}).passthrough()
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { plainUpdateThread };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-thread.mjs","names":[],"sources":["../../src/actions/update-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateThreadInput
|
|
1
|
+
{"version":3,"file":"update-thread.mjs","names":[],"sources":["../../src/actions/update-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateThreadInput = z.object({\n title: z.string().describe(\"New title for the thread\"),\n threadId: z.string().describe(\"Unique identifier of the thread to update\"),\n});\nconst PlainUpdateThread_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"The name of the field with an error\").nullable(),\n message: z.string().describe(\"Technical message describing the field error\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_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 or FORBIDDEN\").nullable(),\n fields: z.array(PlainUpdateThread_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any\").nullable().optional(),\n message: z.string().describe(\"Technical message describing the mutation failure\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp string\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_ThreadModelSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Thread title\").nullable(),\n updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable(),\n}).passthrough();\nexport const PlainUpdateThreadOutput = z.object({\n error: PlainUpdateThread_MutationErrorSchema.nullable().optional(),\n thread: PlainUpdateThread_ThreadModelSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainUpdateThread = action(\"PLAIN_UPDATE_THREAD\", {\n slug: \"plain-update-thread\",\n name: \"Update Thread\",\n description: \"Tool to update a thread's title. Use when renaming a thread after confirming its ID.\",\n input: PlainUpdateThreadInput,\n output: PlainUpdateThreadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC3E,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,WAAW,sCAAsC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS;EACjE,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAClE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -13,12 +13,12 @@ const PlainUpsertCustomerInput = zod.z.object({
|
|
|
13
13
|
tenantIdentifiers: zod.z.array(zod.z.object({
|
|
14
14
|
tenantId: zod.z.string().describe("Plain internal ID of the tenant.").optional(),
|
|
15
15
|
external_id: zod.z.string().describe("External ID of the tenant.").optional()
|
|
16
|
-
}).describe("Identifier for a tenant. Provide exactly one field.")).describe("Tenants to assign on create.").optional(),
|
|
16
|
+
}).passthrough().describe("Identifier for a tenant. Provide exactly one field.")).describe("Tenants to assign on create.").optional(),
|
|
17
17
|
customerGroupIdentifiers: zod.z.array(zod.z.object({
|
|
18
18
|
external_id: zod.z.string().describe("Your external ID for the customer group.").optional(),
|
|
19
19
|
customerGroupId: zod.z.string().describe("Plain internal ID of the customer group.").optional(),
|
|
20
20
|
customerGroupKey: zod.z.string().describe("Unique key of the customer group.").optional()
|
|
21
|
-
}).describe("Identifier for a customer group. Provide exactly one field.")).describe("Groups to assign on create.").optional()
|
|
21
|
+
}).passthrough().describe("Identifier for a customer group. Provide exactly one field.")).describe("Groups to assign on create.").optional()
|
|
22
22
|
}).describe("Details for creation if not found."),
|
|
23
23
|
onUpdate: zod.z.object({
|
|
24
24
|
email: zod.z.object({
|
|
@@ -40,35 +40,35 @@ const PlainUpsertCustomer_MutationFieldErrorSchema = zod.z.object({
|
|
|
40
40
|
"VALIDATION",
|
|
41
41
|
"REQUIRED",
|
|
42
42
|
"NOT_FOUND"
|
|
43
|
-
]),
|
|
44
|
-
field: zod.z.string(),
|
|
45
|
-
message: zod.z.string()
|
|
46
|
-
});
|
|
43
|
+
]).nullable(),
|
|
44
|
+
field: zod.z.string().nullable(),
|
|
45
|
+
message: zod.z.string().nullable()
|
|
46
|
+
}).passthrough();
|
|
47
47
|
const PlainUpsertCustomer_MutationErrorSchema = zod.z.object({
|
|
48
|
-
code: zod.z.string(),
|
|
48
|
+
code: zod.z.string().nullable(),
|
|
49
49
|
fields: zod.z.array(PlainUpsertCustomer_MutationFieldErrorSchema).nullable(),
|
|
50
|
-
message: zod.z.string()
|
|
51
|
-
});
|
|
50
|
+
message: zod.z.string().nullable()
|
|
51
|
+
}).passthrough();
|
|
52
52
|
const PlainUpsertCustomer_EmailAddressInputSchema = zod.z.object({
|
|
53
|
-
email: zod.z.string().describe("The customer's email address."),
|
|
54
|
-
isVerified: zod.z.boolean().describe("Whether the email address is already verified.")
|
|
55
|
-
}).describe("Input object for email address with verification status.");
|
|
53
|
+
email: zod.z.string().describe("The customer's email address.").nullable(),
|
|
54
|
+
isVerified: zod.z.boolean().describe("Whether the email address is already verified.").nullable()
|
|
55
|
+
}).passthrough().describe("Input object for email address with verification status.");
|
|
56
56
|
const PlainUpsertCustomer_CustomerResponseSchema = zod.z.object({
|
|
57
|
-
id: zod.z.string(),
|
|
57
|
+
id: zod.z.string().nullable(),
|
|
58
58
|
email: PlainUpsertCustomer_EmailAddressInputSchema.nullable(),
|
|
59
|
-
fullName: zod.z.string(),
|
|
59
|
+
fullName: zod.z.string().nullable(),
|
|
60
60
|
shortName: zod.z.string().nullable().optional(),
|
|
61
61
|
externalId: zod.z.string().nullable().optional()
|
|
62
|
-
});
|
|
62
|
+
}).passthrough();
|
|
63
63
|
const PlainUpsertCustomerOutput = zod.z.object({
|
|
64
64
|
error: PlainUpsertCustomer_MutationErrorSchema.nullable(),
|
|
65
65
|
result: zod.z.enum([
|
|
66
66
|
"CREATED",
|
|
67
67
|
"UPDATED",
|
|
68
68
|
"NOOP"
|
|
69
|
-
]),
|
|
69
|
+
]).nullable(),
|
|
70
70
|
customer: PlainUpsertCustomer_CustomerResponseSchema.nullable()
|
|
71
|
-
});
|
|
71
|
+
}).passthrough();
|
|
72
72
|
const plainUpsertCustomer = require_action.action("PLAIN_UPSERT_CUSTOMER", {
|
|
73
73
|
slug: "plain-upsert-customer",
|
|
74
74
|
name: "Upsert Customer",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-customer.cjs","names":["z","action"],"sources":["../../src/actions/upsert-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpsertCustomerInput
|
|
1
|
+
{"version":3,"file":"upsert-customer.cjs","names":["z","action"],"sources":["../../src/actions/upsert-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpsertCustomerInput = z.object({\n onCreate: z.object({\n email: z.object({\n email: z.string().describe(\"The customer's email address.\"),\n isVerified: z.boolean().describe(\"Whether the email address is already verified.\"),\n}).describe(\"Email details for the new customer.\"),\n fullName: z.string().describe(\"Full name for the new customer.\"),\n shortName: z.string().describe(\"Optional short name for the new customer.\").optional(),\n externalId: z.string().describe(\"External ID to set on customer creation.\").optional(),\n tenantIdentifiers: z.array(z.object({\n tenantId: z.string().describe(\"Plain internal ID of the tenant.\").optional(),\n external_id: z.string().describe(\"External ID of the tenant.\").optional(),\n}).passthrough().describe(\"Identifier for a tenant. Provide exactly one field.\")).describe(\"Tenants to assign on create.\").optional(),\n customerGroupIdentifiers: z.array(z.object({\n external_id: z.string().describe(\"Your external ID for the customer group.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group.\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group.\").optional(),\n}).passthrough().describe(\"Identifier for a customer group. Provide exactly one field.\")).describe(\"Groups to assign on create.\").optional(),\n}).describe(\"Details for creation if not found.\"),\n onUpdate: z.object({\n email: z.object({\n email: z.string().describe(\"The customer's email address.\"),\n isVerified: z.boolean().describe(\"Whether the email address is already verified.\"),\n}).describe(\"Input object for email address with verification status.\").optional(),\n fullName: z.object({\n value: z.string().describe(\"The string value to set.\"),\n}).describe(\"Wrapper for required string inputs in onUpdate.\").optional(),\n shortName: z.object({\n value: z.string().describe(\"The optional string value to set.\").optional(),\n}).describe(\"Wrapper for optional string inputs in onUpdate.\").optional(),\n externalId: z.object({\n value: z.string().describe(\"The optional string value to set.\").optional(),\n}).describe(\"Wrapper for optional string inputs in onUpdate.\").optional(),\n}).describe(\"Details for update if found.\"),\n identifier: z.object({\n customerId: z.string().describe(\"Plain internal customer ID.\").optional(),\n externalId: z.string().describe(\"External ID of the customer in your system.\").optional(),\n emailAddress: z.string().describe(\"Customer's email address. Must be unique and valid format.\").optional(),\n}).describe(\"Selector for existing customer.\"),\n}).describe(\"Request input for upserting a customer.\");\nconst PlainUpsertCustomer_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).nullable(),\n field: z.string().nullable(),\n message: z.string().nullable(),\n}).passthrough();\nconst PlainUpsertCustomer_MutationErrorSchema = z.object({\n code: z.string().nullable(),\n fields: z.array(PlainUpsertCustomer_MutationFieldErrorSchema).nullable(),\n message: z.string().nullable(),\n}).passthrough();\nconst PlainUpsertCustomer_EmailAddressInputSchema = z.object({\n email: z.string().describe(\"The customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email address is already verified.\").nullable(),\n}).passthrough().describe(\"Input object for email address with verification status.\");\nconst PlainUpsertCustomer_CustomerResponseSchema = z.object({\n id: z.string().nullable(),\n email: PlainUpsertCustomer_EmailAddressInputSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n}).passthrough();\nexport const PlainUpsertCustomerOutput = z.object({\n error: PlainUpsertCustomer_MutationErrorSchema.nullable(),\n result: z.enum([\"CREATED\", \"UPDATED\", \"NOOP\"]).nullable(),\n customer: PlainUpsertCustomer_CustomerResponseSchema.nullable(),\n}).passthrough();\n\nexport const plainUpsertCustomer = action(\"PLAIN_UPSERT_CUSTOMER\", {\n slug: \"plain-upsert-customer\",\n name: \"Upsert Customer\",\n description: \"Tool to upsert (create or update) a customer. Use when syncing or ensuring a customer record exists before subsequent actions.\",\n input: PlainUpsertCustomerInput,\n output: PlainUpsertCustomerOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1,9 +1,118 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/upsert-customer.d.ts
|
|
4
|
-
declare const PlainUpsertCustomerInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlainUpsertCustomerInput: z.ZodObject<{
|
|
5
|
+
onCreate: z.ZodObject<{
|
|
6
|
+
email: z.ZodObject<{
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
isVerified: z.ZodBoolean;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
fullName: z.ZodString;
|
|
11
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
12
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
tenantIdentifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
external_id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
|
+
customerGroupIdentifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
external_id: z.ZodOptional<z.ZodString>;
|
|
19
|
+
customerGroupId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
customerGroupKey: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
onUpdate: z.ZodObject<{
|
|
24
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
email: z.ZodString;
|
|
26
|
+
isVerified: z.ZodBoolean;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
fullName: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
value: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
shortName: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
value: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
externalId: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
value: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
identifier: z.ZodObject<{
|
|
39
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
declare const PlainUpsertCustomerOutput: z.ZodObject<{
|
|
45
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
code: z.ZodNullable<z.ZodString>;
|
|
47
|
+
fields: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
48
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
49
|
+
VALIDATION: "VALIDATION";
|
|
50
|
+
REQUIRED: "REQUIRED";
|
|
51
|
+
NOT_FOUND: "NOT_FOUND";
|
|
52
|
+
}>>;
|
|
53
|
+
field: z.ZodNullable<z.ZodString>;
|
|
54
|
+
message: z.ZodNullable<z.ZodString>;
|
|
55
|
+
}, z.core.$loose>>>;
|
|
56
|
+
message: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
result: z.ZodNullable<z.ZodEnum<{
|
|
59
|
+
CREATED: "CREATED";
|
|
60
|
+
UPDATED: "UPDATED";
|
|
61
|
+
NOOP: "NOOP";
|
|
62
|
+
}>>;
|
|
63
|
+
customer: z.ZodNullable<z.ZodObject<{
|
|
64
|
+
id: z.ZodNullable<z.ZodString>;
|
|
65
|
+
email: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
email: z.ZodNullable<z.ZodString>;
|
|
67
|
+
isVerified: z.ZodNullable<z.ZodBoolean>;
|
|
68
|
+
}, z.core.$loose>>;
|
|
69
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
70
|
+
shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
|
+
}, z.core.$loose>;
|
|
74
|
+
declare const plainUpsertCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
75
|
+
onCreate: {
|
|
76
|
+
email: {
|
|
77
|
+
email: string;
|
|
78
|
+
isVerified: boolean;
|
|
79
|
+
};
|
|
80
|
+
fullName: string;
|
|
81
|
+
shortName?: string | undefined;
|
|
82
|
+
externalId?: string | undefined;
|
|
83
|
+
tenantIdentifiers?: {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
tenantId?: string | undefined;
|
|
86
|
+
external_id?: string | undefined;
|
|
87
|
+
}[] | undefined;
|
|
88
|
+
customerGroupIdentifiers?: {
|
|
89
|
+
[x: string]: unknown;
|
|
90
|
+
external_id?: string | undefined;
|
|
91
|
+
customerGroupId?: string | undefined;
|
|
92
|
+
customerGroupKey?: string | undefined;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
};
|
|
95
|
+
onUpdate: {
|
|
96
|
+
email?: {
|
|
97
|
+
email: string;
|
|
98
|
+
isVerified: boolean;
|
|
99
|
+
} | undefined;
|
|
100
|
+
fullName?: {
|
|
101
|
+
value: string;
|
|
102
|
+
} | undefined;
|
|
103
|
+
shortName?: {
|
|
104
|
+
value?: string | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
externalId?: {
|
|
107
|
+
value?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
};
|
|
110
|
+
identifier: {
|
|
111
|
+
customerId?: string | undefined;
|
|
112
|
+
externalId?: string | undefined;
|
|
113
|
+
emailAddress?: string | undefined;
|
|
114
|
+
};
|
|
115
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
116
|
//#endregion
|
|
8
117
|
export { plainUpsertCustomer };
|
|
9
118
|
//# sourceMappingURL=upsert-customer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-customer.d.cts","names":[],"sources":["../../src/actions/upsert-customer.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"upsert-customer.d.cts","names":[],"sources":["../../src/actions/upsert-customer.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6DxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,118 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/upsert-customer.d.ts
|
|
4
|
-
declare const PlainUpsertCustomerInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlainUpsertCustomerInput: z.ZodObject<{
|
|
5
|
+
onCreate: z.ZodObject<{
|
|
6
|
+
email: z.ZodObject<{
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
isVerified: z.ZodBoolean;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
fullName: z.ZodString;
|
|
11
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
12
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
tenantIdentifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
external_id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
|
+
customerGroupIdentifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
external_id: z.ZodOptional<z.ZodString>;
|
|
19
|
+
customerGroupId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
customerGroupKey: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
onUpdate: z.ZodObject<{
|
|
24
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
email: z.ZodString;
|
|
26
|
+
isVerified: z.ZodBoolean;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
fullName: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
value: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
shortName: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
value: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
externalId: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
value: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
identifier: z.ZodObject<{
|
|
39
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
declare const PlainUpsertCustomerOutput: z.ZodObject<{
|
|
45
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
code: z.ZodNullable<z.ZodString>;
|
|
47
|
+
fields: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
48
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
49
|
+
VALIDATION: "VALIDATION";
|
|
50
|
+
REQUIRED: "REQUIRED";
|
|
51
|
+
NOT_FOUND: "NOT_FOUND";
|
|
52
|
+
}>>;
|
|
53
|
+
field: z.ZodNullable<z.ZodString>;
|
|
54
|
+
message: z.ZodNullable<z.ZodString>;
|
|
55
|
+
}, z.core.$loose>>>;
|
|
56
|
+
message: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
result: z.ZodNullable<z.ZodEnum<{
|
|
59
|
+
CREATED: "CREATED";
|
|
60
|
+
UPDATED: "UPDATED";
|
|
61
|
+
NOOP: "NOOP";
|
|
62
|
+
}>>;
|
|
63
|
+
customer: z.ZodNullable<z.ZodObject<{
|
|
64
|
+
id: z.ZodNullable<z.ZodString>;
|
|
65
|
+
email: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
email: z.ZodNullable<z.ZodString>;
|
|
67
|
+
isVerified: z.ZodNullable<z.ZodBoolean>;
|
|
68
|
+
}, z.core.$loose>>;
|
|
69
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
70
|
+
shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
|
+
}, z.core.$loose>;
|
|
74
|
+
declare const plainUpsertCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
75
|
+
onCreate: {
|
|
76
|
+
email: {
|
|
77
|
+
email: string;
|
|
78
|
+
isVerified: boolean;
|
|
79
|
+
};
|
|
80
|
+
fullName: string;
|
|
81
|
+
shortName?: string | undefined;
|
|
82
|
+
externalId?: string | undefined;
|
|
83
|
+
tenantIdentifiers?: {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
tenantId?: string | undefined;
|
|
86
|
+
external_id?: string | undefined;
|
|
87
|
+
}[] | undefined;
|
|
88
|
+
customerGroupIdentifiers?: {
|
|
89
|
+
[x: string]: unknown;
|
|
90
|
+
external_id?: string | undefined;
|
|
91
|
+
customerGroupId?: string | undefined;
|
|
92
|
+
customerGroupKey?: string | undefined;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
};
|
|
95
|
+
onUpdate: {
|
|
96
|
+
email?: {
|
|
97
|
+
email: string;
|
|
98
|
+
isVerified: boolean;
|
|
99
|
+
} | undefined;
|
|
100
|
+
fullName?: {
|
|
101
|
+
value: string;
|
|
102
|
+
} | undefined;
|
|
103
|
+
shortName?: {
|
|
104
|
+
value?: string | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
externalId?: {
|
|
107
|
+
value?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
};
|
|
110
|
+
identifier: {
|
|
111
|
+
customerId?: string | undefined;
|
|
112
|
+
externalId?: string | undefined;
|
|
113
|
+
emailAddress?: string | undefined;
|
|
114
|
+
};
|
|
115
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
116
|
//#endregion
|
|
8
117
|
export { plainUpsertCustomer };
|
|
9
118
|
//# sourceMappingURL=upsert-customer.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-customer.d.mts","names":[],"sources":["../../src/actions/upsert-customer.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"upsert-customer.d.mts","names":[],"sources":["../../src/actions/upsert-customer.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6DxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
|