Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Defined in:
__namedParameters
{ className
: string
; content
: ; contentStyles
: Partial
<Record
<string
| number
, string
>>; }
__namedParameters.className
?
string
__namedParameters.content
__namedParameters.contentStyles
?
Partial
<Record
<string
| number
, string
>>
Welcome to the Venue Developer Documentation.
You can find references for the Venue SDK's here on the left-side table of contents.
- Our TypeScript general SDK (using fetch)
- Our Next.js specific SDK leveraging some extra optimizations of Next.js and includes the Venue React components.
- If you prefer to use the REST API directly, see our OpenAPI specification and documentation here.
For an example of a fully-built minimal application using an SDK, check out our template which we use in production and update frequently .
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
@venuecms/sdk-next
Allows you to pass in the siteKey and API key manually in case you want it to be dynamically set. If you don't use this function, the SDK will default to using process.env.VENUE_SITE_KEY and process.env.VENUE_API_KEY instead.
Get the site configured via the siteKey
Get the siteKey and site id from a domain name.
Search a site for all content types
Retrieve data for a single event
-
Get a single page using the slug
Get a list of all pages
Get a profile
Get a listing of events for a profile
Get a list of profiles
Get a product
Get a listing of products
This function will properly resolve content blocks that are localized. It takes in the array of localized content and returns the proper content to be used in your page.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
This library contains a small collection of components that are useful for rendering content from Venue CMS in a Next.js project. It also includes the Venue CMS SDK as well so there is no need to separately install that.
To install run this in your CLI under the project root:
For more information on fetching data see the reference for @venuecms/sdk
Allows you render content returned from Venue CMS in a headless way. All styles will need to be defined by you in a separate object as the renderer won't add styles by default.
Example:
className?
string
Classes that wil be passed to the underlying element
image?
Partial<>
A MediaItem that is returned from Venue CMS
aspect?
'square'|'video'
Aspect for constraining the image
props?
props
Next Image props that will be passed to the underlying Next Image component
Defined in:
__namedParameters
{ aspect
: "square"
| "video"
; className
: string
; image
: Partial
<>; props
: object
; }
__namedParameters.aspect
?
"square"
| "video"
__namedParameters.className
?
string
__namedParameters.image
?
Partial
<>
__namedParameters.props
?
object
params
?
{ dir
: "asc"
| "desc"
; featured
: null
| boolean
; gt
: null
| number
; legacyId
: string
; limit
: null
| number
; lt
: null
| number
; orderBy
: string
; page
: null
| number
; upcoming
: null
| boolean
; }
params.dir
?
"asc"
| "desc"
params.featured
?
null
| boolean
params.gt
?
null
| number
params.legacyId
?
string
params.limit
?
null
| number
params.lt
?
null
| number
params.orderBy
?
string
params.page
?
null
| number
params.upcoming
?
null
| boolean
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
localizedContent
locale
string
content
currentLocale
string
undefined
| []
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Get a list of all pages
params
?
{ dir
: "asc"
| "desc"
; featured
: null
| boolean
; limit
: null
| number
; orderBy
: string
; page
: null
| number
; }
params.dir
?
"asc"
| "desc"
params.featured
?
null
| boolean
params.limit
?
null
| number
params.orderBy
?
string
params.page
?
null
| number
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Allows you to pass in the siteKey and API key manually in case you want it to be dynamically set. If you don't use this function, the SDK will default to using process.env.VENUE_SITE_KEY and process.env.VENUE_API_KEY instead.
params
{ options
: Partial
<RequestOptions
>; siteKey
: string
; }
params.options
?
Partial
<RequestOptions
>
params.siteKey
string
void
Defined in:
Defined in:
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
children?
ReactNode
node
Defined in:
attrs?
Attrs
content?
[]
marks?
Attrs
[]
type
string
Defined in:
Promise
<
| {data
: ;error
: undefined
;
}
| {data
: undefined
;error
: unknown
;
} & object
>
Defined in:
Defined in:
[]
[]
Defined in:
path
object
path.siteKey
string
query
?
object
query.dir
?
"asc"
| "desc"
query.featured
?
boolean
| null
query.gt
?
number
| null
query.legacyId
?
string
query.limit
?
number
| null
query.lt
?
number
| null
query.orderBy
?
string
query.page
?
number
| null
query.upcoming
?
boolean
| null
Defined in:
Defined in:
Defined in:
path
object
path.siteKey
string
path.slug
string
Defined in:
Defined in:
records
[]
Defined in:
path
object
path.siteKey
string
path.slug
string
Defined in:
path
object
path.siteKey
string
query
?
object
query.dir
?
"asc"
| "desc"
query.featured
?
boolean
| null
query.limit
?
number
| null
query.orderBy
?
string
query.page
?
number
| null
Defined in:
parent
?
object
Defined in:
Defined in:
path
object
path.siteKey
string
path.slug
string
Defined in:
records
& object
[]
Defined in:
Defined in:
Defined in:
path
object
path.siteKey
string
query
?
object
query.dir
?
"asc"
| "desc"
query.limit
?
number
| null
query.orderBy
?
string
query.page
?
number
| null
Defined in:
Defined in:
Defined in:
count
number
records
[]
Defined in:
Defined in:
path
object
path.siteKey
string
path.slug
string
Defined in:
path
object
path.siteKey
string
path.slug
string
query
?
object
query.dir
?
"asc"
| "desc"
query.featured
?
boolean
| null
query.gt
?
number
| null
query.legacyId
?
string
query.limit
?
number
| null
query.lt
?
number
| null
query.orderBy
?
string
query.page
?
number
| null
query.upcoming
?
boolean
| null
Defined in:
Defined in:
Defined in:
count
number
records
[]
Defined in:
Defined in:
path
object
path.siteKey
string
Defined in:
count
number
records
[]
Defined in:
Defined in:
Defined in:
content
?
string
| null
contentJSON
?
{} | null
excerpt
?
string
| null
extraContent
?
string
| null
keywords
?
string
| null
locale
string
metaDescription
?
string
| null
metaTitle
?
string
| null
shortContent
?
string
| null
siteId
string
title
?
string
| null
Defined in:
address
?
string
| null
address2
?
string
| null
city
?
string
| null
country
?
string
| null
externalLink
?
string
| null
image
?
isDefault
?
boolean
lat
?
number
| null
lng
?
number
| null
localizedContent
mapLink
?
string
| null
region
?
string
| null
siteId
string
state
?
string
| null
zipCode
?
string
| null
path
object
path.siteKey
string
query
?
object
query.dir
?
"asc"
| "desc"
query.limit
?
number
| null
query.orderBy
?
string
query.page
?
number
| null
query.type
?
"member"
Defined in:
[]
Defined in:
altText
?
string
| null
caption
?
string
| null
credit
?
string
| null
inline
boolean
metadata
?
{} | null
mimeType
?
string
| null
siteId
string
size
number
title
?
string
| null
uploaded
boolean
url
?
string
| null
Defined in:
Defined in:
Defined in:
Defined in:
catalogID
?
string
| null
currency
?
string
| null
externalLink
?
string
| null
id
string
image
?
order
number
price
number
productId
?
string
| null
productType
?
| { id
: string
; type
: string
; } | null
productTypeId
?
string
| null
publicationDate
?
string
| unknown
quantity
number
siteId
string
artists
?
object
[]
date
?
string
| null
featured
boolean
featuredExpiration
?
string
| null
fullPath
?
string
| null
id
string
image
?
localizedContent
order
number
parent
?
object
parent.createdAt
string
parent.date
?
string
| null
parent.dirty
boolean
parent.featured
boolean
parent.featuredExpiration
?
string
| null
parent.id
string
parent.imageId
?
string
| null
parent.order
number
parent.parentId
?
string
| null
parent.publishedId
?
string
| null
parent.publishState
"DRAFT"
| "REQUEST"
| "PUBLISHED"
| "CANCELLED"
parent.recordType
"SOURCE"
| "PUBLISHED"
| "REVISION"
parent.revisionId
?
number
| null
parent.siteId
string
parent.slug
string
parent.source
?
string
| null
parent.updatedAt
string
parent.userId
?
string
| null
parent.visible
boolean
parentId
?
string
| null
roles
object
[]
siteId
string
slug
string
props
artists
object
[]
author
?
string
| null
featured
boolean
featuredExpiration
?
string
| null
image
?
localizedContent
[]
order
number
siteId
string
slug
string
variants
?
[]
& unknown
[]
Defined in:
Defined in:
Defined in:
defaults
?
object
defaults.currency
?
string
defaults.event
?
object
defaults.event.location
?
string
locale
?
object
locale.default
string
locale.supported
string
[]
publicSite
?
object
publicSite.baseUrl
?
string
publicSite.template
?
object
publicSite.template.config
?
object
publicSite.template.id
?
string
publicSite.template.schema
?
object
This package is the core of the Venue CMS TypeScript SDK.
To get started, you can install the SDK by running:
Examples are strewn throughout the SDK reference which you can browse in the table of contents on the left.
If you are interested in Next.js make sure to use the @venuecms/sdk-next
to take advantage of some extra optimizations and React components. The core SDK is included in that package as well so the reference will still apply.
defaultLocale
?
string
| null
description
?
string
| null
id
string
image
?
name
?
string
| null
settings
timeZone
?
string
| null
webSites
?
[]
image
?
localizedContent
[]
siteId
string
slug
string
Defined in:
Defined in:
Defined in:
currency
?
string
| null
externalLink
?
string
| null
localizedContent
?
[]
name
string
price
number
roles
unknown
[]
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
For an example of a fully-built minimal application using this SDK, check out our template which we use in production and update frequently .
params
Omit
<{ siteKey
: string
; slug
: string
; }, "siteKey"
>
Allows you to pass in the siteKey and API key manually in case you want it to be dynamically set. If you don't use this function, the SDK will default to using process.env.VENUE_SITE_KEY and process.env.VENUE_API_KEY instead.
Get the site configured via the siteKey
Get the siteKey and site id from a domain name.
Search a site for all content types
Retrieve data for a single event
-
Get a single page using the slug
Get a list of all pages
Get a profile
Get a listing of events for a profile
Get a list of profiles
Get a product
Get a listing of products
This function will properly resolve content blocks that are localized. It takes in the array of localized content and returns the proper content to be used in your page.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
This function will properly resolve content blocks that are localized. It takes in the array of localized content and returns the proper content to be used in your page.
localizedContent
locale
string
object
content
currentLocale
string
params
{ dir
: "asc"
| "desc"
; featured
: boolean
; gt
: number
; legacyId
: string
; limit
: number
; lt
: number
; orderBy
: string
; page
: number
; upcoming
: boolean
; }
params.dir
?
"asc"
| "desc"
params.featured
?
boolean
params.gt
?
number
params.legacyId
?
string
params.limit
?
number
params.lt
?
number
params.orderBy
?
string
params.page
?
number
params.upcoming
?
boolean
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
[]
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
params
{ dir
: "asc"
| "desc"
; featured
: boolean
; limit
: number
; orderBy
: string
; page
: number
; }
params.dir
?
"asc"
| "desc"
params.featured
?
boolean
params.limit
?
number
params.orderBy
?
string
params.page
?
number
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
Promise
<
| {data
: undefined
;error
: unknown
;
}
| {data
: ;error
: undefined
;
} & object
>
Defined in:
Promise
<
| {data
: ;error
: undefined
;
}
| {data
: undefined
;error
: unknown
;
} & object
>
Defined in:
params
{ options
: Partial
<RequestOptions
>; siteKey
: string
; }
params.options
?
Partial
<RequestOptions
>
params.siteKey
string
Defined in:
Defined in:
Defined in:
artists
object
[]
description
?
string
| null
endDate
string
hasTime
boolean
id
string
image
?
localizedContent
location
?
publishState
"DRAFT"
| "REQUEST"
| "PUBLISHED"
| "CANCELLED"
siteId
string
slug
string
startDate
string
tickets
?
[]
[]
Defined in:
path
object
path.siteKey
string
path.slug
string
Defined in:
Defined in:
path
object
path.siteKey
string
query
?
object
query.dir
?
"asc"
| "desc"
query.featured
?
boolean
| null
query.gt
?
number
| null
query.legacyId
?
string
query.limit
?
number
| null
query.lt
?
number
| null
query.orderBy
?
string
query.page
?
number
| null
query.upcoming
?
boolean
| null
records
[]
Defined in:
Defined in:
Defined in:
path
object
path.siteKey
string
path.slug
string
Defined in:
parent
?
object
Defined in:
path
object
path.siteKey
string
query
?
object
query.dir
?
"asc"
| "desc"
query.featured
?
boolean
| null
query.limit
?
number
| null
query.orderBy
?
string
query.page
?
number
| null