@giosg/pub-sdk
Advanced tools
Comparing version 0.11.1 to 0.12.0
@@ -7,5 +7,12 @@ # Changelog | ||
## 0.12.0 | ||
- Added `PubUserMessage` which is an old `PubMessage`. | ||
- Added `PubReportingBody` type. | ||
- Added `PubReportingMessage` type for messages created by giosg reporting. | ||
- Changed `PubMessage` to be an union of `PubUserMessage` and `PubReportingMessage`. | ||
## 0.11.0 | ||
- Add `latest_message_created_at` field | ||
- Added `latest_message_created_at` field. | ||
@@ -12,0 +19,0 @@ ## 0.9.2 |
@@ -57,5 +57,14 @@ import { UserUid, OrganizationUid } from "@giosg/types"; | ||
} | ||
export interface PubMessage { | ||
export declare type PubMessage = PubUserMessage | PubReportingMessage; | ||
export interface PubUserMessage { | ||
/** Unique identifier of the message */ | ||
id: PubMessageUid; | ||
/** Type of the message */ | ||
type: "user"; | ||
/** User who sent the message */ | ||
sender_id: UserUid; | ||
/** Unique identifier of the organization */ | ||
organization_id: OrganizationUid; | ||
/** Unique identifier of the channel */ | ||
channel_id: PubChannelUid; | ||
/** Date when the message was created */ | ||
@@ -65,11 +74,22 @@ created_at: string; | ||
updated_at: string; | ||
/** Content of the message */ | ||
body: PubMessageBody; | ||
} | ||
export interface PubReportingMessage { | ||
/** Unique identifier of the message */ | ||
id: PubMessageUid; | ||
/** Type of the message */ | ||
type: "reporting"; | ||
/** Unique identifier of the organization */ | ||
organization_id: OrganizationUid; | ||
/** Unique identifier of the channel */ | ||
channel_id: PubChannelUid; | ||
/** User who sent the message */ | ||
sender_id: UserUid; | ||
/** Unique identifier of the organization */ | ||
organization_id: OrganizationUid; | ||
/** Actual body of the message */ | ||
body: PubMessageBody; | ||
/** Date when the message was created */ | ||
created_at: string; | ||
/** Date when the message was updated for the last time */ | ||
updated_at: string; | ||
/** Content of the report */ | ||
body: PubReportingBody; | ||
} | ||
export declare type PubReportingBody = any; | ||
export declare type NotificationMode = "muted" | "unmuted" | "mentions"; | ||
@@ -76,0 +96,0 @@ export interface NotificationSettings { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,3 +0,3 @@ | ||
export { PubChannel, PubChannelMember, PubMessage, DMChannelPayload, PubChannelUid, PubChannelMemberUid, PubMessageUid, NotificationSettingsUid, NotificationMode, NotificationSettings, NotificationSettingsPayload, PubMessagePayload, ChannelPayload, TextChunk, AudioChunk, FileChunk, ImageChunk, LinkChunk, VideoChunk, ChunkV2, ChunkV3, PubMessageBody, PubMessageBodyV1, PubMessageBodyV2, PubMessageBodyV3, } from "./groupchats"; | ||
export { PubChannel, PubChannelMember, PubMessage, PubReportingMessage, PubReportingBody, PubUserMessage, DMChannelPayload, PubChannelUid, PubChannelMemberUid, PubMessageUid, NotificationSettingsUid, NotificationMode, 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 |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IRealtimeSdk } from "@giosg/realtime-sdk"; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@giosg/pub-sdk", | ||
"version": "0.11.1", | ||
"version": "0.12.0", | ||
"description": "TypeScript interfaces for Giosg Pub", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -0,0 +0,0 @@ # Giosg Pub SDK and interfaces |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26904
332