@livechat/customer-sdk 3.1.5 → 4.0.0

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.
@@ -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: {
@@ -18,6 +18,7 @@ export type Greeting = {
18
18
  };
19
19
  };
20
20
  export type DynamicConfig = {
21
+ organization_id: string;
21
22
  customer_data: {
22
23
  chats_count: number;
23
24
  invitations_accepted_count: number;
@@ -8,7 +8,7 @@ export type InitialStateData = {
8
8
  name?: string;
9
9
  version?: string;
10
10
  };
11
- licenseId: number;
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
- licenseId: number;
27
+ organizationId: string;
28
28
  groupId: number | null;
29
29
  chats: Record<string, {
30
30
  active: boolean;