@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 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
+ ![GitHub Stars](https://www.shieldcn.dev/github/stars/hobenakicoffee/libraries.svg?variant=secondary&size=sm)
7
+ ![GitHub Forks](https://www.shieldcn.dev/github/forks/hobenakicoffee/libraries.svg?variant=secondary&size=sm)
8
+ ![Watchers](https://www.shieldcn.dev/github/watchers/hobenakicoffee/libraries.svg?variant=secondary&size=sm)
9
+ ![Branches](https://www.shieldcn.dev/github/branches/hobenakicoffee/libraries.svg?variant=ghost&size=sm)
10
+ ![Contributors](https://www.shieldcn.dev/github/contributors/hobenakicoffee/libraries.svg?theme=emerald&size=sm)
11
+ ![Last commit](https://www.shieldcn.dev/github/last-commit/hobenakicoffee/libraries.svg?variant=secondary&size=sm)
12
+ ![Commits](https://www.shieldcn.dev/github/commits/hobenakicoffee/libraries.svg?variant=secondary&size=sm)
13
+ ![Open issues](https://www.shieldcn.dev/github/open-issues/hobenakicoffee/libraries.svg?variant=secondary&size=sm)
14
+ ![Closed issues](https://www.shieldcn.dev/github/closed-issues/hobenakicoffee/libraries.svg?variant=ghost&size=sm)
15
+ ![Open PRs](https://www.shieldcn.dev/github/open-prs/hobenakicoffee/libraries.svg?variant=secondary&size=sm)
16
+ ![Closed PRs](https://www.shieldcn.dev/github/closed-prs/hobenakicoffee/libraries.svg?variant=ghost&size=sm)
17
+ ![Merged PRs](https://www.shieldcn.dev/github/merged-prs/hobenakicoffee/libraries.svg?variant=ghost&size=sm)
18
+ ![Release](https://www.shieldcn.dev/github/release/hobenakicoffee/libraries.svg?size=sm)
19
+ ![CI](https://www.shieldcn.dev/github/ci/hobenakicoffee/libraries.svg?variant=secondary&size=sm)
20
+ ![License](https://www.shieldcn.dev/github/license/hobenakicoffee/libraries.svg?variant=ghost&size=sm)
21
+ ![npm Version](https://www.shieldcn.dev/npm/@hobenakicoffee/libraries.svg?variant=secondary&size=sm)
22
+ ![npm Weekly Downloads](https://www.shieldcn.dev/npm/dw/@hobenakicoffee/libraries.svg?size=sm)
23
+ ![npm Monthly Downloads](https://www.shieldcn.dev/npm/dm/@hobenakicoffee/libraries.svg?variant=ghost&size=sm)
24
+ ![npm Total Downloads](https://www.shieldcn.dev/npm/dt/@hobenakicoffee/libraries.svg?variant=secondary&size=sm)
25
+ ![npm Dependents](https://www.shieldcn.dev/npm/dependents/@hobenakicoffee/libraries.svg?variant=secondary&size=sm)
26
+ ![npm Types](https://www.shieldcn.dev/npm/types/@hobenakicoffee/libraries.svg?theme=blue&size=sm)
27
+ ![npm Node](https://www.shieldcn.dev/npm/node/@hobenakicoffee/libraries.svg?variant=secondary&size=sm)
28
+ ![npm License](https://www.shieldcn.dev/npm/license/@hobenakicoffee/libraries.svg?variant=ghost&size=sm)
29
+ ![Package mgr · Bun](https://www.shieldcn.dev/badge/Package_mgr-Bun-000000.svg?logo=bun&variant=branded&size=sm)
30
+ ![Language · TypeScript](https://www.shieldcn.dev/badge/Language-TypeScript-3178C6.svg?logo=typescript&variant=branded&size=sm)
31
+ ![Bundler · Vite](https://www.shieldcn.dev/badge/Bundler-Vite-646CFF.svg?logo=vite&variant=branded&size=sm)
32
+ ![OpenAI](https://www.shieldcn.dev/badge/Stack-OpenAI-412991.svg?logo=openai&variant=branded&size=sm)
33
+ ![React](https://www.shieldcn.dev/badge/Stack-React-61DAFB.svg?logo=react&variant=branded&size=sm)
34
+ ![Tailwind CSS](https://www.shieldcn.dev/badge/Stack-Tailwind_CSS-06B6D4.svg?logo=tailwindcss&variant=branded&size=sm)
35
+ ![Zod](https://www.shieldcn.dev/badge/Stack-Zod-3E67B1.svg?logo=zod&variant=branded&size=sm)
36
+ ![Biome](https://www.shieldcn.dev/badge/Stack-Biome-60A5FA.svg?logo=biome&variant=branded&size=sm)
37
+ ![VitePress](https://www.shieldcn.dev/badge/Stack-VitePress-5E72E4.svg?logo=vitepress&variant=branded&size=sm)
38
+ ![ESM only](https://www.shieldcn.dev/badge/ESM-only-16a34a.svg?variant=secondary&size=sm)
39
+ ![Agent-friendly AGENTS.md](https://www.shieldcn.dev/badge/Agent--friendly-AGENTS.md-D97757.svg?variant=secondary&size=sm)
40
+
6
41
  ## Installation
7
42
 
8
43
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hobenakicoffee/libraries",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "repository": {
@@ -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: false;
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;