stream-chat
Advanced tools
Comparing version 8.24.0 to 8.25.0
import { StreamChat } from './client'; | ||
import { APIResponse, CampaignData, DefaultGenerics, ExtendableGenerics } from './types'; | ||
import { CampaignData, DefaultGenerics, ExtendableGenerics } from './types'; | ||
export declare class Campaign<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> { | ||
@@ -10,3 +10,3 @@ id: string | null; | ||
campaign: import("./types").CampaignResponse; | ||
} & APIResponse>; | ||
} & import("./types").APIResponse>; | ||
verifyCampaignId(): void; | ||
@@ -18,14 +18,14 @@ start(options?: { | ||
campaign: import("./types").CampaignResponse; | ||
} & APIResponse>; | ||
} & import("./types").APIResponse>; | ||
update(data: Partial<CampaignData>): Promise<{ | ||
campaign: import("./types").CampaignResponse; | ||
}>; | ||
delete(): Promise<APIResponse>; | ||
delete(): Promise<import("./types").APIResponse>; | ||
stop(): Promise<{ | ||
campaign: Campaign; | ||
campaign: import("./types").CampaignResponse; | ||
}>; | ||
get(): Promise<{ | ||
campaign: import("./types").CampaignResponse; | ||
} & APIResponse>; | ||
} & import("./types").APIResponse>; | ||
} | ||
//# sourceMappingURL=campaign.d.ts.map |
{ | ||
"name": "stream-chat", | ||
"version": "8.24.0", | ||
"version": "8.25.0", | ||
"description": "JS SDK for the Stream Chat API", | ||
@@ -5,0 +5,0 @@ "author": "GetStream", |
import { StreamChat } from './client'; | ||
import { APIResponse, CampaignData, DefaultGenerics, ExtendableGenerics } from './types'; | ||
import { CampaignData, DefaultGenerics, ExtendableGenerics } from './types'; | ||
@@ -58,3 +58,3 @@ export class Campaign<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> { | ||
return await this.client.delete<APIResponse>(this.client.baseURL + `/campaigns/${this.id}`); | ||
return await this.client.deleteCampaign(this.id as string); | ||
} | ||
@@ -65,3 +65,3 @@ | ||
return this.client.patch<{ campaign: Campaign }>(this.client.baseURL + `/campaigns/${this.id}/stop`); | ||
return this.client.stopCampaign(this.id as string); | ||
} | ||
@@ -68,0 +68,0 @@ |
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
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 too big to display
5530352
58094