@axova/shared 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 (112) hide show
  1. package/CONFIGURATION_GUIDE.md +1 -0
  2. package/README.md +384 -0
  3. package/SCHEMA_ORGANIZATION.md +209 -0
  4. package/dist/configs/index.d.ts +85 -0
  5. package/dist/configs/index.js +555 -0
  6. package/dist/events/kafka.d.ts +40 -0
  7. package/dist/events/kafka.js +311 -0
  8. package/dist/index.d.ts +13 -0
  9. package/dist/index.js +41 -0
  10. package/dist/interfaces/customer-events.d.ts +85 -0
  11. package/dist/interfaces/customer-events.js +2 -0
  12. package/dist/interfaces/inventory-events.d.ts +453 -0
  13. package/dist/interfaces/inventory-events.js +3 -0
  14. package/dist/interfaces/inventory-types.d.ts +894 -0
  15. package/dist/interfaces/inventory-types.js +3 -0
  16. package/dist/interfaces/order-events.d.ts +320 -0
  17. package/dist/interfaces/order-events.js +3 -0
  18. package/dist/lib/auditLogger.d.ts +162 -0
  19. package/dist/lib/auditLogger.js +626 -0
  20. package/dist/lib/authOrganization.d.ts +24 -0
  21. package/dist/lib/authOrganization.js +110 -0
  22. package/dist/lib/db.d.ts +6 -0
  23. package/dist/lib/db.js +88 -0
  24. package/dist/middleware/serviceAuth.d.ts +60 -0
  25. package/dist/middleware/serviceAuth.js +272 -0
  26. package/dist/middleware/storeOwnership.d.ts +15 -0
  27. package/dist/middleware/storeOwnership.js +156 -0
  28. package/dist/middleware/storeValidationMiddleware.d.ts +44 -0
  29. package/dist/middleware/storeValidationMiddleware.js +180 -0
  30. package/dist/middleware/userAuth.d.ts +27 -0
  31. package/dist/middleware/userAuth.js +218 -0
  32. package/dist/schemas/admin/admin-schema.d.ts +741 -0
  33. package/dist/schemas/admin/admin-schema.js +111 -0
  34. package/dist/schemas/ai-moderation/ai-moderation-schema.d.ts +648 -0
  35. package/dist/schemas/ai-moderation/ai-moderation-schema.js +88 -0
  36. package/dist/schemas/common/common-schemas.d.ts +436 -0
  37. package/dist/schemas/common/common-schemas.js +94 -0
  38. package/dist/schemas/compliance/compliance-schema.d.ts +3388 -0
  39. package/dist/schemas/compliance/compliance-schema.js +472 -0
  40. package/dist/schemas/compliance/kyc-schema.d.ts +2642 -0
  41. package/dist/schemas/compliance/kyc-schema.js +361 -0
  42. package/dist/schemas/customer/customer-schema.d.ts +2727 -0
  43. package/dist/schemas/customer/customer-schema.js +399 -0
  44. package/dist/schemas/index.d.ts +27 -0
  45. package/dist/schemas/index.js +138 -0
  46. package/dist/schemas/inventory/inventory-tables.d.ts +9476 -0
  47. package/dist/schemas/inventory/inventory-tables.js +1470 -0
  48. package/dist/schemas/inventory/lot-tables.d.ts +3281 -0
  49. package/dist/schemas/inventory/lot-tables.js +608 -0
  50. package/dist/schemas/order/order-schema.d.ts +5825 -0
  51. package/dist/schemas/order/order-schema.js +954 -0
  52. package/dist/schemas/product/discount-relations.d.ts +15 -0
  53. package/dist/schemas/product/discount-relations.js +34 -0
  54. package/dist/schemas/product/discount-schema.d.ts +1975 -0
  55. package/dist/schemas/product/discount-schema.js +297 -0
  56. package/dist/schemas/product/product-relations.d.ts +41 -0
  57. package/dist/schemas/product/product-relations.js +133 -0
  58. package/dist/schemas/product/product-schema.d.ts +4544 -0
  59. package/dist/schemas/product/product-schema.js +671 -0
  60. package/dist/schemas/store/store-audit-schema.d.ts +4135 -0
  61. package/dist/schemas/store/store-audit-schema.js +556 -0
  62. package/dist/schemas/store/store-schema.d.ts +3100 -0
  63. package/dist/schemas/store/store-schema.js +381 -0
  64. package/dist/schemas/store/store-settings-schema.d.ts +665 -0
  65. package/dist/schemas/store/store-settings-schema.js +141 -0
  66. package/dist/schemas/types.d.ts +50 -0
  67. package/dist/schemas/types.js +3 -0
  68. package/dist/types/events.d.ts +2396 -0
  69. package/dist/types/events.js +505 -0
  70. package/dist/utils/errorHandler.d.ts +12 -0
  71. package/dist/utils/errorHandler.js +36 -0
  72. package/dist/utils/subdomain.d.ts +6 -0
  73. package/dist/utils/subdomain.js +20 -0
  74. package/nul +8 -0
  75. package/package.json +43 -0
  76. package/src/configs/index.ts +654 -0
  77. package/src/events/kafka.ts +429 -0
  78. package/src/index.ts +26 -0
  79. package/src/interfaces/customer-events.ts +106 -0
  80. package/src/interfaces/inventory-events.ts +545 -0
  81. package/src/interfaces/inventory-types.ts +1004 -0
  82. package/src/interfaces/order-events.ts +381 -0
  83. package/src/lib/auditLogger.ts +1117 -0
  84. package/src/lib/authOrganization.ts +153 -0
  85. package/src/lib/db.ts +64 -0
  86. package/src/middleware/serviceAuth.ts +328 -0
  87. package/src/middleware/storeOwnership.ts +199 -0
  88. package/src/middleware/storeValidationMiddleware.ts +247 -0
  89. package/src/middleware/userAuth.ts +248 -0
  90. package/src/schemas/admin/admin-schema.ts +208 -0
  91. package/src/schemas/ai-moderation/ai-moderation-schema.ts +180 -0
  92. package/src/schemas/common/common-schemas.ts +108 -0
  93. package/src/schemas/compliance/compliance-schema.ts +927 -0
  94. package/src/schemas/compliance/kyc-schema.ts +649 -0
  95. package/src/schemas/customer/customer-schema.ts +576 -0
  96. package/src/schemas/index.ts +189 -0
  97. package/src/schemas/inventory/inventory-tables.ts +1927 -0
  98. package/src/schemas/inventory/lot-tables.ts +799 -0
  99. package/src/schemas/order/order-schema.ts +1400 -0
  100. package/src/schemas/product/discount-relations.ts +44 -0
  101. package/src/schemas/product/discount-schema.ts +464 -0
  102. package/src/schemas/product/product-relations.ts +187 -0
  103. package/src/schemas/product/product-schema.ts +955 -0
  104. package/src/schemas/store/ethiopian_business_api.md.resolved +212 -0
  105. package/src/schemas/store/store-audit-schema.ts +1257 -0
  106. package/src/schemas/store/store-schema.ts +661 -0
  107. package/src/schemas/store/store-settings-schema.ts +231 -0
  108. package/src/schemas/types.ts +67 -0
  109. package/src/types/events.ts +646 -0
  110. package/src/utils/errorHandler.ts +44 -0
  111. package/src/utils/subdomain.ts +19 -0
  112. package/tsconfig.json +21 -0
