@journeyapps-labs/reactor-mod-data-browser 1.0.0 → 2.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@journeyapps-labs/reactor-mod-data-browser",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "./dist/@types/index",
6
6
  "publishConfig": {
@@ -7,6 +7,7 @@ import { v4 } from 'uuid';
7
7
  import { BaseObserver } from '@journeyapps-labs/common-utils';
8
8
  import { Collection, LifecycleCollection } from '@journeyapps-labs/lib-reactor-data-layer';
9
9
  import { when } from 'mobx';
10
+ import { EntityDescription } from '@journeyapps-labs/reactor-mod';
10
11
 
11
12
  export interface AbstractConnectionSerialized {
12
13
  factory: string;
@@ -91,8 +92,10 @@ export abstract class AbstractConnection extends BaseObserver<AbstractConnection
91
92
  };
92
93
  }
93
94
 
94
- get name() {
95
- return this.id;
95
+ get name(): EntityDescription {
96
+ return {
97
+ simpleName: this.id
98
+ };
96
99
  }
97
100
 
98
101
  abstract _serialize(): any;
@@ -1,6 +1,7 @@
1
1
  import { ApiCredentialOptions, Database } from '@journeyapps/db';
2
2
  import { AbstractConnection } from '../AbstractConnection';
3
3
  import { ManualConnectionFactory } from './ManualConnectionFactory';
4
+ import { EntityDescription } from '@journeyapps-labs/reactor-mod';
4
5
 
5
6
  export interface ManualConnectionDetails extends ApiCredentialOptions {
6
7
  name: string;
@@ -26,7 +27,9 @@ export class ManualConnection extends AbstractConnection {
26
27
  this.options = data;
27
28
  }
28
29
 
29
- get name(): string {
30
- return this.options.name;
30
+ get name(): EntityDescription {
31
+ return {
32
+ simpleName: this.options.name
33
+ };
31
34
  }
32
35
  }
@@ -1,6 +1,5 @@
1
1
  import {
2
2
  DescendantEntityProviderComponent,
3
- EntityActionHandlerComponent,
4
3
  EntityDefinition,
5
4
  EntityDescriberComponent,
6
5
  EntityPanelComponent,
@@ -30,9 +29,7 @@ export class ConnectionEntityDefinition extends EntityDefinition<AbstractConnect
30
29
  new EntityDescriberComponent<AbstractConnection>({
31
30
  label: 'Simple',
32
31
  describe: (entity: AbstractConnection) => {
33
- return {
34
- simpleName: entity.name
35
- };
32
+ return entity.name;
36
33
  }
37
34
  })
38
35
  );
@@ -69,6 +66,7 @@ export class ConnectionEntityDefinition extends EntityDefinition<AbstractConnect
69
66
  })
70
67
  );
71
68
  }
69
+
72
70
  matchEntity(t: any): boolean {
73
71
  if (t instanceof AbstractConnection) {
74
72
  return true;
package/src/index.ts CHANGED
@@ -1,5 +1,27 @@
1
1
  import { DataBrowserModule } from './DataBrowserModule';
2
2
 
3
3
  export * from './entities';
4
+ export * from './core/SchemaModelDefinition';
5
+ export * from './core/SchemaModelObject';
6
+ export * from './core/AbstractConnection';
7
+ export * from './core/AbstractConnectionFactory';
8
+ export * from './core/query/SimpleQuery';
9
+ export * from './core/query/AbstractQuery';
10
+ export * from './core/query/Page';
11
+ export * from './core/types/ManualConnectionFactory';
12
+ export * from './core/types/ManualConnection';
13
+ export * from './entities/QueryEntityDefinition';
14
+ export * from './entities/ConnectionEntityDefinition';
15
+ export * from './entities/ConnectionFactoryEntityDefinition';
16
+ export * from './entities/SchemaModelDefinitionEntityDefinition';
17
+ export * from './entities/SchemaModelObjectEntityDefinition';
18
+ export * from './panels/query/QueryPanelFactory';
19
+ export * from './panels/model/ModelPanelFactory';
20
+ export * from './stores/ConnectionStore';
21
+ export * from './actions/connections/AddConnectionAction';
22
+ export * from './actions/connections/RemoveConnectionAction';
23
+ export * from './actions/schema-definitions/CreateModelAction';
24
+ export * from './actions/schema-definitions/QuerySchemaModelAction';
25
+ export * from './actions/schema-model/EditSchemaModelAction';
4
26
 
5
27
  export default DataBrowserModule;
@@ -0,0 +1,9 @@
1
+ const { patchExportedLibrary } = require('@journeyapps-labs/lib-reactor-builder');
2
+ module.exports = (webpack) => {
3
+ return patchExportedLibrary({
4
+ w: webpack,
5
+ module: '@journeyapps/db',
6
+ dir: __dirname,
7
+ alias: true
8
+ });
9
+ };