@aranova/tracking-next 0.27.0 → 1.0.0

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 (71) hide show
  1. package/dist/blog-server.d.mts +2 -1
  2. package/dist/blog-server.d.ts +2 -1
  3. package/dist/blog-server.js +121 -98
  4. package/dist/blog-server.js.map +1 -1
  5. package/dist/blog-server.mjs +86 -63
  6. package/dist/blog-server.mjs.map +1 -1
  7. package/dist/blog.d.mts +651 -1755
  8. package/dist/blog.d.ts +651 -1755
  9. package/dist/blog.js +121 -98
  10. package/dist/blog.js.map +1 -1
  11. package/dist/blog.mjs +86 -63
  12. package/dist/blog.mjs.map +1 -1
  13. package/dist/calendar-server.d.mts +2 -2
  14. package/dist/calendar-server.d.ts +2 -2
  15. package/dist/calendar-server.js +0 -26
  16. package/dist/calendar-server.js.map +1 -1
  17. package/dist/calendar-server.mjs +0 -26
  18. package/dist/calendar-server.mjs.map +1 -1
  19. package/dist/calendar.d.mts +3 -3
  20. package/dist/calendar.d.ts +3 -3
  21. package/dist/calendar.js +227 -126
  22. package/dist/calendar.js.map +1 -1
  23. package/dist/calendar.mjs +216 -125
  24. package/dist/calendar.mjs.map +1 -1
  25. package/dist/client.d.mts +4 -3
  26. package/dist/client.d.ts +4 -3
  27. package/dist/client.js +185 -277
  28. package/dist/client.js.map +1 -1
  29. package/dist/client.mjs +157 -249
  30. package/dist/client.mjs.map +1 -1
  31. package/dist/index.d.mts +8 -7
  32. package/dist/index.d.ts +8 -7
  33. package/dist/index.js +482 -484
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +471 -484
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/ingest-typed-BdKmlouW.d.ts +791 -0
  38. package/dist/ingest-typed-Bo7WPmpU.d.mts +791 -0
  39. package/dist/middleware.js +0 -467
  40. package/dist/middleware.js.map +1 -1
  41. package/dist/middleware.mjs +0 -467
  42. package/dist/middleware.mjs.map +1 -1
  43. package/dist/{phone-utils-BVzSNBf1.d.mts → phone-utils-CubQif9Z.d.mts} +18 -78
  44. package/dist/{phone-utils-BVzSNBf1.d.ts → phone-utils-CubQif9Z.d.ts} +18 -78
  45. package/dist/phone.d.mts +2 -2
  46. package/dist/phone.d.ts +2 -2
  47. package/dist/phone.js +0 -464
  48. package/dist/phone.js.map +1 -1
  49. package/dist/phone.mjs +0 -464
  50. package/dist/phone.mjs.map +1 -1
  51. package/dist/{sales-DQGzXSgL.d.mts → sales-D7KstKA-.d.mts} +89 -328
  52. package/dist/{sales-IGC2tq4J.d.ts → sales-DG150g3o.d.ts} +89 -328
  53. package/dist/sales.d.mts +2 -2
  54. package/dist/sales.d.ts +2 -2
  55. package/dist/sales.js +265 -127
  56. package/dist/sales.js.map +1 -1
  57. package/dist/sales.mjs +254 -127
  58. package/dist/sales.mjs.map +1 -1
  59. package/dist/server.d.mts +2 -2
  60. package/dist/server.d.ts +2 -2
  61. package/dist/server.js +0 -467
  62. package/dist/server.js.map +1 -1
  63. package/dist/server.mjs +0 -467
  64. package/dist/server.mjs.map +1 -1
  65. package/dist/transport-CDmGOiCq.d.ts +253 -0
  66. package/dist/transport-I_cMSFQ6.d.mts +253 -0
  67. package/package.json +2 -2
  68. package/dist/ingest-typed-BxLFlZ7N.d.mts +0 -1371
  69. package/dist/ingest-typed-ByQVRMvP.d.ts +0 -1371
  70. package/dist/transport-C-_rFSR4.d.ts +0 -721
  71. package/dist/transport-yUF5Wize.d.mts +0 -721
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod/mini';
2
2
  import { a as ConversionConfigStore, c as TrackingConfigRuntime } from './tracking-config-runtime-D7prdTE1.mjs';
3
3
  import { CountryCode } from 'libphonenumber-js';
4
4
  import { A as ApiTransportConfig, a as apiRequest } from './request-Doq36Rt0.mjs';
