somod-chat-service 0.6.1 → 0.6.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.
- package/build/lib/types.d.ts +2 -1
- package/build/lib/types.js +2 -1
- package/package.json +1 -1
package/build/lib/types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type Thread = {
|
|
|
9
9
|
} & ThreadInput & ThreadSessionRequired;
|
|
10
10
|
export type MessageInput = {
|
|
11
11
|
threadId: string;
|
|
12
|
-
type: "text" | "image" | "control" | "call";
|
|
12
|
+
type: "text" | "image" | "control" | "call" | "pooja";
|
|
13
13
|
action: "new" | "edit" | "delete" | "sessionStart" | "sessionExtend" | "sessionEnd" | "sessionRequirementChange" | "initiated" | "connected" | "disconnected" | "ended";
|
|
14
14
|
message: string;
|
|
15
15
|
sessionToken?: string;
|
|
@@ -32,6 +32,7 @@ export declare const typeToAllowedActionsMap: {
|
|
|
32
32
|
image: string[];
|
|
33
33
|
control: string[];
|
|
34
34
|
call: string[];
|
|
35
|
+
pooja: string[];
|
|
35
36
|
};
|
|
36
37
|
/**
|
|
37
38
|
* Store the message type and actions for which the session token is required
|
package/build/lib/types.js
CHANGED
|
@@ -8,7 +8,8 @@ export var typeToAllowedActionsMap = {
|
|
|
8
8
|
"sessionEnd",
|
|
9
9
|
"sessionRequirementChange"
|
|
10
10
|
],
|
|
11
|
-
call: ["initiated", "connected", "disconnected", "ended"]
|
|
11
|
+
call: ["initiated", "connected", "disconnected", "ended"],
|
|
12
|
+
pooja: ["new", "edit"]
|
|
12
13
|
};
|
|
13
14
|
/**
|
|
14
15
|
* Store the message type and actions for which the session token is required
|
package/package.json
CHANGED