@hobenakicoffee/libraries 6.9.0 → 6.11.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/types/supabase.ts +148 -25
package/package.json
CHANGED
package/src/types/supabase.ts
CHANGED
|
@@ -478,6 +478,106 @@ export type Database = {
|
|
|
478
478
|
};
|
|
479
479
|
Relationships: [];
|
|
480
480
|
};
|
|
481
|
+
email_notification_queue: {
|
|
482
|
+
Row: {
|
|
483
|
+
activity_id: string;
|
|
484
|
+
attempts: number;
|
|
485
|
+
created_at: string;
|
|
486
|
+
id: number;
|
|
487
|
+
last_error: string | null;
|
|
488
|
+
notification_type_key: string;
|
|
489
|
+
sent_at: string | null;
|
|
490
|
+
status: string;
|
|
491
|
+
user_profile_id: string;
|
|
492
|
+
};
|
|
493
|
+
Insert: {
|
|
494
|
+
activity_id: string;
|
|
495
|
+
attempts?: number;
|
|
496
|
+
created_at?: string;
|
|
497
|
+
id?: never;
|
|
498
|
+
last_error?: string | null;
|
|
499
|
+
notification_type_key: string;
|
|
500
|
+
sent_at?: string | null;
|
|
501
|
+
status?: string;
|
|
502
|
+
user_profile_id: string;
|
|
503
|
+
};
|
|
504
|
+
Update: {
|
|
505
|
+
activity_id?: string;
|
|
506
|
+
attempts?: number;
|
|
507
|
+
created_at?: string;
|
|
508
|
+
id?: never;
|
|
509
|
+
last_error?: string | null;
|
|
510
|
+
notification_type_key?: string;
|
|
511
|
+
sent_at?: string | null;
|
|
512
|
+
status?: string;
|
|
513
|
+
user_profile_id?: string;
|
|
514
|
+
};
|
|
515
|
+
Relationships: [
|
|
516
|
+
{
|
|
517
|
+
foreignKeyName: "email_notification_queue_activity_id_fkey";
|
|
518
|
+
columns: ["activity_id"];
|
|
519
|
+
isOneToOne: false;
|
|
520
|
+
referencedRelation: "activities";
|
|
521
|
+
referencedColumns: ["id"];
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
foreignKeyName: "email_notification_queue_notification_type_key_fkey";
|
|
525
|
+
columns: ["notification_type_key"];
|
|
526
|
+
isOneToOne: false;
|
|
527
|
+
referencedRelation: "notification_types";
|
|
528
|
+
referencedColumns: ["key"];
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
foreignKeyName: "email_notification_queue_user_profile_id_fkey";
|
|
532
|
+
columns: ["user_profile_id"];
|
|
533
|
+
isOneToOne: false;
|
|
534
|
+
referencedRelation: "profiles";
|
|
535
|
+
referencedColumns: ["id"];
|
|
536
|
+
},
|
|
537
|
+
];
|
|
538
|
+
};
|
|
539
|
+
email_unsubscribe_feedback: {
|
|
540
|
+
Row: {
|
|
541
|
+
comment: string | null;
|
|
542
|
+
created_at: string;
|
|
543
|
+
id: number;
|
|
544
|
+
notification_type_key: string | null;
|
|
545
|
+
reason: string | null;
|
|
546
|
+
user_id: string;
|
|
547
|
+
};
|
|
548
|
+
Insert: {
|
|
549
|
+
comment?: string | null;
|
|
550
|
+
created_at?: string;
|
|
551
|
+
id?: never;
|
|
552
|
+
notification_type_key?: string | null;
|
|
553
|
+
reason?: string | null;
|
|
554
|
+
user_id: string;
|
|
555
|
+
};
|
|
556
|
+
Update: {
|
|
557
|
+
comment?: string | null;
|
|
558
|
+
created_at?: string;
|
|
559
|
+
id?: never;
|
|
560
|
+
notification_type_key?: string | null;
|
|
561
|
+
reason?: string | null;
|
|
562
|
+
user_id?: string;
|
|
563
|
+
};
|
|
564
|
+
Relationships: [
|
|
565
|
+
{
|
|
566
|
+
foreignKeyName: "email_unsubscribe_feedback_notification_type_key_fkey";
|
|
567
|
+
columns: ["notification_type_key"];
|
|
568
|
+
isOneToOne: false;
|
|
569
|
+
referencedRelation: "notification_types";
|
|
570
|
+
referencedColumns: ["key"];
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
foreignKeyName: "email_unsubscribe_feedback_user_id_fkey";
|
|
574
|
+
columns: ["user_id"];
|
|
575
|
+
isOneToOne: false;
|
|
576
|
+
referencedRelation: "profiles";
|
|
577
|
+
referencedColumns: ["id"];
|
|
578
|
+
},
|
|
579
|
+
];
|
|
580
|
+
};
|
|
481
581
|
feed_item_bookmarks: {
|
|
482
582
|
Row: {
|
|
483
583
|
created_at: string;
|
|
@@ -1113,30 +1213,6 @@ export type Database = {
|
|
|
1113
1213
|
};
|
|
1114
1214
|
Relationships: [];
|
|
1115
1215
|
};
|
|
1116
|
-
messages_2026_07: {
|
|
1117
|
-
Row: {
|
|
1118
|
-
content: string;
|
|
1119
|
-
conversation_id: string;
|
|
1120
|
-
created_at: string;
|
|
1121
|
-
id: number;
|
|
1122
|
-
sender_id: string;
|
|
1123
|
-
};
|
|
1124
|
-
Insert: {
|
|
1125
|
-
content: string;
|
|
1126
|
-
conversation_id: string;
|
|
1127
|
-
created_at?: string;
|
|
1128
|
-
id?: number;
|
|
1129
|
-
sender_id: string;
|
|
1130
|
-
};
|
|
1131
|
-
Update: {
|
|
1132
|
-
content?: string;
|
|
1133
|
-
conversation_id?: string;
|
|
1134
|
-
created_at?: string;
|
|
1135
|
-
id?: number;
|
|
1136
|
-
sender_id?: string;
|
|
1137
|
-
};
|
|
1138
|
-
Relationships: [];
|
|
1139
|
-
};
|
|
1140
1216
|
messages_default: {
|
|
1141
1217
|
Row: {
|
|
1142
1218
|
content: string;
|
|
@@ -1486,6 +1562,11 @@ export type Database = {
|
|
|
1486
1562
|
created_at: string;
|
|
1487
1563
|
default_enabled: boolean;
|
|
1488
1564
|
description: string | null;
|
|
1565
|
+
email_html_body: string | null;
|
|
1566
|
+
email_placeholders: string | null;
|
|
1567
|
+
email_subject: string | null;
|
|
1568
|
+
email_updated_at: string | null;
|
|
1569
|
+
email_updated_by: string | null;
|
|
1489
1570
|
is_active: boolean;
|
|
1490
1571
|
key: string;
|
|
1491
1572
|
label: string;
|
|
@@ -1496,6 +1577,11 @@ export type Database = {
|
|
|
1496
1577
|
created_at?: string;
|
|
1497
1578
|
default_enabled?: boolean;
|
|
1498
1579
|
description?: string | null;
|
|
1580
|
+
email_html_body?: string | null;
|
|
1581
|
+
email_placeholders?: string | null;
|
|
1582
|
+
email_subject?: string | null;
|
|
1583
|
+
email_updated_at?: string | null;
|
|
1584
|
+
email_updated_by?: string | null;
|
|
1499
1585
|
is_active?: boolean;
|
|
1500
1586
|
key: string;
|
|
1501
1587
|
label: string;
|
|
@@ -1506,12 +1592,25 @@ export type Database = {
|
|
|
1506
1592
|
created_at?: string;
|
|
1507
1593
|
default_enabled?: boolean;
|
|
1508
1594
|
description?: string | null;
|
|
1595
|
+
email_html_body?: string | null;
|
|
1596
|
+
email_placeholders?: string | null;
|
|
1597
|
+
email_subject?: string | null;
|
|
1598
|
+
email_updated_at?: string | null;
|
|
1599
|
+
email_updated_by?: string | null;
|
|
1509
1600
|
is_active?: boolean;
|
|
1510
1601
|
key?: string;
|
|
1511
1602
|
label?: string;
|
|
1512
1603
|
service?: string;
|
|
1513
1604
|
};
|
|
1514
|
-
Relationships: [
|
|
1605
|
+
Relationships: [
|
|
1606
|
+
{
|
|
1607
|
+
foreignKeyName: "notification_types_email_updated_by_fkey";
|
|
1608
|
+
columns: ["email_updated_by"];
|
|
1609
|
+
isOneToOne: false;
|
|
1610
|
+
referencedRelation: "profiles";
|
|
1611
|
+
referencedColumns: ["id"];
|
|
1612
|
+
},
|
|
1613
|
+
];
|
|
1515
1614
|
};
|
|
1516
1615
|
payout_methods: {
|
|
1517
1616
|
Row: {
|
|
@@ -3333,6 +3432,16 @@ export type Database = {
|
|
|
3333
3432
|
};
|
|
3334
3433
|
Returns: undefined;
|
|
3335
3434
|
};
|
|
3435
|
+
apply_unsubscribe: {
|
|
3436
|
+
Args: {
|
|
3437
|
+
p_comment: string;
|
|
3438
|
+
p_disable_all: boolean;
|
|
3439
|
+
p_reason: string;
|
|
3440
|
+
p_type_keys: string[];
|
|
3441
|
+
p_user_id: string;
|
|
3442
|
+
};
|
|
3443
|
+
Returns: Json;
|
|
3444
|
+
};
|
|
3336
3445
|
approve_newsletter_post: { Args: { p_post_id: string }; Returns: Json };
|
|
3337
3446
|
approve_shop_category: { Args: { p_category_id: string }; Returns: Json };
|
|
3338
3447
|
approve_shop_product: { Args: { p_product_id: string }; Returns: Json };
|
|
@@ -3370,6 +3479,7 @@ export type Database = {
|
|
|
3370
3479
|
Args: { p_profile_id: string };
|
|
3371
3480
|
Returns: Json;
|
|
3372
3481
|
};
|
|
3482
|
+
cleanup_old_email_notification_queue: { Args: never; Returns: undefined };
|
|
3373
3483
|
cleanup_orphaned_kyc_documents: { Args: never; Returns: undefined };
|
|
3374
3484
|
cleanup_orphaned_post_images: { Args: never; Returns: undefined };
|
|
3375
3485
|
cleanup_orphaned_shop_images: { Args: never; Returns: undefined };
|
|
@@ -3427,6 +3537,7 @@ export type Database = {
|
|
|
3427
3537
|
Returns: Json;
|
|
3428
3538
|
};
|
|
3429
3539
|
delete_user_address: { Args: { p_address_id: string }; Returns: Json };
|
|
3540
|
+
dispatch_pending_email_notifications: { Args: never; Returns: undefined };
|
|
3430
3541
|
drop_old_partitions: { Args: never; Returns: undefined };
|
|
3431
3542
|
follow_user: { Args: { target_user_id: string }; Returns: undefined };
|
|
3432
3543
|
get_buyer_orders: {
|
|
@@ -3631,6 +3742,10 @@ export type Database = {
|
|
|
3631
3742
|
Args: { p_target_user_id?: string };
|
|
3632
3743
|
Returns: Json;
|
|
3633
3744
|
};
|
|
3745
|
+
get_notification_preferences_for_user: {
|
|
3746
|
+
Args: { p_user_id: string };
|
|
3747
|
+
Returns: Json;
|
|
3748
|
+
};
|
|
3634
3749
|
get_or_create_direct_conversation: {
|
|
3635
3750
|
Args: { p_recipient_id: string };
|
|
3636
3751
|
Returns: string;
|
|
@@ -4096,6 +4211,10 @@ export type Database = {
|
|
|
4096
4211
|
Args: { p_amount: number; p_payout_method_id: string };
|
|
4097
4212
|
Returns: string;
|
|
4098
4213
|
};
|
|
4214
|
+
resolve_activity_notification_key: {
|
|
4215
|
+
Args: { p_metadata: Json; p_role: string; p_service_type: string };
|
|
4216
|
+
Returns: string;
|
|
4217
|
+
};
|
|
4099
4218
|
retry_withdrawal: {
|
|
4100
4219
|
Args: {
|
|
4101
4220
|
p_amount?: number;
|
|
@@ -4184,6 +4303,10 @@ export type Database = {
|
|
|
4184
4303
|
Args: { p_enabled: boolean; p_target_user_id?: string };
|
|
4185
4304
|
Returns: Json;
|
|
4186
4305
|
};
|
|
4306
|
+
update_notification_email_template: {
|
|
4307
|
+
Args: { p_html_body: string; p_key: string; p_subject: string };
|
|
4308
|
+
Returns: Json;
|
|
4309
|
+
};
|
|
4187
4310
|
update_order_tracking: {
|
|
4188
4311
|
Args: {
|
|
4189
4312
|
p_carrier?: string;
|