@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
28 lines (21 loc) • 597 B
text/typescript
export {};
declare global {
namespace Amity {
type RawPin = {
referenceId: string; // postId
referenceType: string; // post
placement: string; // 'default' | 'announcement' | 'global'
pinnedBy: string; // userId
pinnedAt: Date;
};
type RawPinTarget = {
targetId: string; // communityId | messageFeedId
targetType: string; // community | messageFeed
lastPinsUpdatedAt: Date;
};
type InternalPin = RawPin;
type InternalPinTarget = RawPinTarget;
type Pin = InternalPin;
type PinTarget = InternalPinTarget;
}
}