@heavybit/ecommerce-contracts 0.3.12 → 0.3.16
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/cjs/events/base.js +1 -1
- package/dist/cjs/events/base.js.map +1 -1
- package/dist/cjs/events/engagement.js +52 -0
- package/dist/cjs/events/engagement.js.map +1 -0
- package/dist/cjs/events/index.js +6 -0
- package/dist/cjs/events/index.js.map +1 -1
- package/dist/cjs/events/notification.js +9 -2
- package/dist/cjs/events/notification.js.map +1 -1
- package/dist/cjs/events/promotion.js +17 -0
- package/dist/cjs/events/promotion.js.map +1 -0
- package/dist/cjs/internal/catalog.js +2 -0
- package/dist/cjs/internal/catalog.js.map +1 -1
- package/dist/cjs/internal/index.js +2 -0
- package/dist/cjs/internal/index.js.map +1 -1
- package/dist/cjs/internal/moderation.js +20 -0
- package/dist/cjs/internal/moderation.js.map +1 -0
- package/dist/cjs/internal/reviews.js +26 -0
- package/dist/cjs/internal/reviews.js.map +1 -0
- package/dist/cjs/permissions.js +2 -0
- package/dist/cjs/permissions.js.map +1 -1
- package/dist/esm/events/base.js +1 -1
- package/dist/esm/events/base.js.map +1 -1
- package/dist/esm/events/engagement.js +49 -0
- package/dist/esm/events/engagement.js.map +1 -0
- package/dist/esm/events/index.js +6 -0
- package/dist/esm/events/index.js.map +1 -1
- package/dist/esm/events/notification.js +8 -1
- package/dist/esm/events/notification.js.map +1 -1
- package/dist/esm/events/promotion.js +14 -0
- package/dist/esm/events/promotion.js.map +1 -0
- package/dist/esm/internal/catalog.js +2 -0
- package/dist/esm/internal/catalog.js.map +1 -1
- package/dist/esm/internal/index.js +2 -0
- package/dist/esm/internal/index.js.map +1 -1
- package/dist/esm/internal/moderation.js +17 -0
- package/dist/esm/internal/moderation.js.map +1 -0
- package/dist/esm/internal/reviews.js +23 -0
- package/dist/esm/internal/reviews.js.map +1 -0
- package/dist/esm/permissions.js +2 -0
- package/dist/esm/permissions.js.map +1 -1
- package/dist/types/events/audit.d.ts +3 -1
- package/dist/types/events/audit.d.ts.map +1 -1
- package/dist/types/events/base.d.ts +1 -1
- package/dist/types/events/base.d.ts.map +1 -1
- package/dist/types/events/engagement.d.ts +161 -0
- package/dist/types/events/engagement.d.ts.map +1 -0
- package/dist/types/events/index.d.ts +605 -1
- package/dist/types/events/index.d.ts.map +1 -1
- package/dist/types/events/notification.d.ts +41 -1
- package/dist/types/events/notification.d.ts.map +1 -1
- package/dist/types/events/promotion.d.ts +67 -0
- package/dist/types/events/promotion.d.ts.map +1 -0
- package/dist/types/internal/catalog.d.ts +24 -0
- package/dist/types/internal/catalog.d.ts.map +1 -1
- package/dist/types/internal/index.d.ts +2 -0
- package/dist/types/internal/index.d.ts.map +1 -1
- package/dist/types/internal/moderation.d.ts +38 -0
- package/dist/types/internal/moderation.d.ts.map +1 -0
- package/dist/types/internal/reviews.d.ts +54 -0
- package/dist/types/internal/reviews.d.ts.map +1 -0
- package/dist/types/permissions.d.ts +2 -0
- package/dist/types/permissions.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -159,6 +159,31 @@ export declare const ROUTING_KEYS: Readonly<{
|
|
|
159
159
|
readonly failed: "shipping.shipment.failed";
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
|
+
readonly promotion: {
|
|
163
|
+
readonly coupon: {
|
|
164
|
+
readonly redeemed: "promotion.coupon.redeemed";
|
|
165
|
+
};
|
|
166
|
+
readonly campaign: {
|
|
167
|
+
readonly started: "promotion.campaign.started";
|
|
168
|
+
readonly ended: "promotion.campaign.ended";
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
readonly engagement: {
|
|
172
|
+
readonly customer: {
|
|
173
|
+
readonly created: "engagement.customer.created";
|
|
174
|
+
};
|
|
175
|
+
readonly consent: {
|
|
176
|
+
readonly changed: "engagement.consent.changed";
|
|
177
|
+
};
|
|
178
|
+
readonly report: {
|
|
179
|
+
readonly decided: "engagement.report.decided";
|
|
180
|
+
};
|
|
181
|
+
readonly review: {
|
|
182
|
+
readonly created: "engagement.review.created";
|
|
183
|
+
readonly hidden: "engagement.review.hidden";
|
|
184
|
+
readonly ratingChanged: "engagement.review.rating_changed";
|
|
185
|
+
};
|
|
186
|
+
};
|
|
162
187
|
readonly usage: {
|
|
163
188
|
readonly sms: {
|
|
164
189
|
readonly sent: "usage.sms.sent";
|
|
@@ -170,6 +195,7 @@ export declare const ROUTING_KEYS: Readonly<{
|
|
|
170
195
|
readonly notification: {
|
|
171
196
|
readonly email: {
|
|
172
197
|
readonly suppressed: "notification.email.suppressed";
|
|
198
|
+
readonly unsubscribed: "notification.email.unsubscribed";
|
|
173
199
|
};
|
|
174
200
|
readonly send: {
|
|
175
201
|
readonly requested: "notification.send.requested";
|
|
@@ -188,6 +214,8 @@ export declare const ROUTING_KEYS: Readonly<{
|
|
|
188
214
|
readonly cart: "cart.audit.recorded";
|
|
189
215
|
readonly notification: "notification.audit.recorded";
|
|
190
216
|
readonly reporting: "reporting.audit.recorded";
|
|
217
|
+
readonly promotion: "promotion.audit.recorded";
|
|
218
|
+
readonly engagement: "engagement.audit.recorded";
|
|
191
219
|
};
|
|
192
220
|
readonly pattern: "*.audit.recorded";
|
|
193
221
|
};
|
|
@@ -204,6 +232,8 @@ export declare const ROUTING_KEYS: Readonly<{
|
|
|
204
232
|
readonly cart: "cart.security.socket_rejected";
|
|
205
233
|
readonly notification: "notification.security.socket_rejected";
|
|
206
234
|
readonly reporting: "reporting.security.socket_rejected";
|
|
235
|
+
readonly promotion: "promotion.security.socket_rejected";
|
|
236
|
+
readonly engagement: "engagement.security.socket_rejected";
|
|
207
237
|
};
|
|
208
238
|
readonly pattern: "*.security.socket_rejected";
|
|
209
239
|
};
|
|
@@ -419,6 +449,44 @@ export declare const EVENT_SCHEMAS: Readonly<{
|
|
|
419
449
|
namespace: z.ZodString;
|
|
420
450
|
reason: z.ZodString;
|
|
421
451
|
}, z.ZodTypeAny, "passthrough">>;
|
|
452
|
+
"promotion.security.socket_rejected": z.ZodObject<{
|
|
453
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
454
|
+
} & {
|
|
455
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
456
|
+
namespace: z.ZodString;
|
|
457
|
+
reason: z.ZodString;
|
|
458
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
459
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
|
+
} & {
|
|
461
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
462
|
+
namespace: z.ZodString;
|
|
463
|
+
reason: z.ZodString;
|
|
464
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
465
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
466
|
+
} & {
|
|
467
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
468
|
+
namespace: z.ZodString;
|
|
469
|
+
reason: z.ZodString;
|
|
470
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
471
|
+
"engagement.security.socket_rejected": z.ZodObject<{
|
|
472
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
473
|
+
} & {
|
|
474
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
475
|
+
namespace: z.ZodString;
|
|
476
|
+
reason: z.ZodString;
|
|
477
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
478
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
479
|
+
} & {
|
|
480
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
481
|
+
namespace: z.ZodString;
|
|
482
|
+
reason: z.ZodString;
|
|
483
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
484
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
485
|
+
} & {
|
|
486
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
487
|
+
namespace: z.ZodString;
|
|
488
|
+
reason: z.ZodString;
|
|
489
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
422
490
|
"order.audit.recorded": z.ZodObject<{
|
|
423
491
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
492
|
} & {
|
|
@@ -727,6 +795,62 @@ export declare const EVENT_SCHEMAS: Readonly<{
|
|
|
727
795
|
occurredAt: z.ZodString;
|
|
728
796
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
729
797
|
}, z.ZodTypeAny, "passthrough">>;
|
|
798
|
+
"promotion.audit.recorded": z.ZodObject<{
|
|
799
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
800
|
+
} & {
|
|
801
|
+
action: z.ZodString;
|
|
802
|
+
entityType: z.ZodString;
|
|
803
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
804
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
805
|
+
occurredAt: z.ZodString;
|
|
806
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
807
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
808
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
809
|
+
} & {
|
|
810
|
+
action: z.ZodString;
|
|
811
|
+
entityType: z.ZodString;
|
|
812
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
813
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
814
|
+
occurredAt: z.ZodString;
|
|
815
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
816
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
817
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
818
|
+
} & {
|
|
819
|
+
action: z.ZodString;
|
|
820
|
+
entityType: z.ZodString;
|
|
821
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
822
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
823
|
+
occurredAt: z.ZodString;
|
|
824
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
825
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
826
|
+
"engagement.audit.recorded": z.ZodObject<{
|
|
827
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
828
|
+
} & {
|
|
829
|
+
action: z.ZodString;
|
|
830
|
+
entityType: z.ZodString;
|
|
831
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
832
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
833
|
+
occurredAt: z.ZodString;
|
|
834
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
835
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
836
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
837
|
+
} & {
|
|
838
|
+
action: z.ZodString;
|
|
839
|
+
entityType: z.ZodString;
|
|
840
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
841
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
842
|
+
occurredAt: z.ZodString;
|
|
843
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
844
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
845
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
846
|
+
} & {
|
|
847
|
+
action: z.ZodString;
|
|
848
|
+
entityType: z.ZodString;
|
|
849
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
850
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
851
|
+
occurredAt: z.ZodString;
|
|
852
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
853
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
730
854
|
"notification.email.suppressed": z.ZodObject<{
|
|
731
855
|
userId: z.ZodString;
|
|
732
856
|
reason: z.ZodEnum<["bounce", "complaint"]>;
|
|
@@ -737,6 +861,22 @@ export declare const EVENT_SCHEMAS: Readonly<{
|
|
|
737
861
|
userId: z.ZodString;
|
|
738
862
|
reason: z.ZodEnum<["bounce", "complaint"]>;
|
|
739
863
|
}, z.ZodTypeAny, "passthrough">>;
|
|
864
|
+
"notification.email.unsubscribed": z.ZodObject<{
|
|
865
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
866
|
+
} & {
|
|
867
|
+
userId: z.ZodString;
|
|
868
|
+
type: z.ZodString;
|
|
869
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
870
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
871
|
+
} & {
|
|
872
|
+
userId: z.ZodString;
|
|
873
|
+
type: z.ZodString;
|
|
874
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
875
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
876
|
+
} & {
|
|
877
|
+
userId: z.ZodString;
|
|
878
|
+
type: z.ZodString;
|
|
879
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
740
880
|
"usage.sms.sent": z.ZodObject<{
|
|
741
881
|
companyId: z.ZodString;
|
|
742
882
|
} & {
|
|
@@ -781,6 +921,183 @@ export declare const EVENT_SCHEMAS: Readonly<{
|
|
|
781
921
|
fee: z.ZodString;
|
|
782
922
|
currency: z.ZodLiteral<"KES">;
|
|
783
923
|
}, z.ZodTypeAny, "passthrough">>;
|
|
924
|
+
"engagement.customer.created": z.ZodObject<{
|
|
925
|
+
companyId: z.ZodString;
|
|
926
|
+
} & {
|
|
927
|
+
customerId: z.ZodString;
|
|
928
|
+
userId: z.ZodString;
|
|
929
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
930
|
+
companyId: z.ZodString;
|
|
931
|
+
} & {
|
|
932
|
+
customerId: z.ZodString;
|
|
933
|
+
userId: z.ZodString;
|
|
934
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
935
|
+
companyId: z.ZodString;
|
|
936
|
+
} & {
|
|
937
|
+
customerId: z.ZodString;
|
|
938
|
+
userId: z.ZodString;
|
|
939
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
940
|
+
"engagement.consent.changed": z.ZodObject<{
|
|
941
|
+
companyId: z.ZodString;
|
|
942
|
+
} & {
|
|
943
|
+
userId: z.ZodString;
|
|
944
|
+
channel: z.ZodLiteral<"email">;
|
|
945
|
+
granted: z.ZodBoolean;
|
|
946
|
+
source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
|
|
947
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
948
|
+
companyId: z.ZodString;
|
|
949
|
+
} & {
|
|
950
|
+
userId: z.ZodString;
|
|
951
|
+
channel: z.ZodLiteral<"email">;
|
|
952
|
+
granted: z.ZodBoolean;
|
|
953
|
+
source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
|
|
954
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
955
|
+
companyId: z.ZodString;
|
|
956
|
+
} & {
|
|
957
|
+
userId: z.ZodString;
|
|
958
|
+
channel: z.ZodLiteral<"email">;
|
|
959
|
+
granted: z.ZodBoolean;
|
|
960
|
+
source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
|
|
961
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
962
|
+
"engagement.report.decided": z.ZodObject<{
|
|
963
|
+
companyId: z.ZodString;
|
|
964
|
+
} & {
|
|
965
|
+
reportId: z.ZodString;
|
|
966
|
+
targetType: z.ZodEnum<["review", "product"]>;
|
|
967
|
+
targetId: z.ZodString;
|
|
968
|
+
decision: z.ZodEnum<["upheld", "dismissed"]>;
|
|
969
|
+
action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
|
|
970
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
971
|
+
companyId: z.ZodString;
|
|
972
|
+
} & {
|
|
973
|
+
reportId: z.ZodString;
|
|
974
|
+
targetType: z.ZodEnum<["review", "product"]>;
|
|
975
|
+
targetId: z.ZodString;
|
|
976
|
+
decision: z.ZodEnum<["upheld", "dismissed"]>;
|
|
977
|
+
action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
|
|
978
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
979
|
+
companyId: z.ZodString;
|
|
980
|
+
} & {
|
|
981
|
+
reportId: z.ZodString;
|
|
982
|
+
targetType: z.ZodEnum<["review", "product"]>;
|
|
983
|
+
targetId: z.ZodString;
|
|
984
|
+
decision: z.ZodEnum<["upheld", "dismissed"]>;
|
|
985
|
+
action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
|
|
986
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
987
|
+
"engagement.review.created": z.ZodObject<{
|
|
988
|
+
companyId: z.ZodString;
|
|
989
|
+
} & {
|
|
990
|
+
reviewId: z.ZodString;
|
|
991
|
+
productId: z.ZodString;
|
|
992
|
+
userId: z.ZodString;
|
|
993
|
+
rating: z.ZodNumber;
|
|
994
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
995
|
+
companyId: z.ZodString;
|
|
996
|
+
} & {
|
|
997
|
+
reviewId: z.ZodString;
|
|
998
|
+
productId: z.ZodString;
|
|
999
|
+
userId: z.ZodString;
|
|
1000
|
+
rating: z.ZodNumber;
|
|
1001
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1002
|
+
companyId: z.ZodString;
|
|
1003
|
+
} & {
|
|
1004
|
+
reviewId: z.ZodString;
|
|
1005
|
+
productId: z.ZodString;
|
|
1006
|
+
userId: z.ZodString;
|
|
1007
|
+
rating: z.ZodNumber;
|
|
1008
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1009
|
+
"engagement.review.hidden": z.ZodObject<{
|
|
1010
|
+
companyId: z.ZodString;
|
|
1011
|
+
} & {
|
|
1012
|
+
reviewId: z.ZodString;
|
|
1013
|
+
productId: z.ZodString;
|
|
1014
|
+
hidden: z.ZodBoolean;
|
|
1015
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1016
|
+
companyId: z.ZodString;
|
|
1017
|
+
} & {
|
|
1018
|
+
reviewId: z.ZodString;
|
|
1019
|
+
productId: z.ZodString;
|
|
1020
|
+
hidden: z.ZodBoolean;
|
|
1021
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1022
|
+
companyId: z.ZodString;
|
|
1023
|
+
} & {
|
|
1024
|
+
reviewId: z.ZodString;
|
|
1025
|
+
productId: z.ZodString;
|
|
1026
|
+
hidden: z.ZodBoolean;
|
|
1027
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1028
|
+
"engagement.review.rating_changed": z.ZodObject<{
|
|
1029
|
+
companyId: z.ZodString;
|
|
1030
|
+
} & {
|
|
1031
|
+
productId: z.ZodString;
|
|
1032
|
+
ratingAvg: z.ZodString;
|
|
1033
|
+
ratingCount: z.ZodNumber;
|
|
1034
|
+
ratingVersion: z.ZodNumber;
|
|
1035
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1036
|
+
companyId: z.ZodString;
|
|
1037
|
+
} & {
|
|
1038
|
+
productId: z.ZodString;
|
|
1039
|
+
ratingAvg: z.ZodString;
|
|
1040
|
+
ratingCount: z.ZodNumber;
|
|
1041
|
+
ratingVersion: z.ZodNumber;
|
|
1042
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1043
|
+
companyId: z.ZodString;
|
|
1044
|
+
} & {
|
|
1045
|
+
productId: z.ZodString;
|
|
1046
|
+
ratingAvg: z.ZodString;
|
|
1047
|
+
ratingCount: z.ZodNumber;
|
|
1048
|
+
ratingVersion: z.ZodNumber;
|
|
1049
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1050
|
+
"promotion.coupon.redeemed": z.ZodObject<{
|
|
1051
|
+
companyId: z.ZodString;
|
|
1052
|
+
} & {
|
|
1053
|
+
couponId: z.ZodString;
|
|
1054
|
+
redemptionId: z.ZodString;
|
|
1055
|
+
orderId: z.ZodString;
|
|
1056
|
+
userId: z.ZodString;
|
|
1057
|
+
discountAmount: z.ZodString;
|
|
1058
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1059
|
+
companyId: z.ZodString;
|
|
1060
|
+
} & {
|
|
1061
|
+
couponId: z.ZodString;
|
|
1062
|
+
redemptionId: z.ZodString;
|
|
1063
|
+
orderId: z.ZodString;
|
|
1064
|
+
userId: z.ZodString;
|
|
1065
|
+
discountAmount: z.ZodString;
|
|
1066
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1067
|
+
companyId: z.ZodString;
|
|
1068
|
+
} & {
|
|
1069
|
+
couponId: z.ZodString;
|
|
1070
|
+
redemptionId: z.ZodString;
|
|
1071
|
+
orderId: z.ZodString;
|
|
1072
|
+
userId: z.ZodString;
|
|
1073
|
+
discountAmount: z.ZodString;
|
|
1074
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1075
|
+
"promotion.campaign.started": z.ZodObject<{
|
|
1076
|
+
companyId: z.ZodString;
|
|
1077
|
+
} & {
|
|
1078
|
+
campaignId: z.ZodString;
|
|
1079
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1080
|
+
companyId: z.ZodString;
|
|
1081
|
+
} & {
|
|
1082
|
+
campaignId: z.ZodString;
|
|
1083
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1084
|
+
companyId: z.ZodString;
|
|
1085
|
+
} & {
|
|
1086
|
+
campaignId: z.ZodString;
|
|
1087
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1088
|
+
"promotion.campaign.ended": z.ZodObject<{
|
|
1089
|
+
companyId: z.ZodString;
|
|
1090
|
+
} & {
|
|
1091
|
+
campaignId: z.ZodString;
|
|
1092
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1093
|
+
companyId: z.ZodString;
|
|
1094
|
+
} & {
|
|
1095
|
+
campaignId: z.ZodString;
|
|
1096
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1097
|
+
companyId: z.ZodString;
|
|
1098
|
+
} & {
|
|
1099
|
+
campaignId: z.ZodString;
|
|
1100
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
784
1101
|
"shipping.shipment.created": z.ZodObject<{
|
|
785
1102
|
companyId: z.ZodString;
|
|
786
1103
|
} & {
|
|
@@ -2691,6 +3008,44 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
|
|
|
2691
3008
|
namespace: z.ZodString;
|
|
2692
3009
|
reason: z.ZodString;
|
|
2693
3010
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3011
|
+
"promotion.security.socket_rejected": z.ZodObject<{
|
|
3012
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3013
|
+
} & {
|
|
3014
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
3015
|
+
namespace: z.ZodString;
|
|
3016
|
+
reason: z.ZodString;
|
|
3017
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3018
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3019
|
+
} & {
|
|
3020
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
3021
|
+
namespace: z.ZodString;
|
|
3022
|
+
reason: z.ZodString;
|
|
3023
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3024
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3025
|
+
} & {
|
|
3026
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
3027
|
+
namespace: z.ZodString;
|
|
3028
|
+
reason: z.ZodString;
|
|
3029
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3030
|
+
"engagement.security.socket_rejected": z.ZodObject<{
|
|
3031
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3032
|
+
} & {
|
|
3033
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
3034
|
+
namespace: z.ZodString;
|
|
3035
|
+
reason: z.ZodString;
|
|
3036
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3037
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3038
|
+
} & {
|
|
3039
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
3040
|
+
namespace: z.ZodString;
|
|
3041
|
+
reason: z.ZodString;
|
|
3042
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3043
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3044
|
+
} & {
|
|
3045
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
3046
|
+
namespace: z.ZodString;
|
|
3047
|
+
reason: z.ZodString;
|
|
3048
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2694
3049
|
"order.audit.recorded": z.ZodObject<{
|
|
2695
3050
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2696
3051
|
} & {
|
|
@@ -2999,6 +3354,62 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
|
|
|
2999
3354
|
occurredAt: z.ZodString;
|
|
3000
3355
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
3001
3356
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3357
|
+
"promotion.audit.recorded": z.ZodObject<{
|
|
3358
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3359
|
+
} & {
|
|
3360
|
+
action: z.ZodString;
|
|
3361
|
+
entityType: z.ZodString;
|
|
3362
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
3363
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
3364
|
+
occurredAt: z.ZodString;
|
|
3365
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
3366
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3367
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3368
|
+
} & {
|
|
3369
|
+
action: z.ZodString;
|
|
3370
|
+
entityType: z.ZodString;
|
|
3371
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
3372
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
3373
|
+
occurredAt: z.ZodString;
|
|
3374
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
3375
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3376
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3377
|
+
} & {
|
|
3378
|
+
action: z.ZodString;
|
|
3379
|
+
entityType: z.ZodString;
|
|
3380
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
3381
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
3382
|
+
occurredAt: z.ZodString;
|
|
3383
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
3384
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3385
|
+
"engagement.audit.recorded": z.ZodObject<{
|
|
3386
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3387
|
+
} & {
|
|
3388
|
+
action: z.ZodString;
|
|
3389
|
+
entityType: z.ZodString;
|
|
3390
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
3391
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
3392
|
+
occurredAt: z.ZodString;
|
|
3393
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
3394
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3395
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3396
|
+
} & {
|
|
3397
|
+
action: z.ZodString;
|
|
3398
|
+
entityType: z.ZodString;
|
|
3399
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
3400
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
3401
|
+
occurredAt: z.ZodString;
|
|
3402
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
3403
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3404
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3405
|
+
} & {
|
|
3406
|
+
action: z.ZodString;
|
|
3407
|
+
entityType: z.ZodString;
|
|
3408
|
+
entityId: z.ZodNullable<z.ZodString>;
|
|
3409
|
+
outcome: z.ZodEnum<["success", "failure"]>;
|
|
3410
|
+
occurredAt: z.ZodString;
|
|
3411
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
3412
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3002
3413
|
"notification.email.suppressed": z.ZodObject<{
|
|
3003
3414
|
userId: z.ZodString;
|
|
3004
3415
|
reason: z.ZodEnum<["bounce", "complaint"]>;
|
|
@@ -3009,6 +3420,22 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
|
|
|
3009
3420
|
userId: z.ZodString;
|
|
3010
3421
|
reason: z.ZodEnum<["bounce", "complaint"]>;
|
|
3011
3422
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3423
|
+
"notification.email.unsubscribed": z.ZodObject<{
|
|
3424
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3425
|
+
} & {
|
|
3426
|
+
userId: z.ZodString;
|
|
3427
|
+
type: z.ZodString;
|
|
3428
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3429
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3430
|
+
} & {
|
|
3431
|
+
userId: z.ZodString;
|
|
3432
|
+
type: z.ZodString;
|
|
3433
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3434
|
+
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3435
|
+
} & {
|
|
3436
|
+
userId: z.ZodString;
|
|
3437
|
+
type: z.ZodString;
|
|
3438
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3012
3439
|
"usage.sms.sent": z.ZodObject<{
|
|
3013
3440
|
companyId: z.ZodString;
|
|
3014
3441
|
} & {
|
|
@@ -3053,6 +3480,183 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
|
|
|
3053
3480
|
fee: z.ZodString;
|
|
3054
3481
|
currency: z.ZodLiteral<"KES">;
|
|
3055
3482
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3483
|
+
"engagement.customer.created": z.ZodObject<{
|
|
3484
|
+
companyId: z.ZodString;
|
|
3485
|
+
} & {
|
|
3486
|
+
customerId: z.ZodString;
|
|
3487
|
+
userId: z.ZodString;
|
|
3488
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3489
|
+
companyId: z.ZodString;
|
|
3490
|
+
} & {
|
|
3491
|
+
customerId: z.ZodString;
|
|
3492
|
+
userId: z.ZodString;
|
|
3493
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3494
|
+
companyId: z.ZodString;
|
|
3495
|
+
} & {
|
|
3496
|
+
customerId: z.ZodString;
|
|
3497
|
+
userId: z.ZodString;
|
|
3498
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3499
|
+
"engagement.consent.changed": z.ZodObject<{
|
|
3500
|
+
companyId: z.ZodString;
|
|
3501
|
+
} & {
|
|
3502
|
+
userId: z.ZodString;
|
|
3503
|
+
channel: z.ZodLiteral<"email">;
|
|
3504
|
+
granted: z.ZodBoolean;
|
|
3505
|
+
source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
|
|
3506
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3507
|
+
companyId: z.ZodString;
|
|
3508
|
+
} & {
|
|
3509
|
+
userId: z.ZodString;
|
|
3510
|
+
channel: z.ZodLiteral<"email">;
|
|
3511
|
+
granted: z.ZodBoolean;
|
|
3512
|
+
source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
|
|
3513
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3514
|
+
companyId: z.ZodString;
|
|
3515
|
+
} & {
|
|
3516
|
+
userId: z.ZodString;
|
|
3517
|
+
channel: z.ZodLiteral<"email">;
|
|
3518
|
+
granted: z.ZodBoolean;
|
|
3519
|
+
source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
|
|
3520
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3521
|
+
"engagement.report.decided": z.ZodObject<{
|
|
3522
|
+
companyId: z.ZodString;
|
|
3523
|
+
} & {
|
|
3524
|
+
reportId: z.ZodString;
|
|
3525
|
+
targetType: z.ZodEnum<["review", "product"]>;
|
|
3526
|
+
targetId: z.ZodString;
|
|
3527
|
+
decision: z.ZodEnum<["upheld", "dismissed"]>;
|
|
3528
|
+
action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
|
|
3529
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3530
|
+
companyId: z.ZodString;
|
|
3531
|
+
} & {
|
|
3532
|
+
reportId: z.ZodString;
|
|
3533
|
+
targetType: z.ZodEnum<["review", "product"]>;
|
|
3534
|
+
targetId: z.ZodString;
|
|
3535
|
+
decision: z.ZodEnum<["upheld", "dismissed"]>;
|
|
3536
|
+
action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
|
|
3537
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3538
|
+
companyId: z.ZodString;
|
|
3539
|
+
} & {
|
|
3540
|
+
reportId: z.ZodString;
|
|
3541
|
+
targetType: z.ZodEnum<["review", "product"]>;
|
|
3542
|
+
targetId: z.ZodString;
|
|
3543
|
+
decision: z.ZodEnum<["upheld", "dismissed"]>;
|
|
3544
|
+
action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
|
|
3545
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3546
|
+
"engagement.review.created": z.ZodObject<{
|
|
3547
|
+
companyId: z.ZodString;
|
|
3548
|
+
} & {
|
|
3549
|
+
reviewId: z.ZodString;
|
|
3550
|
+
productId: z.ZodString;
|
|
3551
|
+
userId: z.ZodString;
|
|
3552
|
+
rating: z.ZodNumber;
|
|
3553
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3554
|
+
companyId: z.ZodString;
|
|
3555
|
+
} & {
|
|
3556
|
+
reviewId: z.ZodString;
|
|
3557
|
+
productId: z.ZodString;
|
|
3558
|
+
userId: z.ZodString;
|
|
3559
|
+
rating: z.ZodNumber;
|
|
3560
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3561
|
+
companyId: z.ZodString;
|
|
3562
|
+
} & {
|
|
3563
|
+
reviewId: z.ZodString;
|
|
3564
|
+
productId: z.ZodString;
|
|
3565
|
+
userId: z.ZodString;
|
|
3566
|
+
rating: z.ZodNumber;
|
|
3567
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3568
|
+
"engagement.review.hidden": z.ZodObject<{
|
|
3569
|
+
companyId: z.ZodString;
|
|
3570
|
+
} & {
|
|
3571
|
+
reviewId: z.ZodString;
|
|
3572
|
+
productId: z.ZodString;
|
|
3573
|
+
hidden: z.ZodBoolean;
|
|
3574
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3575
|
+
companyId: z.ZodString;
|
|
3576
|
+
} & {
|
|
3577
|
+
reviewId: z.ZodString;
|
|
3578
|
+
productId: z.ZodString;
|
|
3579
|
+
hidden: z.ZodBoolean;
|
|
3580
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3581
|
+
companyId: z.ZodString;
|
|
3582
|
+
} & {
|
|
3583
|
+
reviewId: z.ZodString;
|
|
3584
|
+
productId: z.ZodString;
|
|
3585
|
+
hidden: z.ZodBoolean;
|
|
3586
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3587
|
+
"engagement.review.rating_changed": z.ZodObject<{
|
|
3588
|
+
companyId: z.ZodString;
|
|
3589
|
+
} & {
|
|
3590
|
+
productId: z.ZodString;
|
|
3591
|
+
ratingAvg: z.ZodString;
|
|
3592
|
+
ratingCount: z.ZodNumber;
|
|
3593
|
+
ratingVersion: z.ZodNumber;
|
|
3594
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3595
|
+
companyId: z.ZodString;
|
|
3596
|
+
} & {
|
|
3597
|
+
productId: z.ZodString;
|
|
3598
|
+
ratingAvg: z.ZodString;
|
|
3599
|
+
ratingCount: z.ZodNumber;
|
|
3600
|
+
ratingVersion: z.ZodNumber;
|
|
3601
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3602
|
+
companyId: z.ZodString;
|
|
3603
|
+
} & {
|
|
3604
|
+
productId: z.ZodString;
|
|
3605
|
+
ratingAvg: z.ZodString;
|
|
3606
|
+
ratingCount: z.ZodNumber;
|
|
3607
|
+
ratingVersion: z.ZodNumber;
|
|
3608
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3609
|
+
"promotion.coupon.redeemed": z.ZodObject<{
|
|
3610
|
+
companyId: z.ZodString;
|
|
3611
|
+
} & {
|
|
3612
|
+
couponId: z.ZodString;
|
|
3613
|
+
redemptionId: z.ZodString;
|
|
3614
|
+
orderId: z.ZodString;
|
|
3615
|
+
userId: z.ZodString;
|
|
3616
|
+
discountAmount: z.ZodString;
|
|
3617
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3618
|
+
companyId: z.ZodString;
|
|
3619
|
+
} & {
|
|
3620
|
+
couponId: z.ZodString;
|
|
3621
|
+
redemptionId: z.ZodString;
|
|
3622
|
+
orderId: z.ZodString;
|
|
3623
|
+
userId: z.ZodString;
|
|
3624
|
+
discountAmount: z.ZodString;
|
|
3625
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3626
|
+
companyId: z.ZodString;
|
|
3627
|
+
} & {
|
|
3628
|
+
couponId: z.ZodString;
|
|
3629
|
+
redemptionId: z.ZodString;
|
|
3630
|
+
orderId: z.ZodString;
|
|
3631
|
+
userId: z.ZodString;
|
|
3632
|
+
discountAmount: z.ZodString;
|
|
3633
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3634
|
+
"promotion.campaign.started": z.ZodObject<{
|
|
3635
|
+
companyId: z.ZodString;
|
|
3636
|
+
} & {
|
|
3637
|
+
campaignId: z.ZodString;
|
|
3638
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3639
|
+
companyId: z.ZodString;
|
|
3640
|
+
} & {
|
|
3641
|
+
campaignId: z.ZodString;
|
|
3642
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3643
|
+
companyId: z.ZodString;
|
|
3644
|
+
} & {
|
|
3645
|
+
campaignId: z.ZodString;
|
|
3646
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3647
|
+
"promotion.campaign.ended": z.ZodObject<{
|
|
3648
|
+
companyId: z.ZodString;
|
|
3649
|
+
} & {
|
|
3650
|
+
campaignId: z.ZodString;
|
|
3651
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3652
|
+
companyId: z.ZodString;
|
|
3653
|
+
} & {
|
|
3654
|
+
campaignId: z.ZodString;
|
|
3655
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3656
|
+
companyId: z.ZodString;
|
|
3657
|
+
} & {
|
|
3658
|
+
campaignId: z.ZodString;
|
|
3659
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3056
3660
|
"shipping.shipment.created": z.ZodObject<{
|
|
3057
3661
|
companyId: z.ZodString;
|
|
3058
3662
|
} & {
|
|
@@ -4576,7 +5180,7 @@ export type EventPayload<K extends RoutingKey> = z.output<(typeof MESSAGE_SCHEMA
|
|
|
4576
5180
|
/** What a producer passes for a routing key (before defaults). */
|
|
4577
5181
|
export type EventPayloadInput<K extends RoutingKey> = z.input<(typeof MESSAGE_SCHEMAS)[K]>;
|
|
4578
5182
|
/** Every catalogued routing key. */
|
|
4579
|
-
export declare const ALL_ROUTING_KEYS: readonly ("order.audit.recorded" | "payment.audit.recorded" | "shipping.audit.recorded" | "store.audit.recorded" | "auth.audit.recorded" | "gateway.audit.recorded" | "catalog.audit.recorded" | "media.audit.recorded" | "cart.audit.recorded" | "notification.audit.recorded" | "reporting.audit.recorded" | "auth.user.registered" | "auth.user.verified" | "auth.user.password_reset_requested" | "auth.user.password_changed" | "auth.user.email_changed" | "auth.user.deleted" | "auth.user.data_export_requested" | "auth.user.authz_changed" | "auth.company.created" | "auth.company.updated" | "auth.company.suspended" | "auth.company.reactivated" | "auth.company.closed" | "auth.staff.invited" | "auth.staff.joined" | "auth.staff.removed" | "auth.membership.changed" | "auth.role.changed" | "auth.approval.requested" | "auth.approval.approved" | "auth.approval.rejected" | "auth.approval.expired" | "auth.approval.executed" | "auth.approval.failed" | "cart.cart.updated" | "catalog.product.created" | "catalog.product.updated" | "catalog.product.deleted" | "catalog.category.updated" | "catalog.inventory.adjusted" | "catalog.inventory.low_stock" | "gateway.security.access_denied" | "gateway.security.rate_limited" | "gateway.security.bad_signature" | "media.file.uploaded" | "media.file.processed" | "notification.send.requested" | "notification.email.suppressed" | "order.security.socket_rejected" | "payment.security.socket_rejected" | "shipping.security.socket_rejected" | "store.security.socket_rejected" | "auth.security.socket_rejected" | "gateway.security.socket_rejected" | "catalog.security.socket_rejected" | "media.security.socket_rejected" | "cart.security.socket_rejected" | "notification.security.socket_rejected" | "reporting.security.socket_rejected" | "order.order.created" | "order.order.paid" | "order.order.status_changed" | "order.order.shipped" | "order.order.delivered" | "order.order.cancelled" | "order.order.expired" | "order.order.refund_requested" | "order.issue.opened" | "order.issue.replied" | "order.issue.escalated" | "order.issue.resolved" | "payment.payment.initiated" | "payment.payment.succeeded" | "payment.payment.failed" | "payment.payment.expired" | "payment.refund.completed" | "payment.refund.failed" | "payment.billing.state_changed" | "payment.payout.scheduled" | "payment.payout.paid" | "payment.payout.failed" | "auth.security.login_succeeded" | "auth.security.login_failed" | "auth.security.otp_failed" | "auth.security.step_up" | "auth.security.account_locked" | "auth.security.sessions_revoked" | "auth.security.session_revoked" | "auth.security.role_changed" | "auth.security.login_risky" | "auth.security.login_unrecognized" | "auth.security.alert_raised" | "shipping.shipment.created" | "shipping.shipment.dispatched" | "shipping.shipment.delivered" | "shipping.shipment.failed" | "store.shop.provisioned" | "store.settings.changed" | "store.theme.published" | "store.domain.changed" | "store.domain.verified" | "store.domain.failed" | "usage.sms.sent" | "usage.delivery.booked")[];
|
|
5183
|
+
export declare const ALL_ROUTING_KEYS: readonly ("order.audit.recorded" | "payment.audit.recorded" | "shipping.audit.recorded" | "store.audit.recorded" | "auth.audit.recorded" | "gateway.audit.recorded" | "catalog.audit.recorded" | "media.audit.recorded" | "cart.audit.recorded" | "notification.audit.recorded" | "reporting.audit.recorded" | "promotion.audit.recorded" | "engagement.audit.recorded" | "auth.user.registered" | "auth.user.verified" | "auth.user.password_reset_requested" | "auth.user.password_changed" | "auth.user.email_changed" | "auth.user.deleted" | "auth.user.data_export_requested" | "auth.user.authz_changed" | "auth.company.created" | "auth.company.updated" | "auth.company.suspended" | "auth.company.reactivated" | "auth.company.closed" | "auth.staff.invited" | "auth.staff.joined" | "auth.staff.removed" | "auth.membership.changed" | "auth.role.changed" | "auth.approval.requested" | "auth.approval.approved" | "auth.approval.rejected" | "auth.approval.expired" | "auth.approval.executed" | "auth.approval.failed" | "cart.cart.updated" | "catalog.product.created" | "catalog.product.updated" | "catalog.product.deleted" | "catalog.category.updated" | "catalog.inventory.adjusted" | "catalog.inventory.low_stock" | "engagement.customer.created" | "engagement.consent.changed" | "engagement.report.decided" | "engagement.review.created" | "engagement.review.hidden" | "engagement.review.rating_changed" | "gateway.security.access_denied" | "gateway.security.rate_limited" | "gateway.security.bad_signature" | "media.file.uploaded" | "media.file.processed" | "notification.send.requested" | "notification.email.suppressed" | "notification.email.unsubscribed" | "order.security.socket_rejected" | "payment.security.socket_rejected" | "shipping.security.socket_rejected" | "store.security.socket_rejected" | "auth.security.socket_rejected" | "gateway.security.socket_rejected" | "catalog.security.socket_rejected" | "media.security.socket_rejected" | "cart.security.socket_rejected" | "notification.security.socket_rejected" | "reporting.security.socket_rejected" | "promotion.security.socket_rejected" | "engagement.security.socket_rejected" | "order.order.created" | "order.order.paid" | "order.order.status_changed" | "order.order.shipped" | "order.order.delivered" | "order.order.cancelled" | "order.order.expired" | "order.order.refund_requested" | "order.issue.opened" | "order.issue.replied" | "order.issue.escalated" | "order.issue.resolved" | "payment.payment.initiated" | "payment.payment.succeeded" | "payment.payment.failed" | "payment.payment.expired" | "payment.refund.completed" | "payment.refund.failed" | "payment.billing.state_changed" | "payment.payout.scheduled" | "payment.payout.paid" | "payment.payout.failed" | "promotion.coupon.redeemed" | "promotion.campaign.started" | "promotion.campaign.ended" | "auth.security.login_succeeded" | "auth.security.login_failed" | "auth.security.otp_failed" | "auth.security.step_up" | "auth.security.account_locked" | "auth.security.sessions_revoked" | "auth.security.session_revoked" | "auth.security.role_changed" | "auth.security.login_risky" | "auth.security.login_unrecognized" | "auth.security.alert_raised" | "shipping.shipment.created" | "shipping.shipment.dispatched" | "shipping.shipment.delivered" | "shipping.shipment.failed" | "store.shop.provisioned" | "store.settings.changed" | "store.theme.published" | "store.domain.changed" | "store.domain.verified" | "store.domain.failed" | "usage.sms.sent" | "usage.delivery.booked")[];
|
|
4580
5184
|
/**
|
|
4581
5185
|
* True when `key` is in the catalogue.
|
|
4582
5186
|
*
|