api.ts 419 B

1234567891011121314151617181920212223
  1. import type { IPageHasId } from '@growi/core';
  2. export type LsxApiOptions = {
  3. depth?: string;
  4. filter?: string;
  5. except?: string;
  6. sort?: string;
  7. reverse?: string;
  8. };
  9. export type LsxApiParams = {
  10. pagePath: string;
  11. offset?: number;
  12. limit?: number;
  13. options?: LsxApiOptions;
  14. };
  15. export type LsxApiResponseData = {
  16. pages: IPageHasId[];
  17. cursor: number;
  18. total: number;
  19. toppageViewersCount: number;
  20. };