@polar-sh/sdk 0.46.4 → 0.46.5
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/commonjs/funcs/membersListMembers.js +1 -0
- package/dist/commonjs/funcs/membersListMembers.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +19 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/models/components/address.d.ts +5 -5
- package/dist/commonjs/models/components/address.d.ts.map +1 -1
- package/dist/commonjs/models/components/address.js +6 -6
- package/dist/commonjs/models/components/address.js.map +1 -1
- package/dist/commonjs/models/components/addressinput.d.ts +4 -4
- package/dist/commonjs/models/components/addressinput.d.ts.map +1 -1
- package/dist/commonjs/models/components/addressinput.js +4 -4
- package/dist/commonjs/models/components/addressinput.js.map +1 -1
- package/dist/commonjs/models/components/metricperiod.d.ts +5 -5
- package/dist/commonjs/models/components/metricperiod.d.ts.map +1 -1
- package/dist/commonjs/models/components/metricperiod.js +9 -9
- package/dist/commonjs/models/components/metricperiod.js.map +1 -1
- package/dist/commonjs/models/components/metrics.d.ts +1 -1
- package/dist/commonjs/models/components/metrics.d.ts.map +1 -1
- package/dist/commonjs/models/components/metrics.js +2 -2
- package/dist/commonjs/models/components/metrics.js.map +1 -1
- package/dist/commonjs/models/components/metricstotals.d.ts +5 -5
- package/dist/commonjs/models/components/metricstotals.d.ts.map +1 -1
- package/dist/commonjs/models/components/metricstotals.js +9 -9
- package/dist/commonjs/models/components/metricstotals.js.map +1 -1
- package/dist/commonjs/models/components/organization.d.ts +262 -0
- package/dist/commonjs/models/components/organization.d.ts.map +1 -1
- package/dist/commonjs/models/components/organization.js +259 -1
- package/dist/commonjs/models/components/organization.js.map +1 -1
- package/dist/commonjs/models/components/organizationcompanylegalentityschema.d.ts +14 -0
- package/dist/commonjs/models/components/organizationcompanylegalentityschema.d.ts.map +1 -0
- package/dist/commonjs/models/components/organizationcompanylegalentityschema.js +55 -0
- package/dist/commonjs/models/components/organizationcompanylegalentityschema.js.map +1 -0
- package/dist/commonjs/models/components/organizationcreate.d.ts +265 -0
- package/dist/commonjs/models/components/organizationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationcreate.js +266 -1
- package/dist/commonjs/models/components/organizationcreate.js.map +1 -1
- package/dist/commonjs/models/components/organizationdetails.d.ts +7 -7
- package/dist/commonjs/models/components/organizationdetails.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationdetails.js +4 -4
- package/dist/commonjs/models/components/organizationdetails.js.map +1 -1
- package/dist/commonjs/models/components/organizationindividuallegalentityschema.d.ts +12 -0
- package/dist/commonjs/models/components/organizationindividuallegalentityschema.d.ts.map +1 -0
- package/dist/commonjs/models/components/organizationindividuallegalentityschema.js +49 -0
- package/dist/commonjs/models/components/organizationindividuallegalentityschema.js.map +1 -0
- package/dist/commonjs/models/components/organizationupdate.d.ts +255 -0
- package/dist/commonjs/models/components/organizationupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationupdate.js +250 -1
- package/dist/commonjs/models/components/organizationupdate.js.map +1 -1
- package/dist/commonjs/models/components/presentmentcurrency.d.ts +27 -1
- package/dist/commonjs/models/components/presentmentcurrency.d.ts.map +1 -1
- package/dist/commonjs/models/components/presentmentcurrency.js +27 -1
- package/dist/commonjs/models/components/presentmentcurrency.js.map +1 -1
- package/dist/commonjs/models/components/productpricefixedcreate.d.ts +34 -0
- package/dist/commonjs/models/components/productpricefixedcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricefixedcreate.js.map +1 -1
- package/dist/commonjs/models/components/seatassign.d.ts +2 -2
- package/dist/commonjs/models/operations/memberslistmembers.d.ts +6 -0
- package/dist/commonjs/models/operations/memberslistmembers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/memberslistmembers.js +2 -0
- package/dist/commonjs/models/operations/memberslistmembers.js.map +1 -1
- package/dist/esm/funcs/membersListMembers.js +1 -0
- package/dist/esm/funcs/membersListMembers.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +18 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/models/components/address.d.ts +5 -5
- package/dist/esm/models/components/address.d.ts.map +1 -1
- package/dist/esm/models/components/address.js +5 -5
- package/dist/esm/models/components/address.js.map +1 -1
- package/dist/esm/models/components/addressinput.d.ts +4 -4
- package/dist/esm/models/components/addressinput.d.ts.map +1 -1
- package/dist/esm/models/components/addressinput.js +3 -3
- package/dist/esm/models/components/addressinput.js.map +1 -1
- package/dist/esm/models/components/metricperiod.d.ts +5 -5
- package/dist/esm/models/components/metricperiod.d.ts.map +1 -1
- package/dist/esm/models/components/metricperiod.js +7 -7
- package/dist/esm/models/components/metricperiod.js.map +1 -1
- package/dist/esm/models/components/metrics.d.ts +1 -1
- package/dist/esm/models/components/metrics.d.ts.map +1 -1
- package/dist/esm/models/components/metrics.js +2 -2
- package/dist/esm/models/components/metrics.js.map +1 -1
- package/dist/esm/models/components/metricstotals.d.ts +5 -5
- package/dist/esm/models/components/metricstotals.d.ts.map +1 -1
- package/dist/esm/models/components/metricstotals.js +7 -7
- package/dist/esm/models/components/metricstotals.js.map +1 -1
- package/dist/esm/models/components/organization.d.ts +262 -0
- package/dist/esm/models/components/organization.d.ts.map +1 -1
- package/dist/esm/models/components/organization.js +258 -0
- package/dist/esm/models/components/organization.js.map +1 -1
- package/dist/esm/models/components/organizationcompanylegalentityschema.d.ts +14 -0
- package/dist/esm/models/components/organizationcompanylegalentityschema.d.ts.map +1 -0
- package/dist/esm/models/components/organizationcompanylegalentityschema.js +18 -0
- package/dist/esm/models/components/organizationcompanylegalentityschema.js.map +1 -0
- package/dist/esm/models/components/organizationcreate.d.ts +265 -0
- package/dist/esm/models/components/organizationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/organizationcreate.js +264 -0
- package/dist/esm/models/components/organizationcreate.js.map +1 -1
- package/dist/esm/models/components/organizationdetails.d.ts +7 -7
- package/dist/esm/models/components/organizationdetails.d.ts.map +1 -1
- package/dist/esm/models/components/organizationdetails.js +4 -4
- package/dist/esm/models/components/organizationdetails.js.map +1 -1
- package/dist/esm/models/components/organizationindividuallegalentityschema.d.ts +12 -0
- package/dist/esm/models/components/organizationindividuallegalentityschema.d.ts.map +1 -0
- package/dist/esm/models/components/organizationindividuallegalentityschema.js +12 -0
- package/dist/esm/models/components/organizationindividuallegalentityschema.js.map +1 -0
- package/dist/esm/models/components/organizationupdate.d.ts +255 -0
- package/dist/esm/models/components/organizationupdate.d.ts.map +1 -1
- package/dist/esm/models/components/organizationupdate.js +249 -0
- package/dist/esm/models/components/organizationupdate.js.map +1 -1
- package/dist/esm/models/components/presentmentcurrency.d.ts +27 -1
- package/dist/esm/models/components/presentmentcurrency.d.ts.map +1 -1
- package/dist/esm/models/components/presentmentcurrency.js +27 -1
- package/dist/esm/models/components/presentmentcurrency.js.map +1 -1
- package/dist/esm/models/components/productpricefixedcreate.d.ts +34 -0
- package/dist/esm/models/components/productpricefixedcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productpricefixedcreate.js.map +1 -1
- package/dist/esm/models/components/seatassign.d.ts +2 -2
- package/dist/esm/models/operations/memberslistmembers.d.ts +6 -0
- package/dist/esm/models/operations/memberslistmembers.d.ts.map +1 -1
- package/dist/esm/models/operations/memberslistmembers.js +2 -0
- package/dist/esm/models/operations/memberslistmembers.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/membersListMembers.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +22 -0
- package/src/models/components/address.ts +11 -11
- package/src/models/components/addressinput.ts +9 -7
- package/src/models/components/metricperiod.ts +19 -19
- package/src/models/components/metrics.ts +3 -3
- package/src/models/components/metricstotals.ts +21 -21
- package/src/models/components/organization.ts +273 -0
- package/src/models/components/organizationcompanylegalentityschema.ts +43 -0
- package/src/models/components/organizationcreate.ts +311 -0
- package/src/models/components/organizationdetails.ts +11 -11
- package/src/models/components/organizationindividuallegalentityschema.ts +34 -0
- package/src/models/components/organizationupdate.ts +262 -0
- package/src/models/components/presentmentcurrency.ts +27 -1
- package/src/models/components/productpricefixedcreate.ts +34 -0
- package/src/models/components/seatassign.ts +2 -2
- package/src/models/operations/memberslistmembers.ts +10 -0
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
12
|
import {
|
|
@@ -54,6 +56,259 @@ import {
|
|
|
54
56
|
SubscriptionProrationBehavior$outboundSchema,
|
|
55
57
|
} from "./subscriptionprorationbehavior.js";
|
|
56
58
|
|
|
59
|
+
export const CountryAlpha2 = {
|
|
60
|
+
Ad: "AD",
|
|
61
|
+
Ae: "AE",
|
|
62
|
+
Af: "AF",
|
|
63
|
+
Ag: "AG",
|
|
64
|
+
Ai: "AI",
|
|
65
|
+
Al: "AL",
|
|
66
|
+
Am: "AM",
|
|
67
|
+
Ao: "AO",
|
|
68
|
+
Aq: "AQ",
|
|
69
|
+
Ar: "AR",
|
|
70
|
+
As: "AS",
|
|
71
|
+
At: "AT",
|
|
72
|
+
Au: "AU",
|
|
73
|
+
Aw: "AW",
|
|
74
|
+
Ax: "AX",
|
|
75
|
+
Az: "AZ",
|
|
76
|
+
Ba: "BA",
|
|
77
|
+
Bb: "BB",
|
|
78
|
+
Bd: "BD",
|
|
79
|
+
Be: "BE",
|
|
80
|
+
Bf: "BF",
|
|
81
|
+
Bg: "BG",
|
|
82
|
+
Bh: "BH",
|
|
83
|
+
Bi: "BI",
|
|
84
|
+
Bj: "BJ",
|
|
85
|
+
Bl: "BL",
|
|
86
|
+
Bm: "BM",
|
|
87
|
+
Bn: "BN",
|
|
88
|
+
Bo: "BO",
|
|
89
|
+
Bq: "BQ",
|
|
90
|
+
Br: "BR",
|
|
91
|
+
Bs: "BS",
|
|
92
|
+
Bt: "BT",
|
|
93
|
+
Bv: "BV",
|
|
94
|
+
Bw: "BW",
|
|
95
|
+
By: "BY",
|
|
96
|
+
Bz: "BZ",
|
|
97
|
+
Ca: "CA",
|
|
98
|
+
Cc: "CC",
|
|
99
|
+
Cd: "CD",
|
|
100
|
+
Cf: "CF",
|
|
101
|
+
Cg: "CG",
|
|
102
|
+
Ch: "CH",
|
|
103
|
+
Ci: "CI",
|
|
104
|
+
Ck: "CK",
|
|
105
|
+
Cl: "CL",
|
|
106
|
+
Cm: "CM",
|
|
107
|
+
Cn: "CN",
|
|
108
|
+
Co: "CO",
|
|
109
|
+
Cr: "CR",
|
|
110
|
+
Cu: "CU",
|
|
111
|
+
Cv: "CV",
|
|
112
|
+
Cw: "CW",
|
|
113
|
+
Cx: "CX",
|
|
114
|
+
Cy: "CY",
|
|
115
|
+
Cz: "CZ",
|
|
116
|
+
De: "DE",
|
|
117
|
+
Dj: "DJ",
|
|
118
|
+
Dk: "DK",
|
|
119
|
+
Dm: "DM",
|
|
120
|
+
Do: "DO",
|
|
121
|
+
Dz: "DZ",
|
|
122
|
+
Ec: "EC",
|
|
123
|
+
Ee: "EE",
|
|
124
|
+
Eg: "EG",
|
|
125
|
+
Eh: "EH",
|
|
126
|
+
Er: "ER",
|
|
127
|
+
Es: "ES",
|
|
128
|
+
Et: "ET",
|
|
129
|
+
Fi: "FI",
|
|
130
|
+
Fj: "FJ",
|
|
131
|
+
Fk: "FK",
|
|
132
|
+
Fm: "FM",
|
|
133
|
+
Fo: "FO",
|
|
134
|
+
Fr: "FR",
|
|
135
|
+
Ga: "GA",
|
|
136
|
+
Gb: "GB",
|
|
137
|
+
Gd: "GD",
|
|
138
|
+
Ge: "GE",
|
|
139
|
+
Gf: "GF",
|
|
140
|
+
Gg: "GG",
|
|
141
|
+
Gh: "GH",
|
|
142
|
+
Gi: "GI",
|
|
143
|
+
Gl: "GL",
|
|
144
|
+
Gm: "GM",
|
|
145
|
+
Gn: "GN",
|
|
146
|
+
Gp: "GP",
|
|
147
|
+
Gq: "GQ",
|
|
148
|
+
Gr: "GR",
|
|
149
|
+
Gs: "GS",
|
|
150
|
+
Gt: "GT",
|
|
151
|
+
Gu: "GU",
|
|
152
|
+
Gw: "GW",
|
|
153
|
+
Gy: "GY",
|
|
154
|
+
Hk: "HK",
|
|
155
|
+
Hm: "HM",
|
|
156
|
+
Hn: "HN",
|
|
157
|
+
Hr: "HR",
|
|
158
|
+
Ht: "HT",
|
|
159
|
+
Hu: "HU",
|
|
160
|
+
Id: "ID",
|
|
161
|
+
Ie: "IE",
|
|
162
|
+
Il: "IL",
|
|
163
|
+
Im: "IM",
|
|
164
|
+
In: "IN",
|
|
165
|
+
Io: "IO",
|
|
166
|
+
Iq: "IQ",
|
|
167
|
+
Ir: "IR",
|
|
168
|
+
Is: "IS",
|
|
169
|
+
It: "IT",
|
|
170
|
+
Je: "JE",
|
|
171
|
+
Jm: "JM",
|
|
172
|
+
Jo: "JO",
|
|
173
|
+
Jp: "JP",
|
|
174
|
+
Ke: "KE",
|
|
175
|
+
Kg: "KG",
|
|
176
|
+
Kh: "KH",
|
|
177
|
+
Ki: "KI",
|
|
178
|
+
Km: "KM",
|
|
179
|
+
Kn: "KN",
|
|
180
|
+
Kp: "KP",
|
|
181
|
+
Kr: "KR",
|
|
182
|
+
Kw: "KW",
|
|
183
|
+
Ky: "KY",
|
|
184
|
+
Kz: "KZ",
|
|
185
|
+
La: "LA",
|
|
186
|
+
Lb: "LB",
|
|
187
|
+
Lc: "LC",
|
|
188
|
+
Li: "LI",
|
|
189
|
+
Lk: "LK",
|
|
190
|
+
Lr: "LR",
|
|
191
|
+
Ls: "LS",
|
|
192
|
+
Lt: "LT",
|
|
193
|
+
Lu: "LU",
|
|
194
|
+
Lv: "LV",
|
|
195
|
+
Ly: "LY",
|
|
196
|
+
Ma: "MA",
|
|
197
|
+
Mc: "MC",
|
|
198
|
+
Md: "MD",
|
|
199
|
+
Me: "ME",
|
|
200
|
+
Mf: "MF",
|
|
201
|
+
Mg: "MG",
|
|
202
|
+
Mh: "MH",
|
|
203
|
+
Mk: "MK",
|
|
204
|
+
Ml: "ML",
|
|
205
|
+
Mm: "MM",
|
|
206
|
+
Mn: "MN",
|
|
207
|
+
Mo: "MO",
|
|
208
|
+
Mp: "MP",
|
|
209
|
+
Mq: "MQ",
|
|
210
|
+
Mr: "MR",
|
|
211
|
+
Ms: "MS",
|
|
212
|
+
Mt: "MT",
|
|
213
|
+
Mu: "MU",
|
|
214
|
+
Mv: "MV",
|
|
215
|
+
Mw: "MW",
|
|
216
|
+
Mx: "MX",
|
|
217
|
+
My: "MY",
|
|
218
|
+
Mz: "MZ",
|
|
219
|
+
Na: "NA",
|
|
220
|
+
Nc: "NC",
|
|
221
|
+
Ne: "NE",
|
|
222
|
+
Nf: "NF",
|
|
223
|
+
Ng: "NG",
|
|
224
|
+
Ni: "NI",
|
|
225
|
+
Nl: "NL",
|
|
226
|
+
No: "NO",
|
|
227
|
+
Np: "NP",
|
|
228
|
+
Nr: "NR",
|
|
229
|
+
Nu: "NU",
|
|
230
|
+
Nz: "NZ",
|
|
231
|
+
Om: "OM",
|
|
232
|
+
Pa: "PA",
|
|
233
|
+
Pe: "PE",
|
|
234
|
+
Pf: "PF",
|
|
235
|
+
Pg: "PG",
|
|
236
|
+
Ph: "PH",
|
|
237
|
+
Pk: "PK",
|
|
238
|
+
Pl: "PL",
|
|
239
|
+
Pm: "PM",
|
|
240
|
+
Pn: "PN",
|
|
241
|
+
Pr: "PR",
|
|
242
|
+
Ps: "PS",
|
|
243
|
+
Pt: "PT",
|
|
244
|
+
Pw: "PW",
|
|
245
|
+
Py: "PY",
|
|
246
|
+
Qa: "QA",
|
|
247
|
+
Re: "RE",
|
|
248
|
+
Ro: "RO",
|
|
249
|
+
Rs: "RS",
|
|
250
|
+
Ru: "RU",
|
|
251
|
+
Rw: "RW",
|
|
252
|
+
Sa: "SA",
|
|
253
|
+
Sb: "SB",
|
|
254
|
+
Sc: "SC",
|
|
255
|
+
Sd: "SD",
|
|
256
|
+
Se: "SE",
|
|
257
|
+
Sg: "SG",
|
|
258
|
+
Sh: "SH",
|
|
259
|
+
Si: "SI",
|
|
260
|
+
Sj: "SJ",
|
|
261
|
+
Sk: "SK",
|
|
262
|
+
Sl: "SL",
|
|
263
|
+
Sm: "SM",
|
|
264
|
+
Sn: "SN",
|
|
265
|
+
So: "SO",
|
|
266
|
+
Sr: "SR",
|
|
267
|
+
Ss: "SS",
|
|
268
|
+
St: "ST",
|
|
269
|
+
Sv: "SV",
|
|
270
|
+
Sx: "SX",
|
|
271
|
+
Sy: "SY",
|
|
272
|
+
Sz: "SZ",
|
|
273
|
+
Tc: "TC",
|
|
274
|
+
Td: "TD",
|
|
275
|
+
Tf: "TF",
|
|
276
|
+
Tg: "TG",
|
|
277
|
+
Th: "TH",
|
|
278
|
+
Tj: "TJ",
|
|
279
|
+
Tk: "TK",
|
|
280
|
+
Tl: "TL",
|
|
281
|
+
Tm: "TM",
|
|
282
|
+
Tn: "TN",
|
|
283
|
+
To: "TO",
|
|
284
|
+
Tr: "TR",
|
|
285
|
+
Tt: "TT",
|
|
286
|
+
Tv: "TV",
|
|
287
|
+
Tw: "TW",
|
|
288
|
+
Tz: "TZ",
|
|
289
|
+
Ua: "UA",
|
|
290
|
+
Ug: "UG",
|
|
291
|
+
Um: "UM",
|
|
292
|
+
Us: "US",
|
|
293
|
+
Uy: "UY",
|
|
294
|
+
Uz: "UZ",
|
|
295
|
+
Va: "VA",
|
|
296
|
+
Vc: "VC",
|
|
297
|
+
Ve: "VE",
|
|
298
|
+
Vg: "VG",
|
|
299
|
+
Vi: "VI",
|
|
300
|
+
Vn: "VN",
|
|
301
|
+
Vu: "VU",
|
|
302
|
+
Wf: "WF",
|
|
303
|
+
Ws: "WS",
|
|
304
|
+
Ye: "YE",
|
|
305
|
+
Yt: "YT",
|
|
306
|
+
Za: "ZA",
|
|
307
|
+
Zm: "ZM",
|
|
308
|
+
Zw: "ZW",
|
|
309
|
+
} as const;
|
|
310
|
+
export type CountryAlpha2 = OpenEnum<typeof CountryAlpha2>;
|
|
311
|
+
|
|
57
312
|
export type Organization = {
|
|
58
313
|
/**
|
|
59
314
|
* Creation timestamp of the object.
|
|
@@ -113,8 +368,23 @@ export type Organization = {
|
|
|
113
368
|
notificationSettings: OrganizationNotificationSettings;
|
|
114
369
|
customerEmailSettings: OrganizationCustomerEmailSettings;
|
|
115
370
|
customerPortalSettings: OrganizationCustomerPortalSettings;
|
|
371
|
+
/**
|
|
372
|
+
* Two-letter country code (ISO 3166-1 alpha-2).
|
|
373
|
+
*/
|
|
374
|
+
country?: CountryAlpha2 | null | undefined;
|
|
116
375
|
};
|
|
117
376
|
|
|
377
|
+
/** @internal */
|
|
378
|
+
export const CountryAlpha2$inboundSchema: z.ZodMiniType<
|
|
379
|
+
CountryAlpha2,
|
|
380
|
+
unknown
|
|
381
|
+
> = openEnums.inboundSchema(CountryAlpha2);
|
|
382
|
+
/** @internal */
|
|
383
|
+
export const CountryAlpha2$outboundSchema: z.ZodMiniType<
|
|
384
|
+
string,
|
|
385
|
+
CountryAlpha2
|
|
386
|
+
> = openEnums.outboundSchema(CountryAlpha2);
|
|
387
|
+
|
|
118
388
|
/** @internal */
|
|
119
389
|
export const Organization$inboundSchema: z.ZodMiniType<Organization, unknown> =
|
|
120
390
|
z.pipe(
|
|
@@ -146,6 +416,7 @@ export const Organization$inboundSchema: z.ZodMiniType<Organization, unknown> =
|
|
|
146
416
|
customer_email_settings: OrganizationCustomerEmailSettings$inboundSchema,
|
|
147
417
|
customer_portal_settings:
|
|
148
418
|
OrganizationCustomerPortalSettings$inboundSchema,
|
|
419
|
+
country: z.optional(z.nullable(CountryAlpha2$inboundSchema)),
|
|
149
420
|
}),
|
|
150
421
|
z.transform((v) => {
|
|
151
422
|
return remap$(v, {
|
|
@@ -185,6 +456,7 @@ export type Organization$Outbound = {
|
|
|
185
456
|
notification_settings: OrganizationNotificationSettings$Outbound;
|
|
186
457
|
customer_email_settings: OrganizationCustomerEmailSettings$Outbound;
|
|
187
458
|
customer_portal_settings: OrganizationCustomerPortalSettings$Outbound;
|
|
459
|
+
country?: string | null | undefined;
|
|
188
460
|
};
|
|
189
461
|
|
|
190
462
|
/** @internal */
|
|
@@ -214,6 +486,7 @@ export const Organization$outboundSchema: z.ZodMiniType<
|
|
|
214
486
|
notificationSettings: OrganizationNotificationSettings$outboundSchema,
|
|
215
487
|
customerEmailSettings: OrganizationCustomerEmailSettings$outboundSchema,
|
|
216
488
|
customerPortalSettings: OrganizationCustomerPortalSettings$outboundSchema,
|
|
489
|
+
country: z.optional(z.nullable(CountryAlpha2$outboundSchema)),
|
|
217
490
|
}),
|
|
218
491
|
z.transform((v) => {
|
|
219
492
|
return remap$(v, {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type OrganizationCompanyLegalEntitySchema = {
|
|
9
|
+
type: "company";
|
|
10
|
+
registeredName: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type OrganizationCompanyLegalEntitySchema$Outbound = {
|
|
15
|
+
type: "company";
|
|
16
|
+
registered_name: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const OrganizationCompanyLegalEntitySchema$outboundSchema: z.ZodMiniType<
|
|
21
|
+
OrganizationCompanyLegalEntitySchema$Outbound,
|
|
22
|
+
OrganizationCompanyLegalEntitySchema
|
|
23
|
+
> = z.pipe(
|
|
24
|
+
z.object({
|
|
25
|
+
type: z.literal("company"),
|
|
26
|
+
registeredName: z.string(),
|
|
27
|
+
}),
|
|
28
|
+
z.transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
registeredName: "registered_name",
|
|
31
|
+
});
|
|
32
|
+
}),
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
export function organizationCompanyLegalEntitySchemaToJSON(
|
|
36
|
+
organizationCompanyLegalEntitySchema: OrganizationCompanyLegalEntitySchema,
|
|
37
|
+
): string {
|
|
38
|
+
return JSON.stringify(
|
|
39
|
+
OrganizationCompanyLegalEntitySchema$outboundSchema.parse(
|
|
40
|
+
organizationCompanyLegalEntitySchema,
|
|
41
|
+
),
|
|
42
|
+
);
|
|
43
|
+
}
|