@powerhousedao/reactor-api 1.12.0 → 1.13.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/CHANGELOG.md +12 -6
- package/dist/index.d.ts +7 -1
- package/dist/index.js +528 -300
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/processors/index.ts +1 -0
- package/src/processors/operational-processor.ts +20 -0
- package/src/server.ts +1 -1
- package/src/subgraphs/manager.ts +1 -10
- package/src/types.ts +2 -2
- package/src/utils/index.ts +1 -1
- package/test/router.test.ts +1 -1
- /package/src/utils/{get-db-client.ts → db.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
## 1.
|
|
1
|
+
## 1.13.0 (2024-12-19)
|
|
2
2
|
|
|
3
3
|
### 🚀 Features
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- **renown:** added initial renown sdk package ([2864fbc6](https://github.com/powerhouse-inc/powerhouse/commit/2864fbc6))
|
|
6
|
+
- **codegen:** operational processor template ([455314c7](https://github.com/powerhouse-inc/powerhouse/commit/455314c7))
|
|
7
|
+
- **reactor-api:** added operational processor ([e3dfb4da](https://github.com/powerhouse-inc/powerhouse/commit/e3dfb4da))
|
|
8
|
+
|
|
9
|
+
### 🩹 Fixes
|
|
10
|
+
|
|
11
|
+
- **reactor-api:** set proper operational datasource ([d040acfb](https://github.com/powerhouse-inc/powerhouse/commit/d040acfb))
|
|
6
12
|
|
|
7
13
|
### 🧱 Updated Dependencies
|
|
8
14
|
|
|
9
|
-
- Updated document-model-libs to 1.
|
|
10
|
-
- Updated document-drive to 1.12.
|
|
11
|
-
- Updated
|
|
12
|
-
- Updated @powerhousedao/scalars to 1.14.0
|
|
15
|
+
- Updated document-model-libs to 1.124.0
|
|
16
|
+
- Updated document-drive to 1.12.1
|
|
17
|
+
- Updated @powerhousedao/scalars to 1.15.0
|
|
13
18
|
|
|
14
19
|
### ❤️ Thank You
|
|
15
20
|
|
|
21
|
+
- acaldas @acaldas
|
|
16
22
|
- Frank
|
|
17
23
|
|
|
18
24
|
## 1.2.0 (2024-10-29)
|
package/dist/index.d.ts
CHANGED
|
@@ -451,6 +451,12 @@ declare function startAPI(reactor: IDocumentDriveServer, options: Options): Prom
|
|
|
451
451
|
declare const createSchema: (documentDriveServer: IDocumentDriveServer, resolvers: GraphQLResolverMap<Context>, typeDefs: DocumentNode) => graphql.GraphQLSchema;
|
|
452
452
|
declare const getDocumentModelTypeDefs: (documentDriveServer: IDocumentDriveServer, typeDefs: DocumentNode) => DocumentNode;
|
|
453
453
|
|
|
454
|
+
declare abstract class OperationalProcessor<D extends Document = Document, S extends OperationScope = OperationScope> extends Processor<D, S> {
|
|
455
|
+
protected operationalStore: Db;
|
|
456
|
+
constructor(args: ProcessorSetupArgs, options?: ProcessorOptions);
|
|
457
|
+
onSetup(args: ProcessorSetupArgs): void;
|
|
458
|
+
}
|
|
459
|
+
|
|
454
460
|
declare class ProcessorManager implements IProcessorManager {
|
|
455
461
|
#private;
|
|
456
462
|
private operationalStore;
|
|
@@ -461,4 +467,4 @@ declare class ProcessorManager implements IProcessorManager {
|
|
|
461
467
|
registerProcessor(module: IProcessor | ProcessorClass): Promise<IProcessor>;
|
|
462
468
|
}
|
|
463
469
|
|
|
464
|
-
export { type API, AnalyticsProcessor, BaseProcessor, type Context, type Db, type IProcessor, type IProcessorManager, type ISubgraph, Processor, type ProcessorClass, ProcessorManager, type ProcessorOptions, type ProcessorSetupArgs, type ProcessorType, type ProcessorUpdate, Subgraph, type SubgraphArgs, type SubgraphClass, SubgraphManager, index$2 as analyticsSubgraph, createSchema, index$1 as driveSubgraph, getDbClient, getDocumentModelTypeDefs, isProcessorClass, isSubgraphClass, startAPI, index as systemSubgraph };
|
|
470
|
+
export { type API, AnalyticsProcessor, BaseProcessor, type Context, type Db, type IProcessor, type IProcessorManager, type ISubgraph, OperationalProcessor, Processor, type ProcessorClass, ProcessorManager, type ProcessorOptions, type ProcessorSetupArgs, type ProcessorType, type ProcessorUpdate, Subgraph, type SubgraphArgs, type SubgraphClass, SubgraphManager, index$2 as analyticsSubgraph, createSchema, index$1 as driveSubgraph, getDbClient, getDocumentModelTypeDefs, isProcessorClass, isSubgraphClass, startAPI, index as systemSubgraph };
|