@axova/shared 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/events.d.ts +181 -1
- package/dist/types/events.js +37 -1
- package/package.json +2 -2
- package/src/types/events.ts +45 -0
package/dist/types/events.d.ts
CHANGED
|
@@ -131,6 +131,180 @@ export declare const StoreUpdatedEventSchema: z.ZodObject<{
|
|
|
131
131
|
};
|
|
132
132
|
version?: string | undefined;
|
|
133
133
|
}>;
|
|
134
|
+
export declare const StoreTinUpdatedEventSchema: 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<"store.tin.updated">;
|
|
141
|
+
data: z.ZodObject<{
|
|
142
|
+
storeId: z.ZodString;
|
|
143
|
+
tinNumber: z.ZodString;
|
|
144
|
+
businessType: z.ZodOptional<z.ZodString>;
|
|
145
|
+
verificationStatus: z.ZodString;
|
|
146
|
+
userId: z.ZodString;
|
|
147
|
+
timestamp: z.ZodString;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
timestamp: string;
|
|
150
|
+
storeId: string;
|
|
151
|
+
userId: string;
|
|
152
|
+
tinNumber: string;
|
|
153
|
+
verificationStatus: string;
|
|
154
|
+
businessType?: string | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
timestamp: string;
|
|
157
|
+
storeId: string;
|
|
158
|
+
userId: string;
|
|
159
|
+
tinNumber: string;
|
|
160
|
+
verificationStatus: string;
|
|
161
|
+
businessType?: string | undefined;
|
|
162
|
+
}>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
id: string;
|
|
165
|
+
timestamp: string;
|
|
166
|
+
source: string;
|
|
167
|
+
version: string;
|
|
168
|
+
type: "store.tin.updated";
|
|
169
|
+
data: {
|
|
170
|
+
timestamp: string;
|
|
171
|
+
storeId: string;
|
|
172
|
+
userId: string;
|
|
173
|
+
tinNumber: string;
|
|
174
|
+
verificationStatus: string;
|
|
175
|
+
businessType?: string | undefined;
|
|
176
|
+
};
|
|
177
|
+
}, {
|
|
178
|
+
id: string;
|
|
179
|
+
timestamp: string;
|
|
180
|
+
source: string;
|
|
181
|
+
type: "store.tin.updated";
|
|
182
|
+
data: {
|
|
183
|
+
timestamp: string;
|
|
184
|
+
storeId: string;
|
|
185
|
+
userId: string;
|
|
186
|
+
tinNumber: string;
|
|
187
|
+
verificationStatus: string;
|
|
188
|
+
businessType?: string | undefined;
|
|
189
|
+
};
|
|
190
|
+
version?: string | undefined;
|
|
191
|
+
}>;
|
|
192
|
+
export declare const StoreTinReverifiedEventSchema: 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.tin.reverified">;
|
|
199
|
+
data: z.ZodObject<{
|
|
200
|
+
storeId: z.ZodString;
|
|
201
|
+
tinNumber: z.ZodString;
|
|
202
|
+
previousStatus: z.ZodString;
|
|
203
|
+
newStatus: z.ZodString;
|
|
204
|
+
userId: z.ZodString;
|
|
205
|
+
timestamp: z.ZodString;
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
timestamp: string;
|
|
208
|
+
storeId: string;
|
|
209
|
+
userId: string;
|
|
210
|
+
tinNumber: string;
|
|
211
|
+
previousStatus: string;
|
|
212
|
+
newStatus: string;
|
|
213
|
+
}, {
|
|
214
|
+
timestamp: string;
|
|
215
|
+
storeId: string;
|
|
216
|
+
userId: string;
|
|
217
|
+
tinNumber: string;
|
|
218
|
+
previousStatus: string;
|
|
219
|
+
newStatus: string;
|
|
220
|
+
}>;
|
|
221
|
+
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
id: string;
|
|
223
|
+
timestamp: string;
|
|
224
|
+
source: string;
|
|
225
|
+
version: string;
|
|
226
|
+
type: "store.tin.reverified";
|
|
227
|
+
data: {
|
|
228
|
+
timestamp: string;
|
|
229
|
+
storeId: string;
|
|
230
|
+
userId: string;
|
|
231
|
+
tinNumber: string;
|
|
232
|
+
previousStatus: string;
|
|
233
|
+
newStatus: string;
|
|
234
|
+
};
|
|
235
|
+
}, {
|
|
236
|
+
id: string;
|
|
237
|
+
timestamp: string;
|
|
238
|
+
source: string;
|
|
239
|
+
type: "store.tin.reverified";
|
|
240
|
+
data: {
|
|
241
|
+
timestamp: string;
|
|
242
|
+
storeId: string;
|
|
243
|
+
userId: string;
|
|
244
|
+
tinNumber: string;
|
|
245
|
+
previousStatus: string;
|
|
246
|
+
newStatus: string;
|
|
247
|
+
};
|
|
248
|
+
version?: string | undefined;
|
|
249
|
+
}>;
|
|
250
|
+
export declare const StoreBusinessTypeChangedEventSchema: z.ZodObject<{
|
|
251
|
+
id: z.ZodString;
|
|
252
|
+
timestamp: z.ZodString;
|
|
253
|
+
source: z.ZodString;
|
|
254
|
+
version: z.ZodDefault<z.ZodString>;
|
|
255
|
+
} & {
|
|
256
|
+
type: z.ZodLiteral<"store.businessType.changed">;
|
|
257
|
+
data: z.ZodObject<{
|
|
258
|
+
storeId: z.ZodString;
|
|
259
|
+
previousType: z.ZodString;
|
|
260
|
+
newType: z.ZodString;
|
|
261
|
+
userId: z.ZodString;
|
|
262
|
+
timestamp: z.ZodString;
|
|
263
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
timestamp: string;
|
|
266
|
+
storeId: string;
|
|
267
|
+
userId: string;
|
|
268
|
+
previousType: string;
|
|
269
|
+
newType: string;
|
|
270
|
+
reason?: string | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
timestamp: string;
|
|
273
|
+
storeId: string;
|
|
274
|
+
userId: string;
|
|
275
|
+
previousType: string;
|
|
276
|
+
newType: string;
|
|
277
|
+
reason?: string | undefined;
|
|
278
|
+
}>;
|
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
id: string;
|
|
281
|
+
timestamp: string;
|
|
282
|
+
source: string;
|
|
283
|
+
version: string;
|
|
284
|
+
type: "store.businessType.changed";
|
|
285
|
+
data: {
|
|
286
|
+
timestamp: string;
|
|
287
|
+
storeId: string;
|
|
288
|
+
userId: string;
|
|
289
|
+
previousType: string;
|
|
290
|
+
newType: string;
|
|
291
|
+
reason?: string | undefined;
|
|
292
|
+
};
|
|
293
|
+
}, {
|
|
294
|
+
id: string;
|
|
295
|
+
timestamp: string;
|
|
296
|
+
source: string;
|
|
297
|
+
type: "store.businessType.changed";
|
|
298
|
+
data: {
|
|
299
|
+
timestamp: string;
|
|
300
|
+
storeId: string;
|
|
301
|
+
userId: string;
|
|
302
|
+
previousType: string;
|
|
303
|
+
newType: string;
|
|
304
|
+
reason?: string | undefined;
|
|
305
|
+
};
|
|
306
|
+
version?: string | undefined;
|
|
307
|
+
}>;
|
|
134
308
|
export declare const ComplianceViolationDetectedEventSchema: z.ZodObject<{
|
|
135
309
|
id: z.ZodString;
|
|
136
310
|
timestamp: z.ZodString;
|
|
@@ -559,6 +733,9 @@ export declare const AppealReviewedEventSchema: z.ZodObject<{
|
|
|
559
733
|
}>;
|
|
560
734
|
export type StoreCreatedEvent = z.infer<typeof StoreCreatedEventSchema>;
|
|
561
735
|
export type StoreUpdatedEvent = z.infer<typeof StoreUpdatedEventSchema>;
|
|
736
|
+
export type StoreTinUpdatedEvent = z.infer<typeof StoreTinUpdatedEventSchema>;
|
|
737
|
+
export type StoreTinReverifiedEvent = z.infer<typeof StoreTinReverifiedEventSchema>;
|
|
738
|
+
export type StoreBusinessTypeChangedEvent = z.infer<typeof StoreBusinessTypeChangedEventSchema>;
|
|
562
739
|
export type ComplianceViolationDetectedEvent = z.infer<typeof ComplianceViolationDetectedEventSchema>;
|
|
563
740
|
export type StoreSuspendedEvent = z.infer<typeof StoreSuspendedEventSchema>;
|
|
564
741
|
export type StoreUnbannedEvent = z.infer<typeof StoreUnbannedEventSchema>;
|
|
@@ -2361,10 +2538,13 @@ export type CustomerInteractionCreatedEvent = z.infer<typeof CustomerInteraction
|
|
|
2361
2538
|
export type CustomerNoteCreatedEvent = z.infer<typeof CustomerNoteCreatedEventSchema>;
|
|
2362
2539
|
export type CustomerSupportTicketCreatedEvent = z.infer<typeof CustomerSupportTicketCreatedEventSchema>;
|
|
2363
2540
|
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;
|
|
2541
|
+
export type AxovaEvent = StoreCreatedEvent | StoreUpdatedEvent | StoreTinUpdatedEvent | StoreTinReverifiedEvent | StoreBusinessTypeChangedEvent | 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
2542
|
export declare const KAFKA_TOPICS: {
|
|
2366
2543
|
readonly STORE_CREATED: "store.created";
|
|
2367
2544
|
readonly STORE_UPDATED: "store.updated";
|
|
2545
|
+
readonly STORE_TIN_UPDATED: "store.tin.updated";
|
|
2546
|
+
readonly STORE_TIN_REVERIFIED: "store.tin.reverified";
|
|
2547
|
+
readonly STORE_BUSINESS_TYPE_CHANGED: "store.businessType.changed";
|
|
2368
2548
|
readonly COMPLIANCE_VIOLATION_DETECTED: "compliance.violation.detected";
|
|
2369
2549
|
readonly STORE_SUSPENDED: "store.suspended";
|
|
2370
2550
|
readonly STORE_UNBANNED: "store.unbanned";
|
package/dist/types/events.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KAFKA_TOPICS = exports.OrderRefundProcessedEventSchema = exports.OrderReturnRequestedEventSchema = exports.SubscriptionCancelledEventSchema = exports.SubscriptionRenewedEventSchema = exports.SubscriptionOrderCreatedEventSchema = exports.OrderDiscountAppliedEventSchema = exports.OrderItemRemovedEventSchema = exports.OrderItemAddedEventSchema = exports.OrderNoteAddedEventSchema = exports.OrderRefundedEventSchema = exports.OrderCancelledEventSchema = exports.OrderDeliveredEventSchema = exports.OrderShippedEventSchema = exports.OrderPaymentProcessedEventSchema = exports.OrderStatusChangedEventSchema = exports.OrderUpdatedEventSchema = exports.OrderCreatedEventSchema = exports.CustomerReviewSubmittedEventSchema = exports.CustomerSupportTicketCreatedEventSchema = exports.CustomerNoteCreatedEventSchema = exports.CustomerInteractionCreatedEventSchema = exports.CustomerVisitCreatedEventSchema = exports.CustomerDeletedEventSchema = exports.CustomerUpdatedEventSchema = exports.CustomerCreatedEventSchema = exports.AppealReviewedEventSchema = exports.AppealSubmittedEventSchema = exports.AuditLoggedEventSchema = exports.NotificationSendEventSchema = exports.StoreUnbannedEventSchema = exports.StoreSuspendedEventSchema = exports.ComplianceViolationDetectedEventSchema = exports.StoreUpdatedEventSchema = exports.StoreCreatedEventSchema = exports.BaseEventSchema = void 0;
|
|
3
|
+
exports.KAFKA_TOPICS = exports.OrderRefundProcessedEventSchema = exports.OrderReturnRequestedEventSchema = exports.SubscriptionCancelledEventSchema = exports.SubscriptionRenewedEventSchema = exports.SubscriptionOrderCreatedEventSchema = exports.OrderDiscountAppliedEventSchema = exports.OrderItemRemovedEventSchema = exports.OrderItemAddedEventSchema = exports.OrderNoteAddedEventSchema = exports.OrderRefundedEventSchema = exports.OrderCancelledEventSchema = exports.OrderDeliveredEventSchema = exports.OrderShippedEventSchema = exports.OrderPaymentProcessedEventSchema = exports.OrderStatusChangedEventSchema = exports.OrderUpdatedEventSchema = exports.OrderCreatedEventSchema = exports.CustomerReviewSubmittedEventSchema = exports.CustomerSupportTicketCreatedEventSchema = exports.CustomerNoteCreatedEventSchema = exports.CustomerInteractionCreatedEventSchema = exports.CustomerVisitCreatedEventSchema = exports.CustomerDeletedEventSchema = exports.CustomerUpdatedEventSchema = exports.CustomerCreatedEventSchema = exports.AppealReviewedEventSchema = exports.AppealSubmittedEventSchema = exports.AuditLoggedEventSchema = exports.NotificationSendEventSchema = exports.StoreUnbannedEventSchema = exports.StoreSuspendedEventSchema = exports.ComplianceViolationDetectedEventSchema = exports.StoreBusinessTypeChangedEventSchema = exports.StoreTinReverifiedEventSchema = exports.StoreTinUpdatedEventSchema = exports.StoreUpdatedEventSchema = exports.StoreCreatedEventSchema = exports.BaseEventSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
// Base event schema
|
|
6
6
|
exports.BaseEventSchema = zod_1.z.object({
|
|
@@ -32,6 +32,39 @@ exports.StoreUpdatedEventSchema = exports.BaseEventSchema.extend({
|
|
|
32
32
|
previousValues: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
33
33
|
}),
|
|
34
34
|
});
|
|
35
|
+
exports.StoreTinUpdatedEventSchema = exports.BaseEventSchema.extend({
|
|
36
|
+
type: zod_1.z.literal("store.tin.updated"),
|
|
37
|
+
data: zod_1.z.object({
|
|
38
|
+
storeId: zod_1.z.string(),
|
|
39
|
+
tinNumber: zod_1.z.string(),
|
|
40
|
+
businessType: zod_1.z.string().optional(),
|
|
41
|
+
verificationStatus: zod_1.z.string(),
|
|
42
|
+
userId: zod_1.z.string(),
|
|
43
|
+
timestamp: zod_1.z.string(),
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
exports.StoreTinReverifiedEventSchema = exports.BaseEventSchema.extend({
|
|
47
|
+
type: zod_1.z.literal("store.tin.reverified"),
|
|
48
|
+
data: zod_1.z.object({
|
|
49
|
+
storeId: zod_1.z.string(),
|
|
50
|
+
tinNumber: zod_1.z.string(),
|
|
51
|
+
previousStatus: zod_1.z.string(),
|
|
52
|
+
newStatus: zod_1.z.string(),
|
|
53
|
+
userId: zod_1.z.string(),
|
|
54
|
+
timestamp: zod_1.z.string(),
|
|
55
|
+
}),
|
|
56
|
+
});
|
|
57
|
+
exports.StoreBusinessTypeChangedEventSchema = exports.BaseEventSchema.extend({
|
|
58
|
+
type: zod_1.z.literal("store.businessType.changed"),
|
|
59
|
+
data: zod_1.z.object({
|
|
60
|
+
storeId: zod_1.z.string(),
|
|
61
|
+
previousType: zod_1.z.string(),
|
|
62
|
+
newType: zod_1.z.string(),
|
|
63
|
+
userId: zod_1.z.string(),
|
|
64
|
+
timestamp: zod_1.z.string(),
|
|
65
|
+
reason: zod_1.z.string().optional(),
|
|
66
|
+
}),
|
|
67
|
+
});
|
|
35
68
|
// Compliance Events
|
|
36
69
|
exports.ComplianceViolationDetectedEventSchema = exports.BaseEventSchema.extend({
|
|
37
70
|
type: zod_1.z.literal("compliance.violation.detected"),
|
|
@@ -473,6 +506,9 @@ exports.OrderRefundProcessedEventSchema = exports.BaseEventSchema.extend({
|
|
|
473
506
|
exports.KAFKA_TOPICS = {
|
|
474
507
|
STORE_CREATED: "store.created",
|
|
475
508
|
STORE_UPDATED: "store.updated",
|
|
509
|
+
STORE_TIN_UPDATED: "store.tin.updated",
|
|
510
|
+
STORE_TIN_REVERIFIED: "store.tin.reverified",
|
|
511
|
+
STORE_BUSINESS_TYPE_CHANGED: "store.businessType.changed",
|
|
476
512
|
COMPLIANCE_VIOLATION_DETECTED: "compliance.violation.detected",
|
|
477
513
|
STORE_SUSPENDED: "store.suspended",
|
|
478
514
|
STORE_UNBANNED: "store.unbanned",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axova/shared",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Shared utilities, models, and libraries for Axova platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"typescript": "^5.3.3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"fastify": "^5
|
|
40
|
+
"fastify": "^4 || ^5",
|
|
41
41
|
"drizzle-orm": "^0.39.3"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/src/types/events.ts
CHANGED
|
@@ -33,6 +33,42 @@ export const StoreUpdatedEventSchema = BaseEventSchema.extend({
|
|
|
33
33
|
}),
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
+
export const StoreTinUpdatedEventSchema = BaseEventSchema.extend({
|
|
37
|
+
type: z.literal("store.tin.updated"),
|
|
38
|
+
data: z.object({
|
|
39
|
+
storeId: z.string(),
|
|
40
|
+
tinNumber: z.string(),
|
|
41
|
+
businessType: z.string().optional(),
|
|
42
|
+
verificationStatus: z.string(),
|
|
43
|
+
userId: z.string(),
|
|
44
|
+
timestamp: z.string(),
|
|
45
|
+
}),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const StoreTinReverifiedEventSchema = BaseEventSchema.extend({
|
|
49
|
+
type: z.literal("store.tin.reverified"),
|
|
50
|
+
data: z.object({
|
|
51
|
+
storeId: z.string(),
|
|
52
|
+
tinNumber: z.string(),
|
|
53
|
+
previousStatus: z.string(),
|
|
54
|
+
newStatus: z.string(),
|
|
55
|
+
userId: z.string(),
|
|
56
|
+
timestamp: z.string(),
|
|
57
|
+
}),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export const StoreBusinessTypeChangedEventSchema = BaseEventSchema.extend({
|
|
61
|
+
type: z.literal("store.businessType.changed"),
|
|
62
|
+
data: z.object({
|
|
63
|
+
storeId: z.string(),
|
|
64
|
+
previousType: z.string(),
|
|
65
|
+
newType: z.string(),
|
|
66
|
+
userId: z.string(),
|
|
67
|
+
timestamp: z.string(),
|
|
68
|
+
reason: z.string().optional(),
|
|
69
|
+
}),
|
|
70
|
+
});
|
|
71
|
+
|
|
36
72
|
// Compliance Events
|
|
37
73
|
export const ComplianceViolationDetectedEventSchema = BaseEventSchema.extend({
|
|
38
74
|
type: z.literal("compliance.violation.detected"),
|
|
@@ -137,6 +173,9 @@ export const AppealReviewedEventSchema = BaseEventSchema.extend({
|
|
|
137
173
|
// Type exports
|
|
138
174
|
export type StoreCreatedEvent = z.infer<typeof StoreCreatedEventSchema>;
|
|
139
175
|
export type StoreUpdatedEvent = z.infer<typeof StoreUpdatedEventSchema>;
|
|
176
|
+
export type StoreTinUpdatedEvent = z.infer<typeof StoreTinUpdatedEventSchema>;
|
|
177
|
+
export type StoreTinReverifiedEvent = z.infer<typeof StoreTinReverifiedEventSchema>;
|
|
178
|
+
export type StoreBusinessTypeChangedEvent = z.infer<typeof StoreBusinessTypeChangedEventSchema>;
|
|
140
179
|
export type ComplianceViolationDetectedEvent = z.infer<
|
|
141
180
|
typeof ComplianceViolationDetectedEventSchema
|
|
142
181
|
>;
|
|
@@ -575,6 +614,9 @@ export type CustomerReviewSubmittedEvent = z.infer<
|
|
|
575
614
|
export type AxovaEvent =
|
|
576
615
|
| StoreCreatedEvent
|
|
577
616
|
| StoreUpdatedEvent
|
|
617
|
+
| StoreTinUpdatedEvent
|
|
618
|
+
| StoreTinReverifiedEvent
|
|
619
|
+
| StoreBusinessTypeChangedEvent
|
|
578
620
|
| ComplianceViolationDetectedEvent
|
|
579
621
|
| StoreSuspendedEvent
|
|
580
622
|
| StoreUnbannedEvent
|
|
@@ -612,6 +654,9 @@ export type AxovaEvent =
|
|
|
612
654
|
export const KAFKA_TOPICS = {
|
|
613
655
|
STORE_CREATED: "store.created",
|
|
614
656
|
STORE_UPDATED: "store.updated",
|
|
657
|
+
STORE_TIN_UPDATED: "store.tin.updated",
|
|
658
|
+
STORE_TIN_REVERIFIED: "store.tin.reverified",
|
|
659
|
+
STORE_BUSINESS_TYPE_CHANGED: "store.businessType.changed",
|
|
615
660
|
COMPLIANCE_VIOLATION_DETECTED: "compliance.violation.detected",
|
|
616
661
|
STORE_SUSPENDED: "store.suspended",
|
|
617
662
|
STORE_UNBANNED: "store.unbanned",
|