stream-chat
Advanced tools
Comparing version 8.18.1 to 8.18.2
@@ -19,14 +19,5 @@ import { StreamChat } from './client'; | ||
delete(): Promise<APIResponse>; | ||
schedule(params: { | ||
scheduledFor: number; | ||
}): Promise<Campaign<DefaultGenerics>>; | ||
stop(): Promise<{ | ||
campaign: Campaign; | ||
}>; | ||
pause(): Promise<{ | ||
campaign: Campaign; | ||
}>; | ||
resume(): Promise<{ | ||
campaign: Campaign; | ||
}>; | ||
get(): Promise<{ | ||
@@ -33,0 +24,0 @@ campaign: import("./types").CampaignResponse; |
{ | ||
"name": "stream-chat", | ||
"version": "8.18.1", | ||
"version": "8.18.2", | ||
"description": "JS SDK for the Stream Chat API", | ||
@@ -5,0 +5,0 @@ "author": "GetStream", |
@@ -61,15 +61,2 @@ import { StreamChat } from './client'; | ||
async schedule(params: { scheduledFor: number }) { | ||
this.verifyCampaignId(); | ||
const { scheduledFor } = params; | ||
const { campaign } = await this.client.patch<{ campaign: Campaign }>( | ||
this.client.baseURL + `/campaigns/${this.id}/schedule`, | ||
{ | ||
scheduled_for: scheduledFor, | ||
}, | ||
); | ||
return campaign; | ||
} | ||
async stop() { | ||
@@ -81,14 +68,2 @@ this.verifyCampaignId(); | ||
async pause() { | ||
this.verifyCampaignId(); | ||
return this.client.patch<{ campaign: Campaign }>(this.client.baseURL + `/campaigns/${this.id}/pause`); | ||
} | ||
async resume() { | ||
this.verifyCampaignId(); | ||
return this.client.patch<{ campaign: Campaign }>(this.client.baseURL + `/campaigns/${this.id}/resume`); | ||
} | ||
async get() { | ||
@@ -95,0 +70,0 @@ this.verifyCampaignId(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5513475
57882