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/dist/browser.es.js +28 -14
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +28 -14
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +28 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +28 -14
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts +2 -4
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/thread.d.ts +5 -0
- package/dist/types/thread.d.ts.map +1 -1
- package/dist/types/types.d.ts +12 -18
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +6 -6
- package/src/thread.ts +18 -6
- package/src/types.ts +12 -22
- package/src/utils.ts +1 -0
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
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
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
|
-
|
|
2605
|
-
|
|
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
|
|