couchdb-web-node-plugin 1.0.585 → 1.0.587

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +38 -36
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couchdb-web-node-plugin",
3
- "version": "1.0.585",
3
+ "version": "1.0.587",
4
4
  "description": "A couchdb server, model instance conflict handler, rest api, authentication, session management, schema validator and model relation guarantee for webNode.",
5
5
  "keywords": [
6
6
  "api",
package/type.d.ts CHANGED
@@ -213,45 +213,47 @@ export interface SecuritySettings {
213
213
  members: DatabaseUserConfiguration;
214
214
  _validatedDocuments?: Set<string>;
215
215
  }
216
+ export type AdvancedFetchOptions = RequestInit & {
217
+ timeout: number;
218
+ };
216
219
  export type ConnectorConfiguration = DatabaseConnectorConfiguration & {
217
- fetch?: (RequestInit & {
218
- timeout: number;
219
- }) | null;
220
+ fetch?: AdvancedFetchOptions | null;
220
221
  };
221
- export type Configuration<ConfigurationType = Mapping<unknown>> = BaseConfiguration<{
222
- couchdb: {
223
- attachAutoRestarter: boolean;
224
- backend: {
225
- configuration: PlainObject;
226
- prefixes: Array<string>;
227
- };
228
- binary: {
229
- memoryInMegaByte: string;
230
- nodePath: string;
231
- runner: Array<Runner>;
232
- };
233
- changesStream: ChangesStreamOptions;
234
- connector: ConnectorConfiguration;
235
- createGenericFlatIndex: boolean;
236
- databaseName: string;
237
- debug: boolean;
238
- ensureAdminPresence: boolean;
239
- ensureSecuritySettingsPresence: boolean;
240
- ensureUserPresence: boolean;
241
- ignoreNoChangeError: boolean;
242
- local: boolean;
243
- maximumRepresentationLength: number;
244
- maximumRepresentationTryLength: number;
245
- model: ModelConfiguration;
246
- path: string;
247
- security: SecuritySettings;
248
- skipIDDetermining: boolean;
249
- url: string;
250
- user: {
251
- name: string;
252
- password: string;
253
- };
222
+ export interface CoreConfiguration {
223
+ attachAutoRestarter: boolean;
224
+ backend: {
225
+ configuration: PlainObject;
226
+ prefixes: Array<string>;
227
+ };
228
+ binary: {
229
+ memoryInMegaByte: string;
230
+ nodePath: string;
231
+ runner: Array<Runner>;
254
232
  };
233
+ changesStream: ChangesStreamOptions;
234
+ connector: ConnectorConfiguration;
235
+ createGenericFlatIndex: boolean;
236
+ databaseName: string;
237
+ debug: boolean;
238
+ ensureAdminPresence: boolean;
239
+ ensureSecuritySettingsPresence: boolean;
240
+ ensureUserPresence: boolean;
241
+ ignoreNoChangeError: boolean;
242
+ local: boolean;
243
+ maximumRepresentationLength: number;
244
+ maximumRepresentationTryLength: number;
245
+ model: ModelConfiguration;
246
+ path: string;
247
+ security: SecuritySettings;
248
+ skipIDDetermining: boolean;
249
+ url: string;
250
+ user: {
251
+ name: string;
252
+ password: string;
253
+ };
254
+ }
255
+ export type Configuration<ConfigurationType = Mapping<unknown>> = BaseConfiguration<{
256
+ couchdb: CoreConfiguration;
255
257
  }> & ConfigurationType;
256
258
  export interface CouchDB<Type extends Mapping<unknown> = Mapping<unknown>> {
257
259
  changesStream: ChangesStream;