@zthun/romulator-api 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,5 +2,4 @@ export declare abstract class ZRomulatorConfigKnown {
2
2
  static all(): import('@zthun/romulator-client').IZRomulatorConfig<any>[];
3
3
  private static create;
4
4
  static games(): import('@zthun/romulator-client').IZRomulatorConfig<any>;
5
- static media(): import('@zthun/romulator-client').IZRomulatorConfig<any>;
6
5
  }
@@ -0,0 +1,2 @@
1
+ export declare class ZRomulatorFilesModule {
2
+ }
@@ -0,0 +1,20 @@
1
+ import { IZFileSystemNode } from '@zthun/crumbtrail-fs';
2
+ import { IZRomulatorConfigsService } from '../config/configs-service.mjs';
3
+ export declare const ZRomulatorFilesToken: unique symbol;
4
+ export interface IZRomulatorFilesService {
5
+ media(): Promise<IZFileSystemNode[]>;
6
+ }
7
+ export declare class ZRomulatorFilesService implements IZRomulatorFilesService {
8
+ private readonly _configs;
9
+ private static readonly MediaFolderName;
10
+ private static readonly InfoFolderName;
11
+ private _repository;
12
+ private _folderWriter;
13
+ private _globs;
14
+ constructor(_configs: IZRomulatorConfigsService);
15
+ private gamesFolder;
16
+ private mediaFolder;
17
+ private infoFolder;
18
+ private repository;
19
+ media(): Promise<IZFileSystemNode[]>;
20
+ }
@@ -1,9 +1,9 @@
1
- import { IZDataRequestQuery } from '@zthun/helpful-query';
1
+ import { IZDataRequestQuery, IZPage } from '@zthun/helpful-query';
2
2
  import { IZRomulatorGame } from '@zthun/romulator-client';
3
3
  import { IZRomulatorGamesService } from './games-service.mjs';
4
4
  export declare class ZRomulatorGamesController {
5
5
  private readonly _games;
6
6
  constructor(_games: IZRomulatorGamesService);
7
- list(query: IZDataRequestQuery): Promise<IZRomulatorGame[]>;
7
+ list(query: IZDataRequestQuery): Promise<IZPage<IZRomulatorGame>>;
8
8
  get(identification: string): Promise<IZRomulatorGame>;
9
9
  }
@@ -1,18 +1,18 @@
1
1
  import { IZFileSystemService } from '@zthun/crumbtrail-fs';
2
- import { IZDataRequest } from '@zthun/helpful-query';
2
+ import { IZDataRequest, IZPage } from '@zthun/helpful-query';
3
3
  import { IZLogger } from '@zthun/lumberjacky-log';
4
4
  import { IZRomulatorGame } from '@zthun/romulator-client';
5
5
  import { IZRestfulGet } from '@zthun/webigail-rest';
6
6
  import { IZRomulatorConfigsService } from '../config/configs-service.mjs';
7
7
  export declare const ZRomulatorGamesToken: unique symbol;
8
8
  export interface IZRomulatorGamesService extends IZRestfulGet<IZRomulatorGame> {
9
- list(req: IZDataRequest): Promise<IZRomulatorGame[]>;
9
+ list(req: IZDataRequest): Promise<IZPage<IZRomulatorGame>>;
10
10
  }
11
11
  export declare class ZRomulatorGamesService implements IZRomulatorGamesService {
12
12
  private readonly _file;
13
13
  private readonly _config;
14
14
  private readonly _logger;
15
15
  constructor(_file: IZFileSystemService, _config: IZRomulatorConfigsService, logger: IZLogger);
16
- list(req: IZDataRequest): Promise<IZRomulatorGame[]>;
16
+ list(req: IZDataRequest): Promise<IZPage<IZRomulatorGame>>;
17
17
  get(id: string): Promise<IZRomulatorGame>;
18
18
  }