@@ -15,337 +15,98 @@ declare function stashUserData(data: ConversionUserData, country?: CountryCode):
15
15
  declare function clearStashedUserData(): void;
16
16
 
17
17
  /**
18
- * Sales / Conversions wire schemas — the client-side source of truth.
18
+ * Sales / Conversions wire schemas.
19
19
  *
20
- * `saleCreateSchema` is mirrored by `SaleCreateSchema` in
21
- * `apps/api/src/schemas/tracking_sales.py` and enforced by the backend drift
22
- * test (the `resources` section of `events.schema.json`). Keep them in lockstep.
20
+ * The object shapes come from the backend's own spec — see
21
+ * `../generated/zod.gen.ts` and `packages/tracking-core/openapi-ts.config.ts`.
22
+ * This file adds only what JSON Schema cannot express: the `service`/`services`
23
+ * XOR, and defaults Pydantic omits from the spec because `default_factory` is
24
+ * not serialized (`items: []`) — composed onto the generated base, never
25
+ * duplicating its shape.
23
26
  *
24
- * Money is **integer minor units (cents)**; `quantity` is a decimal string;
25
- * `currency` is the required `SupportedCurrency` enum.
27
+ * `saleUpdateSchema` stays hand-written: its non-nullable-on-update rule is a
28
+ * backend `model_validator`, invisible to JSON Schema, so the generated shape
29
+ * would accept `null` where the server returns 422.
26
30
  */
27
- declare const SUPPORTED_CURRENCIES: readonly ["USD", "CAD"];
31
+ declare const saleItemSchema: z.ZodMiniObject<{
32
+ category: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
33
+ external_item_id: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
34
+ name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
35
+ quantity: z.ZodMiniString<string>;
36
+ unit_cost_cents: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniInt>>;
37
+ unit_price_cents: z.ZodMiniInt;
38
+ }, z.core.$strict>;
39
+ declare const saleServiceSchema: z.ZodMiniObject<{
40
+ amount_cents: z.ZodMiniInt;
41
+ service: z.ZodMiniString<string>;
42
+ }, z.core.$strict>;
43
+ declare const currencySchema: z.ZodMiniEnum<{
44
+ USD: "USD";
45
+ CAD: "CAD";
46
+ }>;
47
+ declare const SUPPORTED_CURRENCIES: ("USD" | "CAD")[];
28
48
  type SupportedCurrency = (typeof SUPPORTED_CURRENCIES)[number];
29
49
  declare const TRACKING_ENVIRONMENTS: readonly ["production", "development"];
