dub 0.43.0 → 0.43.2

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.
Files changed (76) hide show
  1. package/dist/commonjs/funcs/qrCodesGet.d.ts.map +1 -1
  2. package/dist/commonjs/funcs/qrCodesGet.js +2 -0
  3. package/dist/commonjs/funcs/qrCodesGet.js.map +1 -1
  4. package/dist/commonjs/lib/config.d.ts +2 -2
  5. package/dist/commonjs/lib/config.js +2 -2
  6. package/dist/commonjs/models/components/index.d.ts +4 -0
  7. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  8. package/dist/commonjs/models/components/index.js +4 -0
  9. package/dist/commonjs/models/components/index.js.map +1 -1
  10. package/dist/commonjs/models/components/leadcreatedevent.d.ts +884 -0
  11. package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -0
  12. package/dist/commonjs/models/components/leadcreatedevent.js +1307 -0
  13. package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -0
  14. package/dist/commonjs/models/components/linkclickedevent.d.ts +851 -0
  15. package/dist/commonjs/models/components/linkclickedevent.d.ts.map +1 -0
  16. package/dist/commonjs/models/components/linkclickedevent.js +1278 -0
  17. package/dist/commonjs/models/components/linkclickedevent.js.map +1 -0
  18. package/dist/commonjs/models/components/linkwebhookevent.d.ts +844 -0
  19. package/dist/commonjs/models/components/linkwebhookevent.d.ts.map +1 -0
  20. package/dist/commonjs/models/components/linkwebhookevent.js +1272 -0
  21. package/dist/commonjs/models/components/linkwebhookevent.js.map +1 -0
  22. package/dist/commonjs/models/components/salecreatedevent.d.ts +915 -0
  23. package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -0
  24. package/dist/commonjs/models/components/salecreatedevent.js +1334 -0
  25. package/dist/commonjs/models/components/salecreatedevent.js.map +1 -0
  26. package/dist/commonjs/models/components/webhookevent.d.ts +6 -3470
  27. package/dist/commonjs/models/components/webhookevent.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/webhookevent.js +13 -5088
  29. package/dist/commonjs/models/components/webhookevent.js.map +1 -1
  30. package/dist/commonjs/models/operations/getqrcode.d.ts +10 -0
  31. package/dist/commonjs/models/operations/getqrcode.d.ts.map +1 -1
  32. package/dist/commonjs/models/operations/getqrcode.js +4 -0
  33. package/dist/commonjs/models/operations/getqrcode.js.map +1 -1
  34. package/dist/esm/funcs/qrCodesGet.d.ts.map +1 -1
  35. package/dist/esm/funcs/qrCodesGet.js +2 -0
  36. package/dist/esm/funcs/qrCodesGet.js.map +1 -1
  37. package/dist/esm/lib/config.d.ts +2 -2
  38. package/dist/esm/lib/config.js +2 -2
  39. package/dist/esm/models/components/index.d.ts +4 -0
  40. package/dist/esm/models/components/index.d.ts.map +1 -1
  41. package/dist/esm/models/components/index.js +4 -0
  42. package/dist/esm/models/components/index.js.map +1 -1
  43. package/dist/esm/models/components/leadcreatedevent.d.ts +884 -0
  44. package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -0
  45. package/dist/esm/models/components/leadcreatedevent.js +1281 -0
  46. package/dist/esm/models/components/leadcreatedevent.js.map +1 -0
  47. package/dist/esm/models/components/linkclickedevent.d.ts +851 -0
  48. package/dist/esm/models/components/linkclickedevent.d.ts.map +1 -0
  49. package/dist/esm/models/components/linkclickedevent.js +1252 -0
  50. package/dist/esm/models/components/linkclickedevent.js.map +1 -0
  51. package/dist/esm/models/components/linkwebhookevent.d.ts +844 -0
  52. package/dist/esm/models/components/linkwebhookevent.d.ts.map +1 -0
  53. package/dist/esm/models/components/linkwebhookevent.js +1246 -0
  54. package/dist/esm/models/components/linkwebhookevent.js.map +1 -0
  55. package/dist/esm/models/components/salecreatedevent.d.ts +915 -0
  56. package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -0
  57. package/dist/esm/models/components/salecreatedevent.js +1308 -0
  58. package/dist/esm/models/components/salecreatedevent.js.map +1 -0
  59. package/dist/esm/models/components/webhookevent.d.ts +6 -3470
  60. package/dist/esm/models/components/webhookevent.d.ts.map +1 -1
  61. package/dist/esm/models/components/webhookevent.js +12 -5086
  62. package/dist/esm/models/components/webhookevent.js.map +1 -1
  63. package/dist/esm/models/operations/getqrcode.d.ts +10 -0
  64. package/dist/esm/models/operations/getqrcode.d.ts.map +1 -1
  65. package/dist/esm/models/operations/getqrcode.js +4 -0
  66. package/dist/esm/models/operations/getqrcode.js.map +1 -1
  67. package/package.json +1 -1
  68. package/src/funcs/qrCodesGet.ts +2 -0
  69. package/src/lib/config.ts +2 -2
  70. package/src/models/components/index.ts +4 -0
  71. package/src/models/components/leadcreatedevent.ts +2141 -0
  72. package/src/models/components/linkclickedevent.ts +2081 -0
  73. package/src/models/components/linkwebhookevent.ts +2028 -0
  74. package/src/models/components/salecreatedevent.ts +2197 -0
  75. package/src/models/components/webhookevent.ts +40 -8391
  76. package/src/models/operations/getqrcode.ts +14 -0
