@hobenakicoffee/libraries 2.1.0 → 3.0.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": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "exports": {
@@ -15,7 +15,6 @@ export type ActivityMetadata = {
15
15
  platform_fee?: number;
16
16
  price_at_purchase?: number;
17
17
  message?: string;
18
- tier_name?: string;
19
18
  item_name?: string;
20
19
  buyer_name?: string;
21
20
  buyer_platform?: string;
@@ -30,11 +29,16 @@ export type ActivityMetadata = {
30
29
  identity_hash?: string;
31
30
  follower_name?: string;
32
31
  follower_username?: string;
33
- action?: "follow" | "unfollow";
34
32
  source?: string;
35
33
  post_id?: string;
36
34
  post_slug?: string;
37
35
  post_title?: string;
36
+ plan_id?: string;
37
+ plan_name?: string;
38
+ service_type?: string;
39
+ billing_cycle?: string;
40
+ period_end?: string;
41
+ action?: "follow" | "unfollow";
38
42
  };
39
43
 
40
44
  export type SupportersMetadata = {
@@ -337,6 +337,38 @@ export type Database = {
337
337
  };
338
338
  Relationships: [];
339
339
  };
340
+ membership_notifications: {
341
+ Row: {
342
+ created_at: string;
343
+ id: string;
344
+ notification_type: Database["public"]["Enums"]["membership_notification_type_enum"];
345
+ profile_membership_id: string;
346
+ sent_at: string;
347
+ };
348
+ Insert: {
349
+ created_at?: string;
350
+ id?: string;
351
+ notification_type: Database["public"]["Enums"]["membership_notification_type_enum"];
352
+ profile_membership_id: string;
353
+ sent_at?: string;
354
+ };
355
+ Update: {
356
+ created_at?: string;
357
+ id?: string;
358
+ notification_type?: Database["public"]["Enums"]["membership_notification_type_enum"];
359
+ profile_membership_id?: string;
360
+ sent_at?: string;
361
+ };
362
+ Relationships: [
363
+ {
364
+ foreignKeyName: "membership_notifications_profile_membership_id_fkey";
365
+ columns: ["profile_membership_id"];
366
+ isOneToOne: false;
367
+ referencedRelation: "profile_memberships";
368
+ referencedColumns: ["id"];
369
+ },
370
+ ];
371
+ };
340
372
  membership_plans: {
341
373
  Row: {
342
374
  access_config: Json;
@@ -1748,6 +1780,10 @@ export type Database = {
1748
1780
  Args: { p_conversation_id: string };
1749
1781
  Returns: undefined;
1750
1782
  };
1783
+ process_membership_expiry_notifications: {
1784
+ Args: never;
1785
+ Returns: undefined;
1786
+ };
1751
1787
  process_service_payment: {
1752
1788
  Args: {
1753
1789
  p_amount: number;
@@ -1765,6 +1801,21 @@ export type Database = {
1765
1801
  };
1766
1802
  Returns: Json;
1767
1803
  };
1804
+ purchase_newsletter_membership: {
1805
+ Args: {
1806
+ p_buyer_name: string;
1807
+ p_buyer_platform?: Database["public"]["Enums"]["supporter_platform_enum"];
1808
+ p_buyer_profile_id: string;
1809
+ p_identity_hash: string;
1810
+ p_message?: string;
1811
+ p_plan_id: string;
1812
+ p_platform_fee: number;
1813
+ p_provider: Database["public"]["Enums"]["provider_enum"];
1814
+ p_provider_transaction_id: string;
1815
+ p_source?: string;
1816
+ };
1817
+ Returns: Json;
1818
+ };
1768
1819
  purchase_newsletter_post: {
1769
1820
  Args: {
1770
1821
  p_amount: number;
@@ -1863,6 +1914,13 @@ export type Database = {
1863
1914
  | "developer_manager";
1864
1915
  manager_status: "ACTIVE" | "INACTIVE" | "SUSPENDED";
1865
1916
  membership_billing_cycle_enum: "monthly" | "annual" | "lifetime";
1917
+ membership_notification_type_enum:
1918
+ | "5_days"
1919
+ | "3_days"
1920
+ | "1_day"
1921
+ | "expired"
1922
+ | "3_days_post"
1923
+ | "7_days_post";
1866
1924
  membership_status_enum:
1867
1925
  | "active"
1868
1926
  | "cancelled"
@@ -2111,6 +2169,14 @@ export const Constants = {
2111
2169
  ],
2112
2170
  manager_status: ["ACTIVE", "INACTIVE", "SUSPENDED"],
2113
2171
  membership_billing_cycle_enum: ["monthly", "annual", "lifetime"],
2172
+ membership_notification_type_enum: [
2173
+ "5_days",
2174
+ "3_days",
2175
+ "1_day",
2176
+ "expired",
2177
+ "3_days_post",
2178
+ "7_days_post",
2179
+ ],
2114
2180
  membership_status_enum: [
2115
2181
  "active",
2116
2182
  "cancelled",