@ecp.eth/sdk / indexer / IndexerAPICommentWithRepliesSchemaType
Type Alias: IndexerAPICommentWithRepliesSchemaType
type IndexerAPICommentWithRepliesSchemaType = {
app: `0x${string}`;
author: {
address: `0x${string}`;
ens?: {
avatarUrl: null | string;
name: string;
};
farcaster?: {
displayName?: string;
fid: number;
pfpUrl?: string;
username?: string;
};
};
chainId: number;
channelId: bigint;
commentType: string;
content: string;
createdAt: Date;
cursor: `0x${string}`;
deletedAt: null | Date;
id: `0x${string}`;
logIndex: null | number;
metadata: string;
moderationStatus: "approved" | "pending" | "rejected";
moderationStatusChangedAt: Date;
parentId: null | `0x${string}`;
replies: {
extra: {
moderationEnabled: boolean;
};
pagination: {
endCursor?: `0x${string}`;
hasNext: boolean;
hasPrevious: boolean;
limit: number;
startCursor?: `0x${string}`;
};
results: {
app: `0x${string}`;
author: {
address: `0x${string}`;
ens?: {
avatarUrl: null | string;
name: string;
};
farcaster?: {
displayName?: string;
fid: number;
pfpUrl?: string;
username?: string;
};
};
chainId: number;
channelId: bigint;
commentType: string;
content: string;
createdAt: Date;
cursor: `0x${string}`;
deletedAt: null | Date;
id: `0x${string}`;
logIndex: null | number;
metadata: string;
moderationStatus: "approved" | "pending" | "rejected";
moderationStatusChangedAt: Date;
parentId: null | `0x${string}`;
revision: number;
targetUri: string;
txHash: `0x${string}`;
updatedAt: Date;
zeroExSwap: | null
| {
from: {
address: `0x${string}`;
amount: string;
symbol: string;
};
to: {
address: `0x${string}`;
amount: string;
symbol: string;
};
};
}[];
};
revision: number;
targetUri: string;
txHash: `0x${string}`;
updatedAt: Date;
zeroExSwap: | null
| {
from: {
address: `0x${string}`;
amount: string;
symbol: string;
};
to: {
address: `0x${string}`;
amount: string;
symbol: string;
};
};
};
Defined in: packages/sdk/src/indexer/schemas.ts:149
Type declaration
app
app: `0x${string}` = HexSchema;
author
author: {
address: `0x${string}`;
ens?: {
avatarUrl: null | string;
name: string;
};
farcaster?: {
displayName?: string;
fid: number;
pfpUrl?: string;
username?: string;
};
} = IndexerAPIAuthorDataSchema;
author.address
address: `0x${string}` = HexSchema;
author.ens?
optional ens: {
avatarUrl: null | string;
name: string;
};
author.ens.avatarUrl
avatarUrl: null | string;
author.ens.name
name: string;
author.farcaster?
optional farcaster: {
displayName?: string;
fid: number;
pfpUrl?: string;
username?: string;
};
author.farcaster.displayName?
optional displayName: string;
author.farcaster.fid
fid: number;
author.farcaster.pfpUrl?
optional pfpUrl: string;
author.farcaster.username?
optional username: string;
chainId
chainId: number;
channelId
channelId: bigint;
commentType
commentType: string;
content
content: string;
createdAt
createdAt: Date;
cursor
cursor: `0x${string}` = HexSchema;
deletedAt
deletedAt: null | Date;
id
id: `0x${string}` = HexSchema;
logIndex
logIndex: null | number;
metadata
metadata: string;
moderationStatus
moderationStatus: "approved" | "pending" | "rejected" = IndexerAPICommentModerationStatusSchema;
moderationStatusChangedAt
moderationStatusChangedAt: Date;
parentId
parentId: null | `0x${string}`;
replies
replies: {
extra: {
moderationEnabled: boolean;
};
pagination: {
endCursor?: `0x${string}`;
hasNext: boolean;
hasPrevious: boolean;
limit: number;
startCursor?: `0x${string}`;
};
results: {
app: `0x${string}`;
author: {
address: `0x${string}`;
ens?: {
avatarUrl: null | string;
name: string;
};
farcaster?: {
displayName?: string;
fid: number;
pfpUrl?: string;
username?: string;
};
};
chainId: number;
channelId: bigint;
commentType: string;
content: string;
createdAt: Date;
cursor: `0x${string}`;
deletedAt: null | Date;
id: `0x${string}`;
logIndex: null | number;
metadata: string;
moderationStatus: "approved" | "pending" | "rejected";
moderationStatusChangedAt: Date;
parentId: null | `0x${string}`;
revision: number;
targetUri: string;
txHash: `0x${string}`;
updatedAt: Date;
zeroExSwap: | null
| {
from: {
address: `0x${string}`;
amount: string;
symbol: string;
};
to: {
address: `0x${string}`;
amount: string;
symbol: string;
};
};
}[];
};
replies.extra
extra: {
moderationEnabled: boolean;
} = IndexerAPIExtraSchema;
replies.extra.moderationEnabled
moderationEnabled: boolean;
replies.pagination
pagination: {
endCursor?: `0x${string}`;
hasNext: boolean;
hasPrevious: boolean;
limit: number;
startCursor?: `0x${string}`;
} = IndexerAPICursorPaginationSchema;
replies.pagination.endCursor?
optional endCursor: `0x${string}`;
replies.pagination.hasNext
hasNext: boolean;
replies.pagination.hasPrevious
hasPrevious: boolean;
replies.pagination.limit
limit: number;
replies.pagination.startCursor?
optional startCursor: `0x${string}`;
replies.results
results: {
app: `0x${string}`;
author: {
address: `0x${string}`;
ens?: {
avatarUrl: null | string;
name: string;
};
farcaster?: {
displayName?: string;
fid: number;
pfpUrl?: string;
username?: string;
};
};
chainId: number;
channelId: bigint;
commentType: string;
content: string;
createdAt: Date;
cursor: `0x${string}`;
deletedAt: null | Date;
id: `0x${string}`;
logIndex: null | number;
metadata: string;
moderationStatus: "approved" | "pending" | "rejected";
moderationStatusChangedAt: Date;
parentId: null | `0x${string}`;
revision: number;
targetUri: string;
txHash: `0x${string}`;
updatedAt: Date;
zeroExSwap: | null
| {
from: {
address: `0x${string}`;
amount: string;
symbol: string;
};
to: {
address: `0x${string}`;
amount: string;
symbol: string;
};
};
}[];
revision
revision: number;
targetUri
targetUri: string;
txHash
txHash: `0x${string}` = HexSchema;
updatedAt
updatedAt: Date;
zeroExSwap
zeroExSwap:
| null
| {
from: {
address: `0x${string}`;
amount: string;
symbol: string;
};
to: {
address: `0x${string}`;
amount: string;
symbol: string;
};
};