Merge branch 'goutamnextflow' of https://git.lynkedup.cloud/Goutam/lynkeduppro-crm into goutamnextflow
This commit is contained in:
Generated
+4
-4
@@ -10,7 +10,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@abe-kap/appshell-sdk": "^0.2.6",
|
"@abe-kap/appshell-sdk": "^0.2.6",
|
||||||
"@insignia/iios-kernel-client": "^0.1.4",
|
"@insignia/iios-kernel-client": "^0.1.4",
|
||||||
"@insignia/iios-messaging-ui": "^0.1.4",
|
"@insignia/iios-messaging-ui": "^0.1.5",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"lucide-react": "^1.21.0",
|
"lucide-react": "^1.21.0",
|
||||||
"next": "16.2.9",
|
"next": "16.2.9",
|
||||||
@@ -1028,9 +1028,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@insignia/iios-messaging-ui": {
|
"node_modules/@insignia/iios-messaging-ui": {
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"resolved": "https://git.lynkedup.cloud/api/packages/insignia/npm/%40insignia%2Fiios-messaging-ui/-/0.1.4/iios-messaging-ui-0.1.4.tgz",
|
"resolved": "https://git.lynkedup.cloud/api/packages/insignia/npm/%40insignia%2Fiios-messaging-ui/-/0.1.5/iios-messaging-ui-0.1.5.tgz",
|
||||||
"integrity": "sha512-xgwVPY//NFyCrGxuLpLlrXn89q2SMgQoKTiW46CWdLx6rkaaxSesVEijGEoYt25rVPVF9+RcDPbwIBQ2GDtHQw==",
|
"integrity": "sha512-3Ib72RsyyOEMIFl2MquAwdocbeYOMpg4XkSLaje8rmgche+QJSRnJd3hzZyhv89VBolxPxNZw+Sz6bN9J0gp9Q==",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@insignia/iios-kernel-client": "*",
|
"@insignia/iios-kernel-client": "*",
|
||||||
"react": ">=18",
|
"react": ">=18",
|
||||||
|
|||||||
@@ -207,9 +207,21 @@ export class CrmMessagingAdapter implements MessagingAdapter {
|
|||||||
await this.sdk.command("crm.messenger.channel.leave", { threadId });
|
await this.sdk.command("crm.messenger.channel.leave", { threadId });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async addMember(threadId: string, userId: string): Promise<void> {
|
||||||
|
await this.sdk.command("crm.messenger.participant.add", { threadId, userId });
|
||||||
|
}
|
||||||
|
|
||||||
|
async removeMember(threadId: string, userId: string): Promise<void> {
|
||||||
|
await this.sdk.command("crm.messenger.participant.remove", { threadId, userId });
|
||||||
|
}
|
||||||
|
|
||||||
|
async renameConversation(threadId: string, subject: string): Promise<void> {
|
||||||
|
await this.sdk.command("crm.messenger.group.rename", { threadId, subject });
|
||||||
|
}
|
||||||
|
|
||||||
async listMembers(threadId: string): Promise<Person[]> {
|
async listMembers(threadId: string): Promise<Person[]> {
|
||||||
const rows = await this.sdk.query<Array<{ userId: string; displayName: string; role: string }>>("crm.messenger.members", { threadId });
|
const rows = await this.sdk.query<Array<{ userId: string; displayName: string; role: string }>>("crm.messenger.members", { threadId });
|
||||||
return rows.map((r) => ({ id: r.userId, name: r.displayName, kind: "staff" as const }));
|
return rows.map((r) => ({ id: r.userId, name: r.displayName, kind: r.role === "CUSTOMER" ? "customer" : "staff" }));
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── polling fallback (no socket) ───────────────────────────────
|
// ── polling fallback (no socket) ───────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user