@hobenakicoffee/libraries 5.6.0 → 5.7.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 +371 -0
package/package.json
CHANGED
package/src/types/supabase.ts
CHANGED
|
@@ -305,6 +305,225 @@ export type Database = {
|
|
|
305
305
|
},
|
|
306
306
|
];
|
|
307
307
|
};
|
|
308
|
+
feed_item_bookmarks: {
|
|
309
|
+
Row: {
|
|
310
|
+
created_at: string;
|
|
311
|
+
feed_item_id: number;
|
|
312
|
+
id: number;
|
|
313
|
+
profile_id: string;
|
|
314
|
+
};
|
|
315
|
+
Insert: {
|
|
316
|
+
created_at?: string;
|
|
317
|
+
feed_item_id: number;
|
|
318
|
+
id?: never;
|
|
319
|
+
profile_id: string;
|
|
320
|
+
};
|
|
321
|
+
Update: {
|
|
322
|
+
created_at?: string;
|
|
323
|
+
feed_item_id?: number;
|
|
324
|
+
id?: never;
|
|
325
|
+
profile_id?: string;
|
|
326
|
+
};
|
|
327
|
+
Relationships: [
|
|
328
|
+
{
|
|
329
|
+
foreignKeyName: "feed_item_bookmarks_feed_item_id_fkey";
|
|
330
|
+
columns: ["feed_item_id"];
|
|
331
|
+
isOneToOne: false;
|
|
332
|
+
referencedRelation: "feed_items";
|
|
333
|
+
referencedColumns: ["id"];
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
foreignKeyName: "feed_item_bookmarks_profile_id_fkey";
|
|
337
|
+
columns: ["profile_id"];
|
|
338
|
+
isOneToOne: false;
|
|
339
|
+
referencedRelation: "profiles";
|
|
340
|
+
referencedColumns: ["id"];
|
|
341
|
+
},
|
|
342
|
+
];
|
|
343
|
+
};
|
|
344
|
+
feed_item_comments: {
|
|
345
|
+
Row: {
|
|
346
|
+
body: string | null;
|
|
347
|
+
created_at: string;
|
|
348
|
+
feed_item_id: number;
|
|
349
|
+
id: number;
|
|
350
|
+
is_deleted: boolean;
|
|
351
|
+
parent_comment_id: number | null;
|
|
352
|
+
profile_id: string;
|
|
353
|
+
updated_at: string;
|
|
354
|
+
};
|
|
355
|
+
Insert: {
|
|
356
|
+
body?: string | null;
|
|
357
|
+
created_at?: string;
|
|
358
|
+
feed_item_id: number;
|
|
359
|
+
id?: never;
|
|
360
|
+
is_deleted?: boolean;
|
|
361
|
+
parent_comment_id?: number | null;
|
|
362
|
+
profile_id: string;
|
|
363
|
+
updated_at?: string;
|
|
364
|
+
};
|
|
365
|
+
Update: {
|
|
366
|
+
body?: string | null;
|
|
367
|
+
created_at?: string;
|
|
368
|
+
feed_item_id?: number;
|
|
369
|
+
id?: never;
|
|
370
|
+
is_deleted?: boolean;
|
|
371
|
+
parent_comment_id?: number | null;
|
|
372
|
+
profile_id?: string;
|
|
373
|
+
updated_at?: string;
|
|
374
|
+
};
|
|
375
|
+
Relationships: [
|
|
376
|
+
{
|
|
377
|
+
foreignKeyName: "feed_item_comments_feed_item_id_fkey";
|
|
378
|
+
columns: ["feed_item_id"];
|
|
379
|
+
isOneToOne: false;
|
|
380
|
+
referencedRelation: "feed_items";
|
|
381
|
+
referencedColumns: ["id"];
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
foreignKeyName: "feed_item_comments_parent_comment_id_fkey";
|
|
385
|
+
columns: ["parent_comment_id"];
|
|
386
|
+
isOneToOne: false;
|
|
387
|
+
referencedRelation: "feed_item_comments";
|
|
388
|
+
referencedColumns: ["id"];
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
foreignKeyName: "feed_item_comments_profile_id_fkey";
|
|
392
|
+
columns: ["profile_id"];
|
|
393
|
+
isOneToOne: false;
|
|
394
|
+
referencedRelation: "profiles";
|
|
395
|
+
referencedColumns: ["id"];
|
|
396
|
+
},
|
|
397
|
+
];
|
|
398
|
+
};
|
|
399
|
+
feed_item_likes: {
|
|
400
|
+
Row: {
|
|
401
|
+
created_at: string;
|
|
402
|
+
feed_item_id: number;
|
|
403
|
+
id: number;
|
|
404
|
+
profile_id: string;
|
|
405
|
+
};
|
|
406
|
+
Insert: {
|
|
407
|
+
created_at?: string;
|
|
408
|
+
feed_item_id: number;
|
|
409
|
+
id?: never;
|
|
410
|
+
profile_id: string;
|
|
411
|
+
};
|
|
412
|
+
Update: {
|
|
413
|
+
created_at?: string;
|
|
414
|
+
feed_item_id?: number;
|
|
415
|
+
id?: never;
|
|
416
|
+
profile_id?: string;
|
|
417
|
+
};
|
|
418
|
+
Relationships: [
|
|
419
|
+
{
|
|
420
|
+
foreignKeyName: "feed_item_likes_feed_item_id_fkey";
|
|
421
|
+
columns: ["feed_item_id"];
|
|
422
|
+
isOneToOne: false;
|
|
423
|
+
referencedRelation: "feed_items";
|
|
424
|
+
referencedColumns: ["id"];
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
foreignKeyName: "feed_item_likes_profile_id_fkey";
|
|
428
|
+
columns: ["profile_id"];
|
|
429
|
+
isOneToOne: false;
|
|
430
|
+
referencedRelation: "profiles";
|
|
431
|
+
referencedColumns: ["id"];
|
|
432
|
+
},
|
|
433
|
+
];
|
|
434
|
+
};
|
|
435
|
+
feed_item_shares: {
|
|
436
|
+
Row: {
|
|
437
|
+
created_at: string;
|
|
438
|
+
feed_item_id: number;
|
|
439
|
+
id: number;
|
|
440
|
+
profile_id: string;
|
|
441
|
+
};
|
|
442
|
+
Insert: {
|
|
443
|
+
created_at?: string;
|
|
444
|
+
feed_item_id: number;
|
|
445
|
+
id?: never;
|
|
446
|
+
profile_id: string;
|
|
447
|
+
};
|
|
448
|
+
Update: {
|
|
449
|
+
created_at?: string;
|
|
450
|
+
feed_item_id?: number;
|
|
451
|
+
id?: never;
|
|
452
|
+
profile_id?: string;
|
|
453
|
+
};
|
|
454
|
+
Relationships: [
|
|
455
|
+
{
|
|
456
|
+
foreignKeyName: "feed_item_shares_feed_item_id_fkey";
|
|
457
|
+
columns: ["feed_item_id"];
|
|
458
|
+
isOneToOne: false;
|
|
459
|
+
referencedRelation: "feed_items";
|
|
460
|
+
referencedColumns: ["id"];
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
foreignKeyName: "feed_item_shares_profile_id_fkey";
|
|
464
|
+
columns: ["profile_id"];
|
|
465
|
+
isOneToOne: false;
|
|
466
|
+
referencedRelation: "profiles";
|
|
467
|
+
referencedColumns: ["id"];
|
|
468
|
+
},
|
|
469
|
+
];
|
|
470
|
+
};
|
|
471
|
+
feed_items: {
|
|
472
|
+
Row: {
|
|
473
|
+
boost_tier: number;
|
|
474
|
+
content_type: string;
|
|
475
|
+
created_at: string;
|
|
476
|
+
creator_profile_id: string | null;
|
|
477
|
+
id: number;
|
|
478
|
+
interaction_counts: Json;
|
|
479
|
+
is_pinned: boolean;
|
|
480
|
+
metadata: Json;
|
|
481
|
+
rank_score: number;
|
|
482
|
+
reference_id: string | null;
|
|
483
|
+
search_vector: unknown;
|
|
484
|
+
updated_at: string;
|
|
485
|
+
visibility: Database["public"]["Enums"]["visibility_enum"];
|
|
486
|
+
};
|
|
487
|
+
Insert: {
|
|
488
|
+
boost_tier?: number;
|
|
489
|
+
content_type: string;
|
|
490
|
+
created_at?: string;
|
|
491
|
+
creator_profile_id?: string | null;
|
|
492
|
+
id?: never;
|
|
493
|
+
interaction_counts?: Json;
|
|
494
|
+
is_pinned?: boolean;
|
|
495
|
+
metadata?: Json;
|
|
496
|
+
rank_score?: number;
|
|
497
|
+
reference_id?: string | null;
|
|
498
|
+
search_vector?: unknown;
|
|
499
|
+
updated_at?: string;
|
|
500
|
+
visibility?: Database["public"]["Enums"]["visibility_enum"];
|
|
501
|
+
};
|
|
502
|
+
Update: {
|
|
503
|
+
boost_tier?: number;
|
|
504
|
+
content_type?: string;
|
|
505
|
+
created_at?: string;
|
|
506
|
+
creator_profile_id?: string | null;
|
|
507
|
+
id?: never;
|
|
508
|
+
interaction_counts?: Json;
|
|
509
|
+
is_pinned?: boolean;
|
|
510
|
+
metadata?: Json;
|
|
511
|
+
rank_score?: number;
|
|
512
|
+
reference_id?: string | null;
|
|
513
|
+
search_vector?: unknown;
|
|
514
|
+
updated_at?: string;
|
|
515
|
+
visibility?: Database["public"]["Enums"]["visibility_enum"];
|
|
516
|
+
};
|
|
517
|
+
Relationships: [
|
|
518
|
+
{
|
|
519
|
+
foreignKeyName: "feed_items_creator_profile_id_fkey";
|
|
520
|
+
columns: ["creator_profile_id"];
|
|
521
|
+
isOneToOne: false;
|
|
522
|
+
referencedRelation: "profiles";
|
|
523
|
+
referencedColumns: ["id"];
|
|
524
|
+
},
|
|
525
|
+
];
|
|
526
|
+
};
|
|
308
527
|
follows: {
|
|
309
528
|
Row: {
|
|
310
529
|
created_at: string | null;
|
|
@@ -2690,6 +2909,29 @@ export type Database = {
|
|
|
2690
2909
|
};
|
|
2691
2910
|
Returns: Json;
|
|
2692
2911
|
};
|
|
2912
|
+
add_feed_comment: {
|
|
2913
|
+
Args: {
|
|
2914
|
+
p_body: string;
|
|
2915
|
+
p_feed_item_id: number;
|
|
2916
|
+
p_parent_comment_id?: number;
|
|
2917
|
+
};
|
|
2918
|
+
Returns: {
|
|
2919
|
+
body: string | null;
|
|
2920
|
+
created_at: string;
|
|
2921
|
+
feed_item_id: number;
|
|
2922
|
+
id: number;
|
|
2923
|
+
is_deleted: boolean;
|
|
2924
|
+
parent_comment_id: number | null;
|
|
2925
|
+
profile_id: string;
|
|
2926
|
+
updated_at: string;
|
|
2927
|
+
};
|
|
2928
|
+
SetofOptions: {
|
|
2929
|
+
from: "*";
|
|
2930
|
+
to: "feed_item_comments";
|
|
2931
|
+
isOneToOne: true;
|
|
2932
|
+
isSetofReturn: false;
|
|
2933
|
+
};
|
|
2934
|
+
};
|
|
2693
2935
|
add_shop_product_file: {
|
|
2694
2936
|
Args: {
|
|
2695
2937
|
p_file_name: string;
|
|
@@ -2741,6 +2983,14 @@ export type Database = {
|
|
|
2741
2983
|
Args: { p_service_type: string };
|
|
2742
2984
|
Returns: Json;
|
|
2743
2985
|
};
|
|
2986
|
+
check_and_emit_milestone: {
|
|
2987
|
+
Args: {
|
|
2988
|
+
p_creator_profile_id: string;
|
|
2989
|
+
p_current_count: number;
|
|
2990
|
+
p_milestone_type: string;
|
|
2991
|
+
};
|
|
2992
|
+
Returns: undefined;
|
|
2993
|
+
};
|
|
2744
2994
|
check_newsletter_post_access: {
|
|
2745
2995
|
Args: { p_post_id: string };
|
|
2746
2996
|
Returns: {
|
|
@@ -2767,6 +3017,17 @@ export type Database = {
|
|
|
2767
3017
|
};
|
|
2768
3018
|
Returns: string;
|
|
2769
3019
|
};
|
|
3020
|
+
create_manager_feed_post: {
|
|
3021
|
+
Args: {
|
|
3022
|
+
p_body: string;
|
|
3023
|
+
p_cta_label?: string;
|
|
3024
|
+
p_cta_url?: string;
|
|
3025
|
+
p_image_url?: string;
|
|
3026
|
+
p_is_pinned?: boolean;
|
|
3027
|
+
p_title: string;
|
|
3028
|
+
};
|
|
3029
|
+
Returns: number;
|
|
3030
|
+
};
|
|
2770
3031
|
create_newsletter_draft: {
|
|
2771
3032
|
Args: { p_profile_id: string };
|
|
2772
3033
|
Returns: {
|
|
@@ -2777,6 +3038,10 @@ export type Database = {
|
|
|
2777
3038
|
};
|
|
2778
3039
|
create_next_month_partition: { Args: never; Returns: undefined };
|
|
2779
3040
|
custom_access_token_hook: { Args: { event: Json }; Returns: Json };
|
|
3041
|
+
delete_feed_comment: {
|
|
3042
|
+
Args: { p_comment_id: number };
|
|
3043
|
+
Returns: undefined;
|
|
3044
|
+
};
|
|
2780
3045
|
delete_shop_category: { Args: { p_category_id: string }; Returns: Json };
|
|
2781
3046
|
delete_shop_policy: {
|
|
2782
3047
|
Args: {
|
|
@@ -2853,6 +3118,32 @@ export type Database = {
|
|
|
2853
3118
|
username: string;
|
|
2854
3119
|
}[];
|
|
2855
3120
|
};
|
|
3121
|
+
get_feed: {
|
|
3122
|
+
Args: {
|
|
3123
|
+
p_content_types?: string[];
|
|
3124
|
+
p_cursor_id?: number;
|
|
3125
|
+
p_cursor_score?: number;
|
|
3126
|
+
p_limit?: number;
|
|
3127
|
+
};
|
|
3128
|
+
Returns: {
|
|
3129
|
+
boost_tier: number;
|
|
3130
|
+
content_type: string;
|
|
3131
|
+
created_at: string;
|
|
3132
|
+
creator_avatar_url: string;
|
|
3133
|
+
creator_display_name: string;
|
|
3134
|
+
creator_profile_id: string;
|
|
3135
|
+
creator_username: string;
|
|
3136
|
+
id: number;
|
|
3137
|
+
interaction_counts: Json;
|
|
3138
|
+
is_bookmarked: boolean;
|
|
3139
|
+
is_liked: boolean;
|
|
3140
|
+
is_pinned: boolean;
|
|
3141
|
+
metadata: Json;
|
|
3142
|
+
rank_score: number;
|
|
3143
|
+
reference_id: string;
|
|
3144
|
+
visibility: Database["public"]["Enums"]["visibility_enum"];
|
|
3145
|
+
}[];
|
|
3146
|
+
};
|
|
2856
3147
|
get_followers: { Args: { target_user_id: string }; Returns: string[] };
|
|
2857
3148
|
get_following: { Args: { target_user_id: string }; Returns: string[] };
|
|
2858
3149
|
get_kyc_queue: {
|
|
@@ -2890,6 +3181,22 @@ export type Database = {
|
|
|
2890
3181
|
sender_username: string;
|
|
2891
3182
|
}[];
|
|
2892
3183
|
};
|
|
3184
|
+
get_my_active_memberships: {
|
|
3185
|
+
Args: never;
|
|
3186
|
+
Returns: {
|
|
3187
|
+
billing_cycle: Database["public"]["Enums"]["membership_billing_cycle_enum"];
|
|
3188
|
+
creator_avatar_url: string;
|
|
3189
|
+
creator_display_name: string;
|
|
3190
|
+
creator_profile_id: string;
|
|
3191
|
+
creator_username: string;
|
|
3192
|
+
membership_id: string;
|
|
3193
|
+
period_end: string;
|
|
3194
|
+
plan_name: string;
|
|
3195
|
+
plan_price: number;
|
|
3196
|
+
service_type: string;
|
|
3197
|
+
status: Database["public"]["Enums"]["membership_status_enum"];
|
|
3198
|
+
}[];
|
|
3199
|
+
};
|
|
2893
3200
|
get_newsletter_stats: {
|
|
2894
3201
|
Args: { p_from?: string; p_profile_id: string; p_to?: string };
|
|
2895
3202
|
Returns: {
|
|
@@ -2904,6 +3211,7 @@ export type Database = {
|
|
|
2904
3211
|
};
|
|
2905
3212
|
get_order_by_number: { Args: { p_order_number: string }; Returns: Json };
|
|
2906
3213
|
get_platform_setting: { Args: { p_key: string }; Returns: number };
|
|
3214
|
+
get_platform_setting_jsonb: { Args: { p_key: string }; Returns: Json };
|
|
2907
3215
|
get_popular_content: {
|
|
2908
3216
|
Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
|
|
2909
3217
|
Returns: {
|
|
@@ -2996,6 +3304,35 @@ export type Database = {
|
|
|
2996
3304
|
view_count: number;
|
|
2997
3305
|
}[];
|
|
2998
3306
|
};
|
|
3307
|
+
get_recommended_creators: {
|
|
3308
|
+
Args: { p_limit?: number };
|
|
3309
|
+
Returns: {
|
|
3310
|
+
avatar_url: string;
|
|
3311
|
+
boost_tier: number;
|
|
3312
|
+
display_name: string;
|
|
3313
|
+
follower_count: number;
|
|
3314
|
+
profile_id: string;
|
|
3315
|
+
recent_posts: number;
|
|
3316
|
+
username: string;
|
|
3317
|
+
}[];
|
|
3318
|
+
};
|
|
3319
|
+
get_recommended_items: {
|
|
3320
|
+
Args: { p_limit?: number };
|
|
3321
|
+
Returns: {
|
|
3322
|
+
boost_tier: number;
|
|
3323
|
+
content_type: string;
|
|
3324
|
+
created_at: string;
|
|
3325
|
+
creator_avatar_url: string;
|
|
3326
|
+
creator_display_name: string;
|
|
3327
|
+
creator_profile_id: string;
|
|
3328
|
+
creator_username: string;
|
|
3329
|
+
id: number;
|
|
3330
|
+
interaction_counts: Json;
|
|
3331
|
+
metadata: Json;
|
|
3332
|
+
rank_score: number;
|
|
3333
|
+
reference_id: string;
|
|
3334
|
+
}[];
|
|
3335
|
+
};
|
|
2999
3336
|
get_seller_orders: {
|
|
3000
3337
|
Args: { p_cursor?: string; p_item_status?: string; p_limit?: number };
|
|
3001
3338
|
Returns: Json;
|
|
@@ -3277,6 +3614,11 @@ export type Database = {
|
|
|
3277
3614
|
};
|
|
3278
3615
|
Returns: Json;
|
|
3279
3616
|
};
|
|
3617
|
+
recompute_feed_rank_scores: { Args: never; Returns: undefined };
|
|
3618
|
+
record_feed_item_share: {
|
|
3619
|
+
Args: { p_feed_item_id: number };
|
|
3620
|
+
Returns: undefined;
|
|
3621
|
+
};
|
|
3280
3622
|
record_newsletter_post_click: {
|
|
3281
3623
|
Args: { p_post_id: string };
|
|
3282
3624
|
Returns: undefined;
|
|
@@ -3318,6 +3660,27 @@ export type Database = {
|
|
|
3318
3660
|
};
|
|
3319
3661
|
Returns: string;
|
|
3320
3662
|
};
|
|
3663
|
+
search_feed: {
|
|
3664
|
+
Args: { p_cursor_id?: number; p_limit?: number; p_query: string };
|
|
3665
|
+
Returns: {
|
|
3666
|
+
boost_tier: number;
|
|
3667
|
+
content_type: string;
|
|
3668
|
+
created_at: string;
|
|
3669
|
+
creator_avatar_url: string;
|
|
3670
|
+
creator_display_name: string;
|
|
3671
|
+
creator_profile_id: string;
|
|
3672
|
+
creator_username: string;
|
|
3673
|
+
id: number;
|
|
3674
|
+
interaction_counts: Json;
|
|
3675
|
+
is_bookmarked: boolean;
|
|
3676
|
+
is_liked: boolean;
|
|
3677
|
+
is_pinned: boolean;
|
|
3678
|
+
metadata: Json;
|
|
3679
|
+
rank_score: number;
|
|
3680
|
+
reference_id: string;
|
|
3681
|
+
search_rank: number;
|
|
3682
|
+
}[];
|
|
3683
|
+
};
|
|
3321
3684
|
send_message: {
|
|
3322
3685
|
Args: { p_content: string; p_conversation_id: string };
|
|
3323
3686
|
Returns: {
|
|
@@ -3332,6 +3695,14 @@ export type Database = {
|
|
|
3332
3695
|
Args: { p_is_active: boolean; p_profile_id: string };
|
|
3333
3696
|
Returns: Json;
|
|
3334
3697
|
};
|
|
3698
|
+
toggle_feed_item_bookmark: {
|
|
3699
|
+
Args: { p_feed_item_id: number };
|
|
3700
|
+
Returns: Json;
|
|
3701
|
+
};
|
|
3702
|
+
toggle_feed_item_like: {
|
|
3703
|
+
Args: { p_feed_item_id: number };
|
|
3704
|
+
Returns: Json;
|
|
3705
|
+
};
|
|
3335
3706
|
toggle_follow: { Args: { target_user_id: string }; Returns: boolean };
|
|
3336
3707
|
toggle_newsletter_post_like: {
|
|
3337
3708
|
Args: { p_post_id: string };
|