@heavybit/ecommerce-contracts 0.3.13 → 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 +3 -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/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 +3 -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/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 +494 -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/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 +1 -1
|
@@ -168,6 +168,22 @@ export declare const ROUTING_KEYS: Readonly<{
|
|
|
168
168
|
readonly ended: "promotion.campaign.ended";
|
|
169
169
|
};
|
|
170
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
|
+
};
|
|
171
187
|
readonly usage: {
|
|
172
188
|
readonly sms: {
|
|
173
189
|
readonly sent: "usage.sms.sent";
|
|
@@ -179,6 +195,7 @@ export declare const ROUTING_KEYS: Readonly<{
|
|
|
179
195
|
readonly notification: {
|
|
180
196
|
readonly email: {
|
|
181
197
|
readonly suppressed: "notification.email.suppressed";
|
|
198
|
+
readonly unsubscribed: "notification.email.unsubscribed";
|
|
182
199
|
};
|
|
183
200
|
readonly send: {
|
|
184
201
|
readonly requested: "notification.send.requested";
|
|
@@ -197,6 +214,8 @@ export declare const ROUTING_KEYS: Readonly<{
|
|
|
197
214
|
readonly cart: "cart.audit.recorded";
|
|
198
215
|
readonly notification: "notification.audit.recorded";
|
|
199
216
|
readonly reporting: "reporting.audit.recorded";
|
|
217
|
+
readonly promotion: "promotion.audit.recorded";
|
|
218
|
+
readonly engagement: "engagement.audit.recorded";
|
|
200
219
|
};
|
|
201
220
|
readonly pattern: "*.audit.recorded";
|
|
202
221
|
};
|
|
@@ -213,6 +232,8 @@ export declare const ROUTING_KEYS: Readonly<{
|
|
|
213
232
|
readonly cart: "cart.security.socket_rejected";
|
|
214
233
|
readonly notification: "notification.security.socket_rejected";
|
|
215
234
|
readonly reporting: "reporting.security.socket_rejected";
|
|
235
|
+
readonly promotion: "promotion.security.socket_rejected";
|
|
236
|
+
readonly engagement: "engagement.security.socket_rejected";
|
|
216
237
|
};
|
|
217
238
|
readonly pattern: "*.security.socket_rejected";
|
|
218
239
|
};
|
|
@@ -428,6 +449,44 @@ export declare const EVENT_SCHEMAS: Readonly<{
|
|
|
428
449
|
namespace: z.ZodString;
|
|
429
450
|
reason: z.ZodString;
|
|
430
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">>;
|
|
431
490
|
"order.audit.recorded": z.ZodObject<{
|
|
432
491
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
433
492
|
} & {
|
|
@@ -736,6 +795,62 @@ export declare const EVENT_SCHEMAS: Readonly<{
|
|
|
736
795
|
occurredAt: z.ZodString;
|
|
737
796
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
738
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">>;
|
|
739
854
|
"notification.email.suppressed": z.ZodObject<{
|
|
740
855
|
userId: z.ZodString;
|
|
741
856
|
reason: z.ZodEnum<["bounce", "complaint"]>;
|
|
@@ -746,6 +861,22 @@ export declare const EVENT_SCHEMAS: Readonly<{
|
|
|
746
861
|
userId: z.ZodString;
|
|
747
862
|
reason: z.ZodEnum<["bounce", "complaint"]>;
|
|
748
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">>;
|
|
749
880
|
"usage.sms.sent": z.ZodObject<{
|
|
750
881
|
companyId: z.ZodString;
|
|
751
882
|
} & {
|
|
@@ -790,6 +921,132 @@ export declare const EVENT_SCHEMAS: Readonly<{
|
|
|
790
921
|
fee: z.ZodString;
|
|
791
922
|
currency: z.ZodLiteral<"KES">;
|
|
792
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">>;
|
|
793
1050
|
"promotion.coupon.redeemed": z.ZodObject<{
|
|
794
1051
|
companyId: z.ZodString;
|
|
795
1052
|
} & {
|
|
@@ -2751,6 +3008,44 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
|
|
|
2751
3008
|
namespace: z.ZodString;
|
|
2752
3009
|
reason: z.ZodString;
|
|
2753
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">>;
|
|
2754
3049
|
"order.audit.recorded": z.ZodObject<{
|
|
2755
3050
|
companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2756
3051
|
} & {
|
|
@@ -3059,6 +3354,62 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
|
|
|
3059
3354
|
occurredAt: z.ZodString;
|
|
3060
3355
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
3061
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">>;
|
|
3062
3413
|
"notification.email.suppressed": z.ZodObject<{
|
|
3063
3414
|
userId: z.ZodString;
|
|
3064
3415
|
reason: z.ZodEnum<["bounce", "complaint"]>;
|
|
@@ -3069,6 +3420,22 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
|
|
|
3069
3420
|
userId: z.ZodString;
|
|
3070
3421
|
reason: z.ZodEnum<["bounce", "complaint"]>;
|
|
3071
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">>;
|
|
3072
3439
|
"usage.sms.sent": z.ZodObject<{
|
|
3073
3440
|
companyId: z.ZodString;
|
|
3074
3441
|
} & {
|
|
@@ -3113,6 +3480,132 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
|
|
|
3113
3480
|
fee: z.ZodString;
|
|
3114
3481
|
currency: z.ZodLiteral<"KES">;
|
|
3115
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">>;
|
|
3116
3609
|
"promotion.coupon.redeemed": z.ZodObject<{
|
|
3117
3610
|
companyId: z.ZodString;
|
|
3118
3611
|
} & {
|
|
@@ -4687,7 +5180,7 @@ export type EventPayload<K extends RoutingKey> = z.output<(typeof MESSAGE_SCHEMA
|
|
|
4687
5180
|
/** What a producer passes for a routing key (before defaults). */
|
|
4688
5181
|
export type EventPayloadInput<K extends RoutingKey> = z.input<(typeof MESSAGE_SCHEMAS)[K]>;
|
|
4689
5182
|
/** Every catalogued routing key. */
|
|
4690
|
-
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" | "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")[];
|
|
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")[];
|
|
4691
5184
|
/**
|
|
4692
5185
|
* True when `key` is in the catalogue.
|
|
4693
5186
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAC;AA0B9C,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC9F,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAu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