@feedmepos/mf-remy-panel 0.22.0-dev.1 → 0.22.0-dev.3
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/dist/{HomeView-Bi1C7olt.js → HomeView-nTXgIQet.js} +1 -1
- package/dist/{RemyButton-CBnlcdT6.js → RemyButton-1pf0WZKf.js} +1 -1
- package/dist/api/http.d.ts +2 -0
- package/dist/api/memory.d.ts +16 -2
- package/dist/{app-CISCXcYi.js → app-C39BOOjy.js} +12164 -12081
- package/dist/app.js +1 -1
- package/dist/bootstrap/remy.d.ts +7 -0
- package/dist/components/chatPanel/ChatMessages.vue.d.ts +9 -2
- package/dist/components/memory/MemoryReview.vue.d.ts +2 -0
- package/dist/mf-remy-panel.css +1 -1
- package/dist/stores/previewStore.d.ts +18 -18
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, ref as n, openBlock as l, createElementBlock as i, createElementVNode as e, createVNode as E, createTextVNode as _, createStaticVNode as x, toDisplayString as p, createCommentVNode as m } from "vue";
|
|
2
|
-
import { u as w, d as B, c as f, R as N, _ as R } from "./app-
|
|
2
|
+
import { u as w, d as B, c as f, R as N, _ as R } from "./app-C39BOOjy.js";
|
|
3
3
|
const T = { class: "home" }, D = { class: "home__hero" }, I = { class: "home__brand" }, S = { class: "home__card" }, M = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "home__autofill"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, computed as t, openBlock as r, createElementBlock as m, normalizeClass as n, createVNode as u, createCommentVNode as p } from "vue";
|
|
2
|
-
import { u as d, R as g } from "./app-
|
|
2
|
+
import { u as d, R as g } from "./app-C39BOOjy.js";
|
|
3
3
|
const w = /* @__PURE__ */ l({
|
|
4
4
|
__name: "RemyButton",
|
|
5
5
|
emits: ["click"],
|
package/dist/api/http.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const apiClient: import("axios").AxiosInstance;
|
|
2
2
|
export declare function setApiBaseUrl(url: string): void;
|
|
3
|
+
export declare function setHostApp(app: string | undefined): void;
|
|
4
|
+
export declare function getHostApp(): string | undefined;
|
|
3
5
|
export declare function setApiAuthTokenProvider(provider: () => string | undefined): void;
|
package/dist/api/memory.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export type KnownMemoryScope = 'general' | 'report' | 'menu' | 'marketing';
|
|
|
5
5
|
export type MemoryScope = KnownMemoryScope | (string & {});
|
|
6
6
|
export type MemoryStatus = 'active' | 'superseded' | 'archived';
|
|
7
7
|
export interface MemoryDto {
|
|
8
|
+
source?: 'feedme_portal' | 'whatsapp';
|
|
9
|
+
memoryFor?: 'person' | 'business' | 'outlet';
|
|
10
|
+
restaurantId?: string;
|
|
8
11
|
id: string;
|
|
9
12
|
text: string;
|
|
10
13
|
key?: string;
|
|
@@ -75,6 +78,16 @@ export interface EpisodeDetailDto extends EpisodeDto {
|
|
|
75
78
|
memories: MemoryDto[];
|
|
76
79
|
}
|
|
77
80
|
export interface MemoryReviewItemDto {
|
|
81
|
+
source?: 'feedme_portal' | 'whatsapp';
|
|
82
|
+
reconciliation?: {
|
|
83
|
+
action: string;
|
|
84
|
+
previousText: string;
|
|
85
|
+
};
|
|
86
|
+
target?: {
|
|
87
|
+
kind: 'person' | 'business' | 'outlet';
|
|
88
|
+
restaurantId?: string;
|
|
89
|
+
};
|
|
90
|
+
approvalBlockedReason?: string;
|
|
78
91
|
id: string;
|
|
79
92
|
text: string;
|
|
80
93
|
key: string;
|
|
@@ -87,6 +100,7 @@ export interface MemoryReviewItemDto {
|
|
|
87
100
|
reviewReasons: string[];
|
|
88
101
|
}
|
|
89
102
|
export declare function fetchMemories(businessId: string, opts?: {
|
|
103
|
+
memoryFor?: 'person' | 'business' | 'outlet';
|
|
90
104
|
category?: string;
|
|
91
105
|
scope?: string;
|
|
92
106
|
status?: string;
|
|
@@ -99,10 +113,10 @@ export declare function updateMemory(businessId: string, id: string, patch: {
|
|
|
99
113
|
category?: string;
|
|
100
114
|
scope?: string;
|
|
101
115
|
}): Promise<MemoryDto>;
|
|
102
|
-
export declare function forgetMemory(businessId: string, id: string): Promise<void>;
|
|
116
|
+
export declare function forgetMemory(businessId: string, id: string, source?: 'feedme_portal' | 'whatsapp'): Promise<void>;
|
|
103
117
|
export declare function pinMemory(businessId: string, id: string, pinned: boolean): Promise<MemoryDto>;
|
|
104
118
|
export declare function fetchMemoryGraph(businessId: string): Promise<MemoryGraphResponse>;
|
|
105
119
|
export declare function fetchEpisodes(businessId: string, page?: number, limit?: number): Promise<EpisodeListResponse>;
|
|
106
120
|
export declare function fetchEpisode(businessId: string, id: string): Promise<EpisodeDetailDto>;
|
|
107
121
|
export declare function fetchMemoryReviews(businessId: string): Promise<MemoryReviewItemDto[]>;
|
|
108
|
-
export declare function reviewMemory(businessId: string, id: string, action: 'approve' | 'reject', text?: string): Promise<void>;
|
|
122
|
+
export declare function reviewMemory(businessId: string, id: string, action: 'approve' | 'reject', text?: string, source?: 'feedme_portal' | 'whatsapp'): Promise<void>;
|