30
- declare const saleItemSchema: z.ZodObject<{
31
- external_item_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
- quantity: z.ZodString;
35
- unit_price_cents: z.ZodNumber;
36
- unit_cost_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
- }, "strict", z.ZodTypeAny, {
38
- quantity: string;
39
- unit_price_cents: number;
40
- name?: string | null | undefined;
41
- external_item_id?: string | null | undefined;
42
- category?: string | null | undefined;
43
- unit_cost_cents?: number | null | undefined;
44
- }, {
45
- quantity: string;
46
- unit_price_cents: number;
47
- name?: string | null | undefined;
48
- external_item_id?: string | null | undefined;
49
- category?: string | null | undefined;
50
- unit_cost_cents?: number | null | undefined;
51
- }>;
52
- declare const saleServiceSchema: z.ZodObject<{
53
- service: z.ZodString;
54
- amount_cents: z.ZodNumber;
55
- }, "strict", z.ZodTypeAny, {
56
- service: string;
57
- amount_cents: number;
58
- }, {
59
- service: string;
60
- amount_cents: number;
61
- }>;
62
- declare const saleCreateSchema: z.ZodEffects<z.ZodObject<{
63
- external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
- service: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
- services: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
67
- service: z.ZodString;
68
- amount_cents: z.ZodNumber;
69
- }, "strict", z.ZodTypeAny, {
70
- service: string;
71
- amount_cents: number;
72
- }, {
73
- service: string;
74
- amount_cents: number;
75
- }>, "many">>>;
76
- currency: z.ZodEnum<["USD", "CAD"]>;
77
- amount_total_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
- occurred_at: z.ZodString;
79
- environment: z.ZodDefault<z.ZodEnum<["production", "development"]>>;
80
- items: z.ZodDefault<z.ZodArray<z.ZodObject<{
81
- external_item_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
- category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
- quantity: z.ZodString;
85
- unit_price_cents: z.ZodNumber;
86
- unit_cost_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
87
- }, "strict", z.ZodTypeAny, {
88
- quantity: string;
89
- unit_price_cents: number;
90
- name?: string | null | undefined;
91
- external_item_id?: string | null | undefined;
92
- category?: string | null | undefined;
93
- unit_cost_cents?: number | null | undefined;
94
- }, {
95
- quantity: string;
96
- unit_price_cents: number;
97
- name?: string | null | undefined;
98
- external_item_id?: string | null | undefined;
99
- category?: string | null | undefined;
100
- unit_cost_cents?: number | null | undefined;
101
- }>, "many">>;
102
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
103
- customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
- customer_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
- customer_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
- sms_consent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
107
- }, "strict", z.ZodTypeAny, {
108
- currency: "USD" | "CAD";
109
- environment: "production" | "development";
110
- occurred_at: string;
111
- items: {
112
- quantity: string;
113
- unit_price_cents: number;
114
- name?: string | null | undefined;
115
- external_item_id?: string | null | undefined;
116
- category?: string | null | undefined;
117
- unit_cost_cents?: number | null | undefined;
118
- }[];
119
- metadata?: Record<string, unknown> | null | undefined;
120
- services?: {
121
- service: string;
122
- amount_cents: number;
123
- }[] | null | undefined;
124
- service?: string | null | undefined;
125
- amount_total_cents?: number | null | undefined;
126
- external_id?: string | null | undefined;
127
- description?: string | null | undefined;
128
- customer_name?: string | null | undefined;
129
- customer_phone?: string | null | undefined;
130
- customer_email?: string | null | undefined;
131
- sms_consent?: boolean | null | undefined;
132
- }, {
133
- currency: "USD" | "CAD";
134
- occurred_at: string;
135
- metadata?: Record<string, unknown> | null | undefined;
136
- services?: {
137
- service: string;
138
- amount_cents: number;
139
- }[] | null | undefined;
140
- environment?: "production" | "development" | undefined;
141
- service?: string | null | undefined;
142
- amount_total_cents?: number | null | undefined;
143
- external_id?: string | null | undefined;
144
- description?: string | null | undefined;
145
- items?: {
146
- quantity: string;
147
- unit_price_cents: number;
148
- name?: string | null | undefined;
149
- external_item_id?: string | null | undefined;
150
- category?: string | null | undefined;
151
- unit_cost_cents?: number | null | undefined;
152
- }[] | undefined;
153
- customer_name?: string | null | undefined;
154
- customer_phone?: string | null | undefined;
155
- customer_email?: string | null | undefined;
156
- sms_consent?: boolean | null | undefined;
157
- }>, {
158
- currency: "USD" | "CAD";
159
- environment: "production" | "development";
160
- occurred_at: string;
161
- items: {
162
- quantity: string;
163
- unit_price_cents: number;
164
- name?: string | null | undefined;
165
- external_item_id?: string | null | undefined;
166
- category?: string | null | undefined;
167
- unit_cost_cents?: number | null | undefined;
168
- }[];
169
- metadata?: Record<string, unknown> | null | undefined;
170
- services?: {
171
- service: string;
172
- amount_cents: number;
173
- }[] | null | undefined;
174
- service?: string | null | undefined;
175
- amount_total_cents?: number | null | undefined;
176
- external_id?: string | null | undefined;
177
- description?: string | null | undefined;
178
- customer_name?: string | null | undefined;
179
- customer_phone?: string | null | undefined;
180
- customer_email?: string | null | undefined;
181
- sms_consent?: boolean | null | undefined;
182
- }, {
183
- currency: "USD" | "CAD";
184
- occurred_at: string;
185
- metadata?: Record<string, unknown> | null | undefined;
186
- services?: {
187
- service: string;
188
- amount_cents: number;
189
- }[] | null | undefined;
190
- environment?: "production" | "development" | undefined;
191
- service?: string | null | undefined;
192
- amount_total_cents?: number | null | undefined;
193
- external_id?: string | null | undefined;
194
- description?: string | null | undefined;
195
- items?: {
196
- quantity: string;
197
- unit_price_cents: number;
198
- name?: string | null | undefined;
199
- external_item_id?: string | null | undefined;
200
- category?: string | null | undefined;
201
- unit_cost_cents?: number | null | undefined;
202
- }[] | undefined;
203
- customer_name?: string | null | undefined;
204
- customer_phone?: string | null | undefined;
205
- customer_email?: string | null | undefined;
206
- sms_consent?: boolean | null | undefined;
207
- }>;
208
- declare const saleUpdateSchema: z.ZodEffects<z.ZodObject<{
209
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
- service: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
- services: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
212
- service: z.ZodString;
213
- amount_cents: z.ZodNumber;
214
- }, "strict", z.ZodTypeAny, {
215
- service: string;
216
- amount_cents: number;
217
- }, {
218
- service: string;
219
- amount_cents: number;
220
- }>, "many">>>;
221
- currency: z.ZodOptional<z.ZodEnum<["USD", "CAD"]>>;
222
- amount_total_cents: z.ZodOptional<z.ZodNumber>;
223
- occurred_at: z.ZodOptional<z.ZodString>;
224
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
225
- external_item_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
- category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
- quantity: z.ZodString;
229
- unit_price_cents: z.ZodNumber;
230
- unit_cost_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
231
- }, "strict", z.ZodTypeAny, {
232
- quantity: string;
233
- unit_price_cents: number;
234
- name?: string | null | undefined;
235
- external_item_id?: string | null | undefined;
236
- category?: string | null | undefined;
237
- unit_cost_cents?: number | null | undefined;
238
- }, {
239
- quantity: string;
240
- unit_price_cents: number;
241
- name?: string | null | undefined;
242
- external_item_id?: string | null | undefined;
243
- category?: string | null | undefined;
244
- unit_cost_cents?: number | null | undefined;
245
- }>, "many">>;
246
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
247
- customer_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
- customer_name_placeholder_confirmed: z.ZodOptional<z.ZodBoolean>;
249
- customer_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
- customer_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
- sms_consent: z.ZodOptional<z.ZodBoolean>;
252
- }, "strict", z.ZodTypeAny, {
253
- metadata?: Record<string, unknown> | null | undefined;
254
- currency?: "USD" | "CAD" | undefined;
255
- services?: {
256
- service: string;
257
- amount_cents: number;
258
- }[] | null | undefined;
259
- service?: string | null | undefined;
260
- amount_total_cents?: number | undefined;
261
- description?: string | null | undefined;
262
- occurred_at?: string | undefined;
263
- items?: {
264
- quantity: string;
265
- unit_price_cents: number;
266
- name?: string | null | undefined;
267
- external_item_id?: string | null | undefined;
268
- category?: string | null | undefined;
269
- unit_cost_cents?: number | null | undefined;
270
- }[] | undefined;
271
- customer_name?: string | null | undefined;
272
- customer_phone?: string | null | undefined;
273
- customer_email?: string | null | undefined;
274
- sms_consent?: boolean | undefined;
275
- customer_name_placeholder_confirmed?: boolean | undefined;
276
- }, {
277
- metadata?: Record<string, unknown> | null | undefined;
278
- currency?: "USD" | "CAD" | undefined;
279
- services?: {
280
- service: string;
281
- amount_cents: number;
282
- }[] | null | undefined;
283
- service?: string | null | undefined;
284
- amount_total_cents?: number | undefined;
285
- description?: string | null | undefined;
286
- occurred_at?: string | undefined;
287
- items?: {
288
- quantity: string;
289
- unit_price_cents: number;
290
- name?: string | null | undefined;
291
- external_item_id?: string | null | undefined;
292
- category?: string | null | undefined;
293
- unit_cost_cents?: number | null | undefined;
294
- }[] | undefined;
295
- customer_name?: string | null | undefined;
296
- customer_phone?: string | null | undefined;
297
- customer_email?: string | null | undefined;
298
- sms_consent?: boolean | undefined;
299
- customer_name_placeholder_confirmed?: boolean | undefined;
300
- }>, {
301
- metadata?: Record<string, unknown> | null | undefined;
302
- currency?: "USD" | "CAD" | undefined;
303
- services?: {
304
- service: string;
305
- amount_cents: number;
306
- }[] | null | undefined;
307
- service?: string | null | undefined;
308
- amount_total_cents?: number | undefined;
309
- description?: string | null | undefined;
310
- occurred_at?: string | undefined;
311
- items?: {
312
- quantity: string;
313
- unit_price_cents: number;
314
- name?: string | null | undefined;
315
- external_item_id?: string | null | undefined;
316
- category?: string | null | undefined;
317
- unit_cost_cents?: number | null | undefined;
318
- }[] | undefined;
319
- customer_name?: string | null | undefined;
320
- customer_phone?: string | null | undefined;
321
- customer_email?: string | null | undefined;
322
- sms_consent?: boolean | undefined;
323
- customer_name_placeholder_confirmed?: boolean | undefined;
324
- }, {
325
- metadata?: Record<string, unknown> | null | undefined;
326
- currency?: "USD" | "CAD" | undefined;
327
- services?: {
328
- service: string;
329
- amount_cents: number;
330
- }[] | null | undefined;
331
- service?: string | null | undefined;
332
- amount_total_cents?: number | undefined;
333
- description?: string | null | undefined;
334
- occurred_at?: string | undefined;
335
- items?: {
336
- quantity: string;
337
- unit_price_cents: number;
338
- name?: string | null | undefined;
339
- external_item_id?: string | null | undefined;
340
- category?: string | null | undefined;
341
- unit_cost_cents?: number | null | undefined;
342
- }[] | undefined;
343
- customer_name?: string | null | undefined;
344
- customer_phone?: string | null | undefined;
345
- customer_email?: string | null | undefined;
346
- sms_consent?: boolean | undefined;
347
- customer_name_placeholder_confirmed?: boolean | undefined;
348
- }>;
50
+ declare const saleCreateSchema: z.ZodMiniObject<{
51
+ amount_total_cents: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniInt>>;
52
+ currency: z.ZodMiniEnum<{
53
+ USD: "USD";
54
+ CAD: "CAD";
55
+ }>;
56
+ customer_email: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniEmail>>;
57
+ customer_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
58
+ customer_phone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
59
+ description: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
60
+ environment: z.ZodMiniDefault<z.ZodMiniOptional<z.ZodMiniEnum<{
61
+ production: "production";
62
+ development: "development";
63
+ }>>>;
64
+ external_id: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
65
+ metadata: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
66
+ occurred_at: z.iso.ZodMiniISODateTime;
67
+ service: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
68
+ services: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
69
+ amount_cents: z.ZodMiniInt;
70
+ service: z.ZodMiniString<string>;
71
+ }, z.core.$strict>>>>;
72
+ sms_consent: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniBoolean<boolean>>>;
73
+ items: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniObject<{
74
+ category: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
75
+ external_item_id: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
76
+ name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
77
+ quantity: z.ZodMiniString<string>;
78
+ unit_cost_cents: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniInt>>;
79
+ unit_price_cents: z.ZodMiniInt;
80
+ }, z.core.$strict>>>;
81
+ }, z.core.$strict>;
82
+ declare const saleUpdateSchema: z.ZodMiniObject<{
83
+ description: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
84
+ service: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
85
+ services: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
86
+ amount_cents: z.ZodMiniInt;
87
+ service: z.ZodMiniString<string>;
88
+ }, z.core.$strict>>>>;
89
+ currency: z.ZodMiniOptional<z.ZodMiniEnum<{
90
+ USD: "USD";
91
+ CAD: "CAD";
92
+ }>>;
93
+ amount_total_cents: z.ZodMiniOptional<z.ZodMiniInt>;
94
+ occurred_at: z.ZodMiniOptional<z.iso.ZodMiniISODateTime>;
95
+ items: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
96
+ category: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
97
+ external_item_id: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
98
+ name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
99
+ quantity: z.ZodMiniString<string>;
100
+ unit_cost_cents: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniInt>>;
101
+ unit_price_cents: z.ZodMiniInt;
102
+ }, z.core.$strict>>>;
103
+ metadata: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
104
+ customer_name: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
105
+ customer_name_placeholder_confirmed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
106
+ customer_phone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
107
+ customer_email: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniEmail>>;
108
+ sms_consent: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
109
+ }, z.core.$strict>;
349
110
  type SaleItemInput = z.input<typeof saleItemSchema>;
