Skip to main content

getAllTypes

Get all types.

Description​

Fetches all general types and resolves to an array of IGeneralTypesEntity objects.

.getAllTypes();

Examples​

Minimal example​

const response = await GeneralTypes.getAllTypes();

Example response​

[
{
"id": 20,
"type": "service"
},
{
"id": 1,
"type": "product"
},
{
"id": 3,
"type": "error_page"
}
]

Response schema​

Schema: IGeneralTypesEntity[]

id: number
ID of the type.
example: 1

type: BlockType
Type name: a BlockType value such as "product" or "service".
example: "product"