function contentListDiscriminator(params) {
  return {
    typeSlug: params.typeSlug,
    limit: params.limit ?? 20,
    offset: params.offset ?? 0
  };
}
const CMS_QUERY_KEYS = {
  /**
   * Key for the cmsTypes.list() query.
   * Full key: ["cmsTypes", "list", "list"]
   */
  typesList: () => ["cmsTypes", "list", "list"],
  /**
   * Key for the cmsContent.list({ typeSlug, limit, offset }) query.
   * Full key: ["cmsContent", "list", { typeSlug, limit, offset }]
   */
  contentList: (params) => ["cmsContent", "list", contentListDiscriminator(params)],
  /**
   * Key for the cmsContent.detail(typeSlug, id) query.
   * Full key: ["cmsContent", "detail", typeSlug, id]
   */
  contentDetail: (typeSlug, id) => ["cmsContent", "detail", typeSlug, id]
};

export { CMS_QUERY_KEYS, contentListDiscriminator };
