@hobenakicoffee/libraries 5.4.0 → 5.6.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hobenakicoffee/libraries",
3
- "version": "5.4.0",
3
+ "version": "5.6.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "repository": {
@@ -208,6 +208,7 @@ export type Database = {
208
208
  };
209
209
  creator_platform_subscriptions: {
210
210
  Row: {
211
+ amount_used_this_period: number;
211
212
  created_at: string;
212
213
  id: number;
213
214
  period_end: string;
@@ -222,6 +223,7 @@ export type Database = {
222
223
  updated_at: string;
223
224
  };
224
225
  Insert: {
226
+ amount_used_this_period?: number;
225
227
  created_at?: string;
226
228
  id?: never;
227
229
  period_end: string;
@@ -236,6 +238,7 @@ export type Database = {
236
238
  updated_at?: string;
237
239
  };
238
240
  Update: {
241
+ amount_used_this_period?: number;
239
242
  created_at?: string;
240
243
  id?: never;
241
244
  period_end?: string;
@@ -1117,6 +1120,7 @@ export type Database = {
1117
1120
  description: string | null;
1118
1121
  id: number;
1119
1122
  is_active: boolean;
1123
+ monthly_amount_cap: number | null;
1120
1124
  monthly_transaction_cap: number | null;
1121
1125
  name: string;
1122
1126
  price_per_month: number;
@@ -1129,6 +1133,7 @@ export type Database = {
1129
1133
  description?: string | null;
1130
1134
  id?: never;
1131
1135
  is_active?: boolean;
1136
+ monthly_amount_cap?: number | null;
1132
1137
  monthly_transaction_cap?: number | null;
1133
1138
  name: string;
1134
1139
  price_per_month: number;
@@ -1141,6 +1146,7 @@ export type Database = {
1141
1146
  description?: string | null;
1142
1147
  id?: never;
1143
1148
  is_active?: boolean;
1149
+ monthly_amount_cap?: number | null;
1144
1150
  monthly_transaction_cap?: number | null;
1145
1151
  name?: string;
1146
1152
  price_per_month?: number;
@@ -1314,6 +1320,7 @@ export type Database = {
1314
1320
  avatar_url: string | null;
1315
1321
  banner_url: string | null;
1316
1322
  bio: string | null;
1323
+ categories: string[] | null;
1317
1324
  created_at: string | null;
1318
1325
  display_name: string | null;
1319
1326
  first_service_name: string | null;
@@ -1331,10 +1338,12 @@ export type Database = {
1331
1338
  onboarding_completed_at: string | null;
1332
1339
  onboarding_step: number | null;
1333
1340
  page_slug: string;
1341
+ popularity_score: number | null;
1334
1342
  role: Database["public"]["Enums"]["user_role"];
1335
1343
  social_links: Json | null;
1336
1344
  thank_you_items: Json | null;
1337
1345
  theme: Json | null;
1346
+ total_supporter_count: number | null;
1338
1347
  updated_at: string | null;
1339
1348
  username: string;
1340
1349
  };
@@ -1344,6 +1353,7 @@ export type Database = {
1344
1353
  avatar_url?: string | null;
1345
1354
  banner_url?: string | null;
1346
1355
  bio?: string | null;
1356
+ categories?: string[] | null;
1347
1357
  created_at?: string | null;
1348
1358
  display_name?: string | null;
1349
1359
  first_service_name?: string | null;
@@ -1361,10 +1371,12 @@ export type Database = {
1361
1371
  onboarding_completed_at?: string | null;
1362
1372
  onboarding_step?: number | null;
1363
1373
  page_slug: string;
1374
+ popularity_score?: number | null;
1364
1375
  role?: Database["public"]["Enums"]["user_role"];
1365
1376
  social_links?: Json | null;
1366
1377
  thank_you_items?: Json | null;
1367
1378
  theme?: Json | null;
1379
+ total_supporter_count?: number | null;
1368
1380
  updated_at?: string | null;
1369
1381
  username: string;
1370
1382
  };
@@ -1374,6 +1386,7 @@ export type Database = {
1374
1386
  avatar_url?: string | null;
1375
1387
  banner_url?: string | null;
1376
1388
  bio?: string | null;
1389
+ categories?: string[] | null;
1377
1390
  created_at?: string | null;
1378
1391
  display_name?: string | null;
1379
1392
  first_service_name?: string | null;
@@ -1391,10 +1404,12 @@ export type Database = {
1391
1404
  onboarding_completed_at?: string | null;
1392
1405
  onboarding_step?: number | null;
1393
1406
  page_slug?: string;
1407
+ popularity_score?: number | null;
1394
1408
  role?: Database["public"]["Enums"]["user_role"];
1395
1409
  social_links?: Json | null;
1396
1410
  thank_you_items?: Json | null;
1397
1411
  theme?: Json | null;
1412
+ total_supporter_count?: number | null;
1398
1413
  updated_at?: string | null;
1399
1414
  username?: string;
1400
1415
  };
@@ -2813,6 +2828,31 @@ export type Database = {
2813
2828
  Args: { p_profile_id: string; p_service_type: string };
2814
2829
  Returns: number;
2815
2830
  };
2831
+ get_explore_creators: {
2832
+ Args: {
2833
+ p_category?: string;
2834
+ p_cursor_id?: string;
2835
+ p_cursor_score?: number;
2836
+ p_limit?: number;
2837
+ p_search?: string;
2838
+ };
2839
+ Returns: {
2840
+ avatar_url: string;
2841
+ banner_url: string;
2842
+ bio: string;
2843
+ categories: string[];
2844
+ display_name: string;
2845
+ follower_count: number;
2846
+ full_name: string;
2847
+ id: string;
2848
+ is_verified: boolean;
2849
+ page_slug: string;
2850
+ popularity_score: number;
2851
+ services: string[];
2852
+ supporter_count: number;
2853
+ username: string;
2854
+ }[];
2855
+ };
2816
2856
  get_followers: { Args: { target_user_id: string }; Returns: string[] };
2817
2857
  get_following: { Args: { target_user_id: string }; Returns: string[] };
2818
2858
  get_kyc_queue: {
@@ -3123,7 +3163,11 @@ export type Database = {
3123
3163
  Returns: boolean;
3124
3164
  };
3125
3165
  increment_creator_subscription_usage: {
3126
- Args: { p_profile_id: string; p_service_type: string };
3166
+ Args: {
3167
+ p_amount: number;
3168
+ p_profile_id: string;
3169
+ p_service_type: string;
3170
+ };
3127
3171
  Returns: undefined;
3128
3172
  };
3129
3173
  initiate_shop_checkout: {