Skip to content

sdk/types/tableDefs

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:94

Represents a combined rank with associated details.

id: string;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:83

The unique identifier for the rank.

SingleRank.id

name: string;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:84

The name associated with the rank.

SingleRank.name

rank: string;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:95

The rank of the entity.


Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:82

Represents a single rank with an identifier and a name.

id: string;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:83

name: string;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:84

type AvailableLists = "owners" | "admins" | "editors" | "visitors" | "all";

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:107

Represents the different types of user lists available in the system.

  • ‘owners’: List of owners.
  • ‘admins’: List of administrators.
  • ‘editors’: List of editors.
  • ‘visitors’: List of visitors.
  • ‘all’: List of all users.

type DatabaseTables =
| tsUsersSelect[]
| tsOAuthAccountsSelect[]
| tsSessionTableSelect[]
| tsPermissionsSelect[]
| tsSiteConfigSelect
| tsPageDataSelect[]
| tsPageDataTagsSelect[]
| tsPageDataCategoriesSelect[]
| tsPageContentSelect[]
| tsDiffTrackingSelect[]
| undefined;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:66

Represents the possible types of database tables used in the application.

This type is a union of several specific table selection types, each representing a different table in the database. The possible types include:

  • tsUsersSelect[]: An array of user selection objects.
  • tsOAuthAccountsSelect[]: An array of OAuth account selection objects.
  • tsSessionTableSelect[]: An array of session table selection objects.
  • tsPermissionsSelect[]: An array of permission selection objects.
  • tsSiteConfigSelect: A site configuration selection object.
  • tsPageDataSelect[]: An array of page data selection objects.
  • tsPageDataTagsSelect[]: An array of page data tags selection objects.
  • tsPageDataCategoriesSelect[]: An array of page data categories selection objects.
  • tsPageContentSelect[]: An array of page content selection objects.
  • tsDiffTrackingSelect[]: An array of diff tracking selection objects.
  • undefined: Represents an undefined state.

type PageContentReturnId = Pick<tsPageDataSelect, "id">;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:35

Represents a type that picks the ‘id’ property from the tsPageDataSelect type. This type is used to return only the ‘id’ field from a tsPageDataSelect object.


type PageDataCategoriesInsertResponse = Pick<tsPageDataCategoriesSelect, "id">;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:47

Represents the response type for inserting a new page data category. This type is a subset of tsPageDataCategoriesSelect containing only the ‘id’ field.


type PageDataReturnId = Pick<tsPageContentSelect, "id">;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:29

Represents a type that picks the ‘id’ property from the tsPageContentSelect type.


type PageDataStripped = Omit<tsPageDataSelect, "categories" | "tags" | "contributorIds">;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:24

Represents a stripped-down version of the tsPageDataSelect type, excluding the properties ‘categories’, ‘tags’, and ‘contributorIds’.


type PageDataTagsInsertResponse = Pick<tsPageDataTagsSelect, "id">;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:41

Represents the response type for inserting page data tags. This type is a subset of tsPageDataTagsSelect containing only the id field.


type SiteConfig = Omit<tsSiteConfigSelect, "id">;

Defined in: studiocms/packages/studiocms/src/sdk/types/tableDefs.ts:18

Represents a stripped-down version of the tsSiteConfigSelect type, excluding the property ‘id’.