@hobenakicoffee/libraries 6.16.0 → 6.18.0
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/package.json +1 -1
- package/src/constants/notifications.ts +12 -1
- package/src/types/index.ts +11 -1
- package/src/types/supabase.ts +7 -0
package/package.json
CHANGED
|
@@ -6,10 +6,21 @@ export const NotificationTypes = {
|
|
|
6
6
|
MEMBERSHIP_EXPIRING: "membership.expiring",
|
|
7
7
|
WITHDRAWAL_STATUS_CHANGED: "withdrawal.status_changed",
|
|
8
8
|
PLATFORM_SUBSCRIPTION_EXPIRING: "platform_subscription.expiring",
|
|
9
|
+
PLATFORM_SUBSCRIPTION_ACTIVATED: "platform_subscription.activated",
|
|
9
10
|
KYC_STATUS_CHANGED: "kyc.status_changed",
|
|
11
|
+
NEWSLETTER_POST_STATUS: "newsletter.post_status",
|
|
12
|
+
SHOP_PRODUCT_STATUS: "shop.product_status",
|
|
13
|
+
SHOP_CATEGORY_STATUS: "shop.category_status",
|
|
14
|
+
SHOP_ORDER_SHIPPED: "shop.order_shipped",
|
|
15
|
+
SHOP_ORDER_DELIVERED: "shop.order_delivered",
|
|
16
|
+
SHOP_ORDER_CANCELLED: "shop.order_cancelled",
|
|
10
17
|
} as const;
|
|
11
18
|
|
|
12
19
|
export type NotificationType =
|
|
13
20
|
(typeof NotificationTypes)[keyof typeof NotificationTypes];
|
|
14
21
|
|
|
15
|
-
export type NotificationCategory =
|
|
22
|
+
export type NotificationCategory =
|
|
23
|
+
| "earnings"
|
|
24
|
+
| "engagement"
|
|
25
|
+
| "account"
|
|
26
|
+
| "orders";
|
package/src/types/index.ts
CHANGED
|
@@ -19,7 +19,11 @@ export type ActivityType =
|
|
|
19
19
|
| "post_rejected"
|
|
20
20
|
| "kyc_approved"
|
|
21
21
|
| "kyc_resubmit_requested"
|
|
22
|
-
| "report_status_updated"
|
|
22
|
+
| "report_status_updated"
|
|
23
|
+
| "post_status_updated"
|
|
24
|
+
| "order_item_shipped"
|
|
25
|
+
| "order_item_delivered"
|
|
26
|
+
| "order_item_cancelled";
|
|
23
27
|
|
|
24
28
|
export type ActivityMetadata = {
|
|
25
29
|
type?: string;
|
|
@@ -67,6 +71,12 @@ export type ActivityMetadata = {
|
|
|
67
71
|
new_status?: string;
|
|
68
72
|
resolution_note?: string;
|
|
69
73
|
notification_type?: string;
|
|
74
|
+
order_id?: string;
|
|
75
|
+
order_number?: string;
|
|
76
|
+
carrier?: string;
|
|
77
|
+
tracking_number?: string;
|
|
78
|
+
tracking_url?: string;
|
|
79
|
+
cancellation_reason?: string;
|
|
70
80
|
action?: "follow" | "unfollow";
|
|
71
81
|
};
|
|
72
82
|
|
package/src/types/supabase.ts
CHANGED
|
@@ -4311,6 +4311,13 @@ export type Database = {
|
|
|
4311
4311
|
Args: { p_enabled: boolean; p_target_user_id?: string };
|
|
4312
4312
|
Returns: Json;
|
|
4313
4313
|
};
|
|
4314
|
+
update_newsletter_post_status: {
|
|
4315
|
+
Args: {
|
|
4316
|
+
p_new_status: Database["public"]["Enums"]["post_status_enum"];
|
|
4317
|
+
p_post_id: string;
|
|
4318
|
+
};
|
|
4319
|
+
Returns: Json;
|
|
4320
|
+
};
|
|
4314
4321
|
update_notification_email_template: {
|
|
4315
4322
|
Args: { p_html_body: string; p_key: string; p_subject: string };
|
|
4316
4323
|
Returns: Json;
|