@hobenakicoffee/libraries 5.9.0 → 5.11.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.9.0",
3
+ "version": "5.11.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "repository": {
@@ -0,0 +1,52 @@
1
+ import type { Tables } from "@/types";
2
+
3
+ export const divisions: Tables<"divisions">[] = [
4
+ {
5
+ id: 1,
6
+ name: "Chattagram",
7
+ bn_name: "চট্টগ্রাম",
8
+ url: "www.chittagongdiv.gov.bd",
9
+ },
10
+ {
11
+ id: 2,
12
+ name: "Rajshahi",
13
+ bn_name: "রাজশাহী",
14
+ url: "www.rajshahidiv.gov.bd",
15
+ },
16
+ {
17
+ id: 3,
18
+ name: "Khulna",
19
+ bn_name: "খুলনা",
20
+ url: "www.khulnadiv.gov.bd",
21
+ },
22
+ {
23
+ id: 4,
24
+ name: "Barisal",
25
+ bn_name: "বরিশাল",
26
+ url: "www.barisaldiv.gov.bd",
27
+ },
28
+ {
29
+ id: 5,
30
+ name: "Sylhet",
31
+ bn_name: "সিলেট",
32
+ url: "www.sylhetdiv.gov.bd",
33
+ },
34
+ {
35
+ id: 6,
36
+ name: "Dhaka",
37
+ bn_name: "ঢাকা",
38
+ url: "www.dhakadiv.gov.bd",
39
+ },
40
+ {
41
+ id: 7,
42
+ name: "Rangpur",
43
+ bn_name: "রংপুর",
44
+ url: "www.rangpurdiv.gov.bd",
45
+ },
46
+ {
47
+ id: 8,
48
+ name: "Mymensingh",
49
+ bn_name: "ময়মনসিংহ",
50
+ url: "www.mymensinghdiv.gov.bd",
51
+ },
52
+ ];
@@ -1,4 +1,5 @@
1
1
  export * from "./common";
2
+ export * from "./divisions";
2
3
  export * from "./legal";
3
4
  export * from "./payment";
4
5
  export * from "./platforms";
@@ -305,6 +305,65 @@ export type Database = {
305
305
  },
306
306
  ];
307
307
  };
308
+ districts: {
309
+ Row: {
310
+ bn_name: string;
311
+ division_id: number;
312
+ id: number;
313
+ lat: number | null;
314
+ lon: number | null;
315
+ name: string;
316
+ url: string | null;
317
+ };
318
+ Insert: {
319
+ bn_name: string;
320
+ division_id: number;
321
+ id?: never;
322
+ lat?: number | null;
323
+ lon?: number | null;
324
+ name: string;
325
+ url?: string | null;
326
+ };
327
+ Update: {
328
+ bn_name?: string;
329
+ division_id?: number;
330
+ id?: never;
331
+ lat?: number | null;
332
+ lon?: number | null;
333
+ name?: string;
334
+ url?: string | null;
335
+ };
336
+ Relationships: [
337
+ {
338
+ foreignKeyName: "districts_division_id_fkey";
339
+ columns: ["division_id"];
340
+ isOneToOne: false;
341
+ referencedRelation: "divisions";
342
+ referencedColumns: ["id"];
343
+ },
344
+ ];
345
+ };
346
+ divisions: {
347
+ Row: {
348
+ bn_name: string;
349
+ id: number;
350
+ name: string;
351
+ url: string | null;
352
+ };
353
+ Insert: {
354
+ bn_name: string;
355
+ id?: never;
356
+ name: string;
357
+ url?: string | null;
358
+ };
359
+ Update: {
360
+ bn_name?: string;
361
+ id?: never;
362
+ name?: string;
363
+ url?: string | null;
364
+ };
365
+ Relationships: [];
366
+ };
308
367
  feed_item_bookmarks: {
309
368
  Row: {
310
369
  created_at: string;
@@ -2677,6 +2736,70 @@ export type Database = {
2677
2736
  },
2678
2737
  ];
2679
2738
  };
2739
+ unions: {
2740
+ Row: {
2741
+ bn_name: string;
2742
+ id: number;
2743
+ name: string;
2744
+ upazilla_id: number;
2745
+ url: string | null;
2746
+ };
2747
+ Insert: {
2748
+ bn_name: string;
2749
+ id?: never;
2750
+ name: string;
2751
+ upazilla_id: number;
2752
+ url?: string | null;
2753
+ };
2754
+ Update: {
2755
+ bn_name?: string;
2756
+ id?: never;
2757
+ name?: string;
2758
+ upazilla_id?: number;
2759
+ url?: string | null;
2760
+ };
2761
+ Relationships: [
2762
+ {
2763
+ foreignKeyName: "unions_upazilla_id_fkey";
2764
+ columns: ["upazilla_id"];
2765
+ isOneToOne: false;
2766
+ referencedRelation: "upazillas";
2767
+ referencedColumns: ["id"];
2768
+ },
2769
+ ];
2770
+ };
2771
+ upazillas: {
2772
+ Row: {
2773
+ bn_name: string;
2774
+ district_id: number;
2775
+ id: number;
2776
+ name: string;
2777
+ url: string | null;
2778
+ };
2779
+ Insert: {
2780
+ bn_name: string;
2781
+ district_id: number;
2782
+ id?: never;
2783
+ name: string;
2784
+ url?: string | null;
2785
+ };
2786
+ Update: {
2787
+ bn_name?: string;
2788
+ district_id?: number;
2789
+ id?: never;
2790
+ name?: string;
2791
+ url?: string | null;
2792
+ };
2793
+ Relationships: [
2794
+ {
2795
+ foreignKeyName: "upazillas_district_id_fkey";
2796
+ columns: ["district_id"];
2797
+ isOneToOne: false;
2798
+ referencedRelation: "districts";
2799
+ referencedColumns: ["id"];
2800
+ },
2801
+ ];
2802
+ };
2680
2803
  user_addresses: {
2681
2804
  Row: {
2682
2805
  address_line1: string;
@@ -3716,6 +3839,10 @@ export type Database = {
3716
3839
  Args: { p_is_active: boolean; p_profile_id: string };
3717
3840
  Returns: Json;
3718
3841
  };
3842
+ submit_shop_product_for_review: {
3843
+ Args: { p_product_id: string };
3844
+ Returns: Json;
3845
+ };
3719
3846
  toggle_feed_item_bookmark: {
3720
3847
  Args: { p_feed_item_id: number };
3721
3848
  Returns: Json;
@@ -3958,7 +4085,7 @@ export type Database = {
3958
4085
  | "implemented"
3959
4086
  | "rejected"
3960
4087
  | "duplicate";
3961
- shop_approval_status_enum: "pending" | "approved" | "rejected";
4088
+ shop_approval_status_enum: "draft" | "pending" | "approved" | "rejected";
3962
4089
  shop_order_item_status_enum:
3963
4090
  | "pending"
3964
4091
  | "paid"
@@ -4246,7 +4373,7 @@ export const Constants = {
4246
4373
  "rejected",
4247
4374
  "duplicate",
4248
4375
  ],
4249
- shop_approval_status_enum: ["pending", "approved", "rejected"],
4376
+ shop_approval_status_enum: ["draft", "pending", "approved", "rejected"],
4250
4377
  shop_order_item_status_enum: [
4251
4378
  "pending",
4252
4379
  "paid",