@tamasha/kafka-schema-validation 1.0.2 → 1.0.3
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/index.d.ts +9 -3
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { TopicActionPayloadMap, TopicMessage, TopicMessageMap } from "./base";
|
|
2
|
+
import { userEventsSchema } from "./userEvents";
|
|
3
|
+
import { orderEventsSchema } from "./orderEvents";
|
|
2
4
|
import { walletEventsSchema } from "./walletEvents";
|
|
3
5
|
import { callEventsSchema } from "./callEvents";
|
|
4
6
|
import { audienceUpdateSchema } from "./audienceEvents";
|
|
5
7
|
import { customerEventsSchema } from "./customerEvents";
|
|
8
|
+
import { productEventsSchema } from "./productEvents";
|
|
6
9
|
export { defineAction, defineTopic, defineTopicSchemas, TopicSchemaRegistry, type PrimitiveType, type FieldRule, type ActionSchema, type TopicSchema, type TopicSchemas, type ActionPayload, type TopicActionPayloadMap, type TopicMessage, type TopicMessageMap, } from "./base";
|
|
7
10
|
export { USER_EVENTS_TOPIC, userEventsSchema } from "./userEvents";
|
|
8
11
|
export { ORDER_EVENTS_TOPIC, orderEventsSchema } from "./orderEvents";
|
|
@@ -230,9 +233,12 @@ export declare const DEFAULT_TOPIC_SCHEMAS: {
|
|
|
230
233
|
}>;
|
|
231
234
|
};
|
|
232
235
|
export type DefaultTopicSchemas = typeof DEFAULT_TOPIC_SCHEMAS;
|
|
233
|
-
export type
|
|
234
|
-
export type
|
|
235
|
-
export type
|
|
236
|
+
export type OrderEventPayloads = TopicActionPayloadMap<typeof orderEventsSchema>;
|
|
237
|
+
export type OrderEventMessage = TopicMessage<typeof orderEventsSchema>;
|
|
238
|
+
export type UserEventPayloads = TopicActionPayloadMap<typeof userEventsSchema>;
|
|
239
|
+
export type UserEventMessage = TopicMessage<typeof userEventsSchema>;
|
|
240
|
+
export type ProductEventPayloads = TopicActionPayloadMap<typeof productEventsSchema>;
|
|
241
|
+
export type ProductEventMessage = TopicMessage<typeof productEventsSchema>;
|
|
236
242
|
export type WalletEventPayloads = TopicActionPayloadMap<typeof walletEventsSchema>;
|
|
237
243
|
export type WalletEventMessage = TopicMessage<typeof walletEventsSchema>;
|
|
238
244
|
export type CallEventPayloads = TopicActionPayloadMap<typeof callEventsSchema>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,qBAAqB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,qBAAqB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAClG,OAAO,EAAqB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAsB,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAsB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAoB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAyB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAyB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAwB,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG5E,OAAO,EACH,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,eAAe,GACvB,MAAM,QAAQ,CAAC;AAGhB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