@hobenakicoffee/libraries 4.5.0 → 4.7.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": "4.5.0",
3
+ "version": "4.7.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "repository": {
@@ -8,6 +8,16 @@ export type TransactionMetadata = {
8
8
  count?: number;
9
9
  };
10
10
 
11
+ export type ActivityType =
12
+ | "category_approved"
13
+ | "category_rejected"
14
+ | "product_approved"
15
+ | "product_rejected"
16
+ | "post_gifted"
17
+ | "post_gift_sent"
18
+ | "post_approved"
19
+ | "post_rejected";
20
+
11
21
  export type ActivityMetadata = {
12
22
  type?: string;
13
23
  amount?: number;
@@ -37,7 +47,15 @@ export type ActivityMetadata = {
37
47
  plan_name?: string;
38
48
  service_type?: string;
39
49
  billing_cycle?: string;
50
+ activity_type?: ActivityType;
40
51
  period_end?: string;
52
+ rejection_reason?: string;
53
+ category_id?: string;
54
+ category_name?: string;
55
+ grant_id?: string;
56
+ gift_message?: string;
57
+ product_id?: string;
58
+ product_title?: string;
41
59
  action?: "follow" | "unfollow";
42
60
  };
43
61
 
@@ -2377,6 +2377,7 @@ export type Database = {
2377
2377
  };
2378
2378
  Returns: Json;
2379
2379
  };
2380
+ approve_newsletter_post: { Args: { p_post_id: string }; Returns: Json };
2380
2381
  approve_shop_category: { Args: { p_category_id: string }; Returns: Json };
2381
2382
  approve_shop_product: { Args: { p_product_id: string }; Returns: Json };
2382
2383
  authorize_manager: {
@@ -2551,6 +2552,7 @@ export type Database = {
2551
2552
  price: number;
2552
2553
  published_at: string;
2553
2554
  purchase_count: number;
2555
+ reject_reason: string;
2554
2556
  revenue_total: number;
2555
2557
  slug: string;
2556
2558
  subtitle: string;
@@ -2842,6 +2844,10 @@ export type Database = {
2842
2844
  Args: { p_post_id: string };
2843
2845
  Returns: undefined;
2844
2846
  };
2847
+ reject_newsletter_post: {
2848
+ Args: { p_post_id: string; p_rejection_reason: string };
2849
+ Returns: Json;
2850
+ };
2845
2851
  reject_shop_category: {
2846
2852
  Args: { p_category_id: string; p_rejection_reason: string };
2847
2853
  Returns: Json;