@hobenakicoffee/libraries 5.3.0 → 5.4.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.3.0",
3
+ "version": "5.4.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "repository": {
@@ -16,7 +16,9 @@ export type ActivityType =
16
16
  | "post_gifted"
17
17
  | "post_gift_sent"
18
18
  | "post_approved"
19
- | "post_rejected";
19
+ | "post_rejected"
20
+ | "kyc_approved"
21
+ | "kyc_resubmit_requested";
20
22
 
21
23
  export type ActivityMetadata = {
22
24
  type?: string;
@@ -56,6 +58,7 @@ export type ActivityMetadata = {
56
58
  gift_message?: string;
57
59
  product_id?: string;
58
60
  product_title?: string;
61
+ submission_id?: string;
59
62
  action?: "follow" | "unfollow";
60
63
  };
61
64
 
@@ -218,6 +218,7 @@ export type Database = {
218
218
  service_type: string;
219
219
  status: string;
220
220
  transaction_reference_id: string | null;
221
+ transactions_used_this_period: number;
221
222
  updated_at: string;
222
223
  };
223
224
  Insert: {
@@ -231,6 +232,7 @@ export type Database = {
231
232
  service_type: string;
232
233
  status?: string;
233
234
  transaction_reference_id?: string | null;
235
+ transactions_used_this_period?: number;
234
236
  updated_at?: string;
235
237
  };
236
238
  Update: {
@@ -244,6 +246,7 @@ export type Database = {
244
246
  service_type?: string;
245
247
  status?: string;
246
248
  transaction_reference_id?: string | null;
249
+ transactions_used_this_period?: number;
247
250
  updated_at?: string;
248
251
  };
249
252
  Relationships: [
@@ -1114,6 +1117,7 @@ export type Database = {
1114
1117
  description: string | null;
1115
1118
  id: number;
1116
1119
  is_active: boolean;
1120
+ monthly_transaction_cap: number | null;
1117
1121
  name: string;
1118
1122
  price_per_month: number;
1119
1123
  service_type: string;
@@ -1125,6 +1129,7 @@ export type Database = {
1125
1129
  description?: string | null;
1126
1130
  id?: never;
1127
1131
  is_active?: boolean;
1132
+ monthly_transaction_cap?: number | null;
1128
1133
  name: string;
1129
1134
  price_per_month: number;
1130
1135
  service_type: string;
@@ -1136,6 +1141,7 @@ export type Database = {
1136
1141
  description?: string | null;
1137
1142
  id?: never;
1138
1143
  is_active?: boolean;
1144
+ monthly_transaction_cap?: number | null;
1139
1145
  name?: string;
1140
1146
  price_per_month?: number;
1141
1147
  service_type?: string;
@@ -2731,6 +2737,7 @@ export type Database = {
2731
2737
  Args: { p_profile_id: string };
2732
2738
  Returns: Json;
2733
2739
  };
2740
+ cleanup_orphaned_kyc_documents: { Args: never; Returns: undefined };
2734
2741
  cleanup_orphaned_post_images: { Args: never; Returns: undefined };
2735
2742
  confirm_cod_cash_received: {
2736
2743
  Args: { p_order_item_id: string };
@@ -3115,6 +3122,10 @@ export type Database = {
3115
3122
  };
3116
3123
  Returns: boolean;
3117
3124
  };
3125
+ increment_creator_subscription_usage: {
3126
+ Args: { p_profile_id: string; p_service_type: string };
3127
+ Returns: undefined;
3128
+ };
3118
3129
  initiate_shop_checkout: {
3119
3130
  Args: {
3120
3131
  p_address_id?: string;