@@ -0,0 +1,2197 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import {
9
+ TagSchema,
10
+ TagSchema$inboundSchema,
11
+ TagSchema$Outbound,
12
+ TagSchema$outboundSchema,
13
+ } from "./tagschema.js";
14
+
15
+ export const SaleCreatedEventEvent = {
16
+ SaleCreated: "sale.created",
17
+ } as const;
18
+ export type SaleCreatedEventEvent = ClosedEnum<typeof SaleCreatedEventEvent>;
19
+
20
+ export type SaleCreatedEventCustomer = {
21
+ id: string;
22
+ name: string | null;
23
+ email: string | null;
24
+ avatar: string | null;
25
+ };
26
+
27
+ export type SaleCreatedEventClick = {
28
+ id: string;
29
+ url: string;
30
+ continent: string;
31
+ country: string;
32
+ city: string;
33
+ device: string;
34
+ browser: string;
35
+ os: string;
36
+ referer: string;
37
+ refererUrl: string;
38
+ qr?: boolean | undefined;
39
+ ip: string;
40
+ };
41
+
42
+ /**
43
+ * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
44
+ */
45
+ export type SaleCreatedEventGeo = {
46
+ af?: string | undefined;
47
+ al?: string | undefined;
48
+ dz?: string | undefined;
49
+ as?: string | undefined;
50
+ ad?: string | undefined;
51
+ ao?: string | undefined;
52
+ ai?: string | undefined;
53
+ aq?: string | undefined;
54
+ ag?: string | undefined;
55
+ ar?: string | undefined;
56
+ am?: string | undefined;
57
+ aw?: string | undefined;
58
+ au?: string | undefined;
59
+ at?: string | undefined;
60
+ az?: string | undefined;
61
+ bs?: string | undefined;
62
+ bh?: string | undefined;
63
+ bd?: string | undefined;
64
+ bb?: string | undefined;
65
+ by?: string | undefined;
66
+ be?: string | undefined;
67
+ bz?: string | undefined;
68
+ bj?: string | undefined;
69
+ bm?: string | undefined;
70
+ bt?: string | undefined;
71
+ bo?: string | undefined;
72
+ ba?: string | undefined;
73
+ bw?: string | undefined;
74
+ bv?: string | undefined;
75
+ br?: string | undefined;
76
+ io?: string | undefined;
77
+ bn?: string | undefined;
78
+ bg?: string | undefined;
79
+ bf?: string | undefined;
80
+ bi?: string | undefined;
81
+ kh?: string | undefined;
82
+ cm?: string | undefined;
83
+ ca?: string | undefined;
84
+ cv?: string | undefined;
85
+ ky?: string | undefined;
86
+ cf?: string | undefined;
87
+ td?: string | undefined;
88
+ cl?: string | undefined;
89
+ cn?: string | undefined;
90
+ cx?: string | undefined;
91
+ cc?: string | undefined;
92
+ co?: string | undefined;
93
+ km?: string | undefined;
94
+ cg?: string | undefined;
95
+ cd?: string | undefined;
96
+ ck?: string | undefined;
97
+ cr?: string | undefined;
98
+ ci?: string | undefined;
99
+ hr?: string | undefined;
100
+ cu?: string | undefined;
101
+ cy?: string | undefined;
102
+ cz?: string | undefined;
103
+ dk?: string | undefined;
104
+ dj?: string | undefined;
105
+ dm?: string | undefined;
106
+ do?: string | undefined;
107
+ ec?: string | undefined;
108
+ eg?: string | undefined;
109
+ sv?: string | undefined;
110
+ gq?: string | undefined;
111
+ er?: string | undefined;
112
+ ee?: string | undefined;
113
+ et?: string | undefined;
114
+ fk?: string | undefined;
115
+ fo?: string | undefined;
116
+ fj?: string | undefined;
117
+ fi?: string | undefined;
118
+ fr?: string | undefined;
119
+ gf?: string | undefined;
120
+ pf?: string | undefined;
121
+ tf?: string | undefined;
122
+ ga?: string | undefined;
123
+ gm?: string | undefined;
124
+ ge?: string | undefined;
125
+ de?: string | undefined;
126
+ gh?: string | undefined;
127
+ gi?: string | undefined;
128
+ gr?: string | undefined;
129
+ gl?: string | undefined;
130
+ gd?: string | undefined;
131
+ gp?: string | undefined;
132
+ gu?: string | undefined;
133
+ gt?: string | undefined;
134
+ gn?: string | undefined;
135
+ gw?: string | undefined;
136
+ gy?: string | undefined;
137
+ ht?: string | undefined;
138
+ hm?: string | undefined;
139
+ va?: string | undefined;
140
+ hn?: string | undefined;
141
+ hk?: string | undefined;
142
+ hu?: string | undefined;
143
+ is?: string | undefined;
144
+ in?: string | undefined;
145
+ id?: string | undefined;
146
+ ir?: string | undefined;
147
+ iq?: string | undefined;
148
+ ie?: string | undefined;
149
+ il?: string | undefined;
150
+ it?: string | undefined;
151
+ jm?: string | undefined;
152
+ jp?: string | undefined;
153
+ jo?: string | undefined;
154
+ kz?: string | undefined;
155
+ ke?: string | undefined;
156
+ ki?: string | undefined;
157
+ kp?: string | undefined;
158
+ kr?: string | undefined;
159
+ kw?: string | undefined;
160
+ kg?: string | undefined;
161
+ la?: string | undefined;
162
+ lv?: string | undefined;
163
+ lb?: string | undefined;
164
+ ls?: string | undefined;
165
+ lr?: string | undefined;
166
+ ly?: string | undefined;
167
+ li?: string | undefined;
168
+ lt?: string | undefined;
169
+ lu?: string | undefined;
170
+ mo?: string | undefined;
171
+ mg?: string | undefined;
172
+ mw?: string | undefined;
173
+ my?: string | undefined;
174
+ mv?: string | undefined;
175
+ ml?: string | undefined;
176
+ mt?: string | undefined;
177
+ mh?: string | undefined;
178
+ mq?: string | undefined;
179
+ mr?: string | undefined;
180
+ mu?: string | undefined;
181
+ yt?: string | undefined;
182
+ mx?: string | undefined;
183
+ fm?: string | undefined;
184
+ md?: string | undefined;
185
+ mc?: string | undefined;
186
+ mn?: string | undefined;
187
+ ms?: string | undefined;
188
+ ma?: string | undefined;
189
+ mz?: string | undefined;
190
+ mm?: string | undefined;
191
+ na?: string | undefined;
192
+ nr?: string | undefined;
193
+ np?: string | undefined;
194
+ nl?: string | undefined;
195
+ nc?: string | undefined;
196
+ nz?: string | undefined;
197
+ ni?: string | undefined;
198
+ ne?: string | undefined;
199
+ ng?: string | undefined;
200
+ nu?: string | undefined;
201
+ nf?: string | undefined;
202
+ mk?: string | undefined;
203
+ mp?: string | undefined;
204
+ no?: string | undefined;
205
+ om?: string | undefined;
206
+ pk?: string | undefined;
207
+ pw?: string | undefined;
208
+ ps?: string | undefined;
209
+ pa?: string | undefined;
210
+ pg?: string | undefined;
211
+ py?: string | undefined;
212
+ pe?: string | undefined;
213
+ ph?: string | undefined;
214
+ pn?: string | undefined;
215
+ pl?: string | undefined;
216
+ pt?: string | undefined;
217
+ pr?: string | undefined;
218
+ qa?: string | undefined;
219
+ re?: string | undefined;
220
+ ro?: string | undefined;
221
+ ru?: string | undefined;
222
+ rw?: string | undefined;
223
+ sh?: string | undefined;
224
+ kn?: string | undefined;
225
+ lc?: string | undefined;
226
+ pm?: string | undefined;
227
+ vc?: string | undefined;
228
+ ws?: string | undefined;
229
+ sm?: string | undefined;
230
+ st?: string | undefined;
231
+ sa?: string | undefined;
232
+ sn?: string | undefined;
233
+ sc?: string | undefined;
234
+ sl?: string | undefined;
235
+ sg?: string | undefined;
236
+ sk?: string | undefined;
237
+ si?: string | undefined;
238
+ sb?: string | undefined;
239
+ so?: string | undefined;
240
+ za?: string | undefined;
241
+ gs?: string | undefined;
242
+ es?: string | undefined;
243
+ lk?: string | undefined;
244
+ sd?: string | undefined;
245
+ sr?: string | undefined;
246
+ sj?: string | undefined;
247
+ sz?: string | undefined;
248
+ se?: string | undefined;
249
+ ch?: string | undefined;
250
+ sy?: string | undefined;
251
+ tw?: string | undefined;
252
+ tj?: string | undefined;
253
+ tz?: string | undefined;
254
+ th?: string | undefined;
255
+ tl?: string | undefined;
256
+ tg?: string | undefined;
257
+ tk?: string | undefined;
258
+ to?: string | undefined;
259
+ tt?: string | undefined;
260
+ tn?: string | undefined;
261
+ tr?: string | undefined;
262
+ tm?: string | undefined;
263
+ tc?: string | undefined;
264
+ tv?: string | undefined;
265
+ ug?: string | undefined;
266
+ ua?: string | undefined;
267
+ ae?: string | undefined;
268
+ gb?: string | undefined;
269
+ us?: string | undefined;
270
+ um?: string | undefined;
271
+ uy?: string | undefined;
272
+ uz?: string | undefined;
273
+ vu?: string | undefined;
274
+ ve?: string | undefined;
275
+ vn?: string | undefined;
276
+ vg?: string | undefined;
277
+ vi?: string | undefined;
278
+ wf?: string | undefined;
279
+ eh?: string | undefined;
280
+ ye?: string | undefined;
281
+ zm?: string | undefined;
282
+ zw?: string | undefined;
283
+ ax?: string | undefined;
284
+ bq?: string | undefined;
285
+ cw?: string | undefined;
286
+ gg?: string | undefined;
287
+ im?: string | undefined;
288
+ je?: string | undefined;
289
+ me?: string | undefined;
290
+ bl?: string | undefined;
291
+ mf?: string | undefined;
292
+ rs?: string | undefined;
293
+ sx?: string | undefined;
294
+ ss?: string | undefined;
295
+ xk?: string | undefined;
296
+ };
297
+
298
+ export type SaleCreatedEventLink = {
299
+ /**
300
+ * The unique ID of the short link.
301
+ */
302
+ id: string;
303
+ /**
304
+ * The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
305
+ */
306
+ domain: string;
307
+ /**
308
+ * The short link slug. If not provided, a random 7-character slug will be generated.
309
+ */
310
+ key: string;
311
+ url: string;
312
+ trackConversion?: boolean | undefined;
313
+ /**
314
+ * This is the ID of the link in your database that is unique across your workspace. If set, it can be used to identify the link in future API requests. Must be prefixed with 'ext_' when passed as a query parameter.
315
+ */
316
+ externalId: string | null;
317
+ /**
318
+ * The identifier of the short link that is unique across your workspace. If set, it can be used to identify your short link for client-side click tracking.
319
+ */
320
+ identifier: string | null;
321
+ archived?: boolean | undefined;
322
+ expiresAt: string;
323
+ /**
324
+ * The URL to redirect to when the short link has expired.
325
+ */
326
+ expiredUrl: string | null;
327
+ /**
328
+ * The password required to access the destination URL of the short link.
329
+ */
330
+ password: string | null;
331
+ proxy?: boolean | undefined;
332
+ /**
333
+ * The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
334
+ */
335
+ title: string | null;
336
+ /**
337
+ * The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
338
+ */
339
+ description: string | null;
340
+ /**
341
+ * The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
342
+ */
343
+ image: string | null;
344
+ /**
345
+ * The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
346
+ */
347
+ video: string | null;
348
+ rewrite?: boolean | undefined;
349
+ doIndex?: boolean | undefined;
350
+ /**
351
+ * The iOS destination URL for the short link for iOS device targeting.
352
+ */
353
+ ios: string | null;
354
+ /**
355
+ * The Android destination URL for the short link for Android device targeting.
356
+ */
357
+ android: string | null;
358
+ /**
359
+ * Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
360
+ */
361
+ geo: SaleCreatedEventGeo | null;
362
+ publicStats?: boolean | undefined;
363
+ /**
364
+ * The unique ID of the tag assigned to the short link. This field is deprecated – use `tags` instead.
365
+ *
366
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
367
+ */
368
+ tagId: string | null;
369
+ /**
370
+ * The tags assigned to the short link.
371
+ */
372
+ tags: Array<TagSchema> | null;
373
+ /**
374
+ * The comments for the short link.
375
+ */
376
+ comments: string | null;
377
+ /**
378
+ * The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
379
+ */
380
+ shortLink: string;
381
+ /**
382
+ * The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
383
+ */
384
+ qrCode: string;
385
+ /**
386
+ * The UTM source of the short link.
387
+ */
388
+ utmSource: string | null;
389
+ /**
390
+ * The UTM medium of the short link.
391
+ */
392
+ utmMedium: string | null;
393
+ /**
394
+ * The UTM campaign of the short link.
395
+ */
396
+ utmCampaign: string | null;
397
+ /**
398
+ * The UTM term of the short link.
399
+ */
400
+ utmTerm: string | null;
401
+ /**
402
+ * The UTM content of the short link.
403
+ */
404
+ utmContent: string | null;
405
+ userId: string | null;
406
+ /**
407
+ * The workspace ID of the short link.
408
+ */
409
+ workspaceId: string;
410
+ /**
411
+ * The number of clicks on the short link.
412
+ */
413
+ clicks?: number | undefined;
414
+ lastClicked: string;
415
+ /**
416
+ * [BETA]: The number of leads the short links has generated.
417
+ */
418
+ leads?: number | undefined;
419
+ /**
420
+ * [BETA]: The number of sales the short links has generated.
421
+ */
422
+ sales?: number | undefined;
423
+ /**
424
+ * [BETA]: The total dollar amount of sales the short links has generated (in cents).
425
+ */
426
+ saleAmount?: number | undefined;
427
+ createdAt: string;
428
+ updatedAt: string;
429
+ /**
430
+ * The project ID of the short link. This field is deprecated – use `workspaceId` instead.
431
+ *
432
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
433
+ */
434
+ projectId: string;
435
+ };
436
+
437
+ export type SaleCreatedEventSale = {
438
+ amount: number;
439
+ currency: string;
440
+ paymentProcessor: string;
441
+ invoiceId: string | null;
442
+ };
443
+
444
+ export type SaleCreatedEventData = {
445
+ eventName: string;
446
+ customer: SaleCreatedEventCustomer;
447
+ click: SaleCreatedEventClick;
448
+ link: SaleCreatedEventLink;
449
+ sale: SaleCreatedEventSale;
450
+ };
451
+
452
+ /**
453
+ * Triggered when a sale is created.
454
+ */
455
+ export type SaleCreatedEvent = {
456
+ id: string;
457
+ event: SaleCreatedEventEvent;
458
+ createdAt: string;
459
+ data: SaleCreatedEventData;
460
+ };
461
+
462
+ /** @internal */
463
+ export const SaleCreatedEventEvent$inboundSchema: z.ZodNativeEnum<
464
+ typeof SaleCreatedEventEvent
465
+ > = z.nativeEnum(SaleCreatedEventEvent);
466
+
467
+ /** @internal */
468
+ export const SaleCreatedEventEvent$outboundSchema: z.ZodNativeEnum<
469
+ typeof SaleCreatedEventEvent
470
+ > = SaleCreatedEventEvent$inboundSchema;
471
+
472
+ /**
473
+ * @internal
474
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
475
+ */
476
+ export namespace SaleCreatedEventEvent$ {
477
+ /** @deprecated use `SaleCreatedEventEvent$inboundSchema` instead. */
478
+ export const inboundSchema = SaleCreatedEventEvent$inboundSchema;
479
+ /** @deprecated use `SaleCreatedEventEvent$outboundSchema` instead. */
480
+ export const outboundSchema = SaleCreatedEventEvent$outboundSchema;
481
+ }
482
+
483
+ /** @internal */
484
+ export const SaleCreatedEventCustomer$inboundSchema: z.ZodType<
485
+ SaleCreatedEventCustomer,
486
+ z.ZodTypeDef,
487
+ unknown
488
+ > = z.object({
489
+ id: z.string(),
490
+ name: z.nullable(z.string()),
491
+ email: z.nullable(z.string()),
492
+ avatar: z.nullable(z.string()),
493
+ });
494
+
495
+ /** @internal */
496
+ export type SaleCreatedEventCustomer$Outbound = {
497
+ id: string;
498
+ name: string | null;
499
+ email: string | null;
500
+ avatar: string | null;
501
+ };
502
+
503
+ /** @internal */
504
+ export const SaleCreatedEventCustomer$outboundSchema: z.ZodType<
505
+ SaleCreatedEventCustomer$Outbound,
506
+ z.ZodTypeDef,
507
+ SaleCreatedEventCustomer
508
+ > = z.object({
509
+ id: z.string(),
510
+ name: z.nullable(z.string()),
511
+ email: z.nullable(z.string()),
512
+ avatar: z.nullable(z.string()),
513
+ });
514
+
515
+ /**
516
+ * @internal
517
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
518
+ */
519
+ export namespace SaleCreatedEventCustomer$ {
520
+ /** @deprecated use `SaleCreatedEventCustomer$inboundSchema` instead. */
521
+ export const inboundSchema = SaleCreatedEventCustomer$inboundSchema;
522
+ /** @deprecated use `SaleCreatedEventCustomer$outboundSchema` instead. */
523
+ export const outboundSchema = SaleCreatedEventCustomer$outboundSchema;
524
+ /** @deprecated use `SaleCreatedEventCustomer$Outbound` instead. */
525
+ export type Outbound = SaleCreatedEventCustomer$Outbound;
526
+ }
527
+
528
+ /** @internal */
529
+ export const SaleCreatedEventClick$inboundSchema: z.ZodType<
530
+ SaleCreatedEventClick,
531
+ z.ZodTypeDef,
532
+ unknown
533
+ > = z.object({
534
+ id: z.string(),
535
+ url: z.string(),
536
+ continent: z.string(),
537
+ country: z.string(),
538
+ city: z.string(),
539
+ device: z.string(),
540
+ browser: z.string(),
541
+ os: z.string(),
542
+ referer: z.string(),
543
+ refererUrl: z.string(),
544
+ qr: z.boolean().optional(),
545
+ ip: z.string(),
546
+ });
547
+
548
+ /** @internal */
549
+ export type SaleCreatedEventClick$Outbound = {
550
+ id: string;
551
+ url: string;
552
+ continent: string;
553
+ country: string;
554
+ city: string;
555
+ device: string;
556
+ browser: string;
557
+ os: string;
558
+ referer: string;
559
+ refererUrl: string;
560
+ qr?: boolean | undefined;
561
+ ip: string;
562
+ };
563
+
564
+ /** @internal */
565
+ export const SaleCreatedEventClick$outboundSchema: z.ZodType<
566
+ SaleCreatedEventClick$Outbound,
567
+ z.ZodTypeDef,
568
+ SaleCreatedEventClick
569
+ > = z.object({
570
+ id: z.string(),
571
+ url: z.string(),
572
+ continent: z.string(),
573
+ country: z.string(),
574
+ city: z.string(),
575
+ device: z.string(),
576
+ browser: z.string(),
577
+ os: z.string(),
578
+ referer: z.string(),
579
+ refererUrl: z.string(),
580
+ qr: z.boolean().optional(),
581
+ ip: z.string(),
582
+ });
583
+
584
+ /**
585
+ * @internal
586
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
587
+ */
588
+ export namespace SaleCreatedEventClick$ {
589
+ /** @deprecated use `SaleCreatedEventClick$inboundSchema` instead. */
590
+ export const inboundSchema = SaleCreatedEventClick$inboundSchema;
591
+ /** @deprecated use `SaleCreatedEventClick$outboundSchema` instead. */
592
+ export const outboundSchema = SaleCreatedEventClick$outboundSchema;
593
+ /** @deprecated use `SaleCreatedEventClick$Outbound` instead. */
594
+ export type Outbound = SaleCreatedEventClick$Outbound;
595
+ }
596
+
597
+ /** @internal */
598
+ export const SaleCreatedEventGeo$inboundSchema: z.ZodType<
599
+ SaleCreatedEventGeo,
600
+ z.ZodTypeDef,
601
+ unknown
602
+ > = z.object({
603
+ AF: z.string().optional(),
604
+ AL: z.string().optional(),
605
+ DZ: z.string().optional(),
606
+ AS: z.string().optional(),
607
+ AD: z.string().optional(),
608
+ AO: z.string().optional(),
609
+ AI: z.string().optional(),
610
+ AQ: z.string().optional(),
611
+ AG: z.string().optional(),
612
+ AR: z.string().optional(),
613
+ AM: z.string().optional(),
614
+ AW: z.string().optional(),
615
+ AU: z.string().optional(),
616
+ AT: z.string().optional(),
617
+ AZ: z.string().optional(),
618
+ BS: z.string().optional(),
619
+ BH: z.string().optional(),
620
+ BD: z.string().optional(),
621
+ BB: z.string().optional(),
622
+ BY: z.string().optional(),
623
+ BE: z.string().optional(),
624
+ BZ: z.string().optional(),
625
+ BJ: z.string().optional(),
626
+ BM: z.string().optional(),
627
+ BT: z.string().optional(),
628
+ BO: z.string().optional(),
629
+ BA: z.string().optional(),
630
+ BW: z.string().optional(),
631
+ BV: z.string().optional(),
632
+ BR: z.string().optional(),
633
+ IO: z.string().optional(),
634
+ BN: z.string().optional(),
635
+ BG: z.string().optional(),
636
+ BF: z.string().optional(),
637
+ BI: z.string().optional(),
638
+ KH: z.string().optional(),
639
+ CM: z.string().optional(),
640
+ CA: z.string().optional(),
641
+ CV: z.string().optional(),
642
+ KY: z.string().optional(),
643
+ CF: z.string().optional(),
644
+ TD: z.string().optional(),
645
+ CL: z.string().optional(),
646
+ CN: z.string().optional(),
647
+ CX: z.string().optional(),
648
+ CC: z.string().optional(),
649
+ CO: z.string().optional(),
650
+ KM: z.string().optional(),
651
+ CG: z.string().optional(),
652
+ CD: z.string().optional(),
653
+ CK: z.string().optional(),
654
+ CR: z.string().optional(),
655
+ CI: z.string().optional(),
656
+ HR: z.string().optional(),
657
+ CU: z.string().optional(),
658
+ CY: z.string().optional(),
659
+ CZ: z.string().optional(),
660
+ DK: z.string().optional(),
661
+ DJ: z.string().optional(),
662
+ DM: z.string().optional(),
663
+ DO: z.string().optional(),
664
+ EC: z.string().optional(),
665
+ EG: z.string().optional(),
666
+ SV: z.string().optional(),
667
+ GQ: z.string().optional(),
668
+ ER: z.string().optional(),
669
+ EE: z.string().optional(),
670
+ ET: z.string().optional(),
671
+ FK: z.string().optional(),
672
+ FO: z.string().optional(),
673
+ FJ: z.string().optional(),
674
+ FI: z.string().optional(),
675
+ FR: z.string().optional(),
676
+ GF: z.string().optional(),
677
+ PF: z.string().optional(),
678
+ TF: z.string().optional(),
679
+ GA: z.string().optional(),
680
+ GM: z.string().optional(),
681
+ GE: z.string().optional(),
682
+ DE: z.string().optional(),
683
+ GH: z.string().optional(),
684
+ GI: z.string().optional(),
685
+ GR: z.string().optional(),
686
+ GL: z.string().optional(),
687
+ GD: z.string().optional(),
688
+ GP: z.string().optional(),
689
+ GU: z.string().optional(),
690
+ GT: z.string().optional(),
691
+ GN: z.string().optional(),
692
+ GW: z.string().optional(),
693
+ GY: z.string().optional(),
694
+ HT: z.string().optional(),
695
+ HM: z.string().optional(),
696
+ VA: z.string().optional(),
697
+ HN: z.string().optional(),
698
+ HK: z.string().optional(),
699
+ HU: z.string().optional(),
700
+ IS: z.string().optional(),
701
+ IN: z.string().optional(),
702
+ ID: z.string().optional(),
703
+ IR: z.string().optional(),
704
+ IQ: z.string().optional(),
705
+ IE: z.string().optional(),
706
+ IL: z.string().optional(),
707
+ IT: z.string().optional(),
708
+ JM: z.string().optional(),
709
+ JP: z.string().optional(),
710
+ JO: z.string().optional(),
711
+ KZ: z.string().optional(),
712
+ KE: z.string().optional(),
713
+ KI: z.string().optional(),
714
+ KP: z.string().optional(),
715
+ KR: z.string().optional(),
716
+ KW: z.string().optional(),
717
+ KG: z.string().optional(),
718
+ LA: z.string().optional(),
719
+ LV: z.string().optional(),
720
+ LB: z.string().optional(),
721
+ LS: z.string().optional(),
722
+ LR: z.string().optional(),
723
+ LY: z.string().optional(),
724
+ LI: z.string().optional(),
725
+ LT: z.string().optional(),
726
+ LU: z.string().optional(),
727
+ MO: z.string().optional(),
728
+ MG: z.string().optional(),
729
+ MW: z.string().optional(),
730
+ MY: z.string().optional(),
731
+ MV: z.string().optional(),
732
+ ML: z.string().optional(),
733
+ MT: z.string().optional(),
734
+ MH: z.string().optional(),
735
+ MQ: z.string().optional(),
736
+ MR: z.string().optional(),
737
+ MU: z.string().optional(),
738
+ YT: z.string().optional(),
739
+ MX: z.string().optional(),
740
+ FM: z.string().optional(),
741
+ MD: z.string().optional(),
742
+ MC: z.string().optional(),
743
+ MN: z.string().optional(),
744
+ MS: z.string().optional(),
745
+ MA: z.string().optional(),
746
+ MZ: z.string().optional(),
747
+ MM: z.string().optional(),
748
+ NA: z.string().optional(),
749
+ NR: z.string().optional(),
750
+ NP: z.string().optional(),
751
+ NL: z.string().optional(),
752
+ NC: z.string().optional(),
753
+ NZ: z.string().optional(),
754
+ NI: z.string().optional(),
755
+ NE: z.string().optional(),
756
+ NG: z.string().optional(),
757
+ NU: z.string().optional(),
758
+ NF: z.string().optional(),
759
+ MK: z.string().optional(),
760
+ MP: z.string().optional(),
761
+ NO: z.string().optional(),
762
+ OM: z.string().optional(),
763
+ PK: z.string().optional(),
764
+ PW: z.string().optional(),
765
+ PS: z.string().optional(),
766
+ PA: z.string().optional(),
767
+ PG: z.string().optional(),
768
+ PY: z.string().optional(),
769
+ PE: z.string().optional(),
770
+ PH: z.string().optional(),
771
+ PN: z.string().optional(),
772
+ PL: z.string().optional(),
773
+ PT: z.string().optional(),
774
+ PR: z.string().optional(),
775
+ QA: z.string().optional(),
776
+ RE: z.string().optional(),
777
+ RO: z.string().optional(),
778
+ RU: z.string().optional(),
779
+ RW: z.string().optional(),
780
+ SH: z.string().optional(),
781
+ KN: z.string().optional(),
782
+ LC: z.string().optional(),
783
+ PM: z.string().optional(),
784
+ VC: z.string().optional(),
785
+ WS: z.string().optional(),
786
+ SM: z.string().optional(),
787
+ ST: z.string().optional(),
788
+ SA: z.string().optional(),
789
+ SN: z.string().optional(),
790
+ SC: z.string().optional(),
791
+ SL: z.string().optional(),
792
+ SG: z.string().optional(),
793
+ SK: z.string().optional(),
794
+ SI: z.string().optional(),
795
+ SB: z.string().optional(),
796
+ SO: z.string().optional(),
797
+ ZA: z.string().optional(),
798
+ GS: z.string().optional(),
799
+ ES: z.string().optional(),
800
+ LK: z.string().optional(),
801
+ SD: z.string().optional(),
802
+ SR: z.string().optional(),
803
+ SJ: z.string().optional(),
804
+ SZ: z.string().optional(),
805
+ SE: z.string().optional(),
806
+ CH: z.string().optional(),
807
+ SY: z.string().optional(),
808
+ TW: z.string().optional(),
809
+ TJ: z.string().optional(),
810
+ TZ: z.string().optional(),
811
+ TH: z.string().optional(),
812
+ TL: z.string().optional(),
813
+ TG: z.string().optional(),
814
+ TK: z.string().optional(),
815
+ TO: z.string().optional(),
816
+ TT: z.string().optional(),
817
+ TN: z.string().optional(),
818
+ TR: z.string().optional(),
819
+ TM: z.string().optional(),
820
+ TC: z.string().optional(),
821
+ TV: z.string().optional(),
822
+ UG: z.string().optional(),
823
+ UA: z.string().optional(),
824
+ AE: z.string().optional(),
825
+ GB: z.string().optional(),
826
+ US: z.string().optional(),
827
+ UM: z.string().optional(),
828
+ UY: z.string().optional(),
829
+ UZ: z.string().optional(),
830
+ VU: z.string().optional(),
831
+ VE: z.string().optional(),
832
+ VN: z.string().optional(),
833
+ VG: z.string().optional(),
834
+ VI: z.string().optional(),
835
+ WF: z.string().optional(),
836
+ EH: z.string().optional(),
837
+ YE: z.string().optional(),
838
+ ZM: z.string().optional(),
839
+ ZW: z.string().optional(),
840
+ AX: z.string().optional(),
841
+ BQ: z.string().optional(),
842
+ CW: z.string().optional(),
843
+ GG: z.string().optional(),
844
+ IM: z.string().optional(),
845
+ JE: z.string().optional(),
846
+ ME: z.string().optional(),
847
+ BL: z.string().optional(),
848
+ MF: z.string().optional(),
849
+ RS: z.string().optional(),
850
+ SX: z.string().optional(),
851
+ SS: z.string().optional(),
852
+ XK: z.string().optional(),
853
+ }).transform((v) => {
854
+ return remap$(v, {
855
+ "AF": "af",
856
+ "AL": "al",
857
+ "DZ": "dz",
858
+ "AS": "as",
859
+ "AD": "ad",
860
+ "AO": "ao",
861
+ "AI": "ai",
862
+ "AQ": "aq",
863
+ "AG": "ag",
864
+ "AR": "ar",
865
+ "AM": "am",
866
+ "AW": "aw",
867
+ "AU": "au",
868
+ "AT": "at",
869
+ "AZ": "az",
870
+ "BS": "bs",
871
+ "BH": "bh",
872
+ "BD": "bd",
873
+ "BB": "bb",
874
+ "BY": "by",
875
+ "BE": "be",
876
+ "BZ": "bz",
877
+ "BJ": "bj",
878
+ "BM": "bm",
879
+ "BT": "bt",
880
+ "BO": "bo",
881
+ "BA": "ba",
882
+ "BW": "bw",
883
+ "BV": "bv",
884
+ "BR": "br",
885
+ "IO": "io",
886
+ "BN": "bn",
887
+ "BG": "bg",
888
+ "BF": "bf",
889
+ "BI": "bi",
890
+ "KH": "kh",
891
+ "CM": "cm",
892
+ "CA": "ca",
893
+ "CV": "cv",
894
+ "KY": "ky",
895
+ "CF": "cf",
896
+ "TD": "td",
897
+ "CL": "cl",
898
+ "CN": "cn",
899
+ "CX": "cx",
900
+ "CC": "cc",
901
+ "CO": "co",
902
+ "KM": "km",
903
+ "CG": "cg",
904
+ "CD": "cd",
905
+ "CK": "ck",
906
+ "CR": "cr",
907
+ "CI": "ci",
908
+ "HR": "hr",
909
+ "CU": "cu",
910
+ "CY": "cy",
911
+ "CZ": "cz",
912
+ "DK": "dk",
913
+ "DJ": "dj",
914
+ "DM": "dm",
915
+ "DO": "do",
916
+ "EC": "ec",
917
+ "EG": "eg",
918
+ "SV": "sv",
919
+ "GQ": "gq",
920
+ "ER": "er",
921
+ "EE": "ee",
922
+ "ET": "et",
923
+ "FK": "fk",
924
+ "FO": "fo",
925
+ "FJ": "fj",
926
+ "FI": "fi",
927
+ "FR": "fr",
928
+ "GF": "gf",
929
+ "PF": "pf",
930
+ "TF": "tf",
931
+ "GA": "ga",
932
+ "GM": "gm",
933
+ "GE": "ge",
934
+ "DE": "de",
935
+ "GH": "gh",
936
+ "GI": "gi",
937
+ "GR": "gr",
938
+ "GL": "gl",
939
+ "GD": "gd",
940
+ "GP": "gp",
941
+ "GU": "gu",
942
+ "GT": "gt",
943
+ "GN": "gn",
944
+ "GW": "gw",
945
+ "GY": "gy",
946
+ "HT": "ht",
947
+ "HM": "hm",
948
+ "VA": "va",
949
+ "HN": "hn",
950
+ "HK": "hk",
951
+ "HU": "hu",
952
+ "IS": "is",
953
+ "IN": "in",
954
+ "ID": "id",
955
+ "IR": "ir",
956
+ "IQ": "iq",
957
+ "IE": "ie",
958
+ "IL": "il",
959
+ "IT": "it",
960
+ "JM": "jm",
961
+ "JP": "jp",
962
+ "JO": "jo",
963
+ "KZ": "kz",
964
+ "KE": "ke",
965
+ "KI": "ki",
966
+ "KP": "kp",
967
+ "KR": "kr",
968
+ "KW": "kw",
969
+ "KG": "kg",
970
+ "LA": "la",
971
+ "LV": "lv",
972
+ "LB": "lb",
973
+ "LS": "ls",
974
+ "LR": "lr",
975
+ "LY": "ly",
976
+ "LI": "li",
977
+ "LT": "lt",
978
+ "LU": "lu",
979
+ "MO": "mo",
980
+ "MG": "mg",
981
+ "MW": "mw",
982
+ "MY": "my",
983
+ "MV": "mv",
984
+ "ML": "ml",
985
+ "MT": "mt",
986
+ "MH": "mh",
987
+ "MQ": "mq",
988
+ "MR": "mr",
989
+ "MU": "mu",
990
+ "YT": "yt",
991
+ "MX": "mx",
992
+ "FM": "fm",
993
+ "MD": "md",
994
+ "MC": "mc",
995
+ "MN": "mn",
996
+ "MS": "ms",
997
+ "MA": "ma",
998
+ "MZ": "mz",
999
+ "MM": "mm",
1000
+ "NA": "na",
1001
+ "NR": "nr",
1002
+ "NP": "np",
1003
+ "NL": "nl",
1004
+ "NC": "nc",
1005
+ "NZ": "nz",
1006
+ "NI": "ni",
1007
+ "NE": "ne",
1008
+ "NG": "ng",
1009
+ "NU": "nu",
1010
+ "NF": "nf",
1011
+ "MK": "mk",
1012
+ "MP": "mp",
1013
+ "NO": "no",
1014
+ "OM": "om",
1015
+ "PK": "pk",
1016
+ "PW": "pw",
1017
+ "PS": "ps",
1018
+ "PA": "pa",
1019
+ "PG": "pg",
1020
+ "PY": "py",
1021
+ "PE": "pe",
1022
+ "PH": "ph",
1023
+ "PN": "pn",
1024
+ "PL": "pl",
1025
+ "PT": "pt",
1026
+ "PR": "pr",
1027
+ "QA": "qa",
1028
+ "RE": "re",
1029
+ "RO": "ro",
1030
+ "RU": "ru",
1031
+ "RW": "rw",
1032
+ "SH": "sh",
1033
+ "KN": "kn",
1034
+ "LC": "lc",
1035
+ "PM": "pm",
1036
+ "VC": "vc",
1037
+ "WS": "ws",
1038
+ "SM": "sm",
1039
+ "ST": "st",
1040
+ "SA": "sa",
1041
+ "SN": "sn",
1042
+ "SC": "sc",
1043
+ "SL": "sl",
1044
+ "SG": "sg",
1045
+ "SK": "sk",
1046
+ "SI": "si",
1047
+ "SB": "sb",
1048
+ "SO": "so",
1049
+ "ZA": "za",
1050
+ "GS": "gs",
1051
+ "ES": "es",
1052
+ "LK": "lk",
1053
+ "SD": "sd",
1054
+ "SR": "sr",
1055
+ "SJ": "sj",
1056
+ "SZ": "sz",
1057
+ "SE": "se",
1058
+ "CH": "ch",
1059
+ "SY": "sy",
1060
+ "TW": "tw",
1061
+ "TJ": "tj",
1062
+ "TZ": "tz",
1063
+ "TH": "th",
1064
+ "TL": "tl",
1065
+ "TG": "tg",
1066
+ "TK": "tk",
1067
+ "TO": "to",
1068
+ "TT": "tt",
1069
+ "TN": "tn",
1070
+ "TR": "tr",
1071
+ "TM": "tm",
1072
+ "TC": "tc",
1073
+ "TV": "tv",
1074
+ "UG": "ug",
1075
+ "UA": "ua",
1076
+ "AE": "ae",
1077
+ "GB": "gb",
1078
+ "US": "us",
1079
+ "UM": "um",
1080
+ "UY": "uy",
1081
+ "UZ": "uz",
1082
+ "VU": "vu",
1083
+ "VE": "ve",
1084
+ "VN": "vn",
1085
+ "VG": "vg",
1086
+ "VI": "vi",
1087
+ "WF": "wf",
1088
+ "EH": "eh",
1089
+ "YE": "ye",
1090
+ "ZM": "zm",
1091
+ "ZW": "zw",
1092
+ "AX": "ax",
1093
+ "BQ": "bq",
1094
+ "CW": "cw",
1095
+ "GG": "gg",
1096
+ "IM": "im",
1097
+ "JE": "je",
1098
+ "ME": "me",
1099
+ "BL": "bl",
1100
+ "MF": "mf",
1101
+ "RS": "rs",
1102
+ "SX": "sx",
1103
+ "SS": "ss",
1104
+ "XK": "xk",
1105
+ });
1106
+ });
1107
+
1108
+ /** @internal */
1109
+ export type SaleCreatedEventGeo$Outbound = {
1110
+ AF?: string | undefined;
1111
+ AL?: string | undefined;
1112
+ DZ?: string | undefined;
1113
+ AS?: string | undefined;
1114
+ AD?: string | undefined;
1115
+ AO?: string | undefined;
1116
+ AI?: string | undefined;
1117
+ AQ?: string | undefined;
1118
+ AG?: string | undefined;
1119
+ AR?: string | undefined;
1120
+ AM?: string | undefined;
1121
+ AW?: string | undefined;
1122
+ AU?: string | undefined;
1123
+ AT?: string | undefined;
1124
+ AZ?: string | undefined;
1125
+ BS?: string | undefined;
1126
+ BH?: string | undefined;
1127
+ BD?: string | undefined;
1128
+ BB?: string | undefined;
1129
+ BY?: string | undefined;
1130
+ BE?: string | undefined;
1131
+ BZ?: string | undefined;
1132
+ BJ?: string | undefined;
1133
+ BM?: string | undefined;
1134
+ BT?: string | undefined;
1135
+ BO?: string | undefined;
1136
+ BA?: string | undefined;
1137
+ BW?: string | undefined;
1138
+ BV?: string | undefined;
1139
+ BR?: string | undefined;
1140
+ IO?: string | undefined;
1141
+ BN?: string | undefined;
1142
+ BG?: string | undefined;
1143
+ BF?: string | undefined;
1144
+ BI?: string | undefined;
1145
+ KH?: string | undefined;
1146
+ CM?: string | undefined;
1147
+ CA?: string | undefined;
1148
+ CV?: string | undefined;
1149
+ KY?: string | undefined;
1150
+ CF?: string | undefined;
1151
+ TD?: string | undefined;
1152
+ CL?: string | undefined;
1153
+ CN?: string | undefined;
1154
+ CX?: string | undefined;
1155
+ CC?: string | undefined;
1156
+ CO?: string | undefined;
1157
+ KM?: string | undefined;
1158
+ CG?: string | undefined;
1159
+ CD?: string | undefined;
1160
+ CK?: string | undefined;
1161
+ CR?: string | undefined;
1162
+ CI?: string | undefined;
1163
+ HR?: string | undefined;
1164
+ CU?: string | undefined;
1165
+ CY?: string | undefined;
1166
+ CZ?: string | undefined;
1167
+ DK?: string | undefined;
1168
+ DJ?: string | undefined;
1169
+ DM?: string | undefined;
1170
+ DO?: string | undefined;
1171
+ EC?: string | undefined;
1172
+ EG?: string | undefined;
1173
+ SV?: string | undefined;
1174
+ GQ?: string | undefined;
1175
+ ER?: string | undefined;
1176
+ EE?: string | undefined;
1177
+ ET?: string | undefined;
1178
+ FK?: string | undefined;
1179
+ FO?: string | undefined;
1180
+ FJ?: string | undefined;
1181
+ FI?: string | undefined;
1182
+ FR?: string | undefined;
1183
+ GF?: string | undefined;
1184
+ PF?: string | undefined;
1185
+ TF?: string | undefined;
1186
+ GA?: string | undefined;
1187
+ GM?: string | undefined;
1188
+ GE?: string | undefined;
1189
+ DE?: string | undefined;
1190
+ GH?: string | undefined;
1191
+ GI?: string | undefined;
1192
+ GR?: string | undefined;
1193
+ GL?: string | undefined;
1194
+ GD?: string | undefined;
1195
+ GP?: string | undefined;
1196
+ GU?: string | undefined;
1197
+ GT?: string | undefined;
1198
+ GN?: string | undefined;
1199
+ GW?: string | undefined;
1200
+ GY?: string | undefined;
1201
+ HT?: string | undefined;
1202
+ HM?: string | undefined;
1203
+ VA?: string | undefined;
1204
+ HN?: string | undefined;
1205
+ HK?: string | undefined;
1206
+ HU?: string | undefined;
1207
+ IS?: string | undefined;
1208
+ IN?: string | undefined;
1209
+ ID?: string | undefined;
1210
+ IR?: string | undefined;
1211
+ IQ?: string | undefined;
1212
+ IE?: string | undefined;
1213
+ IL?: string | undefined;
1214
+ IT?: string | undefined;
1215
+ JM?: string | undefined;
1216
+ JP?: string | undefined;
1217
+ JO?: string | undefined;
1218
+ KZ?: string | undefined;
1219
+ KE?: string | undefined;
1220
+ KI?: string | undefined;
1221
+ KP?: string | undefined;
1222
+ KR?: string | undefined;
1223
+ KW?: string | undefined;
1224
+ KG?: string | undefined;
1225
+ LA?: string | undefined;
1226
+ LV?: string | undefined;
1227
+ LB?: string | undefined;
1228
+ LS?: string | undefined;
1229
+ LR?: string | undefined;
1230
+ LY?: string | undefined;
1231
+ LI?: string | undefined;
1232
+ LT?: string | undefined;
1233
+ LU?: string | undefined;
1234
+ MO?: string | undefined;
1235
+ MG?: string | undefined;
1236
+ MW?: string | undefined;
1237
+ MY?: string | undefined;
1238
+ MV?: string | undefined;
1239
+ ML?: string | undefined;
1240
+ MT?: string | undefined;
1241
+ MH?: string | undefined;
1242
+ MQ?: string | undefined;
1243
+ MR?: string | undefined;
1244
+ MU?: string | undefined;
1245
+ YT?: string | undefined;
1246
+ MX?: string | undefined;
1247
+ FM?: string | undefined;
1248
+ MD?: string | undefined;
1249
+ MC?: string | undefined;
1250
+ MN?: string | undefined;
1251
+ MS?: string | undefined;
1252
+ MA?: string | undefined;
1253
+ MZ?: string | undefined;
1254
+ MM?: string | undefined;
1255
+ NA?: string | undefined;
1256
+ NR?: string | undefined;
1257
+ NP?: string | undefined;
1258
+ NL?: string | undefined;
1259
+ NC?: string | undefined;
1260
+ NZ?: string | undefined;
1261
+ NI?: string | undefined;
1262
+ NE?: string | undefined;
1263
+ NG?: string | undefined;
1264
+ NU?: string | undefined;
1265
+ NF?: string | undefined;
1266
+ MK?: string | undefined;
1267
+ MP?: string | undefined;
1268
+ NO?: string | undefined;
1269
+ OM?: string | undefined;
1270
+ PK?: string | undefined;
1271
+ PW?: string | undefined;
1272
+ PS?: string | undefined;
1273
+ PA?: string | undefined;
1274
+ PG?: string | undefined;
1275
+ PY?: string | undefined;
1276
+ PE?: string | undefined;
1277
+ PH?: string | undefined;
1278
+ PN?: string | undefined;
1279
+ PL?: string | undefined;
1280
+ PT?: string | undefined;
1281
+ PR?: string | undefined;
1282
+ QA?: string | undefined;
1283
+ RE?: string | undefined;
1284
+ RO?: string | undefined;
1285
+ RU?: string | undefined;
1286
+ RW?: string | undefined;
1287
+ SH?: string | undefined;
1288
+ KN?: string | undefined;
1289
+ LC?: string | undefined;
1290
+ PM?: string | undefined;
1291
+ VC?: string | undefined;
1292
+ WS?: string | undefined;
1293
+ SM?: string | undefined;
1294
+ ST?: string | undefined;
1295
+ SA?: string | undefined;
1296
+ SN?: string | undefined;
1297
+ SC?: string | undefined;
1298
+ SL?: string | undefined;
1299
+ SG?: string | undefined;
1300
+ SK?: string | undefined;
1301
+ SI?: string | undefined;
1302
+ SB?: string | undefined;
1303
+ SO?: string | undefined;
1304
+ ZA?: string | undefined;
1305
+ GS?: string | undefined;
1306
+ ES?: string | undefined;
1307
+ LK?: string | undefined;
1308
+ SD?: string | undefined;
1309
+ SR?: string | undefined;
1310
+ SJ?: string | undefined;
1311
+ SZ?: string | undefined;
1312
+ SE?: string | undefined;
1313
+ CH?: string | undefined;
1314
+ SY?: string | undefined;
1315
+ TW?: string | undefined;
1316
+ TJ?: string | undefined;
1317
+ TZ?: string | undefined;
1318
+ TH?: string | undefined;
1319
+ TL?: string | undefined;
1320
+ TG?: string | undefined;
1321
+ TK?: string | undefined;
1322
+ TO?: string | undefined;
1323
+ TT?: string | undefined;
1324
+ TN?: string | undefined;
1325
+ TR?: string | undefined;
1326
+ TM?: string | undefined;
1327
+ TC?: string | undefined;
1328
+ TV?: string | undefined;
1329
+ UG?: string | undefined;
1330
+ UA?: string | undefined;
1331
+ AE?: string | undefined;
1332
+ GB?: string | undefined;
1333
+ US?: string | undefined;
1334
+ UM?: string | undefined;
1335
+ UY?: string | undefined;
1336
+ UZ?: string | undefined;
1337
+ VU?: string | undefined;
1338
+ VE?: string | undefined;
1339
+ VN?: string | undefined;
1340
+ VG?: string | undefined;
1341
+ VI?: string | undefined;
1342
+ WF?: string | undefined;
1343
+ EH?: string | undefined;
1344
+ YE?: string | undefined;
1345
+ ZM?: string | undefined;
1346
+ ZW?: string | undefined;
1347
+ AX?: string | undefined;
1348
+ BQ?: string | undefined;
1349
+ CW?: string | undefined;
1350
+ GG?: string | undefined;
1351
+ IM?: string | undefined;
1352
+ JE?: string | undefined;
1353
+ ME?: string | undefined;
1354
+ BL?: string | undefined;
1355
+ MF?: string | undefined;
1356
+ RS?: string | undefined;
1357
+ SX?: string | undefined;
1358
+ SS?: string | undefined;
1359
+ XK?: string | undefined;
1360
+ };
1361
+
1362
+ /** @internal */
1363
+ export const SaleCreatedEventGeo$outboundSchema: z.ZodType<
1364
+ SaleCreatedEventGeo$Outbound,
1365
+ z.ZodTypeDef,
1366
+ SaleCreatedEventGeo
1367
+ > = z.object({
1368
+ af: z.string().optional(),
1369
+ al: z.string().optional(),
1370
+ dz: z.string().optional(),
1371
+ as: z.string().optional(),
1372
+ ad: z.string().optional(),
1373
+ ao: z.string().optional(),
1374
+ ai: z.string().optional(),
1375
+ aq: z.string().optional(),
1376
+ ag: z.string().optional(),
1377
+ ar: z.string().optional(),
1378
+ am: z.string().optional(),
1379
+ aw: z.string().optional(),
1380
+ au: z.string().optional(),
1381
+ at: z.string().optional(),
1382
+ az: z.string().optional(),
1383
+ bs: z.string().optional(),
1384
+ bh: z.string().optional(),
1385
+ bd: z.string().optional(),
1386
+ bb: z.string().optional(),
1387
+ by: z.string().optional(),
1388
+ be: z.string().optional(),
1389
+ bz: z.string().optional(),
1390
+ bj: z.string().optional(),
1391
+ bm: z.string().optional(),
1392
+ bt: z.string().optional(),
1393
+ bo: z.string().optional(),
1394
+ ba: z.string().optional(),
1395
+ bw: z.string().optional(),
1396
+ bv: z.string().optional(),
1397
+ br: z.string().optional(),
1398
+ io: z.string().optional(),
1399
+ bn: z.string().optional(),
1400
+ bg: z.string().optional(),
1401
+ bf: z.string().optional(),
1402
+ bi: z.string().optional(),
1403
+ kh: z.string().optional(),
1404
+ cm: z.string().optional(),
1405
+ ca: z.string().optional(),
1406
+ cv: z.string().optional(),
1407
+ ky: z.string().optional(),
1408
+ cf: z.string().optional(),
1409
+ td: z.string().optional(),
1410
+ cl: z.string().optional(),
1411
+ cn: z.string().optional(),
1412
+ cx: z.string().optional(),
1413
+ cc: z.string().optional(),
1414
+ co: z.string().optional(),
1415
+ km: z.string().optional(),
1416
+ cg: z.string().optional(),
1417
+ cd: z.string().optional(),
1418
+ ck: z.string().optional(),
1419
+ cr: z.string().optional(),
1420
+ ci: z.string().optional(),
1421
+ hr: z.string().optional(),
1422
+ cu: z.string().optional(),
1423
+ cy: z.string().optional(),
1424
+ cz: z.string().optional(),
1425
+ dk: z.string().optional(),
1426
+ dj: z.string().optional(),
1427
+ dm: z.string().optional(),
1428
+ do: z.string().optional(),
1429
+ ec: z.string().optional(),
1430
+ eg: z.string().optional(),
1431
+ sv: z.string().optional(),
1432
+ gq: z.string().optional(),
1433
+ er: z.string().optional(),
1434
+ ee: z.string().optional(),
1435
+ et: z.string().optional(),
1436
+ fk: z.string().optional(),
1437
+ fo: z.string().optional(),
1438
+ fj: z.string().optional(),
1439
+ fi: z.string().optional(),
1440
+ fr: z.string().optional(),
1441
+ gf: z.string().optional(),
1442
+ pf: z.string().optional(),
1443
+ tf: z.string().optional(),
1444
+ ga: z.string().optional(),
1445
+ gm: z.string().optional(),
1446
+ ge: z.string().optional(),
1447
+ de: z.string().optional(),
1448
+ gh: z.string().optional(),
1449
+ gi: z.string().optional(),
1450
+ gr: z.string().optional(),
1451
+ gl: z.string().optional(),
1452
+ gd: z.string().optional(),
1453
+ gp: z.string().optional(),
1454
+ gu: z.string().optional(),
1455
+ gt: z.string().optional(),
1456
+ gn: z.string().optional(),
1457
+ gw: z.string().optional(),
1458
+ gy: z.string().optional(),
1459
+ ht: z.string().optional(),
1460
+ hm: z.string().optional(),
1461
+ va: z.string().optional(),
1462
+ hn: z.string().optional(),
1463
+ hk: z.string().optional(),
1464
+ hu: z.string().optional(),
1465
+ is: z.string().optional(),
1466
+ in: z.string().optional(),
1467
+ id: z.string().optional(),
1468
+ ir: z.string().optional(),
1469
+ iq: z.string().optional(),
1470
+ ie: z.string().optional(),
1471
+ il: z.string().optional(),
1472
+ it: z.string().optional(),
1473
+ jm: z.string().optional(),
1474
+ jp: z.string().optional(),
1475
+ jo: z.string().optional(),
1476
+ kz: z.string().optional(),
1477
+ ke: z.string().optional(),
1478
+ ki: z.string().optional(),
1479
+ kp: z.string().optional(),
1480
+ kr: z.string().optional(),
1481
+ kw: z.string().optional(),
1482
+ kg: z.string().optional(),
1483
+ la: z.string().optional(),
1484
+ lv: z.string().optional(),
1485
+ lb: z.string().optional(),
1486
+ ls: z.string().optional(),
1487
+ lr: z.string().optional(),
1488
+ ly: z.string().optional(),
1489
+ li: z.string().optional(),
1490
+ lt: z.string().optional(),
1491
+ lu: z.string().optional(),
1492
+ mo: z.string().optional(),
1493
+ mg: z.string().optional(),
1494
+ mw: z.string().optional(),
1495
+ my: z.string().optional(),
1496
+ mv: z.string().optional(),
1497
+ ml: z.string().optional(),
1498
+ mt: z.string().optional(),
1499
+ mh: z.string().optional(),
1500
+ mq: z.string().optional(),
1501
+ mr: z.string().optional(),
1502
+ mu: z.string().optional(),
1503
+ yt: z.string().optional(),
1504
+ mx: z.string().optional(),
1505
+ fm: z.string().optional(),
1506
+ md: z.string().optional(),
1507
+ mc: z.string().optional(),
1508
+ mn: z.string().optional(),
1509
+ ms: z.string().optional(),
1510
+ ma: z.string().optional(),
1511
+ mz: z.string().optional(),
1512
+ mm: z.string().optional(),
1513
+ na: z.string().optional(),
1514
+ nr: z.string().optional(),
1515
+ np: z.string().optional(),
1516
+ nl: z.string().optional(),
1517
+ nc: z.string().optional(),
1518
+ nz: z.string().optional(),
1519
+ ni: z.string().optional(),
1520
+ ne: z.string().optional(),
1521
+ ng: z.string().optional(),
1522
+ nu: z.string().optional(),
1523
+ nf: z.string().optional(),
1524
+ mk: z.string().optional(),
1525
+ mp: z.string().optional(),
1526
+ no: z.string().optional(),
1527
+ om: z.string().optional(),
1528
+ pk: z.string().optional(),
1529
+ pw: z.string().optional(),
1530
+ ps: z.string().optional(),
1531
+ pa: z.string().optional(),
1532
+ pg: z.string().optional(),
1533
+ py: z.string().optional(),
1534
+ pe: z.string().optional(),
1535
+ ph: z.string().optional(),
1536
+ pn: z.string().optional(),
1537
+ pl: z.string().optional(),
1538
+ pt: z.string().optional(),
1539
+ pr: z.string().optional(),
1540
+ qa: z.string().optional(),
1541
+ re: z.string().optional(),
1542
+ ro: z.string().optional(),
1543
+ ru: z.string().optional(),
1544
+ rw: z.string().optional(),
1545
+ sh: z.string().optional(),
1546
+ kn: z.string().optional(),
1547
+ lc: z.string().optional(),
1548
+ pm: z.string().optional(),
1549
+ vc: z.string().optional(),
1550
+ ws: z.string().optional(),
1551
+ sm: z.string().optional(),
1552
+ st: z.string().optional(),
1553
+ sa: z.string().optional(),
1554
+ sn: z.string().optional(),
1555
+ sc: z.string().optional(),
1556
+ sl: z.string().optional(),
1557
+ sg: z.string().optional(),
1558
+ sk: z.string().optional(),
1559
+ si: z.string().optional(),
1560
+ sb: z.string().optional(),
1561
+ so: z.string().optional(),
1562
+ za: z.string().optional(),
1563
+ gs: z.string().optional(),
1564
+ es: z.string().optional(),
1565
+ lk: z.string().optional(),
1566
+ sd: z.string().optional(),
1567
+ sr: z.string().optional(),
1568
+ sj: z.string().optional(),
1569
+ sz: z.string().optional(),
1570
+ se: z.string().optional(),
1571
+ ch: z.string().optional(),
1572
+ sy: z.string().optional(),
1573
+ tw: z.string().optional(),
1574
+ tj: z.string().optional(),
1575
+ tz: z.string().optional(),
1576
+ th: z.string().optional(),
1577
+ tl: z.string().optional(),
1578
+ tg: z.string().optional(),
1579
+ tk: z.string().optional(),
1580
+ to: z.string().optional(),
1581
+ tt: z.string().optional(),
1582
+ tn: z.string().optional(),
1583
+ tr: z.string().optional(),
1584
+ tm: z.string().optional(),
1585
+ tc: z.string().optional(),
1586
+ tv: z.string().optional(),
1587
+ ug: z.string().optional(),
1588
+ ua: z.string().optional(),
1589
+ ae: z.string().optional(),
1590
+ gb: z.string().optional(),
1591
+ us: z.string().optional(),
1592
+ um: z.string().optional(),
1593
+ uy: z.string().optional(),
1594
+ uz: z.string().optional(),
1595
+ vu: z.string().optional(),
1596
+ ve: z.string().optional(),
1597
+ vn: z.string().optional(),
1598
+ vg: z.string().optional(),
1599
+ vi: z.string().optional(),
1600
+ wf: z.string().optional(),
1601
+ eh: z.string().optional(),
1602
+ ye: z.string().optional(),
1603
+ zm: z.string().optional(),
1604
+ zw: z.string().optional(),
1605
+ ax: z.string().optional(),
1606
+ bq: z.string().optional(),
1607
+ cw: z.string().optional(),
1608
+ gg: z.string().optional(),
1609
+ im: z.string().optional(),
1610
+ je: z.string().optional(),
1611
+ me: z.string().optional(),
1612
+ bl: z.string().optional(),
1613
+ mf: z.string().optional(),
1614
+ rs: z.string().optional(),
1615
+ sx: z.string().optional(),
1616
+ ss: z.string().optional(),
1617
+ xk: z.string().optional(),
1618
+ }).transform((v) => {
1619
+ return remap$(v, {
1620
+ af: "AF",
1621
+ al: "AL",
1622
+ dz: "DZ",
1623
+ as: "AS",
1624
+ ad: "AD",
1625
+ ao: "AO",
1626
+ ai: "AI",
1627
+ aq: "AQ",
1628
+ ag: "AG",
1629
+ ar: "AR",
1630
+ am: "AM",
1631
+ aw: "AW",
1632
+ au: "AU",
1633
+ at: "AT",
1634
+ az: "AZ",
1635
+ bs: "BS",
1636
+ bh: "BH",
1637
+ bd: "BD",
1638
+ bb: "BB",
1639
+ by: "BY",
1640
+ be: "BE",
1641
+ bz: "BZ",
1642
+ bj: "BJ",
1643
+ bm: "BM",
1644
+ bt: "BT",
1645
+ bo: "BO",
1646
+ ba: "BA",
1647
+ bw: "BW",
1648
+ bv: "BV",
1649
+ br: "BR",
1650
+ io: "IO",
1651
+ bn: "BN",
1652
+ bg: "BG",
1653
+ bf: "BF",
1654
+ bi: "BI",
1655
+ kh: "KH",
1656
+ cm: "CM",
1657
+ ca: "CA",
1658
+ cv: "CV",
1659
+ ky: "KY",
1660
+ cf: "CF",
1661
+ td: "TD",
1662
+ cl: "CL",
1663
+ cn: "CN",
1664
+ cx: "CX",
1665
+ cc: "CC",
1666
+ co: "CO",
1667
+ km: "KM",
1668
+ cg: "CG",
1669
+ cd: "CD",
1670
+ ck: "CK",
1671
+ cr: "CR",
1672
+ ci: "CI",
1673
+ hr: "HR",
1674
+ cu: "CU",
1675
+ cy: "CY",
1676
+ cz: "CZ",
1677
+ dk: "DK",
1678
+ dj: "DJ",
1679
+ dm: "DM",
1680
+ do: "DO",
1681
+ ec: "EC",
1682
+ eg: "EG",
1683
+ sv: "SV",
1684
+ gq: "GQ",
1685
+ er: "ER",
1686
+ ee: "EE",
1687
+ et: "ET",
1688
+ fk: "FK",
1689
+ fo: "FO",
1690
+ fj: "FJ",
1691
+ fi: "FI",
1692
+ fr: "FR",
1693
+ gf: "GF",
1694
+ pf: "PF",
1695
+ tf: "TF",
1696
+ ga: "GA",
1697
+ gm: "GM",
1698
+ ge: "GE",
1699
+ de: "DE",
1700
+ gh: "GH",
1701
+ gi: "GI",
1702
+ gr: "GR",
1703
+ gl: "GL",
1704
+ gd: "GD",
1705
+ gp: "GP",
1706
+ gu: "GU",
1707
+ gt: "GT",
1708
+ gn: "GN",
1709
+ gw: "GW",
1710
+ gy: "GY",
1711
+ ht: "HT",
1712
+ hm: "HM",
1713
+ va: "VA",
1714
+ hn: "HN",
1715
+ hk: "HK",
1716
+ hu: "HU",
1717
+ is: "IS",
1718
+ in: "IN",
1719
+ id: "ID",
1720
+ ir: "IR",
1721
+ iq: "IQ",
1722
+ ie: "IE",
1723
+ il: "IL",
1724
+ it: "IT",
1725
+ jm: "JM",
1726
+ jp: "JP",
1727
+ jo: "JO",
1728
+ kz: "KZ",
1729
+ ke: "KE",
1730
+ ki: "KI",
1731
+ kp: "KP",
1732
+ kr: "KR",
1733
+ kw: "KW",
1734
+ kg: "KG",
1735
+ la: "LA",
1736
+ lv: "LV",
1737
+ lb: "LB",
1738
+ ls: "LS",
1739
+ lr: "LR",
1740
+ ly: "LY",
1741
+ li: "LI",
1742
+ lt: "LT",
1743
+ lu: "LU",
1744
+ mo: "MO",
1745
+ mg: "MG",
1746
+ mw: "MW",
1747
+ my: "MY",
1748
+ mv: "MV",
1749
+ ml: "ML",
1750
+ mt: "MT",
1751
+ mh: "MH",
1752
+ mq: "MQ",
1753
+ mr: "MR",
1754
+ mu: "MU",
1755
+ yt: "YT",
1756
+ mx: "MX",
1757
+ fm: "FM",
1758
+ md: "MD",
1759
+ mc: "MC",
1760
+ mn: "MN",
1761
+ ms: "MS",
1762
+ ma: "MA",
1763
+ mz: "MZ",
1764
+ mm: "MM",
1765
+ na: "NA",
1766
+ nr: "NR",
1767
+ np: "NP",
1768
+ nl: "NL",
1769
+ nc: "NC",
1770
+ nz: "NZ",
1771
+ ni: "NI",
1772
+ ne: "NE",
1773
+ ng: "NG",
1774
+ nu: "NU",
1775
+ nf: "NF",
1776
+ mk: "MK",
1777
+ mp: "MP",
1778
+ no: "NO",
1779
+ om: "OM",
1780
+ pk: "PK",
1781
+ pw: "PW",
1782
+ ps: "PS",
1783
+ pa: "PA",
1784
+ pg: "PG",
1785
+ py: "PY",
1786
+ pe: "PE",
1787
+ ph: "PH",
1788
+ pn: "PN",
1789
+ pl: "PL",
1790
+ pt: "PT",
1791
+ pr: "PR",
1792
+ qa: "QA",
1793
+ re: "RE",
1794
+ ro: "RO",
1795
+ ru: "RU",
1796
+ rw: "RW",
1797
+ sh: "SH",
1798
+ kn: "KN",
1799
+ lc: "LC",
1800
+ pm: "PM",
1801
+ vc: "VC",
1802
+ ws: "WS",
1803
+ sm: "SM",
1804
+ st: "ST",
1805
+ sa: "SA",
1806
+ sn: "SN",
1807
+ sc: "SC",
1808
+ sl: "SL",
1809
+ sg: "SG",
1810
+ sk: "SK",
1811
+ si: "SI",
1812
+ sb: "SB",
1813
+ so: "SO",
1814
+ za: "ZA",
1815
+ gs: "GS",
1816
+ es: "ES",
1817
+ lk: "LK",
1818
+ sd: "SD",
1819
+ sr: "SR",
1820
+ sj: "SJ",
1821
+ sz: "SZ",
1822
+ se: "SE",
1823
+ ch: "CH",
1824
+ sy: "SY",
1825
+ tw: "TW",
1826
+ tj: "TJ",
1827
+ tz: "TZ",
1828
+ th: "TH",
1829
+ tl: "TL",
1830
+ tg: "TG",
1831
+ tk: "TK",
1832
+ to: "TO",
1833
+ tt: "TT",
1834
+ tn: "TN",
1835
+ tr: "TR",
1836
+ tm: "TM",
1837
+ tc: "TC",
1838
+ tv: "TV",
1839
+ ug: "UG",
1840
+ ua: "UA",
1841
+ ae: "AE",
1842
+ gb: "GB",
1843
+ us: "US",
1844
+ um: "UM",
1845
+ uy: "UY",
1846
+ uz: "UZ",
1847
+ vu: "VU",
1848
+ ve: "VE",
1849
+ vn: "VN",
1850
+ vg: "VG",
1851
+ vi: "VI",
1852
+ wf: "WF",
1853
+ eh: "EH",
1854
+ ye: "YE",
1855
+ zm: "ZM",
1856
+ zw: "ZW",
1857
+ ax: "AX",
1858
+ bq: "BQ",
1859
+ cw: "CW",
1860
+ gg: "GG",
1861
+ im: "IM",
1862
+ je: "JE",
1863
+ me: "ME",
1864
+ bl: "BL",
1865
+ mf: "MF",
1866
+ rs: "RS",
1867
+ sx: "SX",
1868
+ ss: "SS",
1869
+ xk: "XK",
1870
+ });
1871
+ });
1872
+
1873
+ /**
1874
+ * @internal
1875
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1876
+ */
1877
+ export namespace SaleCreatedEventGeo$ {
1878
+ /** @deprecated use `SaleCreatedEventGeo$inboundSchema` instead. */
1879
+ export const inboundSchema = SaleCreatedEventGeo$inboundSchema;
1880
+ /** @deprecated use `SaleCreatedEventGeo$outboundSchema` instead. */
1881
+ export const outboundSchema = SaleCreatedEventGeo$outboundSchema;
1882
+ /** @deprecated use `SaleCreatedEventGeo$Outbound` instead. */
1883
+ export type Outbound = SaleCreatedEventGeo$Outbound;
1884
+ }
1885
+
1886
+ /** @internal */
1887
+ export const SaleCreatedEventLink$inboundSchema: z.ZodType<
1888
+ SaleCreatedEventLink,
1889
+ z.ZodTypeDef,
1890
+ unknown
1891
+ > = z.object({
1892
+ id: z.string(),
1893
+ domain: z.string(),
1894
+ key: z.string(),
1895
+ url: z.string(),
1896
+ trackConversion: z.boolean().optional(),
1897
+ externalId: z.nullable(z.string()),
1898
+ identifier: z.nullable(z.string()),
1899
+ archived: z.boolean().optional(),
1900
+ expiresAt: z.string(),
1901
+ expiredUrl: z.nullable(z.string()),
1902
+ password: z.nullable(z.string()),
1903
+ proxy: z.boolean().optional(),
1904
+ title: z.nullable(z.string()),
1905
+ description: z.nullable(z.string()),
1906
+ image: z.nullable(z.string()),
1907
+ video: z.nullable(z.string()),
1908
+ rewrite: z.boolean().optional(),
1909
+ doIndex: z.boolean().optional(),
1910
+ ios: z.nullable(z.string()),
1911
+ android: z.nullable(z.string()),
1912
+ geo: z.nullable(z.lazy(() => SaleCreatedEventGeo$inboundSchema)),
1913
+ publicStats: z.boolean().optional(),
1914
+ tagId: z.nullable(z.string()),
1915
+ tags: z.nullable(z.array(TagSchema$inboundSchema)),
1916
+ comments: z.nullable(z.string()),
1917
+ shortLink: z.string(),
1918
+ qrCode: z.string(),
1919
+ utm_source: z.nullable(z.string()),
1920
+ utm_medium: z.nullable(z.string()),
1921
+ utm_campaign: z.nullable(z.string()),
1922
+ utm_term: z.nullable(z.string()),
1923
+ utm_content: z.nullable(z.string()),
1924
+ userId: z.nullable(z.string()),
1925
+ workspaceId: z.string(),
1926
+ clicks: z.number().default(0),
1927
+ lastClicked: z.string(),
1928
+ leads: z.number().default(0),
1929
+ sales: z.number().default(0),
1930
+ saleAmount: z.number().default(0),
1931
+ createdAt: z.string(),
1932
+ updatedAt: z.string(),
1933
+ projectId: z.string(),
1934
+ }).transform((v) => {
1935
+ return remap$(v, {
1936
+ "utm_source": "utmSource",
1937
+ "utm_medium": "utmMedium",
1938
+ "utm_campaign": "utmCampaign",
1939
+ "utm_term": "utmTerm",
1940
+ "utm_content": "utmContent",
1941
+ });
1942
+ });
1943
+
1944
+ /** @internal */
1945
+ export type SaleCreatedEventLink$Outbound = {
1946
+ id: string;
1947
+ domain: string;
1948
+ key: string;
1949
+ url: string;
1950
+ trackConversion?: boolean | undefined;
1951
+ externalId: string | null;
1952
+ identifier: string | null;
1953
+ archived?: boolean | undefined;
1954
+ expiresAt: string;
1955
+ expiredUrl: string | null;
1956
+ password: string | null;
1957
+ proxy?: boolean | undefined;
1958
+ title: string | null;
1959
+ description: string | null;
1960
+ image: string | null;
1961
+ video: string | null;
1962
+ rewrite?: boolean | undefined;
1963
+ doIndex?: boolean | undefined;
1964
+ ios: string | null;
1965
+ android: string | null;
1966
+ geo: SaleCreatedEventGeo$Outbound | null;
1967
+ publicStats?: boolean | undefined;
1968
+ tagId: string | null;
1969
+ tags: Array<TagSchema$Outbound> | null;
1970
+ comments: string | null;
1971
+ shortLink: string;
1972
+ qrCode: string;
1973
+ utm_source: string | null;
1974
+ utm_medium: string | null;
1975
+ utm_campaign: string | null;
1976
+ utm_term: string | null;
1977
+ utm_content: string | null;
1978
+ userId: string | null;
1979
+ workspaceId: string;
1980
+ clicks: number;
1981
+ lastClicked: string;
1982
+ leads: number;
1983
+ sales: number;
1984
+ saleAmount: number;
1985
+ createdAt: string;
1986
+ updatedAt: string;
1987
+ projectId: string;
1988
+ };
1989
+
1990
+ /** @internal */
1991
+ export const SaleCreatedEventLink$outboundSchema: z.ZodType<
1992
+ SaleCreatedEventLink$Outbound,
1993
+ z.ZodTypeDef,
1994
+ SaleCreatedEventLink
1995
+ > = z.object({
1996
+ id: z.string(),
1997
+ domain: z.string(),
1998
+ key: z.string(),
1999
+ url: z.string(),
2000
+ trackConversion: z.boolean().optional(),
2001
+ externalId: z.nullable(z.string()),
2002
+ identifier: z.nullable(z.string()),
2003
+ archived: z.boolean().optional(),
2004
+ expiresAt: z.string(),
2005
+ expiredUrl: z.nullable(z.string()),
2006
+ password: z.nullable(z.string()),
2007
+ proxy: z.boolean().optional(),
2008
+ title: z.nullable(z.string()),
2009
+ description: z.nullable(z.string()),
2010
+ image: z.nullable(z.string()),
2011
+ video: z.nullable(z.string()),
2012
+ rewrite: z.boolean().optional(),
2013
+ doIndex: z.boolean().optional(),
2014
+ ios: z.nullable(z.string()),
2015
+ android: z.nullable(z.string()),
2016
+ geo: z.nullable(z.lazy(() => SaleCreatedEventGeo$outboundSchema)),
2017
+ publicStats: z.boolean().optional(),
2018
+ tagId: z.nullable(z.string()),
2019
+ tags: z.nullable(z.array(TagSchema$outboundSchema)),
2020
+ comments: z.nullable(z.string()),
2021
+ shortLink: z.string(),
2022
+ qrCode: z.string(),
2023
+ utmSource: z.nullable(z.string()),
2024
+ utmMedium: z.nullable(z.string()),
2025
+ utmCampaign: z.nullable(z.string()),
2026
+ utmTerm: z.nullable(z.string()),
2027
+ utmContent: z.nullable(z.string()),
2028
+ userId: z.nullable(z.string()),
2029
+ workspaceId: z.string(),
2030
+ clicks: z.number().default(0),
2031
+ lastClicked: z.string(),
2032
+ leads: z.number().default(0),
2033
+ sales: z.number().default(0),
2034
+ saleAmount: z.number().default(0),
2035
+ createdAt: z.string(),
2036
+ updatedAt: z.string(),
2037
+ projectId: z.string(),
2038
+ }).transform((v) => {
2039
+ return remap$(v, {
2040
+ utmSource: "utm_source",
2041
+ utmMedium: "utm_medium",
2042
+ utmCampaign: "utm_campaign",
2043
+ utmTerm: "utm_term",
2044
+ utmContent: "utm_content",
2045
+ });
2046
+ });
2047
+
2048
+ /**
2049
+ * @internal
2050
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2051
+ */
2052
+ export namespace SaleCreatedEventLink$ {
2053
+ /** @deprecated use `SaleCreatedEventLink$inboundSchema` instead. */
2054
+ export const inboundSchema = SaleCreatedEventLink$inboundSchema;
2055
+ /** @deprecated use `SaleCreatedEventLink$outboundSchema` instead. */
2056
+ export const outboundSchema = SaleCreatedEventLink$outboundSchema;
2057
+ /** @deprecated use `SaleCreatedEventLink$Outbound` instead. */
2058
+ export type Outbound = SaleCreatedEventLink$Outbound;
2059
+ }
2060
+
2061
+ /** @internal */
2062
+ export const SaleCreatedEventSale$inboundSchema: z.ZodType<
2063
+ SaleCreatedEventSale,
2064
+ z.ZodTypeDef,
2065
+ unknown
2066
+ > = z.object({
2067
+ amount: z.number(),
2068
+ currency: z.string(),
2069
+ paymentProcessor: z.string(),
2070
+ invoiceId: z.nullable(z.string()),
2071
+ });
2072
+
2073
+ /** @internal */
2074
+ export type SaleCreatedEventSale$Outbound = {
2075
+ amount: number;
2076
+ currency: string;
2077
+ paymentProcessor: string;
2078
+ invoiceId: string | null;
2079
+ };
2080
+
2081
+ /** @internal */
2082
+ export const SaleCreatedEventSale$outboundSchema: z.ZodType<
2083
+ SaleCreatedEventSale$Outbound,
2084
+ z.ZodTypeDef,
2085
+ SaleCreatedEventSale
2086
+ > = z.object({
2087
+ amount: z.number(),
2088
+ currency: z.string(),
2089
+ paymentProcessor: z.string(),
2090
+ invoiceId: z.nullable(z.string()),
2091
+ });
2092
+
2093
+ /**
2094
+ * @internal
2095
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2096
+ */
2097
+ export namespace SaleCreatedEventSale$ {
2098
+ /** @deprecated use `SaleCreatedEventSale$inboundSchema` instead. */
2099
+ export const inboundSchema = SaleCreatedEventSale$inboundSchema;
2100
+ /** @deprecated use `SaleCreatedEventSale$outboundSchema` instead. */
2101
+ export const outboundSchema = SaleCreatedEventSale$outboundSchema;
2102
+ /** @deprecated use `SaleCreatedEventSale$Outbound` instead. */
2103
+ export type Outbound = SaleCreatedEventSale$Outbound;
2104
+ }
2105
+
2106
+ /** @internal */
2107
+ export const SaleCreatedEventData$inboundSchema: z.ZodType<
2108
+ SaleCreatedEventData,
2109
+ z.ZodTypeDef,
2110
+ unknown
2111
+ > = z.object({
2112
+ eventName: z.string(),
2113
+ customer: z.lazy(() => SaleCreatedEventCustomer$inboundSchema),
2114
+ click: z.lazy(() => SaleCreatedEventClick$inboundSchema),
2115
+ link: z.lazy(() => SaleCreatedEventLink$inboundSchema),
2116
+ sale: z.lazy(() => SaleCreatedEventSale$inboundSchema),
2117
+ });
2118
+
2119
+ /** @internal */
2120
+ export type SaleCreatedEventData$Outbound = {
2121
+ eventName: string;
2122
+ customer: SaleCreatedEventCustomer$Outbound;
2123
+ click: SaleCreatedEventClick$Outbound;
2124
+ link: SaleCreatedEventLink$Outbound;
2125
+ sale: SaleCreatedEventSale$Outbound;
2126
+ };
2127
+
2128
+ /** @internal */
2129
+ export const SaleCreatedEventData$outboundSchema: z.ZodType<
2130
+ SaleCreatedEventData$Outbound,
2131
+ z.ZodTypeDef,
2132
+ SaleCreatedEventData
2133
+ > = z.object({
2134
+ eventName: z.string(),
2135
+ customer: z.lazy(() => SaleCreatedEventCustomer$outboundSchema),
2136
+ click: z.lazy(() => SaleCreatedEventClick$outboundSchema),
2137
+ link: z.lazy(() => SaleCreatedEventLink$outboundSchema),
2138
+ sale: z.lazy(() => SaleCreatedEventSale$outboundSchema),
2139
+ });
2140
+
2141
+ /**
2142
+ * @internal
2143
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2144
+ */
2145
+ export namespace SaleCreatedEventData$ {
2146
+ /** @deprecated use `SaleCreatedEventData$inboundSchema` instead. */
2147
+ export const inboundSchema = SaleCreatedEventData$inboundSchema;
2148
+ /** @deprecated use `SaleCreatedEventData$outboundSchema` instead. */
2149
+ export const outboundSchema = SaleCreatedEventData$outboundSchema;
2150
+ /** @deprecated use `SaleCreatedEventData$Outbound` instead. */
2151
+ export type Outbound = SaleCreatedEventData$Outbound;
2152
+ }
2153
+
2154
+ /** @internal */
2155
+ export const SaleCreatedEvent$inboundSchema: z.ZodType<
2156
+ SaleCreatedEvent,
2157
+ z.ZodTypeDef,
2158
+ unknown
2159
+ > = z.object({
2160
+ id: z.string(),
2161
+ event: SaleCreatedEventEvent$inboundSchema,
2162
+ createdAt: z.string(),
2163
+ data: z.lazy(() => SaleCreatedEventData$inboundSchema),
2164
+ });
2165
+
2166
+ /** @internal */
2167
+ export type SaleCreatedEvent$Outbound = {
2168
+ id: string;
2169
+ event: string;
2170
+ createdAt: string;
2171
+ data: SaleCreatedEventData$Outbound;
2172
+ };
2173
+
2174
+ /** @internal */
2175
+ export const SaleCreatedEvent$outboundSchema: z.ZodType<
2176
+ SaleCreatedEvent$Outbound,
2177
+ z.ZodTypeDef,
2178
+ SaleCreatedEvent
2179
+ > = z.object({
2180
+ id: z.string(),
2181
+ event: SaleCreatedEventEvent$outboundSchema,
2182
+ createdAt: z.string(),
2183
+ data: z.lazy(() => SaleCreatedEventData$outboundSchema),
2184
+ });
2185
+
2186
+ /**
2187
+ * @internal
2188
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2189
+ */
2190
+ export namespace SaleCreatedEvent$ {
2191
+ /** @deprecated use `SaleCreatedEvent$inboundSchema` instead. */
2192
+ export const inboundSchema = SaleCreatedEvent$inboundSchema;
2193
+ /** @deprecated use `SaleCreatedEvent$outboundSchema` instead. */
2194
+ export const outboundSchema = SaleCreatedEvent$outboundSchema;
2195
+ /** @deprecated use `SaleCreatedEvent$Outbound` instead. */
2196
+ export type Outbound = SaleCreatedEvent$Outbound;
2197
+ }