350
111
  type SaleServiceInput = z.input<typeof saleServiceSchema>;
351
112
  type SaleInput = z.input<typeof saleCreateSchema>;
@@ -857,4 +618,4 @@ interface PublicServiceItem {
857
618
  */
858
619
  declare function fetchServices(config: SalesTransportConfig): Promise<PublicServiceItem[]>;
859
620
 
860
- export { type SalesClient as $, type SaleItemInput as A, type BusinessConfig as B, type CompareTo as C, type DistinctCustomersByCurrency as D, type EffectiveSaleProperty as E, type SaleKeysetSortField as F, type Granularity as G, type SaleListPage as H, type SaleListQuery as I, type SaleListQueryV2 as J, type SalePropertyOption as K, type SalePropertyType as L, type SaleService as M, NAMED_RANGES as N, type SaleServiceInput as O, type PublicServiceItem as P, type SaleSortField as Q, type SaleSortOrder as R, SUPPORTED_CURRENCIES as S, type SaleSummary as T, type SaleSummaryPrevious as U, type SaleSummaryQuery as V, type SaleSummaryQueryV2 as W, type SaleSummaryV2 as X, type SaleUpdateInput as Y, type SalesBusinessClient as Z, type SalesCategoryBreakdown as _, type BusinessConfigFeatures as a, type SalesClientConfig as a0, type SalesCustomersClient as a1, type SalesServiceBreakdown as a2, type SalesTransportConfig as a3, type SalesTrendPoint as a4, type SummaryCurrencyDelta as a5, type SummaryDeltas as a6, type SummaryWindow as a7, type SupportedCurrency as a8, TRACKING_RANGES as a9, type TrackingOverviewRange as aa, clearStashedUserData as ab, createSalesClient as ac, fetchServices as ad, formatMoney as ae, fromMinor as af, saleCreateSchema as ag, saleItemSchema as ah, saleServiceSchema as ai, saleUpdateSchema as aj, salesRequest as ak, stashUserData as al, toMinor as am, type BusinessConfigService as b, type ConversionUserData as c, type CurrencyRevenue as d, type CustomerCurrencyDelta as e, type CustomerCurrencyTotal as f, type CustomerGetOptions as g, type CustomerGetResult as h, type CustomerKpis as i, type CustomerKpisDeltas as j, type CustomerKpisPrevious as k, type CustomerListPage as l, type CustomerListQuery as m, type CustomerProfile as n, type CustomerSegment as o, type CustomerSegmentCount as p, type CustomerSortField as q, type CustomerSummary as r, type CustomerSummaryQuery as s, type NamedRange as t, type Sale as u, type SaleBuiltinRequirableField as v, type SaleCursorPage as w, type SaleFilters as x, type SaleInput as y, type SaleItem as z };
621
+ export { type SalesClient as $, type SaleItemInput as A, type BusinessConfig as B, type CompareTo as C, type DistinctCustomersByCurrency as D, type EffectiveSaleProperty as E, type SaleKeysetSortField as F, type Granularity as G, type SaleListPage as H, type SaleListQuery as I, type SaleListQueryV2 as J, type SalePropertyOption as K, type SalePropertyType as L, type SaleService as M, NAMED_RANGES as N, type SaleServiceInput as O, type PublicServiceItem as P, type SaleSortField as Q, type SaleSortOrder as R, SUPPORTED_CURRENCIES as S, type SaleSummary as T, type SaleSummaryPrevious as U, type SaleSummaryQuery as V, type SaleSummaryQueryV2 as W, type SaleSummaryV2 as X, type SaleUpdateInput as Y, type SalesBusinessClient as Z, type SalesCategoryBreakdown as _, type BusinessConfigFeatures as a, type SalesClientConfig as a0, type SalesCustomersClient as a1, type SalesServiceBreakdown as a2, type SalesTransportConfig as a3, type SalesTrendPoint as a4, type SummaryCurrencyDelta as a5, type SummaryDeltas as a6, type SummaryWindow as a7, type SupportedCurrency as a8, TRACKING_RANGES as a9, type TrackingOverviewRange as aa, clearStashedUserData as ab, createSalesClient as ac, currencySchema as ad, fetchServices as ae, formatMoney as af, fromMinor as ag, saleCreateSchema as ah, saleItemSchema as ai, saleServiceSchema as aj, saleUpdateSchema as ak, salesRequest as al, stashUserData as am, toMinor as an, type BusinessConfigService as b, type ConversionUserData as c, type CurrencyRevenue as d, type CustomerCurrencyDelta as e, type CustomerCurrencyTotal as f, type CustomerGetOptions as g, type CustomerGetResult as h, type CustomerKpis as i, type CustomerKpisDeltas as j, type CustomerKpisPrevious as k, type CustomerListPage as l, type CustomerListQuery as m, type CustomerProfile as n, type CustomerSegment as o, type CustomerSegmentCount as p, type CustomerSortField as q, type CustomerSummary as r, type CustomerSummaryQuery as s, type NamedRange as t, type Sale as u, type SaleBuiltinRequirableField as v, type SaleCursorPage as w, type SaleFilters as x, type SaleInput as y, type SaleItem as z };