@feedmepos/mf-remy-panel 0.4.3-dev.1 → 0.5.0-dev.2

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, ref as a, openBlock as l, createElementBlock as n, createElementVNode as e, unref as b, createTextVNode as g, createStaticVNode as k, toDisplayString as i, createCommentVNode as r } from "vue";
2
- import { u as E, a as _, R as C, _ as x } from "./app-9e3cec61.js";
2
+ import { u as E, a as _, R as C, _ as x } from "./app-e7786e1c.js";
3
3
  import "pinia";
4
4
  import "@feedmepos/mf-common";
5
5
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, computed as o, openBlock as i, createElementBlock as l, normalizeClass as t, createElementVNode as p, unref as u, createCommentVNode as d } from "vue";
2
- import { u as y, R as _ } from "./app-9e3cec61.js";
2
+ import { u as y, R as _ } from "./app-e7786e1c.js";
3
3
  import "pinia";
4
4
  import "@feedmepos/mf-common";
5
5
  import "vue-router";
@@ -8,6 +8,13 @@ export interface ConversationResponseDto {
8
8
  createdAt: string;
9
9
  updatedAt: string;
10
10
  }
11
+ export interface PaginatedConversationsResponseDto {
12
+ data: ConversationResponseDto[];
13
+ total: number;
14
+ page: number;
15
+ limit: number;
16
+ hasMore: boolean;
17
+ }
11
18
  export interface CreateConversationDto {
12
19
  businessId: string;
13
20
  }
@@ -15,7 +22,7 @@ export interface UpdateConversationDto {
15
22
  title: string;
16
23
  }
17
24
  export declare function createConversation(businessId: string): Promise<ConversationResponseDto>;
18
- export declare function fetchConversations(businessId: string): Promise<ConversationResponseDto[]>;
25
+ export declare function fetchConversations(businessId: string, page?: number, limit?: number): Promise<PaginatedConversationsResponseDto>;
19
26
  export declare function fetchConversation(conversationId: string): Promise<ConversationResponseDto>;
20
27
  export declare function updateConversation(conversationId: string, data: UpdateConversationDto): Promise<ConversationResponseDto>;
21
28
  export declare function deleteConversation(conversationId: string): Promise<void>;
@@ -13,5 +13,12 @@ export interface MessageResponseDto {
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  }
16
- export declare function fetchMessages(conversationId: string): Promise<MessageResponseDto[]>;
16
+ export interface PaginatedMessagesResponseDto {
17
+ data: MessageResponseDto[];
18
+ total: number;
19
+ page: number;
20
+ limit: number;
21
+ hasMore: boolean;
22
+ }
23
+ export declare function fetchMessages(conversationId: string, page?: number, limit?: number): Promise<PaginatedMessagesResponseDto>;
17
24
  export declare function convertToChMessage(dto: MessageResponseDto): ChatMessage;