UNPKG

attio-js

Version:

Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.

897 lines 45.7 kB
"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.PatchV2TasksTaskIdRequestBody$ = exports.PatchV2TasksTaskIdRequestBody$outboundSchema = exports.PatchV2TasksTaskIdRequestBody$inboundSchema = exports.PatchV2TasksTaskIdData$ = exports.PatchV2TasksTaskIdData$outboundSchema = exports.PatchV2TasksTaskIdData$inboundSchema = exports.PatchV2TasksTaskIdAssigneeUnion$ = exports.PatchV2TasksTaskIdAssigneeUnion$outboundSchema = exports.PatchV2TasksTaskIdAssigneeUnion$inboundSchema = exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$ = exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema = exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$inboundSchema = exports.PatchV2TasksTaskIdReferencedActorType$ = exports.PatchV2TasksTaskIdReferencedActorType$outboundSchema = exports.PatchV2TasksTaskIdReferencedActorType$inboundSchema = exports.PatchV2TasksTaskIdAssignee$ = exports.PatchV2TasksTaskIdAssignee$outboundSchema = exports.PatchV2TasksTaskIdAssignee$inboundSchema = exports.PatchV2TasksTaskIdLinkedRecordUnion$ = exports.PatchV2TasksTaskIdLinkedRecordUnion$outboundSchema = exports.PatchV2TasksTaskIdLinkedRecordUnion$inboundSchema = exports.PatchV2TasksTaskIdLinkedRecord1$ = exports.PatchV2TasksTaskIdLinkedRecord1$outboundSchema = exports.PatchV2TasksTaskIdLinkedRecord1$inboundSchema = exports.PatchV2TasksTaskIdLinkedRecord2$ = exports.PatchV2TasksTaskIdLinkedRecord2$outboundSchema = exports.PatchV2TasksTaskIdLinkedRecord2$inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$ = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$ = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$ = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$ = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$ = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$inboundSchema = exports.PatchV2TasksTaskIdCountryCode$ = exports.PatchV2TasksTaskIdCountryCode$outboundSchema = exports.PatchV2TasksTaskIdCountryCode$inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$ = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$inboundSchema = exports.PatchV2TasksTaskIdReferencedActorType = exports.PatchV2TasksTaskIdCountryCode = void 0; exports.PatchV2TasksTaskIdResponse$ = exports.PatchV2TasksTaskIdResponse$outboundSchema = exports.PatchV2TasksTaskIdResponse$inboundSchema = exports.PatchV2TasksTaskIdRequest$ = exports.PatchV2TasksTaskIdRequest$outboundSchema = exports.PatchV2TasksTaskIdRequest$inboundSchema = void 0; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5ToJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5ToJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5FromJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5FromJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4ToJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4ToJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4FromJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4FromJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3ToJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3ToJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3FromJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3FromJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2ToJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2ToJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2FromJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2FromJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1ToJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1ToJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1FromJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1FromJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnionToJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnionToJSON; exports.patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnionFromJSON = patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnionFromJSON; exports.patchV2TasksTaskIdLinkedRecord2ToJSON = patchV2TasksTaskIdLinkedRecord2ToJSON; exports.patchV2TasksTaskIdLinkedRecord2FromJSON = patchV2TasksTaskIdLinkedRecord2FromJSON; exports.patchV2TasksTaskIdLinkedRecord1ToJSON = patchV2TasksTaskIdLinkedRecord1ToJSON; exports.patchV2TasksTaskIdLinkedRecord1FromJSON = patchV2TasksTaskIdLinkedRecord1FromJSON; exports.patchV2TasksTaskIdLinkedRecordUnionToJSON = patchV2TasksTaskIdLinkedRecordUnionToJSON; exports.patchV2TasksTaskIdLinkedRecordUnionFromJSON = patchV2TasksTaskIdLinkedRecordUnionFromJSON; exports.patchV2TasksTaskIdAssigneeToJSON = patchV2TasksTaskIdAssigneeToJSON; exports.patchV2TasksTaskIdAssigneeFromJSON = patchV2TasksTaskIdAssigneeFromJSON; exports.patchV2TasksTaskIdAssigneeWorkspaceMemberToJSON = patchV2TasksTaskIdAssigneeWorkspaceMemberToJSON; exports.patchV2TasksTaskIdAssigneeWorkspaceMemberFromJSON = patchV2TasksTaskIdAssigneeWorkspaceMemberFromJSON; exports.patchV2TasksTaskIdAssigneeUnionToJSON = patchV2TasksTaskIdAssigneeUnionToJSON; exports.patchV2TasksTaskIdAssigneeUnionFromJSON = patchV2TasksTaskIdAssigneeUnionFromJSON; exports.patchV2TasksTaskIdDataToJSON = patchV2TasksTaskIdDataToJSON; exports.patchV2TasksTaskIdDataFromJSON = patchV2TasksTaskIdDataFromJSON; exports.patchV2TasksTaskIdRequestBodyToJSON = patchV2TasksTaskIdRequestBodyToJSON; exports.patchV2TasksTaskIdRequestBodyFromJSON = patchV2TasksTaskIdRequestBodyFromJSON; exports.patchV2TasksTaskIdRequestToJSON = patchV2TasksTaskIdRequestToJSON; exports.patchV2TasksTaskIdRequestFromJSON = patchV2TasksTaskIdRequestFromJSON; exports.patchV2TasksTaskIdResponseToJSON = patchV2TasksTaskIdResponseToJSON; exports.patchV2TasksTaskIdResponseFromJSON = patchV2TasksTaskIdResponseFromJSON; const z = __importStar(require("zod")); const primitives_js_1 = require("../../lib/primitives.js"); const schemas_js_1 = require("../../lib/schemas.js"); const task_js_1 = require("../components/task.js"); /** * The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to. */ exports.PatchV2TasksTaskIdCountryCode = { Af: "AF", Ax: "AX", Al: "AL", Dz: "DZ", As: "AS", Ad: "AD", Ao: "AO", Ai: "AI", Aq: "AQ", Ag: "AG", Ar: "AR", Am: "AM", Aw: "AW", Au: "AU", At: "AT", Az: "AZ", Bs: "BS", Bh: "BH", Bd: "BD", Bb: "BB", By: "BY", Be: "BE", Bz: "BZ", Bj: "BJ", Bm: "BM", Bt: "BT", Bo: "BO", Ba: "BA", Bw: "BW", Bv: "BV", Br: "BR", Io: "IO", Bn: "BN", Bg: "BG", Bf: "BF", Bi: "BI", Kh: "KH", Cm: "CM", Ca: "CA", Cv: "CV", Ky: "KY", Cf: "CF", Td: "TD", Cl: "CL", Cn: "CN", Cx: "CX", Cc: "CC", Co: "CO", Km: "KM", Cg: "CG", Cd: "CD", Ck: "CK", Cr: "CR", Ci: "CI", Hr: "HR", Cu: "CU", Cw: "CW", Cy: "CY", Cz: "CZ", Dk: "DK", Dj: "DJ", Dm: "DM", Do: "DO", Ec: "EC", Eg: "EG", Sv: "SV", Gq: "GQ", Er: "ER", Ee: "EE", Et: "ET", Fk: "FK", Fo: "FO", Fj: "FJ", Fi: "FI", Fr: "FR", Gf: "GF", Pf: "PF", Tf: "TF", Ga: "GA", Gm: "GM", Ge: "GE", De: "DE", Gh: "GH", Gi: "GI", Gr: "GR", Gl: "GL", Gd: "GD", Gp: "GP", Gu: "GU", Gt: "GT", Gg: "GG", Gn: "GN", Gw: "GW", Gy: "GY", Ht: "HT", Hm: "HM", Va: "VA", Hn: "HN", Hk: "HK", Hu: "HU", Is: "IS", In: "IN", Id: "ID", Ir: "IR", Iq: "IQ", Ie: "IE", Im: "IM", Il: "IL", It: "IT", Jm: "JM", Jp: "JP", Je: "JE", Jo: "JO", Kz: "KZ", Ke: "KE", Ki: "KI", Kr: "KR", Kw: "KW", Kg: "KG", La: "LA", Lv: "LV", Lb: "LB", Ls: "LS", Lr: "LR", Ly: "LY", Li: "LI", Lt: "LT", Lu: "LU", Mo: "MO", Mk: "MK", Mg: "MG", Mw: "MW", My: "MY", Mv: "MV", Ml: "ML", Mt: "MT", Mh: "MH", Mq: "MQ", Mr: "MR", Mu: "MU", Yt: "YT", Mx: "MX", Fm: "FM", Md: "MD", Mc: "MC", Mn: "MN", Me: "ME", Ms: "MS", Ma: "MA", Mz: "MZ", Mm: "MM", Na: "NA", Nr: "NR", Np: "NP", Nl: "NL", An: "AN", Nc: "NC", Nz: "NZ", Ni: "NI", Ne: "NE", Ng: "NG", Nu: "NU", Nf: "NF", Mp: "MP", No: "NO", Om: "OM", Pk: "PK", Pw: "PW", Ps: "PS", Pa: "PA", Pg: "PG", Py: "PY", Pe: "PE", Ph: "PH", Pn: "PN", Pl: "PL", Pt: "PT", Pr: "PR", Qa: "QA", Re: "RE", Ro: "RO", Ru: "RU", Rw: "RW", Bl: "BL", Sh: "SH", Kn: "KN", Lc: "LC", Mf: "MF", Pm: "PM", Vc: "VC", Ws: "WS", Sm: "SM", St: "ST", Sa: "SA", Sn: "SN", Ss: "SS", Rs: "RS", Sc: "SC", Sl: "SL", Sg: "SG", Sk: "SK", Si: "SI", Sb: "SB", So: "SO", Za: "ZA", Gs: "GS", Es: "ES", Lk: "LK", Sd: "SD", Sr: "SR", Sj: "SJ", Sz: "SZ", Se: "SE", Ch: "CH", Sy: "SY", Tw: "TW", Tj: "TJ", Tz: "TZ", Th: "TH", Tl: "TL", Tg: "TG", Tk: "TK", To: "TO", Tt: "TT", Tn: "TN", Tr: "TR", Tm: "TM", Tc: "TC", Tv: "TV", Ug: "UG", Ua: "UA", Ae: "AE", Gb: "GB", Us: "US", Um: "UM", Uy: "UY", Uz: "UZ", Vu: "VU", Ve: "VE", Vn: "VN", Vg: "VG", Vi: "VI", Wf: "WF", Eh: "EH", Ye: "YE", Zm: "ZM", Zw: "ZW", }; /** * The actor type of the task assignee. Only `workspace-member` actors can be assigned to tasks. [Read more information on actor types here](/docs/actors). */ exports.PatchV2TasksTaskIdReferencedActorType = { WorkspaceMember: "workspace-member", }; /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$inboundSchema = z.object({ value: z.string().optional(), }); /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema = z.object({ value: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$; (function (PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$) { /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$inboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$.inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$.outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema; })(PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$ || (exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$ = PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$ = {})); function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5ToJSON(patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5) { return JSON.stringify(exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema.parse(patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5)); } function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdCountryCode$inboundSchema = z.nativeEnum(exports.PatchV2TasksTaskIdCountryCode); /** @internal */ exports.PatchV2TasksTaskIdCountryCode$outboundSchema = exports.PatchV2TasksTaskIdCountryCode$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdCountryCode$; (function (PatchV2TasksTaskIdCountryCode$) { /** @deprecated use `PatchV2TasksTaskIdCountryCode$inboundSchema` instead. */ PatchV2TasksTaskIdCountryCode$.inboundSchema = exports.PatchV2TasksTaskIdCountryCode$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdCountryCode$outboundSchema` instead. */ PatchV2TasksTaskIdCountryCode$.outboundSchema = exports.PatchV2TasksTaskIdCountryCode$outboundSchema; })(PatchV2TasksTaskIdCountryCode$ || (exports.PatchV2TasksTaskIdCountryCode$ = PatchV2TasksTaskIdCountryCode$ = {})); /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$inboundSchema = z.object({ original_phone_number: z.string().optional(), country_code: z.nullable(exports.PatchV2TasksTaskIdCountryCode$inboundSchema) .optional(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "original_phone_number": "originalPhoneNumber", "country_code": "countryCode", }); }); /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema = z.object({ originalPhoneNumber: z.string().optional(), countryCode: z.nullable(exports.PatchV2TasksTaskIdCountryCode$outboundSchema) .optional(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { originalPhoneNumber: "original_phone_number", countryCode: "country_code", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$; (function (PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$) { /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$inboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$.inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$.outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema; })(PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$ || (exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$ = PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$ = {})); function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4ToJSON(patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4) { return JSON.stringify(exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema.parse(patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4)); } function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$inboundSchema = z.object({ value: z.number().optional(), }); /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema = z.object({ value: z.number().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$; (function (PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$) { /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$inboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$.inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$.outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema; })(PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$ || (exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$ = PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$ = {})); function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3ToJSON(patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3) { return JSON.stringify(exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema.parse(patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3)); } function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$inboundSchema = z.object({ email_address: z.string().optional(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "email_address": "emailAddress", }); }); /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema = z.object({ emailAddress: z.string().optional(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { emailAddress: "email_address", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$; (function (PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$) { /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$inboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$.inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$.outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema; })(PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$ || (exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$ = PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$ = {})); function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2ToJSON(patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2) { return JSON.stringify(exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema.parse(patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2)); } function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$inboundSchema = z.object({ domain: z.string().optional(), }); /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema = z.object({ domain: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$; (function (PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$) { /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$inboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$.inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$.outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema; })(PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$ || (exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$ = PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$ = {})); function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1ToJSON(patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1) { return JSON.stringify(exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema.parse(patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1)); } function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$inboundSchema = z.union([ z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$inboundSchema), ]); /** @internal */ exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$outboundSchema = z.union([ z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$; (function (PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$) { /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$inboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$.inboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$outboundSchema` instead. */ PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$.outboundSchema = exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$outboundSchema; })(PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$ || (exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$ = PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$ = {})); function patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnionToJSON(patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion) { return JSON.stringify(exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$outboundSchema.parse(patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion)); } function patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnionFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdLinkedRecord2$inboundSchema = z.object({ target_object: z.string(), "[slug_or_id_of_matching_attribute]": z.array(z.union([ z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$inboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "target_object": "targetObject", "[slug_or_id_of_matching_attribute]": "slugOrIdOfMatchingAttribute", }); }); /** @internal */ exports.PatchV2TasksTaskIdLinkedRecord2$outboundSchema = z.object({ targetObject: z.string(), slugOrIdOfMatchingAttribute: z.array(z.union([ z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.remap)(v, { targetObject: "target_object", slugOrIdOfMatchingAttribute: "[slug_or_id_of_matching_attribute]", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdLinkedRecord2$; (function (PatchV2TasksTaskIdLinkedRecord2$) { /** @deprecated use `PatchV2TasksTaskIdLinkedRecord2$inboundSchema` instead. */ PatchV2TasksTaskIdLinkedRecord2$.inboundSchema = exports.PatchV2TasksTaskIdLinkedRecord2$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdLinkedRecord2$outboundSchema` instead. */ PatchV2TasksTaskIdLinkedRecord2$.outboundSchema = exports.PatchV2TasksTaskIdLinkedRecord2$outboundSchema; })(PatchV2TasksTaskIdLinkedRecord2$ || (exports.PatchV2TasksTaskIdLinkedRecord2$ = PatchV2TasksTaskIdLinkedRecord2$ = {})); function patchV2TasksTaskIdLinkedRecord2ToJSON(patchV2TasksTaskIdLinkedRecord2) { return JSON.stringify(exports.PatchV2TasksTaskIdLinkedRecord2$outboundSchema.parse(patchV2TasksTaskIdLinkedRecord2)); } function patchV2TasksTaskIdLinkedRecord2FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdLinkedRecord2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdLinkedRecord2' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdLinkedRecord1$inboundSchema = z.object({ target_object: z.string(), target_record_id: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "target_object": "targetObject", "target_record_id": "targetRecordId", }); }); /** @internal */ exports.PatchV2TasksTaskIdLinkedRecord1$outboundSchema = z.object({ targetObject: z.string(), targetRecordId: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { targetObject: "target_object", targetRecordId: "target_record_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdLinkedRecord1$; (function (PatchV2TasksTaskIdLinkedRecord1$) { /** @deprecated use `PatchV2TasksTaskIdLinkedRecord1$inboundSchema` instead. */ PatchV2TasksTaskIdLinkedRecord1$.inboundSchema = exports.PatchV2TasksTaskIdLinkedRecord1$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdLinkedRecord1$outboundSchema` instead. */ PatchV2TasksTaskIdLinkedRecord1$.outboundSchema = exports.PatchV2TasksTaskIdLinkedRecord1$outboundSchema; })(PatchV2TasksTaskIdLinkedRecord1$ || (exports.PatchV2TasksTaskIdLinkedRecord1$ = PatchV2TasksTaskIdLinkedRecord1$ = {})); function patchV2TasksTaskIdLinkedRecord1ToJSON(patchV2TasksTaskIdLinkedRecord1) { return JSON.stringify(exports.PatchV2TasksTaskIdLinkedRecord1$outboundSchema.parse(patchV2TasksTaskIdLinkedRecord1)); } function patchV2TasksTaskIdLinkedRecord1FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdLinkedRecord1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdLinkedRecord1' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdLinkedRecordUnion$inboundSchema = z.union([ z.lazy(() => exports.PatchV2TasksTaskIdLinkedRecord1$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdLinkedRecord2$inboundSchema), ]); /** @internal */ exports.PatchV2TasksTaskIdLinkedRecordUnion$outboundSchema = z.union([ z.lazy(() => exports.PatchV2TasksTaskIdLinkedRecord1$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdLinkedRecord2$outboundSchema), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdLinkedRecordUnion$; (function (PatchV2TasksTaskIdLinkedRecordUnion$) { /** @deprecated use `PatchV2TasksTaskIdLinkedRecordUnion$inboundSchema` instead. */ PatchV2TasksTaskIdLinkedRecordUnion$.inboundSchema = exports.PatchV2TasksTaskIdLinkedRecordUnion$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdLinkedRecordUnion$outboundSchema` instead. */ PatchV2TasksTaskIdLinkedRecordUnion$.outboundSchema = exports.PatchV2TasksTaskIdLinkedRecordUnion$outboundSchema; })(PatchV2TasksTaskIdLinkedRecordUnion$ || (exports.PatchV2TasksTaskIdLinkedRecordUnion$ = PatchV2TasksTaskIdLinkedRecordUnion$ = {})); function patchV2TasksTaskIdLinkedRecordUnionToJSON(patchV2TasksTaskIdLinkedRecordUnion) { return JSON.stringify(exports.PatchV2TasksTaskIdLinkedRecordUnion$outboundSchema.parse(patchV2TasksTaskIdLinkedRecordUnion)); } function patchV2TasksTaskIdLinkedRecordUnionFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdLinkedRecordUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdLinkedRecordUnion' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdAssignee$inboundSchema = z.object({ workspace_member_email_address: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "workspace_member_email_address": "workspaceMemberEmailAddress", }); }); /** @internal */ exports.PatchV2TasksTaskIdAssignee$outboundSchema = z.object({ workspaceMemberEmailAddress: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { workspaceMemberEmailAddress: "workspace_member_email_address", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdAssignee$; (function (PatchV2TasksTaskIdAssignee$) { /** @deprecated use `PatchV2TasksTaskIdAssignee$inboundSchema` instead. */ PatchV2TasksTaskIdAssignee$.inboundSchema = exports.PatchV2TasksTaskIdAssignee$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdAssignee$outboundSchema` instead. */ PatchV2TasksTaskIdAssignee$.outboundSchema = exports.PatchV2TasksTaskIdAssignee$outboundSchema; })(PatchV2TasksTaskIdAssignee$ || (exports.PatchV2TasksTaskIdAssignee$ = PatchV2TasksTaskIdAssignee$ = {})); function patchV2TasksTaskIdAssigneeToJSON(patchV2TasksTaskIdAssignee) { return JSON.stringify(exports.PatchV2TasksTaskIdAssignee$outboundSchema.parse(patchV2TasksTaskIdAssignee)); } function patchV2TasksTaskIdAssigneeFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdAssignee$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdAssignee' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdReferencedActorType$inboundSchema = z.nativeEnum(exports.PatchV2TasksTaskIdReferencedActorType); /** @internal */ exports.PatchV2TasksTaskIdReferencedActorType$outboundSchema = exports.PatchV2TasksTaskIdReferencedActorType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdReferencedActorType$; (function (PatchV2TasksTaskIdReferencedActorType$) { /** @deprecated use `PatchV2TasksTaskIdReferencedActorType$inboundSchema` instead. */ PatchV2TasksTaskIdReferencedActorType$.inboundSchema = exports.PatchV2TasksTaskIdReferencedActorType$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdReferencedActorType$outboundSchema` instead. */ PatchV2TasksTaskIdReferencedActorType$.outboundSchema = exports.PatchV2TasksTaskIdReferencedActorType$outboundSchema; })(PatchV2TasksTaskIdReferencedActorType$ || (exports.PatchV2TasksTaskIdReferencedActorType$ = PatchV2TasksTaskIdReferencedActorType$ = {})); /** @internal */ exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$inboundSchema = z.object({ referenced_actor_type: exports.PatchV2TasksTaskIdReferencedActorType$inboundSchema, referenced_actor_id: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "referenced_actor_type": "referencedActorType", "referenced_actor_id": "referencedActorId", }); }); /** @internal */ exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema = z.object({ referencedActorType: exports.PatchV2TasksTaskIdReferencedActorType$outboundSchema, referencedActorId: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { referencedActorType: "referenced_actor_type", referencedActorId: "referenced_actor_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdAssigneeWorkspaceMember$; (function (PatchV2TasksTaskIdAssigneeWorkspaceMember$) { /** @deprecated use `PatchV2TasksTaskIdAssigneeWorkspaceMember$inboundSchema` instead. */ PatchV2TasksTaskIdAssigneeWorkspaceMember$.inboundSchema = exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema` instead. */ PatchV2TasksTaskIdAssigneeWorkspaceMember$.outboundSchema = exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema; })(PatchV2TasksTaskIdAssigneeWorkspaceMember$ || (exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$ = PatchV2TasksTaskIdAssigneeWorkspaceMember$ = {})); function patchV2TasksTaskIdAssigneeWorkspaceMemberToJSON(patchV2TasksTaskIdAssigneeWorkspaceMember) { return JSON.stringify(exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema.parse(patchV2TasksTaskIdAssigneeWorkspaceMember)); } function patchV2TasksTaskIdAssigneeWorkspaceMemberFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdAssigneeWorkspaceMember' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdAssigneeUnion$inboundSchema = z.union([ z.lazy(() => exports.PatchV2TasksTaskIdAssignee$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$inboundSchema), ]); /** @internal */ exports.PatchV2TasksTaskIdAssigneeUnion$outboundSchema = z.union([ z.lazy(() => exports.PatchV2TasksTaskIdAssignee$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdAssigneeUnion$; (function (PatchV2TasksTaskIdAssigneeUnion$) { /** @deprecated use `PatchV2TasksTaskIdAssigneeUnion$inboundSchema` instead. */ PatchV2TasksTaskIdAssigneeUnion$.inboundSchema = exports.PatchV2TasksTaskIdAssigneeUnion$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdAssigneeUnion$outboundSchema` instead. */ PatchV2TasksTaskIdAssigneeUnion$.outboundSchema = exports.PatchV2TasksTaskIdAssigneeUnion$outboundSchema; })(PatchV2TasksTaskIdAssigneeUnion$ || (exports.PatchV2TasksTaskIdAssigneeUnion$ = PatchV2TasksTaskIdAssigneeUnion$ = {})); function patchV2TasksTaskIdAssigneeUnionToJSON(patchV2TasksTaskIdAssigneeUnion) { return JSON.stringify(exports.PatchV2TasksTaskIdAssigneeUnion$outboundSchema.parse(patchV2TasksTaskIdAssigneeUnion)); } function patchV2TasksTaskIdAssigneeUnionFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdAssigneeUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdAssigneeUnion' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdData$inboundSchema = z.object({ deadline_at: z.nullable(z.string()).optional(), is_completed: z.boolean().optional(), linked_records: z.array(z.union([ z.lazy(() => exports.PatchV2TasksTaskIdLinkedRecord1$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdLinkedRecord2$inboundSchema), ])).optional(), assignees: z.array(z.union([ z.lazy(() => exports.PatchV2TasksTaskIdAssignee$inboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$inboundSchema), ])).optional(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "deadline_at": "deadlineAt", "is_completed": "isCompleted", "linked_records": "linkedRecords", }); }); /** @internal */ exports.PatchV2TasksTaskIdData$outboundSchema = z.object({ deadlineAt: z.nullable(z.string()).optional(), isCompleted: z.boolean().optional(), linkedRecords: z.array(z.union([ z.lazy(() => exports.PatchV2TasksTaskIdLinkedRecord1$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdLinkedRecord2$outboundSchema), ])).optional(), assignees: z.array(z.union([ z.lazy(() => exports.PatchV2TasksTaskIdAssignee$outboundSchema), z.lazy(() => exports.PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema), ])).optional(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { deadlineAt: "deadline_at", isCompleted: "is_completed", linkedRecords: "linked_records", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdData$; (function (PatchV2TasksTaskIdData$) { /** @deprecated use `PatchV2TasksTaskIdData$inboundSchema` instead. */ PatchV2TasksTaskIdData$.inboundSchema = exports.PatchV2TasksTaskIdData$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdData$outboundSchema` instead. */ PatchV2TasksTaskIdData$.outboundSchema = exports.PatchV2TasksTaskIdData$outboundSchema; })(PatchV2TasksTaskIdData$ || (exports.PatchV2TasksTaskIdData$ = PatchV2TasksTaskIdData$ = {})); function patchV2TasksTaskIdDataToJSON(patchV2TasksTaskIdData) { return JSON.stringify(exports.PatchV2TasksTaskIdData$outboundSchema.parse(patchV2TasksTaskIdData)); } function patchV2TasksTaskIdDataFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdData' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdRequestBody$inboundSchema = z.object({ data: z.lazy(() => exports.PatchV2TasksTaskIdData$inboundSchema), }); /** @internal */ exports.PatchV2TasksTaskIdRequestBody$outboundSchema = z.object({ data: z.lazy(() => exports.PatchV2TasksTaskIdData$outboundSchema), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdRequestBody$; (function (PatchV2TasksTaskIdRequestBody$) { /** @deprecated use `PatchV2TasksTaskIdRequestBody$inboundSchema` instead. */ PatchV2TasksTaskIdRequestBody$.inboundSchema = exports.PatchV2TasksTaskIdRequestBody$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdRequestBody$outboundSchema` instead. */ PatchV2TasksTaskIdRequestBody$.outboundSchema = exports.PatchV2TasksTaskIdRequestBody$outboundSchema; })(PatchV2TasksTaskIdRequestBody$ || (exports.PatchV2TasksTaskIdRequestBody$ = PatchV2TasksTaskIdRequestBody$ = {})); function patchV2TasksTaskIdRequestBodyToJSON(patchV2TasksTaskIdRequestBody) { return JSON.stringify(exports.PatchV2TasksTaskIdRequestBody$outboundSchema.parse(patchV2TasksTaskIdRequestBody)); } function patchV2TasksTaskIdRequestBodyFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdRequestBody' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdRequest$inboundSchema = z.object({ task_id: z.string(), RequestBody: z.lazy(() => exports.PatchV2TasksTaskIdRequestBody$inboundSchema), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "task_id": "taskId", "RequestBody": "requestBody", }); }); /** @internal */ exports.PatchV2TasksTaskIdRequest$outboundSchema = z.object({ taskId: z.string(), requestBody: z.lazy(() => exports.PatchV2TasksTaskIdRequestBody$outboundSchema), }).transform((v) => { return (0, primitives_js_1.remap)(v, { taskId: "task_id", requestBody: "RequestBody", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdRequest$; (function (PatchV2TasksTaskIdRequest$) { /** @deprecated use `PatchV2TasksTaskIdRequest$inboundSchema` instead. */ PatchV2TasksTaskIdRequest$.inboundSchema = exports.PatchV2TasksTaskIdRequest$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdRequest$outboundSchema` instead. */ PatchV2TasksTaskIdRequest$.outboundSchema = exports.PatchV2TasksTaskIdRequest$outboundSchema; })(PatchV2TasksTaskIdRequest$ || (exports.PatchV2TasksTaskIdRequest$ = PatchV2TasksTaskIdRequest$ = {})); function patchV2TasksTaskIdRequestToJSON(patchV2TasksTaskIdRequest) { return JSON.stringify(exports.PatchV2TasksTaskIdRequest$outboundSchema.parse(patchV2TasksTaskIdRequest)); } function patchV2TasksTaskIdRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdRequest' from JSON`); } /** @internal */ exports.PatchV2TasksTaskIdResponse$inboundSchema = z.object({ data: task_js_1.Task$inboundSchema, }); /** @internal */ exports.PatchV2TasksTaskIdResponse$outboundSchema = z.object({ data: task_js_1.Task$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2TasksTaskIdResponse$; (function (PatchV2TasksTaskIdResponse$) { /** @deprecated use `PatchV2TasksTaskIdResponse$inboundSchema` instead. */ PatchV2TasksTaskIdResponse$.inboundSchema = exports.PatchV2TasksTaskIdResponse$inboundSchema; /** @deprecated use `PatchV2TasksTaskIdResponse$outboundSchema` instead. */ PatchV2TasksTaskIdResponse$.outboundSchema = exports.PatchV2TasksTaskIdResponse$outboundSchema; })(PatchV2TasksTaskIdResponse$ || (exports.PatchV2TasksTaskIdResponse$ = PatchV2TasksTaskIdResponse$ = {})); function patchV2TasksTaskIdResponseToJSON(patchV2TasksTaskIdResponse) { return JSON.stringify(exports.PatchV2TasksTaskIdResponse$outboundSchema.parse(patchV2TasksTaskIdResponse)); } function patchV2TasksTaskIdResponseFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2TasksTaskIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2TasksTaskIdResponse' from JSON`); } //# sourceMappingURL=patchv2taskstaskid.js.map