stream-chat 8.18.0 → 8.18.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/src/types.ts CHANGED
@@ -673,6 +673,7 @@ export type OwnUserBase<StreamChatGenerics extends ExtendableGenerics = DefaultG
673
673
  total_unread_count: number;
674
674
  unread_channels: number;
675
675
  unread_count: number;
676
+ unread_threads: number;
676
677
  invisible?: boolean;
677
678
  roles?: string[];
678
679
  };
@@ -2579,36 +2580,25 @@ export type CampaignData = {
2579
2580
  name?: string;
2580
2581
  segment_ids?: string[];
2581
2582
  sender_id?: string;
2583
+ skip_push?: boolean;
2584
+ skip_webhook?: boolean;
2582
2585
  user_ids?: string[];
2583
2586
  };
2584
2587
 
2585
- export type CampaignStatusName = 'draft' | 'stopped' | 'scheduled' | 'completed' | 'failed' | 'in_progress';
2586
-
2587
- export type CampaignStatus = {
2588
- status: CampaignStatusName;
2589
- completed_at?: string;
2590
- errored_messages?: number;
2591
- failed_at?: string;
2592
- resumed_at?: string;
2593
- scheduled_at?: string;
2594
- scheduled_for?: string;
2595
- sent_messages?: number;
2596
- stopped_at?: string;
2597
- task_id?: string;
2588
+ export type CampaignStats = {
2589
+ progress?: number;
2590
+ stats_channels_created?: number;
2591
+ stats_completed_at?: string;
2592
+ stats_messages_sent?: number;
2593
+ stats_started_at?: string;
2598
2594
  };
2599
-
2600
2595
  export type CampaignResponse = {
2601
2596
  created_at: string;
2602
2597
  id: string;
2598
+ stats: CampaignStats;
2603
2599
  updated_at: string;
2604
- } & CampaignData &
2605
- CampaignStatus;
2606
-
2607
- export type TestCampaignResponse = {
2608
- status: CampaignStatusName;
2609
- details?: string;
2610
- results?: Record<string, string>;
2611
- };
2600
+ scheduled_for?: string;
2601
+ } & CampaignData;
2612
2602
 
2613
2603
  export type DeleteCampaignOptions = {};
2614
2604
 
package/src/utils.ts CHANGED
@@ -84,6 +84,7 @@ export function isOwnUserBaseProperty(property: string) {
84
84
  total_unread_count: true,
85
85
  unread_channels: true,
86
86
  unread_count: true,
87
+ unread_threads: true,
87
88
  invisible: true,
88
89
  roles: true,
89
90
  };