@hobenakicoffee/libraries 5.3.1 → 5.5.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 +44 -0
package/package.json
CHANGED
package/src/types/supabase.ts
CHANGED
|
@@ -218,6 +218,7 @@ export type Database = {
|
|
|
218
218
|
service_type: string;
|
|
219
219
|
status: string;
|
|
220
220
|
transaction_reference_id: string | null;
|
|
221
|
+
transactions_used_this_period: number;
|
|
221
222
|
updated_at: string;
|
|
222
223
|
};
|
|
223
224
|
Insert: {
|
|
@@ -231,6 +232,7 @@ export type Database = {
|
|
|
231
232
|
service_type: string;
|
|
232
233
|
status?: string;
|
|
233
234
|
transaction_reference_id?: string | null;
|
|
235
|
+
transactions_used_this_period?: number;
|
|
234
236
|
updated_at?: string;
|
|
235
237
|
};
|
|
236
238
|
Update: {
|
|
@@ -244,6 +246,7 @@ export type Database = {
|
|
|
244
246
|
service_type?: string;
|
|
245
247
|
status?: string;
|
|
246
248
|
transaction_reference_id?: string | null;
|
|
249
|
+
transactions_used_this_period?: number;
|
|
247
250
|
updated_at?: string;
|
|
248
251
|
};
|
|
249
252
|
Relationships: [
|
|
@@ -1114,6 +1117,7 @@ export type Database = {
|
|
|
1114
1117
|
description: string | null;
|
|
1115
1118
|
id: number;
|
|
1116
1119
|
is_active: boolean;
|
|
1120
|
+
monthly_transaction_cap: number | null;
|
|
1117
1121
|
name: string;
|
|
1118
1122
|
price_per_month: number;
|
|
1119
1123
|
service_type: string;
|
|
@@ -1125,6 +1129,7 @@ export type Database = {
|
|
|
1125
1129
|
description?: string | null;
|
|
1126
1130
|
id?: never;
|
|
1127
1131
|
is_active?: boolean;
|
|
1132
|
+
monthly_transaction_cap?: number | null;
|
|
1128
1133
|
name: string;
|
|
1129
1134
|
price_per_month: number;
|
|
1130
1135
|
service_type: string;
|
|
@@ -1136,6 +1141,7 @@ export type Database = {
|
|
|
1136
1141
|
description?: string | null;
|
|
1137
1142
|
id?: never;
|
|
1138
1143
|
is_active?: boolean;
|
|
1144
|
+
monthly_transaction_cap?: number | null;
|
|
1139
1145
|
name?: string;
|
|
1140
1146
|
price_per_month?: number;
|
|
1141
1147
|
service_type?: string;
|
|
@@ -1308,6 +1314,7 @@ export type Database = {
|
|
|
1308
1314
|
avatar_url: string | null;
|
|
1309
1315
|
banner_url: string | null;
|
|
1310
1316
|
bio: string | null;
|
|
1317
|
+
categories: string[] | null;
|
|
1311
1318
|
created_at: string | null;
|
|
1312
1319
|
display_name: string | null;
|
|
1313
1320
|
first_service_name: string | null;
|
|
@@ -1325,10 +1332,12 @@ export type Database = {
|
|
|
1325
1332
|
onboarding_completed_at: string | null;
|
|
1326
1333
|
onboarding_step: number | null;
|
|
1327
1334
|
page_slug: string;
|
|
1335
|
+
popularity_score: number | null;
|
|
1328
1336
|
role: Database["public"]["Enums"]["user_role"];
|
|
1329
1337
|
social_links: Json | null;
|
|
1330
1338
|
thank_you_items: Json | null;
|
|
1331
1339
|
theme: Json | null;
|
|
1340
|
+
total_supporter_count: number | null;
|
|
1332
1341
|
updated_at: string | null;
|
|
1333
1342
|
username: string;
|
|
1334
1343
|
};
|
|
@@ -1338,6 +1347,7 @@ export type Database = {
|
|
|
1338
1347
|
avatar_url?: string | null;
|
|
1339
1348
|
banner_url?: string | null;
|
|
1340
1349
|
bio?: string | null;
|
|
1350
|
+
categories?: string[] | null;
|
|
1341
1351
|
created_at?: string | null;
|
|
1342
1352
|
display_name?: string | null;
|
|
1343
1353
|
first_service_name?: string | null;
|
|
@@ -1355,10 +1365,12 @@ export type Database = {
|
|
|
1355
1365
|
onboarding_completed_at?: string | null;
|
|
1356
1366
|
onboarding_step?: number | null;
|
|
1357
1367
|
page_slug: string;
|
|
1368
|
+
popularity_score?: number | null;
|
|
1358
1369
|
role?: Database["public"]["Enums"]["user_role"];
|
|
1359
1370
|
social_links?: Json | null;
|
|
1360
1371
|
thank_you_items?: Json | null;
|
|
1361
1372
|
theme?: Json | null;
|
|
1373
|
+
total_supporter_count?: number | null;
|
|
1362
1374
|
updated_at?: string | null;
|
|
1363
1375
|
username: string;
|
|
1364
1376
|
};
|
|
@@ -1368,6 +1380,7 @@ export type Database = {
|
|
|
1368
1380
|
avatar_url?: string | null;
|
|
1369
1381
|
banner_url?: string | null;
|
|
1370
1382
|
bio?: string | null;
|
|
1383
|
+
categories?: string[] | null;
|
|
1371
1384
|
created_at?: string | null;
|
|
1372
1385
|
display_name?: string | null;
|
|
1373
1386
|
first_service_name?: string | null;
|
|
@@ -1385,10 +1398,12 @@ export type Database = {
|
|
|
1385
1398
|
onboarding_completed_at?: string | null;
|
|
1386
1399
|
onboarding_step?: number | null;
|
|
1387
1400
|
page_slug?: string;
|
|
1401
|
+
popularity_score?: number | null;
|
|
1388
1402
|
role?: Database["public"]["Enums"]["user_role"];
|
|
1389
1403
|
social_links?: Json | null;
|
|
1390
1404
|
thank_you_items?: Json | null;
|
|
1391
1405
|
theme?: Json | null;
|
|
1406
|
+
total_supporter_count?: number | null;
|
|
1392
1407
|
updated_at?: string | null;
|
|
1393
1408
|
username?: string;
|
|
1394
1409
|
};
|
|
@@ -2807,6 +2822,31 @@ export type Database = {
|
|
|
2807
2822
|
Args: { p_profile_id: string; p_service_type: string };
|
|
2808
2823
|
Returns: number;
|
|
2809
2824
|
};
|
|
2825
|
+
get_explore_creators: {
|
|
2826
|
+
Args: {
|
|
2827
|
+
p_category?: string;
|
|
2828
|
+
p_cursor_id?: string;
|
|
2829
|
+
p_cursor_score?: number;
|
|
2830
|
+
p_limit?: number;
|
|
2831
|
+
p_search?: string;
|
|
2832
|
+
};
|
|
2833
|
+
Returns: {
|
|
2834
|
+
avatar_url: string;
|
|
2835
|
+
banner_url: string;
|
|
2836
|
+
bio: string;
|
|
2837
|
+
categories: string[];
|
|
2838
|
+
display_name: string;
|
|
2839
|
+
follower_count: number;
|
|
2840
|
+
full_name: string;
|
|
2841
|
+
id: string;
|
|
2842
|
+
is_verified: boolean;
|
|
2843
|
+
page_slug: string;
|
|
2844
|
+
popularity_score: number;
|
|
2845
|
+
services: string[];
|
|
2846
|
+
supporter_count: number;
|
|
2847
|
+
username: string;
|
|
2848
|
+
}[];
|
|
2849
|
+
};
|
|
2810
2850
|
get_followers: { Args: { target_user_id: string }; Returns: string[] };
|
|
2811
2851
|
get_following: { Args: { target_user_id: string }; Returns: string[] };
|
|
2812
2852
|
get_kyc_queue: {
|
|
@@ -3116,6 +3156,10 @@ export type Database = {
|
|
|
3116
3156
|
};
|
|
3117
3157
|
Returns: boolean;
|
|
3118
3158
|
};
|
|
3159
|
+
increment_creator_subscription_usage: {
|
|
3160
|
+
Args: { p_profile_id: string; p_service_type: string };
|
|
3161
|
+
Returns: undefined;
|
|
3162
|
+
};
|
|
3119
3163
|
initiate_shop_checkout: {
|
|
3120
3164
|
Args: {
|
|
3121
3165
|
p_address_id?: string;
|