Skip to content

Commit

Permalink
ConfigManager: build files
Browse files Browse the repository at this point in the history
  • Loading branch information
Aschen committed Feb 21, 2022
1 parent 3572520 commit 028c376
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 15 deletions.
11 changes: 7 additions & 4 deletions lib/config/ConfigManager.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { JSONObject, Plugin } from 'kuzzle';
import { JSONObject, Plugin, Backend } from 'kuzzle';
export declare type ConfigManagerOptions = {
/**
* Name of the config collection
Expand Down Expand Up @@ -56,11 +56,13 @@ export declare class ConfigManager {
*/
baseSettings: JSONObject;
private idGenerator;
private context;
private config;
private appOrPlugin;
private configurations;
private get sdk();
constructor(plugin: Plugin, options?: ConfigManagerOptions);
private get app();
private get plugin();
private get isApp();
constructor(appOrPlugin: Backend | Plugin, options?: ConfigManagerOptions);
/**
* Register a new config document type
*
Expand All @@ -78,6 +80,7 @@ export declare class ConfigManager {
* Creates the config collection and apply mappings on the specified index.
*/
createCollection(index: string, mappingsOverride?: JSONObject, settingsOverride?: JSONObject): Promise<void>;
get mappings(): any;
/**
* Pipe to generate specific IDs for config documents
*
Expand Down
49 changes: 39 additions & 10 deletions lib/config/ConfigManager.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/config/ConfigManager.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 028c376

Please sign in to comment.