@hobenakicoffee/libraries 5.12.2 → 6.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": "5.12.2",
3
+ "version": "6.0.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "types": "src/index.ts",
@@ -1,11 +1,11 @@
1
1
  export const ServiceTypes = {
2
2
  GIFT: "gift",
3
- DIGITAL_CONTENT: "digital_content",
4
- MY_SHOP: "my_shop",
5
- CONSULTANCY_1ON1: "consultancy_1on1",
6
- HIRE_ME: "hire_me",
3
+ DIGITAL_CONTENT: "digital-content",
4
+ MY_SHOP: "shop",
5
+ CONSULTANCY_1ON1: "consultancy",
6
+ HIRE_ME: "hire",
7
7
  COURSES: "courses",
8
- LIVE_STREAMS: "live_streams",
8
+ LIVE_STREAMS: "live-streaming",
9
9
  NEWSLETTER: "newsletter",
10
10
  WITHDRAWAL: "withdrawal",
11
11
  FOLLOW: "follow",
@@ -1023,6 +1023,30 @@ export type Database = {
1023
1023
  };
1024
1024
  Relationships: [];
1025
1025
  };
1026
+ messages_2026_07: {
1027
+ Row: {
1028
+ content: string;
1029
+ conversation_id: string;
1030
+ created_at: string;
1031
+ id: number;
1032
+ sender_id: string;
1033
+ };
1034
+ Insert: {
1035
+ content: string;
1036
+ conversation_id: string;
1037
+ created_at?: string;
1038
+ id?: number;
1039
+ sender_id: string;
1040
+ };
1041
+ Update: {
1042
+ content?: string;
1043
+ conversation_id?: string;
1044
+ created_at?: string;
1045
+ id?: number;
1046
+ sender_id?: string;
1047
+ };
1048
+ Relationships: [];
1049
+ };
1026
1050
  messages_default: {
1027
1051
  Row: {
1028
1052
  content: string;
@@ -3218,6 +3242,37 @@ export type Database = {
3218
3242
  Args: { p_profile_id: string; p_service_type: string };
3219
3243
  Returns: number;
3220
3244
  };
3245
+ get_creator_newsletter_posts: {
3246
+ Args: {
3247
+ p_creator_profile_id: string;
3248
+ p_cursor?: string;
3249
+ p_limit?: number;
3250
+ p_search?: string;
3251
+ };
3252
+ Returns: {
3253
+ access_badge: string;
3254
+ author_avatar_url: string;
3255
+ author_display_name: string;
3256
+ author_username: string;
3257
+ cover_image_url: string;
3258
+ excerpt: string;
3259
+ has_access: boolean;
3260
+ is_liked: boolean;
3261
+ is_members_only: boolean;
3262
+ is_pay_per_post: boolean;
3263
+ like_count: number;
3264
+ post_id: string;
3265
+ price: number;
3266
+ profile_id: string;
3267
+ published_at: string;
3268
+ reading_time_minutes: number;
3269
+ slug: string;
3270
+ subtitle: string;
3271
+ tags: string[];
3272
+ title: string;
3273
+ view_count: number;
3274
+ }[];
3275
+ };
3221
3276
  get_creator_public_activities: {
3222
3277
  Args: {
3223
3278
  p_creator_profile_id: string;
@@ -3422,7 +3477,6 @@ export type Database = {
3422
3477
  p_filter?: string;
3423
3478
  p_from?: string;
3424
3479
  p_limit?: number;
3425
- p_profile_id?: string;
3426
3480
  p_search?: string;
3427
3481
  p_to?: string;
3428
3482
  };