@hobenakicoffee/libraries 6.6.0 → 6.8.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 +143 -24
package/package.json
CHANGED
package/src/types/supabase.ts
CHANGED
|
@@ -276,6 +276,120 @@ export type Database = {
|
|
|
276
276
|
},
|
|
277
277
|
];
|
|
278
278
|
};
|
|
279
|
+
creator_report_summary: {
|
|
280
|
+
Row: {
|
|
281
|
+
creator_id: string;
|
|
282
|
+
flagged_at: string | null;
|
|
283
|
+
is_flagged: boolean;
|
|
284
|
+
last_reported_at: string | null;
|
|
285
|
+
pending_reports: number;
|
|
286
|
+
total_reports: number;
|
|
287
|
+
updated_at: string;
|
|
288
|
+
};
|
|
289
|
+
Insert: {
|
|
290
|
+
creator_id: string;
|
|
291
|
+
flagged_at?: string | null;
|
|
292
|
+
is_flagged?: boolean;
|
|
293
|
+
last_reported_at?: string | null;
|
|
294
|
+
pending_reports?: number;
|
|
295
|
+
total_reports?: number;
|
|
296
|
+
updated_at?: string;
|
|
297
|
+
};
|
|
298
|
+
Update: {
|
|
299
|
+
creator_id?: string;
|
|
300
|
+
flagged_at?: string | null;
|
|
301
|
+
is_flagged?: boolean;
|
|
302
|
+
last_reported_at?: string | null;
|
|
303
|
+
pending_reports?: number;
|
|
304
|
+
total_reports?: number;
|
|
305
|
+
updated_at?: string;
|
|
306
|
+
};
|
|
307
|
+
Relationships: [
|
|
308
|
+
{
|
|
309
|
+
foreignKeyName: "creator_report_summary_creator_id_fkey";
|
|
310
|
+
columns: ["creator_id"];
|
|
311
|
+
isOneToOne: true;
|
|
312
|
+
referencedRelation: "profiles";
|
|
313
|
+
referencedColumns: ["id"];
|
|
314
|
+
},
|
|
315
|
+
];
|
|
316
|
+
};
|
|
317
|
+
creator_reports: {
|
|
318
|
+
Row: {
|
|
319
|
+
category: Database["public"]["Enums"]["report_category"];
|
|
320
|
+
created_at: string;
|
|
321
|
+
creator_id: string;
|
|
322
|
+
description: string | null;
|
|
323
|
+
email_notified_at: string | null;
|
|
324
|
+
evidence_file_path: string | null;
|
|
325
|
+
evidence_url: string | null;
|
|
326
|
+
id: string;
|
|
327
|
+
reporter_email: string;
|
|
328
|
+
reporter_user_id: string | null;
|
|
329
|
+
resolution_note: string | null;
|
|
330
|
+
reviewed_at: string | null;
|
|
331
|
+
reviewed_by: string | null;
|
|
332
|
+
severity_score: number;
|
|
333
|
+
status: string;
|
|
334
|
+
};
|
|
335
|
+
Insert: {
|
|
336
|
+
category: Database["public"]["Enums"]["report_category"];
|
|
337
|
+
created_at?: string;
|
|
338
|
+
creator_id: string;
|
|
339
|
+
description?: string | null;
|
|
340
|
+
email_notified_at?: string | null;
|
|
341
|
+
evidence_file_path?: string | null;
|
|
342
|
+
evidence_url?: string | null;
|
|
343
|
+
id?: string;
|
|
344
|
+
reporter_email: string;
|
|
345
|
+
reporter_user_id?: string | null;
|
|
346
|
+
resolution_note?: string | null;
|
|
347
|
+
reviewed_at?: string | null;
|
|
348
|
+
reviewed_by?: string | null;
|
|
349
|
+
severity_score?: number;
|
|
350
|
+
status?: string;
|
|
351
|
+
};
|
|
352
|
+
Update: {
|
|
353
|
+
category?: Database["public"]["Enums"]["report_category"];
|
|
354
|
+
created_at?: string;
|
|
355
|
+
creator_id?: string;
|
|
356
|
+
description?: string | null;
|
|
357
|
+
email_notified_at?: string | null;
|
|
358
|
+
evidence_file_path?: string | null;
|
|
359
|
+
evidence_url?: string | null;
|
|
360
|
+
id?: string;
|
|
361
|
+
reporter_email?: string;
|
|
362
|
+
reporter_user_id?: string | null;
|
|
363
|
+
resolution_note?: string | null;
|
|
364
|
+
reviewed_at?: string | null;
|
|
365
|
+
reviewed_by?: string | null;
|
|
366
|
+
severity_score?: number;
|
|
367
|
+
status?: string;
|
|
368
|
+
};
|
|
369
|
+
Relationships: [
|
|
370
|
+
{
|
|
371
|
+
foreignKeyName: "creator_reports_creator_id_fkey";
|
|
372
|
+
columns: ["creator_id"];
|
|
373
|
+
isOneToOne: false;
|
|
374
|
+
referencedRelation: "profiles";
|
|
375
|
+
referencedColumns: ["id"];
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
foreignKeyName: "creator_reports_reporter_user_id_fkey";
|
|
379
|
+
columns: ["reporter_user_id"];
|
|
380
|
+
isOneToOne: false;
|
|
381
|
+
referencedRelation: "profiles";
|
|
382
|
+
referencedColumns: ["id"];
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
foreignKeyName: "creator_reports_reviewed_by_fkey";
|
|
386
|
+
columns: ["reviewed_by"];
|
|
387
|
+
isOneToOne: false;
|
|
388
|
+
referencedRelation: "profiles";
|
|
389
|
+
referencedColumns: ["id"];
|
|
390
|
+
},
|
|
391
|
+
];
|
|
392
|
+
};
|
|
279
393
|
creator_subscription_notifications: {
|
|
280
394
|
Row: {
|
|
281
395
|
id: number;
|
|
@@ -951,30 +1065,6 @@ export type Database = {
|
|
|
951
1065
|
},
|
|
952
1066
|
];
|
|
953
1067
|
};
|
|
954
|
-
messages_2026_04: {
|
|
955
|
-
Row: {
|
|
956
|
-
content: string;
|
|
957
|
-
conversation_id: string;
|
|
958
|
-
created_at: string;
|
|
959
|
-
id: number;
|
|
960
|
-
sender_id: string;
|
|
961
|
-
};
|
|
962
|
-
Insert: {
|
|
963
|
-
content: string;
|
|
964
|
-
conversation_id: string;
|
|
965
|
-
created_at?: string;
|
|
966
|
-
id?: number;
|
|
967
|
-
sender_id: string;
|
|
968
|
-
};
|
|
969
|
-
Update: {
|
|
970
|
-
content?: string;
|
|
971
|
-
conversation_id?: string;
|
|
972
|
-
created_at?: string;
|
|
973
|
-
id?: number;
|
|
974
|
-
sender_id?: string;
|
|
975
|
-
};
|
|
976
|
-
Relationships: [];
|
|
977
|
-
};
|
|
978
1068
|
messages_2026_05: {
|
|
979
1069
|
Row: {
|
|
980
1070
|
content: string;
|
|
@@ -3992,6 +4082,14 @@ export type Database = {
|
|
|
3992
4082
|
};
|
|
3993
4083
|
unfollow_user: { Args: { target_user_id: string }; Returns: undefined };
|
|
3994
4084
|
unpublish_newsletter_post: { Args: { p_post_id: string }; Returns: Json };
|
|
4085
|
+
update_creator_report_status: {
|
|
4086
|
+
Args: {
|
|
4087
|
+
p_new_status: string;
|
|
4088
|
+
p_report_id: string;
|
|
4089
|
+
p_resolution_note?: string;
|
|
4090
|
+
};
|
|
4091
|
+
Returns: Json;
|
|
4092
|
+
};
|
|
3995
4093
|
update_order_tracking: {
|
|
3996
4094
|
Args: {
|
|
3997
4095
|
p_carrier?: string;
|
|
@@ -4219,6 +4317,16 @@ export type Database = {
|
|
|
4219
4317
|
| "withdraw_release"
|
|
4220
4318
|
| "withdraw_complete"
|
|
4221
4319
|
| "manual_adjustment";
|
|
4320
|
+
report_category:
|
|
4321
|
+
| "bullying_or_harassment"
|
|
4322
|
+
| "illegal_activity"
|
|
4323
|
+
| "nudity_or_explicit_content"
|
|
4324
|
+
| "hate_speech_or_discrimination"
|
|
4325
|
+
| "inaccurate_or_misleading_info"
|
|
4326
|
+
| "scam_or_fraud"
|
|
4327
|
+
| "intellectual_property"
|
|
4328
|
+
| "incomplete_or_unfulfilled_orders"
|
|
4329
|
+
| "other";
|
|
4222
4330
|
service_request_status:
|
|
4223
4331
|
| "pending"
|
|
4224
4332
|
| "reviewing"
|
|
@@ -4506,6 +4614,17 @@ export const Constants = {
|
|
|
4506
4614
|
"withdraw_complete",
|
|
4507
4615
|
"manual_adjustment",
|
|
4508
4616
|
],
|
|
4617
|
+
report_category: [
|
|
4618
|
+
"bullying_or_harassment",
|
|
4619
|
+
"illegal_activity",
|
|
4620
|
+
"nudity_or_explicit_content",
|
|
4621
|
+
"hate_speech_or_discrimination",
|
|
4622
|
+
"inaccurate_or_misleading_info",
|
|
4623
|
+
"scam_or_fraud",
|
|
4624
|
+
"intellectual_property",
|
|
4625
|
+
"incomplete_or_unfulfilled_orders",
|
|
4626
|
+
"other",
|
|
4627
|
+
],
|
|
4509
4628
|
service_request_status: [
|
|
4510
4629
|
"pending",
|
|
4511
4630
|
"reviewing",
|