attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
1,354 lines • 82.7 kB
JavaScript
"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.AttributeTypeRating$inboundSchema = exports.OutputValueSelect1$ = exports.OutputValueSelect1$outboundSchema = exports.OutputValueSelect1$inboundSchema = exports.AttributeTypeSelect1$ = exports.AttributeTypeSelect1$outboundSchema = exports.AttributeTypeSelect1$inboundSchema = exports.OutputValueSelect2$ = exports.OutputValueSelect2$outboundSchema = exports.OutputValueSelect2$inboundSchema = exports.AttributeTypeSelect2$ = exports.AttributeTypeSelect2$outboundSchema = exports.AttributeTypeSelect2$inboundSchema = exports.OutputValueText$ = exports.OutputValueText$outboundSchema = exports.OutputValueText$inboundSchema = exports.AttributeTypeText$ = exports.AttributeTypeText$outboundSchema = exports.AttributeTypeText$inboundSchema = exports.OutputValueTimestamp$ = exports.OutputValueTimestamp$outboundSchema = exports.OutputValueTimestamp$inboundSchema = exports.AttributeTypeTimestamp$ = exports.AttributeTypeTimestamp$outboundSchema = exports.AttributeTypeTimestamp$inboundSchema = exports.AttributeTypeActorReference = exports.OutputValueReferencedActorType = exports.AttributeTypeCheckbox = exports.AttributeTypeCurrency = exports.CurrencyCode = exports.AttributeTypeDate = exports.AttributeTypeDomain = exports.AttributeTypeEmailAddress = exports.AttributeTypeRecordReference = exports.AttributeTypeInteraction = exports.OutputValueType = exports.OutputValueInteractionType = exports.AttributeTypeLocation = exports.OutputValueCountryCode1 = exports.AttributeTypeNumber = exports.AttributeTypePersonalName = exports.AttributeTypePhoneNumber = exports.OutputValueCountryCode2 = exports.AttributeTypeStatus1 = exports.AttributeTypeStatus2 = exports.AttributeTypeRating = exports.AttributeTypeSelect1 = exports.AttributeTypeSelect2 = exports.AttributeTypeText = exports.AttributeTypeTimestamp = void 0;
exports.OutputValueInteractionType$ = exports.OutputValueInteractionType$outboundSchema = exports.OutputValueInteractionType$inboundSchema = exports.OutputValueLocation$ = exports.OutputValueLocation$outboundSchema = exports.OutputValueLocation$inboundSchema = exports.AttributeTypeLocation$ = exports.AttributeTypeLocation$outboundSchema = exports.AttributeTypeLocation$inboundSchema = exports.OutputValueCountryCode1$ = exports.OutputValueCountryCode1$outboundSchema = exports.OutputValueCountryCode1$inboundSchema = exports.OutputValueNumber$ = exports.OutputValueNumber$outboundSchema = exports.OutputValueNumber$inboundSchema = exports.AttributeTypeNumber$ = exports.AttributeTypeNumber$outboundSchema = exports.AttributeTypeNumber$inboundSchema = exports.OutputValuePersonalName$ = exports.OutputValuePersonalName$outboundSchema = exports.OutputValuePersonalName$inboundSchema = exports.AttributeTypePersonalName$ = exports.AttributeTypePersonalName$outboundSchema = exports.AttributeTypePersonalName$inboundSchema = exports.OutputValuePhoneNumber$ = exports.OutputValuePhoneNumber$outboundSchema = exports.OutputValuePhoneNumber$inboundSchema = exports.AttributeTypePhoneNumber$ = exports.AttributeTypePhoneNumber$outboundSchema = exports.AttributeTypePhoneNumber$inboundSchema = exports.OutputValueCountryCode2$ = exports.OutputValueCountryCode2$outboundSchema = exports.OutputValueCountryCode2$inboundSchema = exports.OutputValueStatus1$ = exports.OutputValueStatus1$outboundSchema = exports.OutputValueStatus1$inboundSchema = exports.AttributeTypeStatus1$ = exports.AttributeTypeStatus1$outboundSchema = exports.AttributeTypeStatus1$inboundSchema = exports.OutputValueStatus2$ = exports.OutputValueStatus2$outboundSchema = exports.OutputValueStatus2$inboundSchema = exports.AttributeTypeStatus2$ = exports.AttributeTypeStatus2$outboundSchema = exports.AttributeTypeStatus2$inboundSchema = exports.OutputValueRating$ = exports.OutputValueRating$outboundSchema = exports.OutputValueRating$inboundSchema = exports.AttributeTypeRating$ = exports.AttributeTypeRating$outboundSchema = void 0;
exports.OutputValueCheckbox$outboundSchema = exports.OutputValueCheckbox$inboundSchema = exports.AttributeTypeCheckbox$ = exports.AttributeTypeCheckbox$outboundSchema = exports.AttributeTypeCheckbox$inboundSchema = exports.OutputValueCurrency$ = exports.OutputValueCurrency$outboundSchema = exports.OutputValueCurrency$inboundSchema = exports.AttributeTypeCurrency$ = exports.AttributeTypeCurrency$outboundSchema = exports.AttributeTypeCurrency$inboundSchema = exports.CurrencyCode$ = exports.CurrencyCode$outboundSchema = exports.CurrencyCode$inboundSchema = exports.OutputValueDate$ = exports.OutputValueDate$outboundSchema = exports.OutputValueDate$inboundSchema = exports.AttributeTypeDate$ = exports.AttributeTypeDate$outboundSchema = exports.AttributeTypeDate$inboundSchema = exports.OutputValueDomain$ = exports.OutputValueDomain$outboundSchema = exports.OutputValueDomain$inboundSchema = exports.AttributeTypeDomain$ = exports.AttributeTypeDomain$outboundSchema = exports.AttributeTypeDomain$inboundSchema = exports.OutputValueEmailAddress$ = exports.OutputValueEmailAddress$outboundSchema = exports.OutputValueEmailAddress$inboundSchema = exports.AttributeTypeEmailAddress$ = exports.AttributeTypeEmailAddress$outboundSchema = exports.AttributeTypeEmailAddress$inboundSchema = exports.OutputValueRecordReference$ = exports.OutputValueRecordReference$outboundSchema = exports.OutputValueRecordReference$inboundSchema = exports.AttributeTypeRecordReference$ = exports.AttributeTypeRecordReference$outboundSchema = exports.AttributeTypeRecordReference$inboundSchema = exports.OutputValueInteraction$ = exports.OutputValueInteraction$outboundSchema = exports.OutputValueInteraction$inboundSchema = exports.AttributeTypeInteraction$ = exports.AttributeTypeInteraction$outboundSchema = exports.AttributeTypeInteraction$inboundSchema = exports.OutputValueOwnerActor$ = exports.OutputValueOwnerActor$outboundSchema = exports.OutputValueOwnerActor$inboundSchema = exports.OutputValueType$ = exports.OutputValueType$outboundSchema = exports.OutputValueType$inboundSchema = void 0;
exports.OutputValue$ = exports.OutputValue$outboundSchema = exports.OutputValue$inboundSchema = exports.OutputValueActorReference$ = exports.OutputValueActorReference$outboundSchema = exports.OutputValueActorReference$inboundSchema = exports.AttributeTypeActorReference$ = exports.AttributeTypeActorReference$outboundSchema = exports.AttributeTypeActorReference$inboundSchema = exports.OutputValueReferencedActorType$ = exports.OutputValueReferencedActorType$outboundSchema = exports.OutputValueReferencedActorType$inboundSchema = exports.OutputValueCheckbox$ = void 0;
exports.outputValueTimestampToJSON = outputValueTimestampToJSON;
exports.outputValueTimestampFromJSON = outputValueTimestampFromJSON;
exports.outputValueTextToJSON = outputValueTextToJSON;
exports.outputValueTextFromJSON = outputValueTextFromJSON;
exports.outputValueSelect2ToJSON = outputValueSelect2ToJSON;
exports.outputValueSelect2FromJSON = outputValueSelect2FromJSON;
exports.outputValueSelect1ToJSON = outputValueSelect1ToJSON;
exports.outputValueSelect1FromJSON = outputValueSelect1FromJSON;
exports.outputValueRatingToJSON = outputValueRatingToJSON;
exports.outputValueRatingFromJSON = outputValueRatingFromJSON;
exports.outputValueStatus2ToJSON = outputValueStatus2ToJSON;
exports.outputValueStatus2FromJSON = outputValueStatus2FromJSON;
exports.outputValueStatus1ToJSON = outputValueStatus1ToJSON;
exports.outputValueStatus1FromJSON = outputValueStatus1FromJSON;
exports.outputValuePhoneNumberToJSON = outputValuePhoneNumberToJSON;
exports.outputValuePhoneNumberFromJSON = outputValuePhoneNumberFromJSON;
exports.outputValuePersonalNameToJSON = outputValuePersonalNameToJSON;
exports.outputValuePersonalNameFromJSON = outputValuePersonalNameFromJSON;
exports.outputValueNumberToJSON = outputValueNumberToJSON;
exports.outputValueNumberFromJSON = outputValueNumberFromJSON;
exports.outputValueLocationToJSON = outputValueLocationToJSON;
exports.outputValueLocationFromJSON = outputValueLocationFromJSON;
exports.outputValueOwnerActorToJSON = outputValueOwnerActorToJSON;
exports.outputValueOwnerActorFromJSON = outputValueOwnerActorFromJSON;
exports.outputValueInteractionToJSON = outputValueInteractionToJSON;
exports.outputValueInteractionFromJSON = outputValueInteractionFromJSON;
exports.outputValueRecordReferenceToJSON = outputValueRecordReferenceToJSON;
exports.outputValueRecordReferenceFromJSON = outputValueRecordReferenceFromJSON;
exports.outputValueEmailAddressToJSON = outputValueEmailAddressToJSON;
exports.outputValueEmailAddressFromJSON = outputValueEmailAddressFromJSON;
exports.outputValueDomainToJSON = outputValueDomainToJSON;
exports.outputValueDomainFromJSON = outputValueDomainFromJSON;
exports.outputValueDateToJSON = outputValueDateToJSON;
exports.outputValueDateFromJSON = outputValueDateFromJSON;
exports.outputValueCurrencyToJSON = outputValueCurrencyToJSON;
exports.outputValueCurrencyFromJSON = outputValueCurrencyFromJSON;
exports.outputValueCheckboxToJSON = outputValueCheckboxToJSON;
exports.outputValueCheckboxFromJSON = outputValueCheckboxFromJSON;
exports.outputValueActorReferenceToJSON = outputValueActorReferenceToJSON;
exports.outputValueActorReferenceFromJSON = outputValueActorReferenceFromJSON;
exports.outputValueToJSON = outputValueToJSON;
exports.outputValueFromJSON = outputValueFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const selectoption_js_1 = require("./selectoption.js");
const status_js_1 = require("./status.js");
/**
* The attribute type of the value.
*/
exports.AttributeTypeTimestamp = {
Timestamp: "timestamp",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeText = {
Text: "text",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeSelect2 = {
Select: "select",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeSelect1 = {
Select: "select",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeRating = {
Rating: "rating",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeStatus2 = {
Status: "status",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeStatus1 = {
Status: "status",
};
/**
* The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to.
*/
exports.OutputValueCountryCode2 = {
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 attribute type of the value.
*/
exports.AttributeTypePhoneNumber = {
PhoneNumber: "phone-number",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypePersonalName = {
PersonalName: "personal-name",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeNumber = {
Number: "number",
};
/**
* The ISO 3166-1 alpha-2 country code for the country this location is in.
*/
exports.OutputValueCountryCode1 = {
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 attribute type of the value.
*/
exports.AttributeTypeLocation = {
Location: "location",
};
/**
* The type of interaction e.g. calendar or email.
*/
exports.OutputValueInteractionType = {
CalendarEvent: "calendar-event",
Call: "call",
ChatThread: "chat-thread",
Email: "email",
InPersonMeeting: "in-person-meeting",
Meeting: "meeting",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
exports.OutputValueType = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeInteraction = {
Interaction: "interaction",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeRecordReference = {
RecordReference: "record-reference",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeEmailAddress = {
EmailAddress: "email-address",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeDomain = {
Domain: "domain",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeDate = {
Date: "date",
};
/**
* The ISO4217 currency code representing the currency that the value is stored in.
*/
exports.CurrencyCode = {
Aud: "AUD",
Brl: "BRL",
Bel: "BEL",
Cad: "CAD",
Cny: "CNY",
Cop: "COP",
Czk: "CZK",
Dkk: "DKK",
Eur: "EUR",
Hkd: "HKD",
Isk: "ISK",
Inr: "INR",
Ils: "ILS",
Jpy: "JPY",
Krw: "KRW",
Myr: "MYR",
Mxn: "MXN",
Ntd: "NTD",
Nzd: "NZD",
Ngn: "NGN",
Nok: "NOK",
Xpf: "XPF",
Pen: "PEN",
Php: "PHP",
Pln: "PLN",
Gbp: "GBP",
Sar: "SAR",
Sgd: "SGD",
Zar: "ZAR",
Sek: "SEK",
Chf: "CHF",
Aed: "AED",
Usd: "USD",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeCurrency = {
Currency: "currency",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeCheckbox = {
Checkbox: "checkbox",
};
/**
* The type of the referenced actor. [Read more information on actor types here](/docs/actors).
*/
exports.OutputValueReferencedActorType = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
exports.AttributeTypeActorReference = {
ActorReference: "actor-reference",
};
/** @internal */
exports.AttributeTypeTimestamp$inboundSchema = z.nativeEnum(exports.AttributeTypeTimestamp);
/** @internal */
exports.AttributeTypeTimestamp$outboundSchema = exports.AttributeTypeTimestamp$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypeTimestamp$;
(function (AttributeTypeTimestamp$) {
/** @deprecated use `AttributeTypeTimestamp$inboundSchema` instead. */
AttributeTypeTimestamp$.inboundSchema = exports.AttributeTypeTimestamp$inboundSchema;
/** @deprecated use `AttributeTypeTimestamp$outboundSchema` instead. */
AttributeTypeTimestamp$.outboundSchema = exports.AttributeTypeTimestamp$outboundSchema;
})(AttributeTypeTimestamp$ || (exports.AttributeTypeTimestamp$ = AttributeTypeTimestamp$ = {}));
/** @internal */
exports.OutputValueTimestamp$inboundSchema = z.object({
attribute_type: exports.AttributeTypeTimestamp$inboundSchema,
value: z.string().datetime({ offset: true }).transform(v => new Date(v)),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
exports.OutputValueTimestamp$outboundSchema = z.object({
attributeType: exports.AttributeTypeTimestamp$outboundSchema,
value: z.date().transform(v => v.toISOString()),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValueTimestamp$;
(function (OutputValueTimestamp$) {
/** @deprecated use `OutputValueTimestamp$inboundSchema` instead. */
OutputValueTimestamp$.inboundSchema = exports.OutputValueTimestamp$inboundSchema;
/** @deprecated use `OutputValueTimestamp$outboundSchema` instead. */
OutputValueTimestamp$.outboundSchema = exports.OutputValueTimestamp$outboundSchema;
})(OutputValueTimestamp$ || (exports.OutputValueTimestamp$ = OutputValueTimestamp$ = {}));
function outputValueTimestampToJSON(outputValueTimestamp) {
return JSON.stringify(exports.OutputValueTimestamp$outboundSchema.parse(outputValueTimestamp));
}
function outputValueTimestampFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutputValueTimestamp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueTimestamp' from JSON`);
}
/** @internal */
exports.AttributeTypeText$inboundSchema = z.nativeEnum(exports.AttributeTypeText);
/** @internal */
exports.AttributeTypeText$outboundSchema = exports.AttributeTypeText$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypeText$;
(function (AttributeTypeText$) {
/** @deprecated use `AttributeTypeText$inboundSchema` instead. */
AttributeTypeText$.inboundSchema = exports.AttributeTypeText$inboundSchema;
/** @deprecated use `AttributeTypeText$outboundSchema` instead. */
AttributeTypeText$.outboundSchema = exports.AttributeTypeText$outboundSchema;
})(AttributeTypeText$ || (exports.AttributeTypeText$ = AttributeTypeText$ = {}));
/** @internal */
exports.OutputValueText$inboundSchema = z.object({
value: z.string(),
attribute_type: exports.AttributeTypeText$inboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
exports.OutputValueText$outboundSchema = z.object({
value: z.string(),
attributeType: exports.AttributeTypeText$outboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValueText$;
(function (OutputValueText$) {
/** @deprecated use `OutputValueText$inboundSchema` instead. */
OutputValueText$.inboundSchema = exports.OutputValueText$inboundSchema;
/** @deprecated use `OutputValueText$outboundSchema` instead. */
OutputValueText$.outboundSchema = exports.OutputValueText$outboundSchema;
})(OutputValueText$ || (exports.OutputValueText$ = OutputValueText$ = {}));
function outputValueTextToJSON(outputValueText) {
return JSON.stringify(exports.OutputValueText$outboundSchema.parse(outputValueText));
}
function outputValueTextFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutputValueText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueText' from JSON`);
}
/** @internal */
exports.AttributeTypeSelect2$inboundSchema = z.nativeEnum(exports.AttributeTypeSelect2);
/** @internal */
exports.AttributeTypeSelect2$outboundSchema = exports.AttributeTypeSelect2$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypeSelect2$;
(function (AttributeTypeSelect2$) {
/** @deprecated use `AttributeTypeSelect2$inboundSchema` instead. */
AttributeTypeSelect2$.inboundSchema = exports.AttributeTypeSelect2$inboundSchema;
/** @deprecated use `AttributeTypeSelect2$outboundSchema` instead. */
AttributeTypeSelect2$.outboundSchema = exports.AttributeTypeSelect2$outboundSchema;
})(AttributeTypeSelect2$ || (exports.AttributeTypeSelect2$ = AttributeTypeSelect2$ = {}));
/** @internal */
exports.OutputValueSelect2$inboundSchema = z.object({
option: selectoption_js_1.SelectOption$inboundSchema,
attribute_type: exports.AttributeTypeSelect2$inboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
exports.OutputValueSelect2$outboundSchema = z.object({
option: selectoption_js_1.SelectOption$outboundSchema,
attributeType: exports.AttributeTypeSelect2$outboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValueSelect2$;
(function (OutputValueSelect2$) {
/** @deprecated use `OutputValueSelect2$inboundSchema` instead. */
OutputValueSelect2$.inboundSchema = exports.OutputValueSelect2$inboundSchema;
/** @deprecated use `OutputValueSelect2$outboundSchema` instead. */
OutputValueSelect2$.outboundSchema = exports.OutputValueSelect2$outboundSchema;
})(OutputValueSelect2$ || (exports.OutputValueSelect2$ = OutputValueSelect2$ = {}));
function outputValueSelect2ToJSON(outputValueSelect2) {
return JSON.stringify(exports.OutputValueSelect2$outboundSchema.parse(outputValueSelect2));
}
function outputValueSelect2FromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutputValueSelect2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueSelect2' from JSON`);
}
/** @internal */
exports.AttributeTypeSelect1$inboundSchema = z.nativeEnum(exports.AttributeTypeSelect1);
/** @internal */
exports.AttributeTypeSelect1$outboundSchema = exports.AttributeTypeSelect1$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypeSelect1$;
(function (AttributeTypeSelect1$) {
/** @deprecated use `AttributeTypeSelect1$inboundSchema` instead. */
AttributeTypeSelect1$.inboundSchema = exports.AttributeTypeSelect1$inboundSchema;
/** @deprecated use `AttributeTypeSelect1$outboundSchema` instead. */
AttributeTypeSelect1$.outboundSchema = exports.AttributeTypeSelect1$outboundSchema;
})(AttributeTypeSelect1$ || (exports.AttributeTypeSelect1$ = AttributeTypeSelect1$ = {}));
/** @internal */
exports.OutputValueSelect1$inboundSchema = z.object({
option: z.string(),
attribute_type: exports.AttributeTypeSelect1$inboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
exports.OutputValueSelect1$outboundSchema = z.object({
option: z.string(),
attributeType: exports.AttributeTypeSelect1$outboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValueSelect1$;
(function (OutputValueSelect1$) {
/** @deprecated use `OutputValueSelect1$inboundSchema` instead. */
OutputValueSelect1$.inboundSchema = exports.OutputValueSelect1$inboundSchema;
/** @deprecated use `OutputValueSelect1$outboundSchema` instead. */
OutputValueSelect1$.outboundSchema = exports.OutputValueSelect1$outboundSchema;
})(OutputValueSelect1$ || (exports.OutputValueSelect1$ = OutputValueSelect1$ = {}));
function outputValueSelect1ToJSON(outputValueSelect1) {
return JSON.stringify(exports.OutputValueSelect1$outboundSchema.parse(outputValueSelect1));
}
function outputValueSelect1FromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutputValueSelect1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueSelect1' from JSON`);
}
/** @internal */
exports.AttributeTypeRating$inboundSchema = z.nativeEnum(exports.AttributeTypeRating);
/** @internal */
exports.AttributeTypeRating$outboundSchema = exports.AttributeTypeRating$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypeRating$;
(function (AttributeTypeRating$) {
/** @deprecated use `AttributeTypeRating$inboundSchema` instead. */
AttributeTypeRating$.inboundSchema = exports.AttributeTypeRating$inboundSchema;
/** @deprecated use `AttributeTypeRating$outboundSchema` instead. */
AttributeTypeRating$.outboundSchema = exports.AttributeTypeRating$outboundSchema;
})(AttributeTypeRating$ || (exports.AttributeTypeRating$ = AttributeTypeRating$ = {}));
/** @internal */
exports.OutputValueRating$inboundSchema = z.object({
value: z.number(),
attribute_type: exports.AttributeTypeRating$inboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
exports.OutputValueRating$outboundSchema = z.object({
value: z.number(),
attributeType: exports.AttributeTypeRating$outboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValueRating$;
(function (OutputValueRating$) {
/** @deprecated use `OutputValueRating$inboundSchema` instead. */
OutputValueRating$.inboundSchema = exports.OutputValueRating$inboundSchema;
/** @deprecated use `OutputValueRating$outboundSchema` instead. */
OutputValueRating$.outboundSchema = exports.OutputValueRating$outboundSchema;
})(OutputValueRating$ || (exports.OutputValueRating$ = OutputValueRating$ = {}));
function outputValueRatingToJSON(outputValueRating) {
return JSON.stringify(exports.OutputValueRating$outboundSchema.parse(outputValueRating));
}
function outputValueRatingFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutputValueRating$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueRating' from JSON`);
}
/** @internal */
exports.AttributeTypeStatus2$inboundSchema = z.nativeEnum(exports.AttributeTypeStatus2);
/** @internal */
exports.AttributeTypeStatus2$outboundSchema = exports.AttributeTypeStatus2$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypeStatus2$;
(function (AttributeTypeStatus2$) {
/** @deprecated use `AttributeTypeStatus2$inboundSchema` instead. */
AttributeTypeStatus2$.inboundSchema = exports.AttributeTypeStatus2$inboundSchema;
/** @deprecated use `AttributeTypeStatus2$outboundSchema` instead. */
AttributeTypeStatus2$.outboundSchema = exports.AttributeTypeStatus2$outboundSchema;
})(AttributeTypeStatus2$ || (exports.AttributeTypeStatus2$ = AttributeTypeStatus2$ = {}));
/** @internal */
exports.OutputValueStatus2$inboundSchema = z.object({
status: status_js_1.Status$inboundSchema,
attribute_type: exports.AttributeTypeStatus2$inboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
exports.OutputValueStatus2$outboundSchema = z.object({
status: status_js_1.Status$outboundSchema,
attributeType: exports.AttributeTypeStatus2$outboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValueStatus2$;
(function (OutputValueStatus2$) {
/** @deprecated use `OutputValueStatus2$inboundSchema` instead. */
OutputValueStatus2$.inboundSchema = exports.OutputValueStatus2$inboundSchema;
/** @deprecated use `OutputValueStatus2$outboundSchema` instead. */
OutputValueStatus2$.outboundSchema = exports.OutputValueStatus2$outboundSchema;
})(OutputValueStatus2$ || (exports.OutputValueStatus2$ = OutputValueStatus2$ = {}));
function outputValueStatus2ToJSON(outputValueStatus2) {
return JSON.stringify(exports.OutputValueStatus2$outboundSchema.parse(outputValueStatus2));
}
function outputValueStatus2FromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutputValueStatus2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueStatus2' from JSON`);
}
/** @internal */
exports.AttributeTypeStatus1$inboundSchema = z.nativeEnum(exports.AttributeTypeStatus1);
/** @internal */
exports.AttributeTypeStatus1$outboundSchema = exports.AttributeTypeStatus1$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypeStatus1$;
(function (AttributeTypeStatus1$) {
/** @deprecated use `AttributeTypeStatus1$inboundSchema` instead. */
AttributeTypeStatus1$.inboundSchema = exports.AttributeTypeStatus1$inboundSchema;
/** @deprecated use `AttributeTypeStatus1$outboundSchema` instead. */
AttributeTypeStatus1$.outboundSchema = exports.AttributeTypeStatus1$outboundSchema;
})(AttributeTypeStatus1$ || (exports.AttributeTypeStatus1$ = AttributeTypeStatus1$ = {}));
/** @internal */
exports.OutputValueStatus1$inboundSchema = z.object({
status: z.string(),
attribute_type: exports.AttributeTypeStatus1$inboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
exports.OutputValueStatus1$outboundSchema = z.object({
status: z.string(),
attributeType: exports.AttributeTypeStatus1$outboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValueStatus1$;
(function (OutputValueStatus1$) {
/** @deprecated use `OutputValueStatus1$inboundSchema` instead. */
OutputValueStatus1$.inboundSchema = exports.OutputValueStatus1$inboundSchema;
/** @deprecated use `OutputValueStatus1$outboundSchema` instead. */
OutputValueStatus1$.outboundSchema = exports.OutputValueStatus1$outboundSchema;
})(OutputValueStatus1$ || (exports.OutputValueStatus1$ = OutputValueStatus1$ = {}));
function outputValueStatus1ToJSON(outputValueStatus1) {
return JSON.stringify(exports.OutputValueStatus1$outboundSchema.parse(outputValueStatus1));
}
function outputValueStatus1FromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutputValueStatus1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueStatus1' from JSON`);
}
/** @internal */
exports.OutputValueCountryCode2$inboundSchema = z.nativeEnum(exports.OutputValueCountryCode2);
/** @internal */
exports.OutputValueCountryCode2$outboundSchema = exports.OutputValueCountryCode2$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValueCountryCode2$;
(function (OutputValueCountryCode2$) {
/** @deprecated use `OutputValueCountryCode2$inboundSchema` instead. */
OutputValueCountryCode2$.inboundSchema = exports.OutputValueCountryCode2$inboundSchema;
/** @deprecated use `OutputValueCountryCode2$outboundSchema` instead. */
OutputValueCountryCode2$.outboundSchema = exports.OutputValueCountryCode2$outboundSchema;
})(OutputValueCountryCode2$ || (exports.OutputValueCountryCode2$ = OutputValueCountryCode2$ = {}));
/** @internal */
exports.AttributeTypePhoneNumber$inboundSchema = z.nativeEnum(exports.AttributeTypePhoneNumber);
/** @internal */
exports.AttributeTypePhoneNumber$outboundSchema = exports.AttributeTypePhoneNumber$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypePhoneNumber$;
(function (AttributeTypePhoneNumber$) {
/** @deprecated use `AttributeTypePhoneNumber$inboundSchema` instead. */
AttributeTypePhoneNumber$.inboundSchema = exports.AttributeTypePhoneNumber$inboundSchema;
/** @deprecated use `AttributeTypePhoneNumber$outboundSchema` instead. */
AttributeTypePhoneNumber$.outboundSchema = exports.AttributeTypePhoneNumber$outboundSchema;
})(AttributeTypePhoneNumber$ || (exports.AttributeTypePhoneNumber$ = AttributeTypePhoneNumber$ = {}));
/** @internal */
exports.OutputValuePhoneNumber$inboundSchema = z.object({
original_phone_number: z.string(),
country_code: exports.OutputValueCountryCode2$inboundSchema,
phone_number: z.string(),
attribute_type: exports.AttributeTypePhoneNumber$inboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"original_phone_number": "originalPhoneNumber",
"country_code": "countryCode",
"phone_number": "phoneNumber",
"attribute_type": "attributeType",
});
});
/** @internal */
exports.OutputValuePhoneNumber$outboundSchema = z.object({
originalPhoneNumber: z.string(),
countryCode: exports.OutputValueCountryCode2$outboundSchema,
phoneNumber: z.string(),
attributeType: exports.AttributeTypePhoneNumber$outboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
originalPhoneNumber: "original_phone_number",
countryCode: "country_code",
phoneNumber: "phone_number",
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValuePhoneNumber$;
(function (OutputValuePhoneNumber$) {
/** @deprecated use `OutputValuePhoneNumber$inboundSchema` instead. */
OutputValuePhoneNumber$.inboundSchema = exports.OutputValuePhoneNumber$inboundSchema;
/** @deprecated use `OutputValuePhoneNumber$outboundSchema` instead. */
OutputValuePhoneNumber$.outboundSchema = exports.OutputValuePhoneNumber$outboundSchema;
})(OutputValuePhoneNumber$ || (exports.OutputValuePhoneNumber$ = OutputValuePhoneNumber$ = {}));
function outputValuePhoneNumberToJSON(outputValuePhoneNumber) {
return JSON.stringify(exports.OutputValuePhoneNumber$outboundSchema.parse(outputValuePhoneNumber));
}
function outputValuePhoneNumberFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutputValuePhoneNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValuePhoneNumber' from JSON`);
}
/** @internal */
exports.AttributeTypePersonalName$inboundSchema = z.nativeEnum(exports.AttributeTypePersonalName);
/** @internal */
exports.AttributeTypePersonalName$outboundSchema = exports.AttributeTypePersonalName$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypePersonalName$;
(function (AttributeTypePersonalName$) {
/** @deprecated use `AttributeTypePersonalName$inboundSchema` instead. */
AttributeTypePersonalName$.inboundSchema = exports.AttributeTypePersonalName$inboundSchema;
/** @deprecated use `AttributeTypePersonalName$outboundSchema` instead. */
AttributeTypePersonalName$.outboundSchema = exports.AttributeTypePersonalName$outboundSchema;
})(AttributeTypePersonalName$ || (exports.AttributeTypePersonalName$ = AttributeTypePersonalName$ = {}));
/** @internal */
exports.OutputValuePersonalName$inboundSchema = z.object({
first_name: z.string(),
last_name: z.string(),
full_name: z.string(),
attribute_type: exports.AttributeTypePersonalName$inboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"first_name": "firstName",
"last_name": "lastName",
"full_name": "fullName",
"attribute_type": "attributeType",
});
});
/** @internal */
exports.OutputValuePersonalName$outboundSchema = z.object({
firstName: z.string(),
lastName: z.string(),
fullName: z.string(),
attributeType: exports.AttributeTypePersonalName$outboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
firstName: "first_name",
lastName: "last_name",
fullName: "full_name",
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValuePersonalName$;
(function (OutputValuePersonalName$) {
/** @deprecated use `OutputValuePersonalName$inboundSchema` instead. */
OutputValuePersonalName$.inboundSchema = exports.OutputValuePersonalName$inboundSchema;
/** @deprecated use `OutputValuePersonalName$outboundSchema` instead. */
OutputValuePersonalName$.outboundSchema = exports.OutputValuePersonalName$outboundSchema;
})(OutputValuePersonalName$ || (exports.OutputValuePersonalName$ = OutputValuePersonalName$ = {}));
function outputValuePersonalNameToJSON(outputValuePersonalName) {
return JSON.stringify(exports.OutputValuePersonalName$outboundSchema.parse(outputValuePersonalName));
}
function outputValuePersonalNameFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutputValuePersonalName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValuePersonalName' from JSON`);
}
/** @internal */
exports.AttributeTypeNumber$inboundSchema = z.nativeEnum(exports.AttributeTypeNumber);
/** @internal */
exports.AttributeTypeNumber$outboundSchema = exports.AttributeTypeNumber$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypeNumber$;
(function (AttributeTypeNumber$) {
/** @deprecated use `AttributeTypeNumber$inboundSchema` instead. */
AttributeTypeNumber$.inboundSchema = exports.AttributeTypeNumber$inboundSchema;
/** @deprecated use `AttributeTypeNumber$outboundSchema` instead. */
AttributeTypeNumber$.outboundSchema = exports.AttributeTypeNumber$outboundSchema;
})(AttributeTypeNumber$ || (exports.AttributeTypeNumber$ = AttributeTypeNumber$ = {}));
/** @internal */
exports.OutputValueNumber$inboundSchema = z.object({
value: z.number(),
attribute_type: exports.AttributeTypeNumber$inboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
exports.OutputValueNumber$outboundSchema = z.object({
value: z.number(),
attributeType: exports.AttributeTypeNumber$outboundSchema,
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValueNumber$;
(function (OutputValueNumber$) {
/** @deprecated use `OutputValueNumber$inboundSchema` instead. */
OutputValueNumber$.inboundSchema = exports.OutputValueNumber$inboundSchema;
/** @deprecated use `OutputValueNumber$outboundSchema` instead. */
OutputValueNumber$.outboundSchema = exports.OutputValueNumber$outboundSchema;
})(OutputValueNumber$ || (exports.OutputValueNumber$ = OutputValueNumber$ = {}));
function outputValueNumberToJSON(outputValueNumber) {
return JSON.stringify(exports.OutputValueNumber$outboundSchema.parse(outputValueNumber));
}
function outputValueNumberFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutputValueNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueNumber' from JSON`);
}
/** @internal */
exports.OutputValueCountryCode1$inboundSchema = z.nativeEnum(exports.OutputValueCountryCode1);
/** @internal */
exports.OutputValueCountryCode1$outboundSchema = exports.OutputValueCountryCode1$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var OutputValueCountryCode1$;
(function (OutputValueCountryCode1$) {
/** @deprecated use `OutputValueCountryCode1$inboundSchema` instead. */
OutputValueCountryCode1$.inboundSchema = exports.OutputValueCountryCode1$inboundSchema;
/** @deprecated use `OutputValueCountryCode1$outboundSchema` instead. */
OutputValueCountryCode1$.outboundSchema = exports.OutputValueCountryCode1$outboundSchema;
})(OutputValueCountryCode1$ || (exports.OutputValueCountryCode1$ = OutputValueCountryCode1$ = {}));
/** @internal */
exports.AttributeTypeLocation$inboundSchema = z.nativeEnum(exports.AttributeTypeLocation);
/** @internal */
exports.AttributeTypeLocation$outboundSchema = exports.AttributeTypeLocation$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var AttributeTypeLocation$;
(function (AttributeTypeLocation$) {
/** @deprecated use `AttributeTypeLocation$inboundSchema` instead. */
AttributeTypeLocation$.inboundSchema = exports.AttributeTypeLocation$inboundSchema;
/** @deprecated use `AttributeTypeLocation$outboundSchema` instead. */
AttributeTypeLocation$.outboundSchema = exports.AttributeTypeLocation$outboundSchema;
})(AttributeTypeLocation$ || (exports.AttributeTypeLocation$ = AttributeTypeLocation$ = {}));
/** @internal */
exports.OutputValueLocation$inboundSchema = z.object({
line_1: z.nullable(z.string()),
line_2: z.nullable(z.string()),
line_3: z.nullable(z.string()),
line_4: z.nullable(z.string()),
locality: z.nullable(z.string()),
region: z.nullable(z.string()),
postcode: z.nullable(z.string()),
country_code: z.nullable(exports.OutputValueCountryCode1$inboundSchema),
latitude: z.nullable(z.string()),
longitude: z.nullable(z.string()),
attribute_type: exports.AttributeTypeLocation$inboundSchema,
}).transform((v) => {
return (0, primitives_js_1.re