@@ -0,0 +1,2396 @@
1
+ import { z } from "zod";
2
+ export declare const BaseEventSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ timestamp: z.ZodString;
5
+ source: z.ZodString;
6
+ version: z.ZodDefault<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ timestamp: string;
10
+ source: string;
11
+ version: string;
12
+ }, {
13
+ id: string;
14
+ timestamp: string;
15
+ source: string;
16
+ version?: string | undefined;
17
+ }>;
18
+ export declare const StoreCreatedEventSchema: z.ZodObject<{
19
+ id: z.ZodString;
20
+ timestamp: z.ZodString;
21
+ source: z.ZodString;
22
+ version: z.ZodDefault<z.ZodString>;
23
+ } & {
24
+ type: z.ZodLiteral<"store.created">;
25
+ data: z.ZodObject<{
26
+ storeId: z.ZodString;
27
+ userId: z.ZodString;
28
+ storeName: z.ZodString;
29
+ subdomain: z.ZodString;
30
+ timezone: z.ZodString;
31
+ currency: z.ZodString;
32
+ isActive: z.ZodBoolean;
33
+ organizationId: z.ZodOptional<z.ZodString>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ storeId: string;
36
+ userId: string;
37
+ storeName: string;
38
+ subdomain: string;
39
+ timezone: string;
40
+ currency: string;
41
+ isActive: boolean;
42
+ organizationId?: string | undefined;
43
+ }, {
44
+ storeId: string;
45
+ userId: string;
46
+ storeName: string;
47
+ subdomain: string;
48
+ timezone: string;
49
+ currency: string;
50
+ isActive: boolean;
51
+ organizationId?: string | undefined;
52
+ }>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ id: string;
55
+ timestamp: string;
56
+ source: string;
57
+ version: string;
58
+ type: "store.created";
59
+ data: {
60
+ storeId: string;
61
+ userId: string;
62
+ storeName: string;
63
+ subdomain: string;
64
+ timezone: string;
65
+ currency: string;
66
+ isActive: boolean;
67
+ organizationId?: string | undefined;
68
+ };
69
+ }, {
70
+ id: string;
71
+ timestamp: string;
72
+ source: string;
73
+ type: "store.created";
74
+ data: {
75
+ storeId: string;
76
+ userId: string;
77
+ storeName: string;
78
+ subdomain: string;
79
+ timezone: string;
80
+ currency: string;
81
+ isActive: boolean;
82
+ organizationId?: string | undefined;
83
+ };
84
+ version?: string | undefined;
85
+ }>;
86
+ export declare const StoreUpdatedEventSchema: z.ZodObject<{
87
+ id: z.ZodString;
88
+ timestamp: z.ZodString;
89
+ source: z.ZodString;
90
+ version: z.ZodDefault<z.ZodString>;
91
+ } & {
92
+ type: z.ZodLiteral<"store.updated">;
93
+ data: z.ZodObject<{
94
+ storeId: z.ZodString;
95
+ userId: z.ZodString;
96
+ changes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
97
+ previousValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ storeId: string;
100
+ userId: string;
101
+ changes: Record<string, unknown>;
102
+ previousValues?: Record<string, unknown> | undefined;
103
+ }, {
104
+ storeId: string;
105
+ userId: string;
106
+ changes: Record<string, unknown>;
107
+ previousValues?: Record<string, unknown> | undefined;
108
+ }>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ id: string;
111
+ timestamp: string;
112
+ source: string;
113
+ version: string;
114
+ type: "store.updated";
115
+ data: {
116
+ storeId: string;
117
+ userId: string;
118
+ changes: Record<string, unknown>;
119
+ previousValues?: Record<string, unknown> | undefined;
120
+ };
121
+ }, {
122
+ id: string;
123
+ timestamp: string;
124
+ source: string;
125
+ type: "store.updated";
126
+ data: {
127
+ storeId: string;
128
+ userId: string;
129
+ changes: Record<string, unknown>;
130
+ previousValues?: Record<string, unknown> | undefined;
131
+ };
132
+ version?: string | undefined;
133
+ }>;
134
+ export declare const ComplianceViolationDetectedEventSchema: z.ZodObject<{
135
+ id: z.ZodString;
136
+ timestamp: z.ZodString;
137
+ source: z.ZodString;
138
+ version: z.ZodDefault<z.ZodString>;
139
+ } & {
140
+ type: z.ZodLiteral<"compliance.violation.detected">;
141
+ data: z.ZodObject<{
142
+ storeId: z.ZodString;
143
+ violationType: z.ZodEnum<["CONTENT_VIOLATION", "POLICY_VIOLATION", "BEHAVIOR_VIOLATION"]>;
144
+ severity: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
145
+ description: z.ZodString;
146
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
147
+ autoAction: z.ZodOptional<z.ZodEnum<["NONE", "WARNING", "SUSPEND", "BAN"]>>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ storeId: string;
150
+ violationType: "CONTENT_VIOLATION" | "POLICY_VIOLATION" | "BEHAVIOR_VIOLATION";
151
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
152
+ description: string;
153
+ evidence?: Record<string, unknown> | undefined;
154
+ autoAction?: "NONE" | "WARNING" | "SUSPEND" | "BAN" | undefined;
155
+ }, {
156
+ storeId: string;
157
+ violationType: "CONTENT_VIOLATION" | "POLICY_VIOLATION" | "BEHAVIOR_VIOLATION";
158
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
159
+ description: string;
160
+ evidence?: Record<string, unknown> | undefined;
161
+ autoAction?: "NONE" | "WARNING" | "SUSPEND" | "BAN" | undefined;
162
+ }>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ id: string;
165
+ timestamp: string;
166
+ source: string;
167
+ version: string;
168
+ type: "compliance.violation.detected";
169
+ data: {
170
+ storeId: string;
171
+ violationType: "CONTENT_VIOLATION" | "POLICY_VIOLATION" | "BEHAVIOR_VIOLATION";
172
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
173
+ description: string;
174
+ evidence?: Record<string, unknown> | undefined;
175
+ autoAction?: "NONE" | "WARNING" | "SUSPEND" | "BAN" | undefined;
176
+ };
177
+ }, {
178
+ id: string;
179
+ timestamp: string;
180
+ source: string;
181
+ type: "compliance.violation.detected";
182
+ data: {
183
+ storeId: string;
184
+ violationType: "CONTENT_VIOLATION" | "POLICY_VIOLATION" | "BEHAVIOR_VIOLATION";
185
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
186
+ description: string;
187
+ evidence?: Record<string, unknown> | undefined;
188
+ autoAction?: "NONE" | "WARNING" | "SUSPEND" | "BAN" | undefined;
189
+ };
190
+ version?: string | undefined;
191
+ }>;
192
+ export declare const StoreSuspendedEventSchema: z.ZodObject<{
193
+ id: z.ZodString;
194
+ timestamp: z.ZodString;
195
+ source: z.ZodString;
196
+ version: z.ZodDefault<z.ZodString>;
197
+ } & {
198
+ type: z.ZodLiteral<"store.suspended">;
199
+ data: z.ZodObject<{
200
+ storeId: z.ZodString;
201
+ reason: z.ZodString;
202
+ duration: z.ZodOptional<z.ZodNumber>;
203
+ suspendedBy: z.ZodString;
204
+ additionalNotes: z.ZodOptional<z.ZodString>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ storeId: string;
207
+ reason: string;
208
+ suspendedBy: string;
209
+ duration?: number | undefined;
210
+ additionalNotes?: string | undefined;
211
+ }, {
212
+ storeId: string;
213
+ reason: string;
214
+ suspendedBy: string;
215
+ duration?: number | undefined;
216
+ additionalNotes?: string | undefined;
217
+ }>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ id: string;
220
+ timestamp: string;
221
+ source: string;
222
+ version: string;
223
+ type: "store.suspended";
224
+ data: {
225
+ storeId: string;
226
+ reason: string;
227
+ suspendedBy: string;
228
+ duration?: number | undefined;
229
+ additionalNotes?: string | undefined;
230
+ };
231
+ }, {
232
+ id: string;
233
+ timestamp: string;
234
+ source: string;
235
+ type: "store.suspended";
236
+ data: {
237
+ storeId: string;
238
+ reason: string;
239
+ suspendedBy: string;
240
+ duration?: number | undefined;
241
+ additionalNotes?: string | undefined;
242
+ };
243
+ version?: string | undefined;
244
+ }>;
245
+ export declare const StoreUnbannedEventSchema: z.ZodObject<{
246
+ id: z.ZodString;
247
+ timestamp: z.ZodString;
248
+ source: z.ZodString;
249
+ version: z.ZodDefault<z.ZodString>;
250
+ } & {
251
+ type: z.ZodLiteral<"store.unbanned">;
252
+ data: z.ZodObject<{
253
+ storeId: z.ZodString;
254
+ reason: z.ZodString;
255
+ unbannedBy: z.ZodString;
256
+ previousBanReason: z.ZodOptional<z.ZodString>;
257
+ additionalNotes: z.ZodOptional<z.ZodString>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ storeId: string;
260
+ reason: string;
261
+ unbannedBy: string;
262
+ additionalNotes?: string | undefined;
263
+ previousBanReason?: string | undefined;
264
+ }, {
265
+ storeId: string;
266
+ reason: string;
267
+ unbannedBy: string;
268
+ additionalNotes?: string | undefined;
269
+ previousBanReason?: string | undefined;
270
+ }>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ id: string;
273
+ timestamp: string;
274
+ source: string;
275
+ version: string;
276
+ type: "store.unbanned";
277
+ data: {
278
+ storeId: string;
279
+ reason: string;
280
+ unbannedBy: string;
281
+ additionalNotes?: string | undefined;
282
+ previousBanReason?: string | undefined;
283
+ };
284
+ }, {
285
+ id: string;
286
+ timestamp: string;
287
+ source: string;
288
+ type: "store.unbanned";
289
+ data: {
290
+ storeId: string;
291
+ reason: string;
292
+ unbannedBy: string;
293
+ additionalNotes?: string | undefined;
294
+ previousBanReason?: string | undefined;
295
+ };
296
+ version?: string | undefined;
297
+ }>;
298
+ export declare const NotificationSendEventSchema: z.ZodObject<{
299
+ id: z.ZodString;
300
+ timestamp: z.ZodString;
301
+ source: z.ZodString;
302
+ version: z.ZodDefault<z.ZodString>;
303
+ } & {
304
+ type: z.ZodLiteral<"notification.send">;
305
+ data: z.ZodObject<{
306
+ recipientId: z.ZodString;
307
+ recipientType: z.ZodEnum<["USER", "STORE", "ADMIN"]>;
308
+ channel: z.ZodEnum<["EMAIL", "SMS", "IN_APP", "PUSH"]>;
309
+ template: z.ZodString;
310
+ templateData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
311
+ priority: z.ZodDefault<z.ZodEnum<["LOW", "NORMAL", "HIGH", "URGENT"]>>;
312
+ scheduledFor: z.ZodOptional<z.ZodString>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ recipientId: string;
315
+ recipientType: "USER" | "STORE" | "ADMIN";
316
+ channel: "EMAIL" | "SMS" | "IN_APP" | "PUSH";
317
+ template: string;
318
+ templateData: Record<string, unknown>;
319
+ priority: "LOW" | "HIGH" | "NORMAL" | "URGENT";
320
+ scheduledFor?: string | undefined;
321
+ }, {
322
+ recipientId: string;
323
+ recipientType: "USER" | "STORE" | "ADMIN";
324
+ channel: "EMAIL" | "SMS" | "IN_APP" | "PUSH";
325
+ template: string;
326
+ templateData: Record<string, unknown>;
327
+ priority?: "LOW" | "HIGH" | "NORMAL" | "URGENT" | undefined;
328
+ scheduledFor?: string | undefined;
329
+ }>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ id: string;
332
+ timestamp: string;
333
+ source: string;
334
+ version: string;
335
+ type: "notification.send";
336
+ data: {
337
+ recipientId: string;
338
+ recipientType: "USER" | "STORE" | "ADMIN";
339
+ channel: "EMAIL" | "SMS" | "IN_APP" | "PUSH";
340
+ template: string;
341
+ templateData: Record<string, unknown>;
342
+ priority: "LOW" | "HIGH" | "NORMAL" | "URGENT";
343
+ scheduledFor?: string | undefined;
344
+ };
345
+ }, {
346
+ id: string;
347
+ timestamp: string;
348
+ source: string;
349
+ type: "notification.send";
350
+ data: {
351
+ recipientId: string;
352
+ recipientType: "USER" | "STORE" | "ADMIN";
353
+ channel: "EMAIL" | "SMS" | "IN_APP" | "PUSH";
354
+ template: string;
355
+ templateData: Record<string, unknown>;
356
+ priority?: "LOW" | "HIGH" | "NORMAL" | "URGENT" | undefined;
357
+ scheduledFor?: string | undefined;
358
+ };
359
+ version?: string | undefined;
360
+ }>;
361
+ export declare const AuditLoggedEventSchema: z.ZodObject<{
362
+ id: z.ZodString;
363
+ timestamp: z.ZodString;
364
+ source: z.ZodString;
365
+ version: z.ZodDefault<z.ZodString>;
366
+ } & {
367
+ type: z.ZodLiteral<"audit.logged">;
368
+ data: z.ZodObject<{
369
+ action: z.ZodString;
370
+ resource: z.ZodString;
371
+ resourceId: z.ZodString;
372
+ performedBy: z.ZodString;
373
+ performedByType: z.ZodEnum<["USER", "SYSTEM", "ADMIN", "SERVICE"]>;
374
+ changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
375
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
376
+ ip: z.ZodOptional<z.ZodString>;
377
+ userAgent: z.ZodOptional<z.ZodString>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ action: string;
380
+ resource: string;
381
+ resourceId: string;
382
+ performedBy: string;
383
+ performedByType: "USER" | "ADMIN" | "SYSTEM" | "SERVICE";
384
+ changes?: Record<string, unknown> | undefined;
385
+ metadata?: Record<string, unknown> | undefined;
386
+ ip?: string | undefined;
387
+ userAgent?: string | undefined;
388
+ }, {
389
+ action: string;
390
+ resource: string;
391
+ resourceId: string;
392
+ performedBy: string;
393
+ performedByType: "USER" | "ADMIN" | "SYSTEM" | "SERVICE";
394
+ changes?: Record<string, unknown> | undefined;
395
+ metadata?: Record<string, unknown> | undefined;
396
+ ip?: string | undefined;
397
+ userAgent?: string | undefined;
398
+ }>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ id: string;
401
+ timestamp: string;
402
+ source: string;
403
+ version: string;
404
+ type: "audit.logged";
405
+ data: {
406
+ action: string;
407
+ resource: string;
408
+ resourceId: string;
409
+ performedBy: string;
410
+ performedByType: "USER" | "ADMIN" | "SYSTEM" | "SERVICE";
411
+ changes?: Record<string, unknown> | undefined;
412
+ metadata?: Record<string, unknown> | undefined;
413
+ ip?: string | undefined;
414
+ userAgent?: string | undefined;
415
+ };
416
+ }, {
417
+ id: string;
418
+ timestamp: string;
419
+ source: string;
420
+ type: "audit.logged";
421
+ data: {
422
+ action: string;
423
+ resource: string;
424
+ resourceId: string;
425
+ performedBy: string;
426
+ performedByType: "USER" | "ADMIN" | "SYSTEM" | "SERVICE";
427
+ changes?: Record<string, unknown> | undefined;
428
+ metadata?: Record<string, unknown> | undefined;
429
+ ip?: string | undefined;
430
+ userAgent?: string | undefined;
431
+ };
432
+ version?: string | undefined;
433
+ }>;
434
+ export declare const AppealSubmittedEventSchema: z.ZodObject<{
435
+ id: z.ZodString;
436
+ timestamp: z.ZodString;
437
+ source: z.ZodString;
438
+ version: z.ZodDefault<z.ZodString>;
439
+ } & {
440
+ type: z.ZodLiteral<"appeal.submitted">;
441
+ data: z.ZodObject<{
442
+ appealId: z.ZodString;
443
+ storeId: z.ZodString;
444
+ userId: z.ZodString;
445
+ appealType: z.ZodEnum<["BAN_APPEAL", "SUSPENSION_APPEAL", "WARNING_APPEAL", "POLICY_DISPUTE"]>;
446
+ reason: z.ZodString;
447
+ evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
448
+ originalViolationId: z.ZodOptional<z.ZodString>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ storeId: string;
451
+ userId: string;
452
+ reason: string;
453
+ appealId: string;
454
+ appealType: "BAN_APPEAL" | "SUSPENSION_APPEAL" | "WARNING_APPEAL" | "POLICY_DISPUTE";
455
+ evidence?: string[] | undefined;
456
+ originalViolationId?: string | undefined;
457
+ }, {
458
+ storeId: string;
459
+ userId: string;
460
+ reason: string;
461
+ appealId: string;
462
+ appealType: "BAN_APPEAL" | "SUSPENSION_APPEAL" | "WARNING_APPEAL" | "POLICY_DISPUTE";
463
+ evidence?: string[] | undefined;
464
+ originalViolationId?: string | undefined;
465
+ }>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ id: string;
468
+ timestamp: string;
469
+ source: string;
470
+ version: string;
471
+ type: "appeal.submitted";
472
+ data: {
473
+ storeId: string;
474
+ userId: string;
475
+ reason: string;
476
+ appealId: string;
477
+ appealType: "BAN_APPEAL" | "SUSPENSION_APPEAL" | "WARNING_APPEAL" | "POLICY_DISPUTE";
478
+ evidence?: string[] | undefined;
479
+ originalViolationId?: string | undefined;
480
+ };
481
+ }, {
482
+ id: string;
483
+ timestamp: string;
484
+ source: string;
485
+ type: "appeal.submitted";
486
+ data: {
487
+ storeId: string;
488
+ userId: string;
489
+ reason: string;
490
+ appealId: string;
491
+ appealType: "BAN_APPEAL" | "SUSPENSION_APPEAL" | "WARNING_APPEAL" | "POLICY_DISPUTE";
492
+ evidence?: string[] | undefined;
493
+ originalViolationId?: string | undefined;
494
+ };
495
+ version?: string | undefined;
496
+ }>;
497
+ export declare const AppealReviewedEventSchema: z.ZodObject<{
498
+ id: z.ZodString;
499
+ timestamp: z.ZodString;
500
+ source: z.ZodString;
501
+ version: z.ZodDefault<z.ZodString>;
502
+ } & {
503
+ type: z.ZodLiteral<"appeal.reviewed">;
504
+ data: z.ZodObject<{
505
+ appealId: z.ZodString;
506
+ storeId: z.ZodString;
507
+ reviewedBy: z.ZodString;
508
+ decision: z.ZodEnum<["APPROVED", "REJECTED", "PARTIALLY_APPROVED"]>;
509
+ reasoning: z.ZodString;
510
+ actionTaken: z.ZodOptional<z.ZodString>;
511
+ reviewNotes: z.ZodOptional<z.ZodString>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ storeId: string;
514
+ appealId: string;
515
+ reviewedBy: string;
516
+ decision: "APPROVED" | "REJECTED" | "PARTIALLY_APPROVED";
517
+ reasoning: string;
518
+ actionTaken?: string | undefined;
519
+ reviewNotes?: string | undefined;
520
+ }, {
521
+ storeId: string;
522
+ appealId: string;
523
+ reviewedBy: string;
524
+ decision: "APPROVED" | "REJECTED" | "PARTIALLY_APPROVED";
525
+ reasoning: string;
526
+ actionTaken?: string | undefined;
527
+ reviewNotes?: string | undefined;
528
+ }>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ id: string;
531
+ timestamp: string;
532
+ source: string;
533
+ version: string;
534
+ type: "appeal.reviewed";
535
+ data: {
536
+ storeId: string;
537
+ appealId: string;
538
+ reviewedBy: string;
539
+ decision: "APPROVED" | "REJECTED" | "PARTIALLY_APPROVED";
540
+ reasoning: string;
541
+ actionTaken?: string | undefined;
542
+ reviewNotes?: string | undefined;
543
+ };
544
+ }, {
545
+ id: string;
546
+ timestamp: string;
547
+ source: string;
548
+ type: "appeal.reviewed";
549
+ data: {
550
+ storeId: string;
551
+ appealId: string;
552
+ reviewedBy: string;
553
+ decision: "APPROVED" | "REJECTED" | "PARTIALLY_APPROVED";
554
+ reasoning: string;
555
+ actionTaken?: string | undefined;
556
+ reviewNotes?: string | undefined;
557
+ };
558
+ version?: string | undefined;
559
+ }>;
560
+ export type StoreCreatedEvent = z.infer<typeof StoreCreatedEventSchema>;
561
+ export type StoreUpdatedEvent = z.infer<typeof StoreUpdatedEventSchema>;
562
+ export type ComplianceViolationDetectedEvent = z.infer<typeof ComplianceViolationDetectedEventSchema>;
563
+ export type StoreSuspendedEvent = z.infer<typeof StoreSuspendedEventSchema>;
564
+ export type StoreUnbannedEvent = z.infer<typeof StoreUnbannedEventSchema>;
565
+ export type NotificationSendEvent = z.infer<typeof NotificationSendEventSchema>;
566
+ export type AuditLoggedEvent = z.infer<typeof AuditLoggedEventSchema>;
567
+ export type AppealSubmittedEvent = z.infer<typeof AppealSubmittedEventSchema>;
568
+ export type AppealReviewedEvent = z.infer<typeof AppealReviewedEventSchema>;
569
+ export declare const CustomerCreatedEventSchema: z.ZodObject<{
570
+ id: z.ZodString;
571
+ timestamp: z.ZodString;
572
+ source: z.ZodString;
573
+ version: z.ZodDefault<z.ZodString>;
574
+ } & {
575
+ type: z.ZodLiteral<"customer.created">;
576
+ data: z.ZodObject<{
577
+ customerId: z.ZodString;
578
+ userId: z.ZodString;
579
+ email: z.ZodString;
580
+ firstName: z.ZodString;
581
+ lastName: z.ZodString;
582
+ customerType: z.ZodString;
583
+ registrationSource: z.ZodString;
584
+ storeLocationId: z.ZodOptional<z.ZodString>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ userId: string;
587
+ customerId: string;
588
+ email: string;
589
+ firstName: string;
590
+ lastName: string;
591
+ customerType: string;
592
+ registrationSource: string;
593
+ storeLocationId?: string | undefined;
594
+ }, {
595
+ userId: string;
596
+ customerId: string;
597
+ email: string;
598
+ firstName: string;
599
+ lastName: string;
600
+ customerType: string;
601
+ registrationSource: string;
602
+ storeLocationId?: string | undefined;
603
+ }>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ id: string;
606
+ timestamp: string;
607
+ source: string;
608
+ version: string;
609
+ type: "customer.created";
610
+ data: {
611
+ userId: string;
612
+ customerId: string;
613
+ email: string;
614
+ firstName: string;
615
+ lastName: string;
616
+ customerType: string;
617
+ registrationSource: string;
618
+ storeLocationId?: string | undefined;
619
+ };
620
+ }, {
621
+ id: string;
622
+ timestamp: string;
623
+ source: string;
624
+ type: "customer.created";
625
+ data: {
626
+ userId: string;
627
+ customerId: string;
628
+ email: string;
629
+ firstName: string;
630
+ lastName: string;
631
+ customerType: string;
632
+ registrationSource: string;
633
+ storeLocationId?: string | undefined;
634
+ };
635
+ version?: string | undefined;
636
+ }>;
637
+ export declare const CustomerUpdatedEventSchema: z.ZodObject<{
638
+ id: z.ZodString;
639
+ timestamp: z.ZodString;
640
+ source: z.ZodString;
641
+ version: z.ZodDefault<z.ZodString>;
642
+ } & {
643
+ type: z.ZodLiteral<"customer.updated">;
644
+ data: z.ZodObject<{
645
+ customerId: z.ZodString;
646
+ userId: z.ZodString;
647
+ changes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
648
+ previousValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
649
+ registrationSourceChanged: z.ZodBoolean;
650
+ }, "strip", z.ZodTypeAny, {
651
+ userId: string;
652
+ changes: Record<string, unknown>;
653
+ previousValues: Record<string, unknown>;
654
+ customerId: string;
655
+ registrationSourceChanged: boolean;
656
+ }, {
657
+ userId: string;
658
+ changes: Record<string, unknown>;
659
+ previousValues: Record<string, unknown>;
660
+ customerId: string;
661
+ registrationSourceChanged: boolean;
662
+ }>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ id: string;
665
+ timestamp: string;
666
+ source: string;
667
+ version: string;
668
+ type: "customer.updated";
669
+ data: {
670
+ userId: string;
671
+ changes: Record<string, unknown>;
672
+ previousValues: Record<string, unknown>;
673
+ customerId: string;
674
+ registrationSourceChanged: boolean;
675
+ };
676
+ }, {
677
+ id: string;
678
+ timestamp: string;
679
+ source: string;
680
+ type: "customer.updated";
681
+ data: {
682
+ userId: string;
683
+ changes: Record<string, unknown>;
684
+ previousValues: Record<string, unknown>;
685
+ customerId: string;
686
+ registrationSourceChanged: boolean;
687
+ };
688
+ version?: string | undefined;
689
+ }>;
690
+ export declare const CustomerDeletedEventSchema: z.ZodObject<{
691
+ id: z.ZodString;
692
+ timestamp: z.ZodString;
693
+ source: z.ZodString;
694
+ version: z.ZodDefault<z.ZodString>;
695
+ } & {
696
+ type: z.ZodLiteral<"customer.deleted">;
697
+ data: z.ZodObject<{
698
+ customerId: z.ZodString;
699
+ userId: z.ZodString;
700
+ email: z.ZodString;
701
+ customerType: z.ZodString;
702
+ registrationSource: z.ZodString;
703
+ totalSpent: z.ZodString;
704
+ totalOrders: z.ZodNumber;
705
+ totalVisits: z.ZodNumber;
706
+ totalInteractions: z.ZodNumber;
707
+ }, "strip", z.ZodTypeAny, {
708
+ userId: string;
709
+ customerId: string;
710
+ email: string;
711
+ customerType: string;
712
+ registrationSource: string;
713
+ totalSpent: string;
714
+ totalOrders: number;
715
+ totalVisits: number;
716
+ totalInteractions: number;
717
+ }, {
718
+ userId: string;
719
+ customerId: string;
720
+ email: string;
721
+ customerType: string;
722
+ registrationSource: string;
723
+ totalSpent: string;
724
+ totalOrders: number;
725
+ totalVisits: number;
726
+ totalInteractions: number;
727
+ }>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ id: string;
730
+ timestamp: string;
731
+ source: string;
732
+ version: string;
733
+ type: "customer.deleted";
734
+ data: {
735
+ userId: string;
736
+ customerId: string;
737
+ email: string;
738
+ customerType: string;
739
+ registrationSource: string;
740
+ totalSpent: string;
741
+ totalOrders: number;
742
+ totalVisits: number;
743
+ totalInteractions: number;
744
+ };
745
+ }, {
746
+ id: string;
747
+ timestamp: string;
748
+ source: string;
749
+ type: "customer.deleted";
750
+ data: {
751
+ userId: string;
752
+ customerId: string;
753
+ email: string;
754
+ customerType: string;
755
+ registrationSource: string;
756
+ totalSpent: string;
757
+ totalOrders: number;
758
+ totalVisits: number;
759
+ totalInteractions: number;
760
+ };
761
+ version?: string | undefined;
762
+ }>;
763
+ export declare const CustomerVisitCreatedEventSchema: z.ZodObject<{
764
+ id: z.ZodString;
765
+ timestamp: z.ZodString;
766
+ source: z.ZodString;
767
+ version: z.ZodDefault<z.ZodString>;
768
+ } & {
769
+ type: z.ZodLiteral<"customer.visit.created">;
770
+ data: z.ZodObject<{
771
+ visitId: z.ZodString;
772
+ customerId: z.ZodString;
773
+ visitType: z.ZodString;
774
+ storeLocationId: z.ZodOptional<z.ZodString>;
775
+ outcome: z.ZodOptional<z.ZodString>;
776
+ duration: z.ZodOptional<z.ZodNumber>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ customerId: string;
779
+ visitId: string;
780
+ visitType: string;
781
+ duration?: number | undefined;
782
+ storeLocationId?: string | undefined;
783
+ outcome?: string | undefined;
784
+ }, {
785
+ customerId: string;
786
+ visitId: string;
787
+ visitType: string;
788
+ duration?: number | undefined;
789
+ storeLocationId?: string | undefined;
790
+ outcome?: string | undefined;
791
+ }>;
792
+ }, "strip", z.ZodTypeAny, {
793
+ id: string;
794
+ timestamp: string;
795
+ source: string;
796
+ version: string;
797
+ type: "customer.visit.created";
798
+ data: {
799
+ customerId: string;
800
+ visitId: string;
801
+ visitType: string;
802
+ duration?: number | undefined;
803
+ storeLocationId?: string | undefined;
804
+ outcome?: string | undefined;
805
+ };
806
+ }, {
807
+ id: string;
808
+ timestamp: string;
809
+ source: string;
810
+ type: "customer.visit.created";
811
+ data: {
812
+ customerId: string;
813
+ visitId: string;
814
+ visitType: string;
815
+ duration?: number | undefined;
816
+ storeLocationId?: string | undefined;
817
+ outcome?: string | undefined;
818
+ };
819
+ version?: string | undefined;
820
+ }>;
821
+ export declare const CustomerInteractionCreatedEventSchema: z.ZodObject<{
822
+ id: z.ZodString;
823
+ timestamp: z.ZodString;
824
+ source: z.ZodString;
825
+ version: z.ZodDefault<z.ZodString>;
826
+ } & {
827
+ type: z.ZodLiteral<"customer.interaction.created">;
828
+ data: z.ZodObject<{
829
+ interactionId: z.ZodString;
830
+ customerId: z.ZodString;
831
+ interactionType: z.ZodString;
832
+ targetType: z.ZodOptional<z.ZodString>;
833
+ targetId: z.ZodOptional<z.ZodString>;
834
+ outcome: z.ZodOptional<z.ZodString>;
835
+ staffId: z.ZodOptional<z.ZodString>;
836
+ }, "strip", z.ZodTypeAny, {
837
+ customerId: string;
838
+ interactionId: string;
839
+ interactionType: string;
840
+ outcome?: string | undefined;
841
+ targetType?: string | undefined;
842
+ targetId?: string | undefined;
843
+ staffId?: string | undefined;
844
+ }, {
845
+ customerId: string;
846
+ interactionId: string;
847
+ interactionType: string;
848
+ outcome?: string | undefined;
849
+ targetType?: string | undefined;
850
+ targetId?: string | undefined;
851
+ staffId?: string | undefined;
852
+ }>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ id: string;
855
+ timestamp: string;
856
+ source: string;
857
+ version: string;
858
+ type: "customer.interaction.created";
859
+ data: {
860
+ customerId: string;
861
+ interactionId: string;
862
+ interactionType: string;
863
+ outcome?: string | undefined;
864
+ targetType?: string | undefined;
865
+ targetId?: string | undefined;
866
+ staffId?: string | undefined;
867
+ };
868
+ }, {
869
+ id: string;
870
+ timestamp: string;
871
+ source: string;
872
+ type: "customer.interaction.created";
873
+ data: {
874
+ customerId: string;
875
+ interactionId: string;
876
+ interactionType: string;
877
+ outcome?: string | undefined;
878
+ targetType?: string | undefined;
879
+ targetId?: string | undefined;
880
+ staffId?: string | undefined;
881
+ };
882
+ version?: string | undefined;
883
+ }>;
884
+ export declare const CustomerNoteCreatedEventSchema: z.ZodObject<{
885
+ id: z.ZodString;
886
+ timestamp: z.ZodString;
887
+ source: z.ZodString;
888
+ version: z.ZodDefault<z.ZodString>;
889
+ } & {
890
+ type: z.ZodLiteral<"customer.note.created">;
891
+ data: z.ZodObject<{
892
+ noteId: z.ZodString;
893
+ customerId: z.ZodString;
894
+ noteType: z.ZodString;
895
+ priority: z.ZodString;
896
+ isAlert: z.ZodBoolean;
897
+ createdBy: z.ZodString;
898
+ }, "strip", z.ZodTypeAny, {
899
+ priority: string;
900
+ customerId: string;
901
+ noteId: string;
902
+ noteType: string;
903
+ isAlert: boolean;
904
+ createdBy: string;
905
+ }, {
906
+ priority: string;
907
+ customerId: string;
908
+ noteId: string;
909
+ noteType: string;
910
+ isAlert: boolean;
911
+ createdBy: string;
912
+ }>;
913
+ }, "strip", z.ZodTypeAny, {
914
+ id: string;
915
+ timestamp: string;
916
+ source: string;
917
+ version: string;
918
+ type: "customer.note.created";
919
+ data: {
920
+ priority: string;
921
+ customerId: string;
922
+ noteId: string;
923
+ noteType: string;
924
+ isAlert: boolean;
925
+ createdBy: string;
926
+ };
927
+ }, {
928
+ id: string;
929
+ timestamp: string;
930
+ source: string;
931
+ type: "customer.note.created";
932
+ data: {
933
+ priority: string;
934
+ customerId: string;
935
+ noteId: string;
936
+ noteType: string;
937
+ isAlert: boolean;
938
+ createdBy: string;
939
+ };
940
+ version?: string | undefined;
941
+ }>;
942
+ export declare const CustomerSupportTicketCreatedEventSchema: z.ZodObject<{
943
+ id: z.ZodString;
944
+ timestamp: z.ZodString;
945
+ source: z.ZodString;
946
+ version: z.ZodDefault<z.ZodString>;
947
+ } & {
948
+ type: z.ZodLiteral<"customer.support.ticket.created">;
949
+ data: z.ZodObject<{
950
+ ticketId: z.ZodString;
951
+ ticketNumber: z.ZodString;
952
+ customerId: z.ZodString;
953
+ subject: z.ZodString;
954
+ category: z.ZodString;
955
+ priority: z.ZodString;
956
+ }, "strip", z.ZodTypeAny, {
957
+ priority: string;
958
+ customerId: string;
959
+ ticketId: string;
960
+ ticketNumber: string;
961
+ subject: string;
962
+ category: string;
963
+ }, {
964
+ priority: string;
965
+ customerId: string;
966
+ ticketId: string;
967
+ ticketNumber: string;
968
+ subject: string;
969
+ category: string;
970
+ }>;
971
+ }, "strip", z.ZodTypeAny, {
972
+ id: string;
973
+ timestamp: string;
974
+ source: string;
975
+ version: string;
976
+ type: "customer.support.ticket.created";
977
+ data: {
978
+ priority: string;
979
+ customerId: string;
980
+ ticketId: string;
981
+ ticketNumber: string;
982
+ subject: string;
983
+ category: string;
984
+ };
985
+ }, {
986
+ id: string;
987
+ timestamp: string;
988
+ source: string;
989
+ type: "customer.support.ticket.created";
990
+ data: {
991
+ priority: string;
992
+ customerId: string;
993
+ ticketId: string;
994
+ ticketNumber: string;
995
+ subject: string;
996
+ category: string;
997
+ };
998
+ version?: string | undefined;
999
+ }>;
1000
+ export declare const CustomerReviewSubmittedEventSchema: z.ZodObject<{
1001
+ id: z.ZodString;
1002
+ timestamp: z.ZodString;
1003
+ source: z.ZodString;
1004
+ version: z.ZodDefault<z.ZodString>;
1005
+ } & {
1006
+ type: z.ZodLiteral<"customer.review.submitted">;
1007
+ data: z.ZodObject<{
1008
+ reviewId: z.ZodString;
1009
+ customerId: z.ZodString;
1010
+ targetType: z.ZodString;
1011
+ targetId: z.ZodString;
1012
+ rating: z.ZodNumber;
1013
+ isVerifiedPurchase: z.ZodBoolean;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ customerId: string;
1016
+ targetType: string;
1017
+ targetId: string;
1018
+ reviewId: string;
1019
+ rating: number;
1020
+ isVerifiedPurchase: boolean;
1021
+ }, {
1022
+ customerId: string;
1023
+ targetType: string;
1024
+ targetId: string;
1025
+ reviewId: string;
1026
+ rating: number;
1027
+ isVerifiedPurchase: boolean;
1028
+ }>;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ id: string;
1031
+ timestamp: string;
1032
+ source: string;
1033
+ version: string;
1034
+ type: "customer.review.submitted";
1035
+ data: {
1036
+ customerId: string;
1037
+ targetType: string;
1038
+ targetId: string;
1039
+ reviewId: string;
1040
+ rating: number;
1041
+ isVerifiedPurchase: boolean;
1042
+ };
1043
+ }, {
1044
+ id: string;
1045
+ timestamp: string;
1046
+ source: string;
1047
+ type: "customer.review.submitted";
1048
+ data: {
1049
+ customerId: string;
1050
+ targetType: string;
1051
+ targetId: string;
1052
+ reviewId: string;
1053
+ rating: number;
1054
+ isVerifiedPurchase: boolean;
1055
+ };
1056
+ version?: string | undefined;
1057
+ }>;
1058
+ export declare const OrderCreatedEventSchema: z.ZodObject<{
1059
+ id: z.ZodString;
1060
+ timestamp: z.ZodString;
1061
+ source: z.ZodString;
1062
+ version: z.ZodDefault<z.ZodString>;
1063
+ } & {
1064
+ type: z.ZodLiteral<"order.created">;
1065
+ data: z.ZodObject<{
1066
+ orderId: z.ZodString;
1067
+ orderNumber: z.ZodString;
1068
+ storeId: z.ZodString;
1069
+ customerId: z.ZodOptional<z.ZodString>;
1070
+ userId: z.ZodOptional<z.ZodString>;
1071
+ orderType: z.ZodString;
1072
+ orderSource: z.ZodString;
1073
+ status: z.ZodString;
1074
+ totalAmount: z.ZodString;
1075
+ currency: z.ZodString;
1076
+ itemCount: z.ZodNumber;
1077
+ isGuestOrder: z.ZodBoolean;
1078
+ paymentMethod: z.ZodOptional<z.ZodString>;
1079
+ shippingRequired: z.ZodBoolean;
1080
+ priority: z.ZodString;
1081
+ }, "strip", z.ZodTypeAny, {
1082
+ status: string;
1083
+ storeId: string;
1084
+ currency: string;
1085
+ priority: string;
1086
+ orderId: string;
1087
+ orderNumber: string;
1088
+ orderType: string;
1089
+ orderSource: string;
1090
+ totalAmount: string;
1091
+ itemCount: number;
1092
+ isGuestOrder: boolean;
1093
+ shippingRequired: boolean;
1094
+ userId?: string | undefined;
1095
+ customerId?: string | undefined;
1096
+ paymentMethod?: string | undefined;
1097
+ }, {
1098
+ status: string;
1099
+ storeId: string;
1100
+ currency: string;
1101
+ priority: string;
1102
+ orderId: string;
1103
+ orderNumber: string;
1104
+ orderType: string;
1105
+ orderSource: string;
1106
+ totalAmount: string;
1107
+ itemCount: number;
1108
+ isGuestOrder: boolean;
1109
+ shippingRequired: boolean;
1110
+ userId?: string | undefined;
1111
+ customerId?: string | undefined;
1112
+ paymentMethod?: string | undefined;
1113
+ }>;
1114
+ }, "strip", z.ZodTypeAny, {
1115
+ id: string;
1116
+ timestamp: string;
1117
+ source: string;
1118
+ version: string;
1119
+ type: "order.created";
1120
+ data: {
1121
+ status: string;
1122
+ storeId: string;
1123
+ currency: string;
1124
+ priority: string;
1125
+ orderId: string;
1126
+ orderNumber: string;
1127
+ orderType: string;
1128
+ orderSource: string;
1129
+ totalAmount: string;
1130
+ itemCount: number;
1131
+ isGuestOrder: boolean;
1132
+ shippingRequired: boolean;
1133
+ userId?: string | undefined;
1134
+ customerId?: string | undefined;
1135
+ paymentMethod?: string | undefined;
1136
+ };
1137
+ }, {
1138
+ id: string;
1139
+ timestamp: string;
1140
+ source: string;
1141
+ type: "order.created";
1142
+ data: {
1143
+ status: string;
1144
+ storeId: string;
1145
+ currency: string;
1146
+ priority: string;
1147
+ orderId: string;
1148
+ orderNumber: string;
1149
+ orderType: string;
1150
+ orderSource: string;
1151
+ totalAmount: string;
1152
+ itemCount: number;
1153
+ isGuestOrder: boolean;
1154
+ shippingRequired: boolean;
1155
+ userId?: string | undefined;
1156
+ customerId?: string | undefined;
1157
+ paymentMethod?: string | undefined;
1158
+ };
1159
+ version?: string | undefined;
1160
+ }>;
1161
+ export declare const OrderUpdatedEventSchema: z.ZodObject<{
1162
+ id: z.ZodString;
1163
+ timestamp: z.ZodString;
1164
+ source: z.ZodString;
1165
+ version: z.ZodDefault<z.ZodString>;
1166
+ } & {
1167
+ type: z.ZodLiteral<"order.updated">;
1168
+ data: z.ZodObject<{
1169
+ orderId: z.ZodString;
1170
+ orderNumber: z.ZodString;
1171
+ storeId: z.ZodString;
1172
+ customerId: z.ZodOptional<z.ZodString>;
1173
+ changes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1174
+ previousValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1175
+ statusChanged: z.ZodBoolean;
1176
+ paymentStatusChanged: z.ZodBoolean;
1177
+ fulfillmentStatusChanged: z.ZodBoolean;
1178
+ amountChanged: z.ZodBoolean;
1179
+ }, "strip", z.ZodTypeAny, {
1180
+ storeId: string;
1181
+ changes: Record<string, unknown>;
1182
+ previousValues: Record<string, unknown>;
1183
+ orderId: string;
1184
+ orderNumber: string;
1185
+ statusChanged: boolean;
1186
+ paymentStatusChanged: boolean;
1187
+ fulfillmentStatusChanged: boolean;
1188
+ amountChanged: boolean;
1189
+ customerId?: string | undefined;
1190
+ }, {
1191
+ storeId: string;
1192
+ changes: Record<string, unknown>;
1193
+ previousValues: Record<string, unknown>;
1194
+ orderId: string;
1195
+ orderNumber: string;
1196
+ statusChanged: boolean;
1197
+ paymentStatusChanged: boolean;
1198
+ fulfillmentStatusChanged: boolean;
1199
+ amountChanged: boolean;
1200
+ customerId?: string | undefined;
1201
+ }>;
1202
+ }, "strip", z.ZodTypeAny, {
1203
+ id: string;
1204
+ timestamp: string;
1205
+ source: string;
1206
+ version: string;
1207
+ type: "order.updated";
1208
+ data: {
1209
+ storeId: string;
1210
+ changes: Record<string, unknown>;
1211
+ previousValues: Record<string, unknown>;
1212
+ orderId: string;
1213
+ orderNumber: string;
1214
+ statusChanged: boolean;
1215
+ paymentStatusChanged: boolean;
1216
+ fulfillmentStatusChanged: boolean;
1217
+ amountChanged: boolean;
1218
+ customerId?: string | undefined;
1219
+ };
1220
+ }, {
1221
+ id: string;
1222
+ timestamp: string;
1223
+ source: string;
1224
+ type: "order.updated";
1225
+ data: {
1226
+ storeId: string;
1227
+ changes: Record<string, unknown>;
1228
+ previousValues: Record<string, unknown>;
1229
+ orderId: string;
1230
+ orderNumber: string;
1231
+ statusChanged: boolean;
1232
+ paymentStatusChanged: boolean;
1233
+ fulfillmentStatusChanged: boolean;
1234
+ amountChanged: boolean;
1235
+ customerId?: string | undefined;
1236
+ };
1237
+ version?: string | undefined;
1238
+ }>;
1239
+ export declare const OrderStatusChangedEventSchema: z.ZodObject<{
1240
+ id: z.ZodString;
1241
+ timestamp: z.ZodString;
1242
+ source: z.ZodString;
1243
+ version: z.ZodDefault<z.ZodString>;
1244
+ } & {
1245
+ type: z.ZodLiteral<"order.status.changed">;
1246
+ data: z.ZodObject<{
1247
+ orderId: z.ZodString;
1248
+ orderNumber: z.ZodString;
1249
+ storeId: z.ZodString;
1250
+ customerId: z.ZodOptional<z.ZodString>;
1251
+ fromStatus: z.ZodString;
1252
+ toStatus: z.ZodString;
1253
+ reason: z.ZodOptional<z.ZodString>;
1254
+ actorId: z.ZodString;
1255
+ actorType: z.ZodString;
1256
+ timestamp: z.ZodString;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ timestamp: string;
1259
+ storeId: string;
1260
+ orderId: string;
1261
+ orderNumber: string;
1262
+ fromStatus: string;
1263
+ toStatus: string;
1264
+ actorId: string;
1265
+ actorType: string;
1266
+ reason?: string | undefined;
1267
+ customerId?: string | undefined;
1268
+ }, {
1269
+ timestamp: string;
1270
+ storeId: string;
1271
+ orderId: string;
1272
+ orderNumber: string;
1273
+ fromStatus: string;
1274
+ toStatus: string;
1275
+ actorId: string;
1276
+ actorType: string;
1277
+ reason?: string | undefined;
1278
+ customerId?: string | undefined;
1279
+ }>;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ id: string;
1282
+ timestamp: string;
1283
+ source: string;
1284
+ version: string;
1285
+ type: "order.status.changed";
1286
+ data: {
1287
+ timestamp: string;
1288
+ storeId: string;
1289
+ orderId: string;
1290
+ orderNumber: string;
1291
+ fromStatus: string;
1292
+ toStatus: string;
1293
+ actorId: string;
1294
+ actorType: string;
1295
+ reason?: string | undefined;
1296
+ customerId?: string | undefined;
1297
+ };
1298
+ }, {
1299
+ id: string;
1300
+ timestamp: string;
1301
+ source: string;
1302
+ type: "order.status.changed";
1303
+ data: {
1304
+ timestamp: string;
1305
+ storeId: string;
1306
+ orderId: string;
1307
+ orderNumber: string;
1308
+ fromStatus: string;
1309
+ toStatus: string;
1310
+ actorId: string;
1311
+ actorType: string;
1312
+ reason?: string | undefined;
1313
+ customerId?: string | undefined;
1314
+ };
1315
+ version?: string | undefined;
1316
+ }>;
1317
+ export declare const OrderPaymentProcessedEventSchema: z.ZodObject<{
1318
+ id: z.ZodString;
1319
+ timestamp: z.ZodString;
1320
+ source: z.ZodString;
1321
+ version: z.ZodDefault<z.ZodString>;
1322
+ } & {
1323
+ type: z.ZodLiteral<"order.payment.processed">;
1324
+ data: z.ZodObject<{
1325
+ orderId: z.ZodString;
1326
+ paymentId: z.ZodString;
1327
+ transactionId: z.ZodOptional<z.ZodString>;
1328
+ paymentMethod: z.ZodString;
1329
+ paymentProvider: z.ZodOptional<z.ZodString>;
1330
+ amount: z.ZodString;
1331
+ currency: z.ZodString;
1332
+ status: z.ZodString;
1333
+ isSuccessful: z.ZodBoolean;
1334
+ failureReason: z.ZodOptional<z.ZodString>;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ status: string;
1337
+ currency: string;
1338
+ orderId: string;
1339
+ paymentMethod: string;
1340
+ paymentId: string;
1341
+ amount: string;
1342
+ isSuccessful: boolean;
1343
+ transactionId?: string | undefined;
1344
+ paymentProvider?: string | undefined;
1345
+ failureReason?: string | undefined;
1346
+ }, {
1347
+ status: string;
1348
+ currency: string;
1349
+ orderId: string;
1350
+ paymentMethod: string;
1351
+ paymentId: string;
1352
+ amount: string;
1353
+ isSuccessful: boolean;
1354
+ transactionId?: string | undefined;
1355
+ paymentProvider?: string | undefined;
1356
+ failureReason?: string | undefined;
1357
+ }>;
1358
+ }, "strip", z.ZodTypeAny, {
1359
+ id: string;
1360
+ timestamp: string;
1361
+ source: string;
1362
+ version: string;
1363
+ type: "order.payment.processed";
1364
+ data: {
1365
+ status: string;
1366
+ currency: string;
1367
+ orderId: string;
1368
+ paymentMethod: string;
1369
+ paymentId: string;
1370
+ amount: string;
1371
+ isSuccessful: boolean;
1372
+ transactionId?: string | undefined;
1373
+ paymentProvider?: string | undefined;
1374
+ failureReason?: string | undefined;
1375
+ };
1376
+ }, {
1377
+ id: string;
1378
+ timestamp: string;
1379
+ source: string;
1380
+ type: "order.payment.processed";
1381
+ data: {
1382
+ status: string;
1383
+ currency: string;
1384
+ orderId: string;
1385
+ paymentMethod: string;
1386
+ paymentId: string;
1387
+ amount: string;
1388
+ isSuccessful: boolean;
1389
+ transactionId?: string | undefined;
1390
+ paymentProvider?: string | undefined;
1391
+ failureReason?: string | undefined;
1392
+ };
1393
+ version?: string | undefined;
1394
+ }>;
1395
+ export declare const OrderShippedEventSchema: z.ZodObject<{
1396
+ id: z.ZodString;
1397
+ timestamp: z.ZodString;
1398
+ source: z.ZodString;
1399
+ version: z.ZodDefault<z.ZodString>;
1400
+ } & {
1401
+ type: z.ZodLiteral<"order.shipped">;
1402
+ data: z.ZodObject<{
1403
+ orderId: z.ZodString;
1404
+ fulfillmentId: z.ZodString;
1405
+ trackingNumber: z.ZodOptional<z.ZodString>;
1406
+ trackingUrl: z.ZodOptional<z.ZodString>;
1407
+ shippingCarrier: z.ZodOptional<z.ZodString>;
1408
+ shippingService: z.ZodOptional<z.ZodString>;
1409
+ estimatedDeliveryDate: z.ZodOptional<z.ZodString>;
1410
+ packedBy: z.ZodOptional<z.ZodString>;
1411
+ shippedBy: z.ZodOptional<z.ZodString>;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ orderId: string;
1414
+ fulfillmentId: string;
1415
+ trackingNumber?: string | undefined;
1416
+ trackingUrl?: string | undefined;
1417
+ shippingCarrier?: string | undefined;
1418
+ shippingService?: string | undefined;
1419
+ estimatedDeliveryDate?: string | undefined;
1420
+ packedBy?: string | undefined;
1421
+ shippedBy?: string | undefined;
1422
+ }, {
1423
+ orderId: string;
1424
+ fulfillmentId: string;
1425
+ trackingNumber?: string | undefined;
1426
+ trackingUrl?: string | undefined;
1427
+ shippingCarrier?: string | undefined;
1428
+ shippingService?: string | undefined;
1429
+ estimatedDeliveryDate?: string | undefined;
1430
+ packedBy?: string | undefined;
1431
+ shippedBy?: string | undefined;
1432
+ }>;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ id: string;
1435
+ timestamp: string;
1436
+ source: string;
1437
+ version: string;
1438
+ type: "order.shipped";
1439
+ data: {
1440
+ orderId: string;
1441
+ fulfillmentId: string;
1442
+ trackingNumber?: string | undefined;
1443
+ trackingUrl?: string | undefined;
1444
+ shippingCarrier?: string | undefined;
1445
+ shippingService?: string | undefined;
1446
+ estimatedDeliveryDate?: string | undefined;
1447
+ packedBy?: string | undefined;
1448
+ shippedBy?: string | undefined;
1449
+ };
1450
+ }, {
1451
+ id: string;
1452
+ timestamp: string;
1453
+ source: string;
1454
+ type: "order.shipped";
1455
+ data: {
1456
+ orderId: string;
1457
+ fulfillmentId: string;
1458
+ trackingNumber?: string | undefined;
1459
+ trackingUrl?: string | undefined;
1460
+ shippingCarrier?: string | undefined;
1461
+ shippingService?: string | undefined;
1462
+ estimatedDeliveryDate?: string | undefined;
1463
+ packedBy?: string | undefined;
1464
+ shippedBy?: string | undefined;
1465
+ };
1466
+ version?: string | undefined;
1467
+ }>;
1468
+ export declare const OrderDeliveredEventSchema: z.ZodObject<{
1469
+ id: z.ZodString;
1470
+ timestamp: z.ZodString;
1471
+ source: z.ZodString;
1472
+ version: z.ZodDefault<z.ZodString>;
1473
+ } & {
1474
+ type: z.ZodLiteral<"order.delivered">;
1475
+ data: z.ZodObject<{
1476
+ orderId: z.ZodString;
1477
+ fulfillmentId: z.ZodString;
1478
+ deliveredAt: z.ZodString;
1479
+ deliveredBy: z.ZodOptional<z.ZodString>;
1480
+ signedBy: z.ZodOptional<z.ZodString>;
1481
+ deliveryLocation: z.ZodOptional<z.ZodString>;
1482
+ proofOfDelivery: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1483
+ }, "strip", z.ZodTypeAny, {
1484
+ orderId: string;
1485
+ fulfillmentId: string;
1486
+ deliveredAt: string;
1487
+ deliveredBy?: string | undefined;
1488
+ signedBy?: string | undefined;
1489
+ deliveryLocation?: string | undefined;
1490
+ proofOfDelivery?: Record<string, unknown> | undefined;
1491
+ }, {
1492
+ orderId: string;
1493
+ fulfillmentId: string;
1494
+ deliveredAt: string;
1495
+ deliveredBy?: string | undefined;
1496
+ signedBy?: string | undefined;
1497
+ deliveryLocation?: string | undefined;
1498
+ proofOfDelivery?: Record<string, unknown> | undefined;
1499
+ }>;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ id: string;
1502
+ timestamp: string;
1503
+ source: string;
1504
+ version: string;
1505
+ type: "order.delivered";
1506
+ data: {
1507
+ orderId: string;
1508
+ fulfillmentId: string;
1509
+ deliveredAt: string;
1510
+ deliveredBy?: string | undefined;
1511
+ signedBy?: string | undefined;
1512
+ deliveryLocation?: string | undefined;
1513
+ proofOfDelivery?: Record<string, unknown> | undefined;
1514
+ };
1515
+ }, {
1516
+ id: string;
1517
+ timestamp: string;
1518
+ source: string;
1519
+ type: "order.delivered";
1520
+ data: {
1521
+ orderId: string;
1522
+ fulfillmentId: string;
1523
+ deliveredAt: string;
1524
+ deliveredBy?: string | undefined;
1525
+ signedBy?: string | undefined;
1526
+ deliveryLocation?: string | undefined;
1527
+ proofOfDelivery?: Record<string, unknown> | undefined;
1528
+ };
1529
+ version?: string | undefined;
1530
+ }>;
1531
+ export declare const OrderCancelledEventSchema: z.ZodObject<{
1532
+ id: z.ZodString;
1533
+ timestamp: z.ZodString;
1534
+ source: z.ZodString;
1535
+ version: z.ZodDefault<z.ZodString>;
1536
+ } & {
1537
+ type: z.ZodLiteral<"order.cancelled">;
1538
+ data: z.ZodObject<{
1539
+ orderId: z.ZodString;
1540
+ orderNumber: z.ZodString;
1541
+ storeId: z.ZodString;
1542
+ customerId: z.ZodOptional<z.ZodString>;
1543
+ cancellationReason: z.ZodString;
1544
+ cancelledBy: z.ZodString;
1545
+ cancelledByType: z.ZodString;
1546
+ refundRequired: z.ZodBoolean;
1547
+ refundAmount: z.ZodOptional<z.ZodString>;
1548
+ inventoryReleased: z.ZodBoolean;
1549
+ }, "strip", z.ZodTypeAny, {
1550
+ storeId: string;
1551
+ orderId: string;
1552
+ orderNumber: string;
1553
+ cancellationReason: string;
1554
+ cancelledBy: string;
1555
+ cancelledByType: string;
1556
+ refundRequired: boolean;
1557
+ inventoryReleased: boolean;
1558
+ customerId?: string | undefined;
1559
+ refundAmount?: string | undefined;
1560
+ }, {
1561
+ storeId: string;
1562
+ orderId: string;
1563
+ orderNumber: string;
1564
+ cancellationReason: string;
1565
+ cancelledBy: string;
1566
+ cancelledByType: string;
1567
+ refundRequired: boolean;
1568
+ inventoryReleased: boolean;
1569
+ customerId?: string | undefined;
1570
+ refundAmount?: string | undefined;
1571
+ }>;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ id: string;
1574
+ timestamp: string;
1575
+ source: string;
1576
+ version: string;
1577
+ type: "order.cancelled";
1578
+ data: {
1579
+ storeId: string;
1580
+ orderId: string;
1581
+ orderNumber: string;
1582
+ cancellationReason: string;
1583
+ cancelledBy: string;
1584
+ cancelledByType: string;
1585
+ refundRequired: boolean;
1586
+ inventoryReleased: boolean;
1587
+ customerId?: string | undefined;
1588
+ refundAmount?: string | undefined;
1589
+ };
1590
+ }, {
1591
+ id: string;
1592
+ timestamp: string;
1593
+ source: string;
1594
+ type: "order.cancelled";
1595
+ data: {
1596
+ storeId: string;
1597
+ orderId: string;
1598
+ orderNumber: string;
1599
+ cancellationReason: string;
1600
+ cancelledBy: string;
1601
+ cancelledByType: string;
1602
+ refundRequired: boolean;
1603
+ inventoryReleased: boolean;
1604
+ customerId?: string | undefined;
1605
+ refundAmount?: string | undefined;
1606
+ };
1607
+ version?: string | undefined;
1608
+ }>;
1609
+ export declare const OrderRefundedEventSchema: z.ZodObject<{
1610
+ id: z.ZodString;
1611
+ timestamp: z.ZodString;
1612
+ source: z.ZodString;
1613
+ version: z.ZodDefault<z.ZodString>;
1614
+ } & {
1615
+ type: z.ZodLiteral<"order.refunded">;
1616
+ data: z.ZodObject<{
1617
+ orderId: z.ZodString;
1618
+ paymentId: z.ZodString;
1619
+ refundId: z.ZodString;
1620
+ refundAmount: z.ZodString;
1621
+ refundReason: z.ZodString;
1622
+ refundMethod: z.ZodString;
1623
+ isPartialRefund: z.ZodBoolean;
1624
+ processedBy: z.ZodString;
1625
+ customerNotified: z.ZodBoolean;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ orderId: string;
1628
+ paymentId: string;
1629
+ refundAmount: string;
1630
+ refundId: string;
1631
+ refundReason: string;
1632
+ refundMethod: string;
1633
+ isPartialRefund: boolean;
1634
+ processedBy: string;
1635
+ customerNotified: boolean;
1636
+ }, {
1637
+ orderId: string;
1638
+ paymentId: string;
1639
+ refundAmount: string;
1640
+ refundId: string;
1641
+ refundReason: string;
1642
+ refundMethod: string;
1643
+ isPartialRefund: boolean;
1644
+ processedBy: string;
1645
+ customerNotified: boolean;
1646
+ }>;
1647
+ }, "strip", z.ZodTypeAny, {
1648
+ id: string;
1649
+ timestamp: string;
1650
+ source: string;
1651
+ version: string;
1652
+ type: "order.refunded";
1653
+ data: {
1654
+ orderId: string;
1655
+ paymentId: string;
1656
+ refundAmount: string;
1657
+ refundId: string;
1658
+ refundReason: string;
1659
+ refundMethod: string;
1660
+ isPartialRefund: boolean;
1661
+ processedBy: string;
1662
+ customerNotified: boolean;
1663
+ };
1664
+ }, {
1665
+ id: string;
1666
+ timestamp: string;
1667
+ source: string;
1668
+ type: "order.refunded";
1669
+ data: {
1670
+ orderId: string;
1671
+ paymentId: string;
1672
+ refundAmount: string;
1673
+ refundId: string;
1674
+ refundReason: string;
1675
+ refundMethod: string;
1676
+ isPartialRefund: boolean;
1677
+ processedBy: string;
1678
+ customerNotified: boolean;
1679
+ };
1680
+ version?: string | undefined;
1681
+ }>;
1682
+ export declare const OrderNoteAddedEventSchema: z.ZodObject<{
1683
+ id: z.ZodString;
1684
+ timestamp: z.ZodString;
1685
+ source: z.ZodString;
1686
+ version: z.ZodDefault<z.ZodString>;
1687
+ } & {
1688
+ type: z.ZodLiteral<"order.note.added">;
1689
+ data: z.ZodObject<{
1690
+ orderId: z.ZodString;
1691
+ noteId: z.ZodString;
1692
+ noteType: z.ZodString;
1693
+ content: z.ZodString;
1694
+ isCustomerVisible: z.ZodBoolean;
1695
+ priority: z.ZodString;
1696
+ createdBy: z.ZodString;
1697
+ createdByName: z.ZodString;
1698
+ requiresFollowUp: z.ZodBoolean;
1699
+ }, "strip", z.ZodTypeAny, {
1700
+ priority: string;
1701
+ noteId: string;
1702
+ noteType: string;
1703
+ createdBy: string;
1704
+ orderId: string;
1705
+ content: string;
1706
+ isCustomerVisible: boolean;
1707
+ createdByName: string;
1708
+ requiresFollowUp: boolean;
1709
+ }, {
1710
+ priority: string;
1711
+ noteId: string;
1712
+ noteType: string;
1713
+ createdBy: string;
1714
+ orderId: string;
1715
+ content: string;
1716
+ isCustomerVisible: boolean;
1717
+ createdByName: string;
1718
+ requiresFollowUp: boolean;
1719
+ }>;
1720
+ }, "strip", z.ZodTypeAny, {
1721
+ id: string;
1722
+ timestamp: string;
1723
+ source: string;
1724
+ version: string;
1725
+ type: "order.note.added";
1726
+ data: {
1727
+ priority: string;
1728
+ noteId: string;
1729
+ noteType: string;
1730
+ createdBy: string;
1731
+ orderId: string;
1732
+ content: string;
1733
+ isCustomerVisible: boolean;
1734
+ createdByName: string;
1735
+ requiresFollowUp: boolean;
1736
+ };
1737
+ }, {
1738
+ id: string;
1739
+ timestamp: string;
1740
+ source: string;
1741
+ type: "order.note.added";
1742
+ data: {
1743
+ priority: string;
1744
+ noteId: string;
1745
+ noteType: string;
1746
+ createdBy: string;
1747
+ orderId: string;
1748
+ content: string;
1749
+ isCustomerVisible: boolean;
1750
+ createdByName: string;
1751
+ requiresFollowUp: boolean;
1752
+ };
1753
+ version?: string | undefined;
1754
+ }>;
1755
+ export declare const OrderItemAddedEventSchema: z.ZodObject<{
1756
+ id: z.ZodString;
1757
+ timestamp: z.ZodString;
1758
+ source: z.ZodString;
1759
+ version: z.ZodDefault<z.ZodString>;
1760
+ } & {
1761
+ type: z.ZodLiteral<"order.item.added">;
1762
+ data: z.ZodObject<{
1763
+ orderId: z.ZodString;
1764
+ itemId: z.ZodString;
1765
+ productId: z.ZodString;
1766
+ variantId: z.ZodOptional<z.ZodString>;
1767
+ sku: z.ZodString;
1768
+ productTitle: z.ZodString;
1769
+ quantity: z.ZodNumber;
1770
+ unitPrice: z.ZodString;
1771
+ totalPrice: z.ZodString;
1772
+ addedBy: z.ZodString;
1773
+ }, "strip", z.ZodTypeAny, {
1774
+ orderId: string;
1775
+ itemId: string;
1776
+ productId: string;
1777
+ sku: string;
1778
+ productTitle: string;
1779
+ quantity: number;
1780
+ unitPrice: string;
1781
+ totalPrice: string;
1782
+ addedBy: string;
1783
+ variantId?: string | undefined;
1784
+ }, {
1785
+ orderId: string;
1786
+ itemId: string;
1787
+ productId: string;
1788
+ sku: string;
1789
+ productTitle: string;
1790
+ quantity: number;
1791
+ unitPrice: string;
1792
+ totalPrice: string;
1793
+ addedBy: string;
1794
+ variantId?: string | undefined;
1795
+ }>;
1796
+ }, "strip", z.ZodTypeAny, {
1797
+ id: string;
1798
+ timestamp: string;
1799
+ source: string;
1800
+ version: string;
1801
+ type: "order.item.added";
1802
+ data: {
1803
+ orderId: string;
1804
+ itemId: string;
1805
+ productId: string;
1806
+ sku: string;
1807
+ productTitle: string;
1808
+ quantity: number;
1809
+ unitPrice: string;
1810
+ totalPrice: string;
1811
+ addedBy: string;
1812
+ variantId?: string | undefined;
1813
+ };
1814
+ }, {
1815
+ id: string;
1816
+ timestamp: string;
1817
+ source: string;
1818
+ type: "order.item.added";
1819
+ data: {
1820
+ orderId: string;
1821
+ itemId: string;
1822
+ productId: string;
1823
+ sku: string;
1824
+ productTitle: string;
1825
+ quantity: number;
1826
+ unitPrice: string;
1827
+ totalPrice: string;
1828
+ addedBy: string;
1829
+ variantId?: string | undefined;
1830
+ };
1831
+ version?: string | undefined;
1832
+ }>;
1833
+ export declare const OrderItemRemovedEventSchema: z.ZodObject<{
1834
+ id: z.ZodString;
1835
+ timestamp: z.ZodString;
1836
+ source: z.ZodString;
1837
+ version: z.ZodDefault<z.ZodString>;
1838
+ } & {
1839
+ type: z.ZodLiteral<"order.item.removed">;
1840
+ data: z.ZodObject<{
1841
+ orderId: z.ZodString;
1842
+ itemId: z.ZodString;
1843
+ productId: z.ZodString;
1844
+ sku: z.ZodString;
1845
+ productTitle: z.ZodString;
1846
+ quantity: z.ZodNumber;
1847
+ removedBy: z.ZodString;
1848
+ removalReason: z.ZodOptional<z.ZodString>;
1849
+ }, "strip", z.ZodTypeAny, {
1850
+ orderId: string;
1851
+ itemId: string;
1852
+ productId: string;
1853
+ sku: string;
1854
+ productTitle: string;
1855
+ quantity: number;
1856
+ removedBy: string;
1857
+ removalReason?: string | undefined;
1858
+ }, {
1859
+ orderId: string;
1860
+ itemId: string;
1861
+ productId: string;
1862
+ sku: string;
1863
+ productTitle: string;
1864
+ quantity: number;
1865
+ removedBy: string;
1866
+ removalReason?: string | undefined;
1867
+ }>;
1868
+ }, "strip", z.ZodTypeAny, {
1869
+ id: string;
1870
+ timestamp: string;
1871
+ source: string;
1872
+ version: string;
1873
+ type: "order.item.removed";
1874
+ data: {
1875
+ orderId: string;
1876
+ itemId: string;
1877
+ productId: string;
1878
+ sku: string;
1879
+ productTitle: string;
1880
+ quantity: number;
1881
+ removedBy: string;
1882
+ removalReason?: string | undefined;
1883
+ };
1884
+ }, {
1885
+ id: string;
1886
+ timestamp: string;
1887
+ source: string;
1888
+ type: "order.item.removed";
1889
+ data: {
1890
+ orderId: string;
1891
+ itemId: string;
1892
+ productId: string;
1893
+ sku: string;
1894
+ productTitle: string;
1895
+ quantity: number;
1896
+ removedBy: string;
1897
+ removalReason?: string | undefined;
1898
+ };
1899
+ version?: string | undefined;
1900
+ }>;
1901
+ export declare const OrderDiscountAppliedEventSchema: z.ZodObject<{
1902
+ id: z.ZodString;
1903
+ timestamp: z.ZodString;
1904
+ source: z.ZodString;
1905
+ version: z.ZodDefault<z.ZodString>;
1906
+ } & {
1907
+ type: z.ZodLiteral<"order.discount.applied">;
1908
+ data: z.ZodObject<{
1909
+ orderId: z.ZodString;
1910
+ discountId: z.ZodString;
1911
+ discountCode: z.ZodOptional<z.ZodString>;
1912
+ discountType: z.ZodString;
1913
+ discountAmount: z.ZodString;
1914
+ discountPercentage: z.ZodOptional<z.ZodNumber>;
1915
+ appliedBy: z.ZodOptional<z.ZodString>;
1916
+ campaignId: z.ZodOptional<z.ZodString>;
1917
+ }, "strip", z.ZodTypeAny, {
1918
+ orderId: string;
1919
+ discountId: string;
1920
+ discountType: string;
1921
+ discountAmount: string;
1922
+ discountCode?: string | undefined;
1923
+ discountPercentage?: number | undefined;
1924
+ appliedBy?: string | undefined;
1925
+ campaignId?: string | undefined;
1926
+ }, {
1927
+ orderId: string;
1928
+ discountId: string;
1929
+ discountType: string;
1930
+ discountAmount: string;
1931
+ discountCode?: string | undefined;
1932
+ discountPercentage?: number | undefined;
1933
+ appliedBy?: string | undefined;
1934
+ campaignId?: string | undefined;
1935
+ }>;
1936
+ }, "strip", z.ZodTypeAny, {
1937
+ id: string;
1938
+ timestamp: string;
1939
+ source: string;
1940
+ version: string;
1941
+ type: "order.discount.applied";
1942
+ data: {
1943
+ orderId: string;
1944
+ discountId: string;
1945
+ discountType: string;
1946
+ discountAmount: string;
1947
+ discountCode?: string | undefined;
1948
+ discountPercentage?: number | undefined;
1949
+ appliedBy?: string | undefined;
1950
+ campaignId?: string | undefined;
1951
+ };
1952
+ }, {
1953
+ id: string;
1954
+ timestamp: string;
1955
+ source: string;
1956
+ type: "order.discount.applied";
1957
+ data: {
1958
+ orderId: string;
1959
+ discountId: string;
1960
+ discountType: string;
1961
+ discountAmount: string;
1962
+ discountCode?: string | undefined;
1963
+ discountPercentage?: number | undefined;
1964
+ appliedBy?: string | undefined;
1965
+ campaignId?: string | undefined;
1966
+ };
1967
+ version?: string | undefined;
1968
+ }>;
1969
+ export declare const SubscriptionOrderCreatedEventSchema: z.ZodObject<{
1970
+ id: z.ZodString;
1971
+ timestamp: z.ZodString;
1972
+ source: z.ZodString;
1973
+ version: z.ZodDefault<z.ZodString>;
1974
+ } & {
1975
+ type: z.ZodLiteral<"subscription.order.created">;
1976
+ data: z.ZodObject<{
1977
+ subscriptionId: z.ZodString;
1978
+ orderId: z.ZodString;
1979
+ orderNumber: z.ZodString;
1980
+ storeId: z.ZodString;
1981
+ customerId: z.ZodOptional<z.ZodString>;
1982
+ frequency: z.ZodString;
1983
+ planId: z.ZodString;
1984
+ totalAmount: z.ZodString;
1985
+ correlationId: z.ZodOptional<z.ZodString>;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ storeId: string;
1988
+ orderId: string;
1989
+ orderNumber: string;
1990
+ totalAmount: string;
1991
+ subscriptionId: string;
1992
+ frequency: string;
1993
+ planId: string;
1994
+ customerId?: string | undefined;
1995
+ correlationId?: string | undefined;
1996
+ }, {
1997
+ storeId: string;
1998
+ orderId: string;
1999
+ orderNumber: string;
2000
+ totalAmount: string;
2001
+ subscriptionId: string;
2002
+ frequency: string;
2003
+ planId: string;
2004
+ customerId?: string | undefined;
2005
+ correlationId?: string | undefined;
2006
+ }>;
2007
+ }, "strip", z.ZodTypeAny, {
2008
+ id: string;
2009
+ timestamp: string;
2010
+ source: string;
2011
+ version: string;
2012
+ type: "subscription.order.created";
2013
+ data: {
2014
+ storeId: string;
2015
+ orderId: string;
2016
+ orderNumber: string;
2017
+ totalAmount: string;
2018
+ subscriptionId: string;
2019
+ frequency: string;
2020
+ planId: string;
2021
+ customerId?: string | undefined;
2022
+ correlationId?: string | undefined;
2023
+ };
2024
+ }, {
2025
+ id: string;
2026
+ timestamp: string;
2027
+ source: string;
2028
+ type: "subscription.order.created";
2029
+ data: {
2030
+ storeId: string;
2031
+ orderId: string;
2032
+ orderNumber: string;
2033
+ totalAmount: string;
2034
+ subscriptionId: string;
2035
+ frequency: string;
2036
+ planId: string;
2037
+ customerId?: string | undefined;
2038
+ correlationId?: string | undefined;
2039
+ };
2040
+ version?: string | undefined;
2041
+ }>;
2042
+ export declare const SubscriptionRenewedEventSchema: z.ZodObject<{
2043
+ id: z.ZodString;
2044
+ timestamp: z.ZodString;
2045
+ source: z.ZodString;
2046
+ version: z.ZodDefault<z.ZodString>;
2047
+ } & {
2048
+ type: z.ZodLiteral<"subscription.renewed">;
2049
+ data: z.ZodObject<{
2050
+ subscriptionId: z.ZodString;
2051
+ orderId: z.ZodString;
2052
+ orderNumber: z.ZodString;
2053
+ storeId: z.ZodString;
2054
+ customerId: z.ZodOptional<z.ZodString>;
2055
+ cycle: z.ZodNumber;
2056
+ totalAmount: z.ZodString;
2057
+ correlationId: z.ZodOptional<z.ZodString>;
2058
+ }, "strip", z.ZodTypeAny, {
2059
+ storeId: string;
2060
+ orderId: string;
2061
+ orderNumber: string;
2062
+ totalAmount: string;
2063
+ subscriptionId: string;
2064
+ cycle: number;
2065
+ customerId?: string | undefined;
2066
+ correlationId?: string | undefined;
2067
+ }, {
2068
+ storeId: string;
2069
+ orderId: string;
2070
+ orderNumber: string;
2071
+ totalAmount: string;
2072
+ subscriptionId: string;
2073
+ cycle: number;
2074
+ customerId?: string | undefined;
2075
+ correlationId?: string | undefined;
2076
+ }>;
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ id: string;
2079
+ timestamp: string;
2080
+ source: string;
2081
+ version: string;
2082
+ type: "subscription.renewed";
2083
+ data: {
2084
+ storeId: string;
2085
+ orderId: string;
2086
+ orderNumber: string;
2087
+ totalAmount: string;
2088
+ subscriptionId: string;
2089
+ cycle: number;
2090
+ customerId?: string | undefined;
2091
+ correlationId?: string | undefined;
2092
+ };
2093
+ }, {
2094
+ id: string;
2095
+ timestamp: string;
2096
+ source: string;
2097
+ type: "subscription.renewed";
2098
+ data: {
2099
+ storeId: string;
2100
+ orderId: string;
2101
+ orderNumber: string;
2102
+ totalAmount: string;
2103
+ subscriptionId: string;
2104
+ cycle: number;
2105
+ customerId?: string | undefined;
2106
+ correlationId?: string | undefined;
2107
+ };
2108
+ version?: string | undefined;
2109
+ }>;
2110
+ export declare const SubscriptionCancelledEventSchema: z.ZodObject<{
2111
+ id: z.ZodString;
2112
+ timestamp: z.ZodString;
2113
+ source: z.ZodString;
2114
+ version: z.ZodDefault<z.ZodString>;
2115
+ } & {
2116
+ type: z.ZodLiteral<"subscription.cancelled">;
2117
+ data: z.ZodObject<{
2118
+ subscriptionId: z.ZodString;
2119
+ orderId: z.ZodString;
2120
+ orderNumber: z.ZodString;
2121
+ storeId: z.ZodString;
2122
+ customerId: z.ZodOptional<z.ZodString>;
2123
+ reason: z.ZodOptional<z.ZodString>;
2124
+ action: z.ZodString;
2125
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2126
+ correlationId: z.ZodOptional<z.ZodString>;
2127
+ }, "strip", z.ZodTypeAny, {
2128
+ storeId: string;
2129
+ action: string;
2130
+ orderId: string;
2131
+ orderNumber: string;
2132
+ subscriptionId: string;
2133
+ reason?: string | undefined;
2134
+ customerId?: string | undefined;
2135
+ correlationId?: string | undefined;
2136
+ parameters?: Record<string, unknown> | undefined;
2137
+ }, {
2138
+ storeId: string;
2139
+ action: string;
2140
+ orderId: string;
2141
+ orderNumber: string;
2142
+ subscriptionId: string;
2143
+ reason?: string | undefined;
2144
+ customerId?: string | undefined;
2145
+ correlationId?: string | undefined;
2146
+ parameters?: Record<string, unknown> | undefined;
2147
+ }>;
2148
+ }, "strip", z.ZodTypeAny, {
2149
+ id: string;
2150
+ timestamp: string;
2151
+ source: string;
2152
+ version: string;
2153
+ type: "subscription.cancelled";
2154
+ data: {
2155
+ storeId: string;
2156
+ action: string;
2157
+ orderId: string;
2158
+ orderNumber: string;
2159
+ subscriptionId: string;
2160
+ reason?: string | undefined;
2161
+ customerId?: string | undefined;
2162
+ correlationId?: string | undefined;
2163
+ parameters?: Record<string, unknown> | undefined;
2164
+ };
2165
+ }, {
2166
+ id: string;
2167
+ timestamp: string;
2168
+ source: string;
2169
+ type: "subscription.cancelled";
2170
+ data: {
2171
+ storeId: string;
2172
+ action: string;
2173
+ orderId: string;
2174
+ orderNumber: string;
2175
+ subscriptionId: string;
2176
+ reason?: string | undefined;
2177
+ customerId?: string | undefined;
2178
+ correlationId?: string | undefined;
2179
+ parameters?: Record<string, unknown> | undefined;
2180
+ };
2181
+ version?: string | undefined;
2182
+ }>;
2183
+ export declare const OrderReturnRequestedEventSchema: z.ZodObject<{
2184
+ id: z.ZodString;
2185
+ timestamp: z.ZodString;
2186
+ source: z.ZodString;
2187
+ version: z.ZodDefault<z.ZodString>;
2188
+ } & {
2189
+ type: z.ZodLiteral<"order.return.requested">;
2190
+ data: z.ZodObject<{
2191
+ orderId: z.ZodString;
2192
+ orderNumber: z.ZodString;
2193
+ storeId: z.ZodString;
2194
+ customerId: z.ZodString;
2195
+ returnId: z.ZodString;
2196
+ returnType: z.ZodString;
2197
+ reason: z.ZodString;
2198
+ itemCount: z.ZodNumber;
2199
+ totalAmount: z.ZodOptional<z.ZodString>;
2200
+ correlationId: z.ZodOptional<z.ZodString>;
2201
+ }, "strip", z.ZodTypeAny, {
2202
+ storeId: string;
2203
+ reason: string;
2204
+ customerId: string;
2205
+ orderId: string;
2206
+ orderNumber: string;
2207
+ itemCount: number;
2208
+ returnId: string;
2209
+ returnType: string;
2210
+ totalAmount?: string | undefined;
2211
+ correlationId?: string | undefined;
2212
+ }, {
2213
+ storeId: string;
2214
+ reason: string;
2215
+ customerId: string;
2216
+ orderId: string;
2217
+ orderNumber: string;
2218
+ itemCount: number;
2219
+ returnId: string;
2220
+ returnType: string;
2221
+ totalAmount?: string | undefined;
2222
+ correlationId?: string | undefined;
2223
+ }>;
2224
+ }, "strip", z.ZodTypeAny, {
2225
+ id: string;
2226
+ timestamp: string;
2227
+ source: string;
2228
+ version: string;
2229
+ type: "order.return.requested";
2230
+ data: {
2231
+ storeId: string;
2232
+ reason: string;
2233
+ customerId: string;
2234
+ orderId: string;
2235
+ orderNumber: string;
2236
+ itemCount: number;
2237
+ returnId: string;
2238
+ returnType: string;
2239
+ totalAmount?: string | undefined;
2240
+ correlationId?: string | undefined;
2241
+ };
2242
+ }, {
2243
+ id: string;
2244
+ timestamp: string;
2245
+ source: string;
2246
+ type: "order.return.requested";
2247
+ data: {
2248
+ storeId: string;
2249
+ reason: string;
2250
+ customerId: string;
2251
+ orderId: string;
2252
+ orderNumber: string;
2253
+ itemCount: number;
2254
+ returnId: string;
2255
+ returnType: string;
2256
+ totalAmount?: string | undefined;
2257
+ correlationId?: string | undefined;
2258
+ };
2259
+ version?: string | undefined;
2260
+ }>;
2261
+ export declare const OrderRefundProcessedEventSchema: z.ZodObject<{
2262
+ id: z.ZodString;
2263
+ timestamp: z.ZodString;
2264
+ source: z.ZodString;
2265
+ version: z.ZodDefault<z.ZodString>;
2266
+ } & {
2267
+ type: z.ZodLiteral<"order.refund.processed">;
2268
+ data: z.ZodObject<{
2269
+ orderId: z.ZodString;
2270
+ orderNumber: z.ZodString;
2271
+ storeId: z.ZodString;
2272
+ customerId: z.ZodOptional<z.ZodString>;
2273
+ refundId: z.ZodString;
2274
+ refundAmount: z.ZodString;
2275
+ refundMethod: z.ZodString;
2276
+ reason: z.ZodString;
2277
+ processedBy: z.ZodString;
2278
+ correlationId: z.ZodOptional<z.ZodString>;
2279
+ }, "strip", z.ZodTypeAny, {
2280
+ storeId: string;
2281
+ reason: string;
2282
+ orderId: string;
2283
+ orderNumber: string;
2284
+ refundAmount: string;
2285
+ refundId: string;
2286
+ refundMethod: string;
2287
+ processedBy: string;
2288
+ customerId?: string | undefined;
2289
+ correlationId?: string | undefined;
2290
+ }, {
2291
+ storeId: string;
2292
+ reason: string;
2293
+ orderId: string;
2294
+ orderNumber: string;
2295
+ refundAmount: string;
2296
+ refundId: string;
2297
+ refundMethod: string;
2298
+ processedBy: string;
2299
+ customerId?: string | undefined;
2300
+ correlationId?: string | undefined;
2301
+ }>;
2302
+ }, "strip", z.ZodTypeAny, {
2303
+ id: string;
2304
+ timestamp: string;
2305
+ source: string;
2306
+ version: string;
2307
+ type: "order.refund.processed";
2308
+ data: {
2309
+ storeId: string;
2310
+ reason: string;
2311
+ orderId: string;
2312
+ orderNumber: string;
2313
+ refundAmount: string;
2314
+ refundId: string;
2315
+ refundMethod: string;
2316
+ processedBy: string;
2317
+ customerId?: string | undefined;
2318
+ correlationId?: string | undefined;
2319
+ };
2320
+ }, {
2321
+ id: string;
2322
+ timestamp: string;
2323
+ source: string;
2324
+ type: "order.refund.processed";
2325
+ data: {
2326
+ storeId: string;
2327
+ reason: string;
2328
+ orderId: string;
2329
+ orderNumber: string;
2330
+ refundAmount: string;
2331
+ refundId: string;
2332
+ refundMethod: string;
2333
+ processedBy: string;
2334
+ customerId?: string | undefined;
2335
+ correlationId?: string | undefined;
2336
+ };
2337
+ version?: string | undefined;
2338
+ }>;
2339
+ export type OrderCreatedEvent = z.infer<typeof OrderCreatedEventSchema>;
2340
+ export type OrderUpdatedEvent = z.infer<typeof OrderUpdatedEventSchema>;
2341
+ export type OrderStatusChangedEvent = z.infer<typeof OrderStatusChangedEventSchema>;
2342
+ export type OrderPaymentProcessedEvent = z.infer<typeof OrderPaymentProcessedEventSchema>;
2343
+ export type OrderShippedEvent = z.infer<typeof OrderShippedEventSchema>;
2344
+ export type OrderDeliveredEvent = z.infer<typeof OrderDeliveredEventSchema>;
2345
+ export type OrderCancelledEvent = z.infer<typeof OrderCancelledEventSchema>;
2346
+ export type OrderRefundedEvent = z.infer<typeof OrderRefundedEventSchema>;
2347
+ export type OrderNoteAddedEvent = z.infer<typeof OrderNoteAddedEventSchema>;
2348
+ export type OrderItemAddedEvent = z.infer<typeof OrderItemAddedEventSchema>;
2349
+ export type OrderItemRemovedEvent = z.infer<typeof OrderItemRemovedEventSchema>;
2350
+ export type OrderDiscountAppliedEvent = z.infer<typeof OrderDiscountAppliedEventSchema>;
2351
+ export type SubscriptionOrderCreatedEvent = z.infer<typeof SubscriptionOrderCreatedEventSchema>;
2352
+ export type SubscriptionRenewedEvent = z.infer<typeof SubscriptionRenewedEventSchema>;
2353
+ export type SubscriptionCancelledEvent = z.infer<typeof SubscriptionCancelledEventSchema>;
2354
+ export type OrderReturnRequestedEvent = z.infer<typeof OrderReturnRequestedEventSchema>;
2355
+ export type OrderRefundProcessedEvent = z.infer<typeof OrderRefundProcessedEventSchema>;
2356
+ export type CustomerCreatedEvent = z.infer<typeof CustomerCreatedEventSchema>;
2357
+ export type CustomerUpdatedEvent = z.infer<typeof CustomerUpdatedEventSchema>;
2358
+ export type CustomerDeletedEvent = z.infer<typeof CustomerDeletedEventSchema>;
2359
+ export type CustomerVisitCreatedEvent = z.infer<typeof CustomerVisitCreatedEventSchema>;
2360
+ export type CustomerInteractionCreatedEvent = z.infer<typeof CustomerInteractionCreatedEventSchema>;
2361
+ export type CustomerNoteCreatedEvent = z.infer<typeof CustomerNoteCreatedEventSchema>;
2362
+ export type CustomerSupportTicketCreatedEvent = z.infer<typeof CustomerSupportTicketCreatedEventSchema>;
2363
+ export type CustomerReviewSubmittedEvent = z.infer<typeof CustomerReviewSubmittedEventSchema>;
2364
+ export type AxovaEvent = StoreCreatedEvent | StoreUpdatedEvent | ComplianceViolationDetectedEvent | StoreSuspendedEvent | StoreUnbannedEvent | NotificationSendEvent | AuditLoggedEvent | AppealSubmittedEvent | AppealReviewedEvent | OrderCreatedEvent | OrderUpdatedEvent | OrderStatusChangedEvent | OrderPaymentProcessedEvent | OrderShippedEvent | OrderDeliveredEvent | OrderCancelledEvent | OrderRefundedEvent | OrderNoteAddedEvent | OrderItemAddedEvent | OrderItemRemovedEvent | OrderDiscountAppliedEvent | SubscriptionOrderCreatedEvent | SubscriptionRenewedEvent | SubscriptionCancelledEvent | OrderReturnRequestedEvent | OrderRefundProcessedEvent | CustomerCreatedEvent | CustomerUpdatedEvent | CustomerDeletedEvent | CustomerVisitCreatedEvent | CustomerInteractionCreatedEvent | CustomerNoteCreatedEvent | CustomerSupportTicketCreatedEvent | CustomerReviewSubmittedEvent;
2365
+ export declare const KAFKA_TOPICS: {
2366
+ readonly STORE_CREATED: "store.created";
2367
+ readonly STORE_UPDATED: "store.updated";
2368
+ readonly COMPLIANCE_VIOLATION_DETECTED: "compliance.violation.detected";
2369
+ readonly STORE_SUSPENDED: "store.suspended";
2370
+ readonly STORE_UNBANNED: "store.unbanned";
2371
+ readonly NOTIFICATION_SEND: "notification.send";
2372
+ readonly AUDIT_LOGGED: "audit.logged";
2373
+ readonly APPEAL_SUBMITTED: "appeal.submitted";
2374
+ readonly APPEAL_REVIEWED: "appeal.reviewed";
2375
+ readonly ORDER_CREATED: "order.created";
2376
+ readonly ORDER_UPDATED: "order.updated";
2377
+ readonly ORDER_STATUS_CHANGED: "order.status.changed";
2378
+ readonly ORDER_PAYMENT_PROCESSED: "order.payment.processed";
2379
+ readonly ORDER_SHIPPED: "order.shipped";
2380
+ readonly ORDER_DELIVERED: "order.delivered";
2381
+ readonly ORDER_CANCELLED: "order.cancelled";
2382
+ readonly ORDER_REFUNDED: "order.refunded";
2383
+ readonly ORDER_NOTE_ADDED: "order.note.added";
2384
+ readonly ORDER_ITEM_ADDED: "order.item.added";
2385
+ readonly ORDER_ITEM_REMOVED: "order.item.removed";
2386
+ readonly ORDER_DISCOUNT_APPLIED: "order.discount.applied";
2387
+ readonly CUSTOMER_CREATED: "customer.created";
2388
+ readonly CUSTOMER_UPDATED: "customer.updated";
2389
+ readonly CUSTOMER_DELETED: "customer.deleted";
2390
+ readonly CUSTOMER_VISIT_CREATED: "customer.visit.created";
2391
+ readonly CUSTOMER_INTERACTION_CREATED: "customer.interaction.created";
2392
+ readonly CUSTOMER_NOTE_CREATED: "customer.note.created";
2393
+ readonly CUSTOMER_SUPPORT_TICKET_CREATED: "customer.support.ticket.created";
2394
+ readonly CUSTOMER_REVIEW_SUBMITTED: "customer.review.submitted";
2395
+ };
2396
+ export type KafkaTopic = (typeof KAFKA_TOPICS)[keyof typeof KAFKA_TOPICS];