method

RiduClient.versions

List stored versions with locale-dependent snapshot types.

Arguments

ArgumentTypeDescription
collectionSlugThe collection value.
idstringThe id value.
optionsOptions | undefinedThe options value.

Returns

The declared result.

Promise<Version<LocaleResult<OutputFor<Config, Slug>, AllLocalesOutputFor<Config, Slug>, Options>>[]>

Full signature

RiduClient.versions< Slug extends VersionCollectionSlug<Config>, const Options extends LocaleOptions<LocaleFor<Config>> | undefined = undefined, >( collection: Slug, id: string, options?: Options, ): Promise< Version<LocaleResult<OutputFor<Config, Slug>, AllLocalesOutputFor<Config, Slug>, Options>>[] >

Source packages/sdk/src/types.ts:1336

Related types

  • VersionCollectionSlug

    Collection slugs with the generated versions capability.

  • LocaleOptions

    Localized read and write options.

  • Version

    A stored version snapshot; its wire keys intentionally use capital initials.

  • OutputFor

    Resolve a collection document output type.

  • AllLocalesOutputFor

    Resolve locale-keyed collection output when generated, otherwise ordinary output.