@giosg/pub-sdk
Advanced tools
Comparing version 0.5.3 to 0.6.0
@@ -7,2 +7,10 @@ # Changelog | ||
## 0.6.0 | ||
- Added `PubMessageBodyV3`, `ChunkV3` interfaces. | ||
- Added chunks for audio, video, image, file. | ||
- Added BAR Attachments support. | ||
- Added chunks for text, phone, email, link. | ||
- Added BAR message tokens support. | ||
## 0.5.3 | ||
@@ -9,0 +17,0 @@ |
@@ -105,3 +105,29 @@ import { UserUid, OrganizationUid } from "@giosg/types"; | ||
} | ||
export declare type Chunk = TextChunk; | ||
export interface LinkChunk { | ||
type: "link"; | ||
kind: "url" | "phone" | "email"; | ||
text: string; | ||
} | ||
export interface FileChunk { | ||
type: "file"; | ||
url: string; | ||
name: string; | ||
size?: string; | ||
} | ||
export interface AudioChunk { | ||
type: "audio"; | ||
url: string; | ||
title?: string; | ||
} | ||
export interface VideoChunk { | ||
type: "video"; | ||
url: string; | ||
title?: string; | ||
} | ||
export interface ImageChunk { | ||
type: "image"; | ||
url: string; | ||
} | ||
export declare type ChunkV2 = TextChunk; | ||
export declare type ChunkV3 = TextChunk | AudioChunk | VideoChunk | FileChunk | ImageChunk | LinkChunk; | ||
export interface PubMessageBodyV1 { | ||
@@ -117,5 +143,11 @@ /** Version of the message, use latest whenever possible */ | ||
/** Content of message*/ | ||
chunks: Chunk[]; | ||
chunks: ChunkV2[]; | ||
} | ||
export declare type PubMessageBody = PubMessageBodyV1 | PubMessageBodyV2; | ||
export interface PubMessageBodyV3 { | ||
/** Version of the message, use latest whenever possible */ | ||
version: 3; | ||
/** Content of message*/ | ||
chunks: ChunkV3[]; | ||
} | ||
export declare type PubMessageBody = PubMessageBodyV1 | PubMessageBodyV2 | PubMessageBodyV3; | ||
export interface NotificationSettingsPayload { | ||
@@ -122,0 +154,0 @@ /** Notification mode to be applied */ |
@@ -1,3 +0,3 @@ | ||
export { PubChannel, PubChannelMember, PubMessage, DMChannelPayload, PubChannelUid, PubChannelMemberUid, PubMessageUid, NotificationSettings, NotificationSettingsPayload, PubMessageBody, PubMessagePayload, ChannelPayload, TextChunk, Chunk, PubMessageBodyV1, PubMessageBodyV2 } from "./groupchats"; | ||
export { PubChannel, PubChannelMember, PubMessage, DMChannelPayload, PubChannelUid, PubChannelMemberUid, PubMessageUid, NotificationSettings, NotificationSettingsPayload, PubMessagePayload, ChannelPayload, TextChunk, AudioChunk, FileChunk, ImageChunk, LinkChunk, VideoChunk, ChunkV2, ChunkV3, PubMessageBody, PubMessageBodyV1, PubMessageBodyV2, PubMessageBodyV3, } from "./groupchats"; | ||
export { BasePubSdk } from "./sdk"; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@giosg/pub-sdk", | ||
"version": "0.5.3", | ||
"version": "0.6.0", | ||
"description": "TypeScript interfaces for Giosg Pub", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22108
298