Logo

Type Definitions

The types module provides type definitions for the Postiva API.

CreateClientParameters

PropTypeDefault
apiKey
string
-
workspaceId
string
-
options
PostivaClientOptions
-

PostivaClientOptions

PropTypeDefault
debug
boolean
-

Content

PropTypeDefault
id
string
-
title
string
-
type
string
-
createdAt
string
-
updatedAt
string
-
tags
string[]
-
categories
ContentCategory[]
-
publishedBy
ContentPublishedBy
-
description
string
-
publishedAt
string
-
slug
string
-
thumbnail
string
-
body
string
-
html
string
-
seoTitle
string
-
seoDescription
string
-
seoThumbnail
string
-
readingStatus
ContentReadingStatus
-
analytics
ContentAnalytics
-

PublishedBy

PropTypeDefault
role
string
-
user
{ name: string; email: string; image: string; }
-

Category

PropTypeDefault
id
string
-
name
string
-
description
string
-
createdAt
string
-
updatedAt
string
-

Content Similarity

PropTypeDefault
id
string
-
slug
string
-
title
string
-
description
string
-
tags
string
-
thumbnail
string
-
createdAt
string
-
publishedBy
ContentPublishedBy
-
publishedAt
string
-
readingStatus
ContentReadingStatus
-
type
ContentStatusEnum
-

Content Analytics

PropTypeDefault
views
number
-
likes
number
-
comments
number
-
shares
number
-
claps
number
-

Pagination

PropTypeDefault
page
number
-
limit
number
-
total
number
-
totalPages
number
-

APIResponse

PropTypeDefault
data
Content
-

PaginationResponse

PropTypeDefault
data
Content
-
pagination
IPagination
-

On this page