@livechat/customer-sdk 3.1.5 → 4.0.1
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/README.md +26 -77
- package/dist/customer-sdk.cjs.js +208 -228
- package/dist/customer-sdk.cjs.native.js +208 -228
- package/dist/customer-sdk.esm.js +202 -227
- package/dist/customer-sdk.js +481 -399
- package/dist/customer-sdk.min.js +1 -1
- package/package.json +7 -8
- package/types/actions.d.ts +8 -8
- package/types/constants/organizationIds.d.ts +2 -0
- package/types/constants/serverDisconnectionReasons.d.ts +1 -0
- package/types/constants/serverPushActions.d.ts +1 -0
- package/types/createStore.d.ts +1 -1
- package/types/graylog/index.d.ts +2 -2
- package/types/index.d.ts +20 -7
- package/types/reducer.d.ts +14 -15
- package/types/sendTicketForm.d.ts +2 -1
- package/types/serverFrameParser.d.ts +10 -2
- package/types/sideEffects/index.d.ts +2 -1
- package/types/sideStorage.d.ts +2 -2
- package/types/socketListener.d.ts +6 -3
- package/types/types/clientEntities.d.ts +2 -0
- package/types/types/frames.d.ts +10 -1
- package/types/types/serverEntities.d.ts +1 -0
- package/types/types/state.d.ts +2 -2
package/types/types/frames.d.ts
CHANGED
|
@@ -116,6 +116,15 @@ export type GreetingAcceptedPush = {
|
|
|
116
116
|
unique_id: string;
|
|
117
117
|
};
|
|
118
118
|
};
|
|
119
|
+
export type GroupsStatusUpdatedPush = {
|
|
120
|
+
action: typeof serverPushActions.GROUPS_STATUS_UPDATED;
|
|
121
|
+
payload: {
|
|
122
|
+
groups: Array<{
|
|
123
|
+
id: number;
|
|
124
|
+
status: serverEntities.GroupStatus;
|
|
125
|
+
}>;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
119
128
|
export type GreetingCanceledPush = {
|
|
120
129
|
action: typeof serverPushActions.GREETING_CANCELED;
|
|
121
130
|
payload: {
|
|
@@ -218,7 +227,7 @@ export type PushResponse = Any.Compute<{
|
|
|
218
227
|
} & (ChatDeactivatedPush | IncomingChatPush | IncomingEventPush)>;
|
|
219
228
|
export type Push = Any.Compute<{
|
|
220
229
|
type: 'push';
|
|
221
|
-
} & (ChatDeactivatedPush | ChatPropertiesDeletedPush | ChatPropertiesUpdatedPush | ChatTransferredPush | CustomerDisconnectedPush | CustomerPageUpdatedPush | CustomerSideStorageUpdatedPush | CustomerUpdatedPush | EventPropertiesDeletedPush | EventPropertiesUpdatedPush | EventUpdatedPush | EventsMarkedAsSeenPush | GreetingAcceptedPush | GreetingCanceledPush | IncomingChatPush | IncomingEventPush | IncomingMulticastPush | IncomingGreetingPush | IncomingRichMessagePostbackPush | IncomingTypingIndicatorPush | QueuePositionUpdatedPush | ThreadPropertiesDeletedPush | ThreadPropertiesUpdatedPush | UserAddedToChatPush | UserRemovedFromChatPush)>;
|
|
230
|
+
} & (ChatDeactivatedPush | ChatPropertiesDeletedPush | ChatPropertiesUpdatedPush | ChatTransferredPush | CustomerDisconnectedPush | CustomerPageUpdatedPush | CustomerSideStorageUpdatedPush | CustomerUpdatedPush | EventPropertiesDeletedPush | EventPropertiesUpdatedPush | EventUpdatedPush | EventsMarkedAsSeenPush | GreetingAcceptedPush | GreetingCanceledPush | GroupsStatusUpdatedPush | IncomingChatPush | IncomingEventPush | IncomingMulticastPush | IncomingGreetingPush | IncomingRichMessagePostbackPush | IncomingTypingIndicatorPush | QueuePositionUpdatedPush | ThreadPropertiesDeletedPush | ThreadPropertiesUpdatedPush | UserAddedToChatPush | UserRemovedFromChatPush)>;
|
|
222
231
|
export type AcceptGreetingRequest = {
|
|
223
232
|
action: typeof serverRequestActions.ACCEPT_GREETING;
|
|
224
233
|
payload: {
|
package/types/types/state.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type InitialStateData = {
|
|
|
8
8
|
name?: string;
|
|
9
9
|
version?: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
organizationId: string;
|
|
12
12
|
groupId?: number | null;
|
|
13
13
|
env: Env;
|
|
14
14
|
page?: Page | null;
|
|
@@ -24,7 +24,7 @@ export type State = {
|
|
|
24
24
|
version?: string;
|
|
25
25
|
};
|
|
26
26
|
env: Env;
|
|
27
|
-
|
|
27
|
+
organizationId: string;
|
|
28
28
|
groupId: number | null;
|
|
29
29
|
chats: Record<string, {
|
|
30
30
|
active: boolean;
|