@infuro/cms-core 1.0.59 → 1.0.61
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/admin.cjs +1020 -83
- package/dist/admin.js +1021 -84
- package/dist/api.cjs +38 -38
- package/dist/api.js +5 -5
- package/dist/auth.cjs +51 -51
- package/dist/auth.js +3 -3
- package/dist/{chunk-3EOM4V2M.cjs → chunk-4U6DATGZ.cjs} +7 -7
- package/dist/{chunk-BNKZNLEX.js → chunk-6DBDJ4VD.js} +2 -2
- package/dist/{chunk-UQWZUZ5X.cjs → chunk-73WVHINE.cjs} +30 -6
- package/dist/{chunk-UCKN4BBY.cjs → chunk-77I3KS7V.cjs} +4 -1
- package/dist/{chunk-MCCA7WLQ.cjs → chunk-CNAHVRRU.cjs} +533 -167
- package/dist/{chunk-77NUXO6A.cjs → chunk-J7FMZK66.cjs} +10 -2
- package/dist/{chunk-BC22I7C7.cjs → chunk-KM2I6AFP.cjs} +9 -9
- package/dist/{chunk-JIWUVQ6B.js → chunk-MVHDC3XF.js} +10 -2
- package/dist/{chunk-RK5ETF2I.js → chunk-NR44CK5E.js} +1 -1
- package/dist/{chunk-MXIWUFBP.js → chunk-O2642WVS.js} +28 -4
- package/dist/{chunk-HCIRL37O.js → chunk-T3HPSF7K.js} +4 -1
- package/dist/{chunk-BTUEUA5H.js → chunk-UHT4INVW.js} +453 -87
- package/dist/{chunk-HYW3MUXT.js → chunk-URN7GS23.js} +30 -16
- package/dist/{chunk-HXLC56ZK.cjs → chunk-YSYX4GUD.cjs} +32 -18
- package/dist/{emit-order-notification-trigger-HZQPPSFB.js → emit-order-notification-trigger-CZU3V2WE.js} +2 -2
- package/dist/{emit-order-notification-trigger-NR3VN6C6.cjs → emit-order-notification-trigger-TNEZOYEE.cjs} +4 -4
- package/dist/index.cjs +614 -333
- package/dist/index.d.cts +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +329 -48
- package/dist/migrations/1782800000000-AddPaymentSuccessFailedRefundTriggers.ts +32 -0
- package/dist/migrations/1782900000000-AddEnableTurnstileToForms.ts +29 -0
- package/dist/{order-notification-dispatcher-2FCZFZUD.cjs → order-notification-dispatcher-KJVGLK5E.cjs} +5 -5
- package/dist/{order-notification-dispatcher-64WDCHHG.js → order-notification-dispatcher-ZSFKEYMP.js} +2 -2
- package/dist/{rbac-debug-db-6EMIVMGF.js → rbac-debug-db-5R6XFPSV.js} +1 -1
- package/dist/{rbac-debug-db-6PWTLBEL.cjs → rbac-debug-db-JKK2MCWF.cjs} +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2636,6 +2636,7 @@ declare class Form {
|
|
|
2636
2636
|
campaign: string | null;
|
|
2637
2637
|
slug: string;
|
|
2638
2638
|
published: boolean;
|
|
2639
|
+
enableTurnstile: boolean;
|
|
2639
2640
|
createdAt: Date;
|
|
2640
2641
|
updatedAt: Date;
|
|
2641
2642
|
deletedAt: Date | null;
|
|
@@ -2833,6 +2834,9 @@ declare function resendOrderNotification(triggerKey: string, orderId: number, de
|
|
|
2833
2834
|
declare const KNOWN_NOTIFICATION_TRIGGERS: {
|
|
2834
2835
|
readonly ORDER_PLACED: "order_placed";
|
|
2835
2836
|
readonly ORDER_CANCELLED: "order_cancelled";
|
|
2837
|
+
readonly PAYMENT_SUCCESS: "payment_success";
|
|
2838
|
+
readonly PAYMENT_FAILED: "payment_failed";
|
|
2839
|
+
readonly PAYMENT_REFUND_INITIATED: "payment_refund_initiated";
|
|
2836
2840
|
};
|
|
2837
2841
|
interface OrderTriggerPayload {
|
|
2838
2842
|
orderId: number;
|
|
@@ -2864,6 +2868,24 @@ declare const DEFAULT_ORDER_NOTIFICATION_TRIGGER_SEEDS: readonly [{
|
|
|
2864
2868
|
readonly description: "Fires when an order is cancelled (includes refund amount when applicable).";
|
|
2865
2869
|
readonly category: "order";
|
|
2866
2870
|
readonly sortOrder: 2;
|
|
2871
|
+
}, {
|
|
2872
|
+
readonly triggerKey: "payment_success";
|
|
2873
|
+
readonly label: "Payment success";
|
|
2874
|
+
readonly description: "Fires when order is placed and payment status is paid.";
|
|
2875
|
+
readonly category: "order";
|
|
2876
|
+
readonly sortOrder: 3;
|
|
2877
|
+
}, {
|
|
2878
|
+
readonly triggerKey: "payment_failed";
|
|
2879
|
+
readonly label: "Payment failed";
|
|
2880
|
+
readonly description: "Fires when payment status is pending, unpaid, or failed, or when order is cancelled without payment.";
|
|
2881
|
+
readonly category: "order";
|
|
2882
|
+
readonly sortOrder: 4;
|
|
2883
|
+
}, {
|
|
2884
|
+
readonly triggerKey: "payment_refund_initiated";
|
|
2885
|
+
readonly label: "Payment refund initiated";
|
|
2886
|
+
readonly description: "Fires when order is cancelled and its payment status is paid (refund initiated).";
|
|
2887
|
+
readonly category: "order";
|
|
2888
|
+
readonly sortOrder: 5;
|
|
2867
2889
|
}];
|
|
2868
2890
|
|
|
2869
2891
|
/** @deprecated Use DB catalog `order_notification_triggers`; kept for type hints. */
|
|
@@ -2873,6 +2895,15 @@ declare const ORDER_NOTIFICATION_TRIGGERS: readonly [{
|
|
|
2873
2895
|
}, {
|
|
2874
2896
|
readonly key: "order_cancelled";
|
|
2875
2897
|
readonly label: "Order cancelled";
|
|
2898
|
+
}, {
|
|
2899
|
+
readonly key: "payment_success";
|
|
2900
|
+
readonly label: "Payment success";
|
|
2901
|
+
}, {
|
|
2902
|
+
readonly key: "payment_failed";
|
|
2903
|
+
readonly label: "Payment failed";
|
|
2904
|
+
}, {
|
|
2905
|
+
readonly key: "payment_refund_initiated";
|
|
2906
|
+
readonly label: "Payment refund initiated";
|
|
2876
2907
|
}];
|
|
2877
2908
|
type OrderNotificationTriggerKey = (typeof ORDER_NOTIFICATION_TRIGGERS)[number]['key'];
|
|
2878
2909
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2636,6 +2636,7 @@ declare class Form {
|
|
|
2636
2636
|
campaign: string | null;
|
|
2637
2637
|
slug: string;
|
|
2638
2638
|
published: boolean;
|
|
2639
|
+
enableTurnstile: boolean;
|
|
2639
2640
|
createdAt: Date;
|
|
2640
2641
|
updatedAt: Date;
|
|
2641
2642
|
deletedAt: Date | null;
|
|
@@ -2833,6 +2834,9 @@ declare function resendOrderNotification(triggerKey: string, orderId: number, de
|
|
|
2833
2834
|
declare const KNOWN_NOTIFICATION_TRIGGERS: {
|
|
2834
2835
|
readonly ORDER_PLACED: "order_placed";
|
|
2835
2836
|
readonly ORDER_CANCELLED: "order_cancelled";
|
|
2837
|
+
readonly PAYMENT_SUCCESS: "payment_success";
|
|
2838
|
+
readonly PAYMENT_FAILED: "payment_failed";
|
|
2839
|
+
readonly PAYMENT_REFUND_INITIATED: "payment_refund_initiated";
|
|
2836
2840
|
};
|
|
2837
2841
|
interface OrderTriggerPayload {
|
|
2838
2842
|
orderId: number;
|
|
@@ -2864,6 +2868,24 @@ declare const DEFAULT_ORDER_NOTIFICATION_TRIGGER_SEEDS: readonly [{
|
|
|
2864
2868
|
readonly description: "Fires when an order is cancelled (includes refund amount when applicable).";
|
|
2865
2869
|
readonly category: "order";
|
|
2866
2870
|
readonly sortOrder: 2;
|
|
2871
|
+
}, {
|
|
2872
|
+
readonly triggerKey: "payment_success";
|
|
2873
|
+
readonly label: "Payment success";
|
|
2874
|
+
readonly description: "Fires when order is placed and payment status is paid.";
|
|
2875
|
+
readonly category: "order";
|
|
2876
|
+
readonly sortOrder: 3;
|
|
2877
|
+
}, {
|
|
2878
|
+
readonly triggerKey: "payment_failed";
|
|
2879
|
+
readonly label: "Payment failed";
|
|
2880
|
+
readonly description: "Fires when payment status is pending, unpaid, or failed, or when order is cancelled without payment.";
|
|
2881
|
+
readonly category: "order";
|
|
2882
|
+
readonly sortOrder: 4;
|
|
2883
|
+
}, {
|
|
2884
|
+
readonly triggerKey: "payment_refund_initiated";
|
|
2885
|
+
readonly label: "Payment refund initiated";
|
|
2886
|
+
readonly description: "Fires when order is cancelled and its payment status is paid (refund initiated).";
|
|
2887
|
+
readonly category: "order";
|
|
2888
|
+
readonly sortOrder: 5;
|
|
2867
2889
|
}];
|
|
2868
2890
|
|
|
2869
2891
|
/** @deprecated Use DB catalog `order_notification_triggers`; kept for type hints. */
|
|
@@ -2873,6 +2895,15 @@ declare const ORDER_NOTIFICATION_TRIGGERS: readonly [{
|
|
|
2873
2895
|
}, {
|
|
2874
2896
|
readonly key: "order_cancelled";
|
|
2875
2897
|
readonly label: "Order cancelled";
|
|
2898
|
+
}, {
|
|
2899
|
+
readonly key: "payment_success";
|
|
2900
|
+
readonly label: "Payment success";
|
|
2901
|
+
}, {
|
|
2902
|
+
readonly key: "payment_failed";
|
|
2903
|
+
readonly label: "Payment failed";
|
|
2904
|
+
}, {
|
|
2905
|
+
readonly key: "payment_refund_initiated";
|
|
2906
|
+
readonly label: "Payment refund initiated";
|
|
2876
2907
|
}];
|
|
2877
2908
|
type OrderNotificationTriggerKey = (typeof ORDER_NOTIFICATION_TRIGGERS)[number]['key'];
|
|
2878
2909
|
|