@hobenakicoffee/libraries 4.4.0 → 4.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/README.md +35 -0
- package/package.json +1 -1
- package/src/types/supabase.ts +10 -1
package/README.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
Framework-agnostic shared constants, utilities, types, and moderation tools for "হবে নাকি Coffee?" projects.
|
|
4
4
|
**Version: 4.1.1**
|
|
5
5
|
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+

|
|
16
|
+

|
|
17
|
+

|
|
18
|
+

|
|
19
|
+

|
|
20
|
+

|
|
21
|
+

|
|
22
|
+

|
|
23
|
+

|
|
24
|
+

|
|
25
|
+

|
|
26
|
+

|
|
27
|
+

|
|
28
|
+

|
|
29
|
+

|
|
30
|
+

|
|
31
|
+

|
|
32
|
+

|
|
33
|
+

|
|
34
|
+

|
|
35
|
+

|
|
36
|
+

|
|
37
|
+

|
|
38
|
+

|
|
39
|
+

|
|
40
|
+
|
|
6
41
|
## Installation
|
|
7
42
|
|
|
8
43
|
```bash
|
package/package.json
CHANGED
package/src/types/supabase.ts
CHANGED
|
@@ -286,7 +286,7 @@ export type Database = {
|
|
|
286
286
|
{
|
|
287
287
|
foreignKeyName: "manager_user_roles_user_id_fkey";
|
|
288
288
|
columns: ["user_id"];
|
|
289
|
-
isOneToOne:
|
|
289
|
+
isOneToOne: true;
|
|
290
290
|
referencedRelation: "managers";
|
|
291
291
|
referencedColumns: ["id"];
|
|
292
292
|
},
|
|
@@ -694,6 +694,7 @@ export type Database = {
|
|
|
694
694
|
published_at: string | null;
|
|
695
695
|
purchase_count: number;
|
|
696
696
|
reading_time_minutes: number | null;
|
|
697
|
+
reject_reason: string | null;
|
|
697
698
|
revenue_total: number;
|
|
698
699
|
slug: string | null;
|
|
699
700
|
status: Database["public"]["Enums"]["post_status_enum"];
|
|
@@ -719,6 +720,7 @@ export type Database = {
|
|
|
719
720
|
published_at?: string | null;
|
|
720
721
|
purchase_count?: number;
|
|
721
722
|
reading_time_minutes?: number | null;
|
|
723
|
+
reject_reason?: string | null;
|
|
722
724
|
revenue_total?: number;
|
|
723
725
|
slug?: string | null;
|
|
724
726
|
status?: Database["public"]["Enums"]["post_status_enum"];
|
|
@@ -744,6 +746,7 @@ export type Database = {
|
|
|
744
746
|
published_at?: string | null;
|
|
745
747
|
purchase_count?: number;
|
|
746
748
|
reading_time_minutes?: number | null;
|
|
749
|
+
reject_reason?: string | null;
|
|
747
750
|
revenue_total?: number;
|
|
748
751
|
slug?: string | null;
|
|
749
752
|
status?: Database["public"]["Enums"]["post_status_enum"];
|
|
@@ -2374,6 +2377,7 @@ export type Database = {
|
|
|
2374
2377
|
};
|
|
2375
2378
|
Returns: Json;
|
|
2376
2379
|
};
|
|
2380
|
+
approve_newsletter_post: { Args: { p_post_id: string }; Returns: Json };
|
|
2377
2381
|
approve_shop_category: { Args: { p_category_id: string }; Returns: Json };
|
|
2378
2382
|
approve_shop_product: { Args: { p_product_id: string }; Returns: Json };
|
|
2379
2383
|
authorize_manager: {
|
|
@@ -2548,6 +2552,7 @@ export type Database = {
|
|
|
2548
2552
|
price: number;
|
|
2549
2553
|
published_at: string;
|
|
2550
2554
|
purchase_count: number;
|
|
2555
|
+
reject_reason: string;
|
|
2551
2556
|
revenue_total: number;
|
|
2552
2557
|
slug: string;
|
|
2553
2558
|
subtitle: string;
|
|
@@ -2839,6 +2844,10 @@ export type Database = {
|
|
|
2839
2844
|
Args: { p_post_id: string };
|
|
2840
2845
|
Returns: undefined;
|
|
2841
2846
|
};
|
|
2847
|
+
reject_newsletter_post: {
|
|
2848
|
+
Args: { p_post_id: string; p_rejection_reason: string };
|
|
2849
|
+
Returns: Json;
|
|
2850
|
+
};
|
|
2842
2851
|
reject_shop_category: {
|
|
2843
2852
|
Args: { p_category_id: string; p_rejection_reason: string };
|
|
2844
2853
|
Returns: Json;
|