@powerhousedao/reactor-api 6.2.0-dev.3 → 6.2.0-dev.4
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/dist/index.d.mts +6 -52
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +22 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5769db0f-d60a-5870-9d50-dc4f5aca8086")}catch(e){}}();
|
|
3
3
|
import { a as isSubgraphClass, c as loadDocumentModels, d as BaseSubgraph, i as buildGraphqlOperations, l as loadProcessors, n as buildGraphQlDriveDocument, o as debounce, r as buildGraphqlOperation, t as buildGraphQlDocument, u as loadSubgraphs } from "./utils-BFkbSO_H.mjs";
|
|
4
4
|
import { AnalyticsQueryEngine } from "@powerhousedao/analytics-engine-core";
|
|
5
5
|
import { AnalyticsModel, AnalyticsResolvers, typedefs } from "@powerhousedao/analytics-engine-graphql";
|
|
@@ -1246,7 +1246,6 @@ function ActionContextInputSchema() {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
function ActionInputSchema() {
|
|
1248
1248
|
return z$1.object({
|
|
1249
|
-
attachments: z$1.array(z$1.lazy(() => AttachmentInputSchema())).nullish(),
|
|
1250
1249
|
context: z$1.lazy(() => ActionContextInputSchema().nullish()),
|
|
1251
1250
|
id: z$1.string(),
|
|
1252
1251
|
input: z$1.custom((v) => v != null),
|
|
@@ -1255,15 +1254,6 @@ function ActionInputSchema() {
|
|
|
1255
1254
|
type: z$1.string()
|
|
1256
1255
|
});
|
|
1257
1256
|
}
|
|
1258
|
-
function AttachmentInputSchema() {
|
|
1259
|
-
return z$1.object({
|
|
1260
|
-
data: z$1.string(),
|
|
1261
|
-
extension: z$1.string().nullish(),
|
|
1262
|
-
fileName: z$1.string().nullish(),
|
|
1263
|
-
hash: z$1.string(),
|
|
1264
|
-
mimeType: z$1.string()
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
1257
|
function ChannelMetaInputSchema() {
|
|
1268
1258
|
return z$1.object({ id: z$1.string() });
|
|
1269
1259
|
}
|
|
@@ -1454,13 +1444,6 @@ const GetDocumentWithOperationsDocument = gql`
|
|
|
1454
1444
|
timestampUtcMs
|
|
1455
1445
|
input
|
|
1456
1446
|
scope
|
|
1457
|
-
attachments {
|
|
1458
|
-
data
|
|
1459
|
-
mimeType
|
|
1460
|
-
hash
|
|
1461
|
-
extension
|
|
1462
|
-
fileName
|
|
1463
|
-
}
|
|
1464
1447
|
context {
|
|
1465
1448
|
signer {
|
|
1466
1449
|
user {
|
|
@@ -1573,13 +1556,6 @@ const GetDocumentOperationsDocument = gql`
|
|
|
1573
1556
|
timestampUtcMs
|
|
1574
1557
|
input
|
|
1575
1558
|
scope
|
|
1576
|
-
attachments {
|
|
1577
|
-
data
|
|
1578
|
-
mimeType
|
|
1579
|
-
hash
|
|
1580
|
-
extension
|
|
1581
|
-
fileName
|
|
1582
|
-
}
|
|
1583
1559
|
context {
|
|
1584
1560
|
signer {
|
|
1585
1561
|
user {
|
|
@@ -1830,13 +1806,6 @@ const PollSyncEnvelopesDocument = gql`
|
|
|
1830
1806
|
timestampUtcMs
|
|
1831
1807
|
input
|
|
1832
1808
|
scope
|
|
1833
|
-
attachments {
|
|
1834
|
-
data
|
|
1835
|
-
mimeType
|
|
1836
|
-
hash
|
|
1837
|
-
extension
|
|
1838
|
-
fileName
|
|
1839
|
-
}
|
|
1840
1809
|
context {
|
|
1841
1810
|
signer {
|
|
1842
1811
|
user {
|
|
@@ -3801,20 +3770,12 @@ const ActionSignerDTO = z.object({
|
|
|
3801
3770
|
app: ActionSignerAppDTO.nullable().optional()
|
|
3802
3771
|
}).strip();
|
|
3803
3772
|
const ActionContextDTO = z.object({ signer: ActionSignerDTO.nullable().optional() }).strip();
|
|
3804
|
-
const AttachmentDTO = z.object({
|
|
3805
|
-
data: z.string(),
|
|
3806
|
-
mimeType: z.string(),
|
|
3807
|
-
hash: z.string(),
|
|
3808
|
-
extension: z.string().nullable().optional(),
|
|
3809
|
-
fileName: z.string().nullable().optional()
|
|
3810
|
-
}).strip();
|
|
3811
3773
|
const OperationActionDTO = z.object({
|
|
3812
3774
|
id: z.string(),
|
|
3813
3775
|
type: z.string(),
|
|
3814
3776
|
timestampUtcMs: z.string(),
|
|
3815
3777
|
input: z.unknown(),
|
|
3816
3778
|
scope: z.string(),
|
|
3817
|
-
attachments: z.array(AttachmentDTO).nullable().optional(),
|
|
3818
3779
|
context: ActionContextDTO.nullable().optional()
|
|
3819
3780
|
}).strip();
|
|
3820
3781
|
const OperationDTO = z.object({
|
|
@@ -3941,7 +3902,7 @@ function createReactorGraphQLClient(url, fetchImpl = fetch, headers) {
|
|
|
3941
3902
|
}
|
|
3942
3903
|
//#endregion
|
|
3943
3904
|
//#region src/graphql/reactor/schema.graphql
|
|
3944
|
-
var schema_default = "# Scalar types (for codegen - also defined in create-schema.ts)\nscalar JSONObject\nscalar DateTime\n\n# Input types\ninput PagingInput {\n limit: Int\n offset: Int\n cursor: String\n}\n\ninput ViewFilterInput {\n branch: String\n scopes: [String!]\n}\n\ninput SearchFilterInput {\n type: String\n parentId: String\n identifiers: [String!]\n}\n\ninput OperationsFilterInput {\n documentId: String!\n branch: String\n scopes: [String!]\n actionTypes: [String!]\n sinceRevision: Int\n timestampFrom: String\n timestampTo: String\n}\n\ninput DocumentOperationsFilterInput {\n branch: String\n scopes: [String!]\n actionTypes: [String!]\n sinceRevision: Int\n timestampFrom: String\n timestampTo: String\n}\n\n# Enums\nenum PropagationMode {\n CASCADE\n ORPHAN\n}\n\nenum DocumentChangeType {\n CREATED\n DELETED\n UPDATED\n PARENT_ADDED\n PARENT_REMOVED\n CHILD_ADDED\n CHILD_REMOVED\n}\n\n# Object types\ntype DocumentModelGlobalState {\n id: String!\n name: String!\n namespace: String\n version: String\n specification: JSONObject!\n}\n\ntype DocumentModelResultPage {\n items: [DocumentModelGlobalState!]!\n totalCount: Int!\n hasNextPage: Boolean!\n hasPreviousPage: Boolean!\n cursor: String\n}\n\ntype Revision {\n scope: String!\n revision: Int!\n}\n\ntype PHDocument {\n id: String!\n slug: String\n preferredEditor: String\n name: String!\n documentType: String!\n state: JSONObject!\n revisionsList: [Revision!]!\n createdAtUtcIso: DateTime!\n lastModifiedAtUtcIso: DateTime!\n operations(\n filter: DocumentOperationsFilterInput\n paging: PagingInput\n ): ReactorOperationResultPage\n}\n\ntype PHDocumentResultPage {\n items: [PHDocument!]!\n totalCount: Int!\n hasNextPage: Boolean!\n hasPreviousPage: Boolean!\n cursor: String\n}\n\ntype ReactorOperationResultPage {\n items: [ReactorOperation!]!\n totalCount: Int!\n hasNextPage: Boolean!\n hasPreviousPage: Boolean!\n cursor: String\n}\n\ntype DeadLetterInfo {\n documentId: String!\n error: String!\n jobId: String!\n branch: String!\n scopes: [String!]!\n operationCount: Int!\n}\n\ntype PollSyncEnvelopesResult {\n envelopes: [SyncEnvelope!]!\n ackOrdinal: Int!\n deadLetters: [DeadLetterInfo!]!\n hasMore: Boolean!\n}\n\ntype DocumentWithChildren {\n document: PHDocument!\n childIds: [String!]!\n}\n\ntype MoveRelationshipResult {\n source: PHDocument!\n target: PHDocument!\n}\n\ntype JobInfo {\n id: String!\n status: String!\n result: JSONObject!\n error: String\n createdAt: DateTime!\n completedAt: DateTime\n}\n\ntype DocumentChangeEvent {\n type: DocumentChangeType!\n documents: [PHDocument!]!\n context: DocumentChangeContext\n}\n\ntype DocumentChangeContext {\n parentId: String\n childId: String\n}\n\ntype JobChangeEvent {\n jobId: String!\n status: String!\n result: JSONObject!\n error: String\n}\n\ntype ReactorSignerUser {\n address: String!\n networkId: String!\n chainId: Int!\n}\n\ntype ReactorSignerApp {\n name: String!\n key: String!\n}\n\ntype ReactorSigner {\n user: ReactorSignerUser\n app: ReactorSignerApp\n signatures: [String!]!\n}\n\ntype ActionContext {\n signer: ReactorSigner\n}\n\ntype Action {\n id: String!\n type: String!\n timestampUtcMs: String!\n input: JSONObject!\n scope: String!\n
|
|
3905
|
+
var schema_default = "# Scalar types (for codegen - also defined in create-schema.ts)\nscalar JSONObject\nscalar DateTime\n\n# Input types\ninput PagingInput {\n limit: Int\n offset: Int\n cursor: String\n}\n\ninput ViewFilterInput {\n branch: String\n scopes: [String!]\n}\n\ninput SearchFilterInput {\n type: String\n parentId: String\n identifiers: [String!]\n}\n\ninput OperationsFilterInput {\n documentId: String!\n branch: String\n scopes: [String!]\n actionTypes: [String!]\n sinceRevision: Int\n timestampFrom: String\n timestampTo: String\n}\n\ninput DocumentOperationsFilterInput {\n branch: String\n scopes: [String!]\n actionTypes: [String!]\n sinceRevision: Int\n timestampFrom: String\n timestampTo: String\n}\n\n# Enums\nenum PropagationMode {\n CASCADE\n ORPHAN\n}\n\nenum DocumentChangeType {\n CREATED\n DELETED\n UPDATED\n PARENT_ADDED\n PARENT_REMOVED\n CHILD_ADDED\n CHILD_REMOVED\n}\n\n# Object types\ntype DocumentModelGlobalState {\n id: String!\n name: String!\n namespace: String\n version: String\n specification: JSONObject!\n}\n\ntype DocumentModelResultPage {\n items: [DocumentModelGlobalState!]!\n totalCount: Int!\n hasNextPage: Boolean!\n hasPreviousPage: Boolean!\n cursor: String\n}\n\ntype Revision {\n scope: String!\n revision: Int!\n}\n\ntype PHDocument {\n id: String!\n slug: String\n preferredEditor: String\n name: String!\n documentType: String!\n state: JSONObject!\n revisionsList: [Revision!]!\n createdAtUtcIso: DateTime!\n lastModifiedAtUtcIso: DateTime!\n operations(\n filter: DocumentOperationsFilterInput\n paging: PagingInput\n ): ReactorOperationResultPage\n}\n\ntype PHDocumentResultPage {\n items: [PHDocument!]!\n totalCount: Int!\n hasNextPage: Boolean!\n hasPreviousPage: Boolean!\n cursor: String\n}\n\ntype ReactorOperationResultPage {\n items: [ReactorOperation!]!\n totalCount: Int!\n hasNextPage: Boolean!\n hasPreviousPage: Boolean!\n cursor: String\n}\n\ntype DeadLetterInfo {\n documentId: String!\n error: String!\n jobId: String!\n branch: String!\n scopes: [String!]!\n operationCount: Int!\n}\n\ntype PollSyncEnvelopesResult {\n envelopes: [SyncEnvelope!]!\n ackOrdinal: Int!\n deadLetters: [DeadLetterInfo!]!\n hasMore: Boolean!\n}\n\ntype DocumentWithChildren {\n document: PHDocument!\n childIds: [String!]!\n}\n\ntype MoveRelationshipResult {\n source: PHDocument!\n target: PHDocument!\n}\n\ntype JobInfo {\n id: String!\n status: String!\n result: JSONObject!\n error: String\n createdAt: DateTime!\n completedAt: DateTime\n}\n\ntype DocumentChangeEvent {\n type: DocumentChangeType!\n documents: [PHDocument!]!\n context: DocumentChangeContext\n}\n\ntype DocumentChangeContext {\n parentId: String\n childId: String\n}\n\ntype JobChangeEvent {\n jobId: String!\n status: String!\n result: JSONObject!\n error: String\n}\n\ntype ReactorSignerUser {\n address: String!\n networkId: String!\n chainId: Int!\n}\n\ntype ReactorSignerApp {\n name: String!\n key: String!\n}\n\ntype ReactorSigner {\n user: ReactorSignerUser\n app: ReactorSignerApp\n signatures: [String!]!\n}\n\ntype ActionContext {\n signer: ReactorSigner\n}\n\ntype Action {\n id: String!\n type: String!\n timestampUtcMs: String!\n input: JSONObject!\n scope: String!\n context: ActionContext\n}\n\n# Input types for sync operations\ninput ActionContextInput {\n signer: ReactorSignerInput\n}\n\ninput ReactorSignerInput {\n user: ReactorSignerUserInput\n app: ReactorSignerAppInput\n signatures: [String!]!\n}\n\ninput ReactorSignerUserInput {\n address: String!\n networkId: String!\n chainId: Int!\n}\n\ninput ReactorSignerAppInput {\n name: String!\n key: String!\n}\n\ninput ActionInput {\n id: String!\n type: String!\n timestampUtcMs: String!\n input: JSONObject!\n scope: String!\n context: ActionContextInput\n}\n\n# Synchronization types\ntype ReactorOperation {\n index: Int!\n timestampUtcMs: String!\n hash: String!\n skip: Int!\n error: String\n id: String\n action: Action!\n}\n\ninput OperationInput {\n index: Int!\n timestampUtcMs: String!\n hash: String!\n skip: Int!\n error: String\n id: String\n action: ActionInput!\n}\n\ntype OperationContext {\n documentId: String!\n documentType: String!\n scope: String!\n branch: String!\n ordinal: Int!\n}\n\ninput OperationContextInput {\n documentId: String!\n documentType: String!\n scope: String!\n branch: String!\n ordinal: Int!\n}\n\ntype OperationWithContext {\n operation: ReactorOperation!\n context: OperationContext!\n}\n\ninput OperationWithContextInput {\n operation: OperationInput!\n context: OperationContextInput!\n}\n\ntype ChannelMeta {\n id: String!\n}\n\ninput ChannelMetaInput {\n id: String!\n}\n\ntype RemoteCursor {\n remoteName: String!\n cursorOrdinal: Int!\n lastSyncedAtUtcMs: String\n}\n\ninput RemoteCursorInput {\n remoteName: String!\n cursorOrdinal: Int!\n lastSyncedAtUtcMs: String\n}\n\nenum SyncEnvelopeType {\n OPERATIONS\n ACK\n}\n\ntype SyncEnvelope {\n type: SyncEnvelopeType!\n channelMeta: ChannelMeta!\n operations: [OperationWithContext!]\n cursor: RemoteCursor\n key: String\n dependsOn: [String!]\n}\n\ninput SyncEnvelopeInput {\n type: SyncEnvelopeType!\n channelMeta: ChannelMetaInput!\n operations: [OperationWithContextInput!]\n cursor: RemoteCursorInput\n key: String\n dependsOn: [String!]\n}\n\ninput RemoteFilterInput {\n documentId: [String!]!\n scope: [String!]!\n branch: String!\n}\n\ninput TouchChannelInput {\n id: String!\n name: String!\n collectionId: String!\n filter: RemoteFilterInput!\n sinceTimestampUtcMs: String!\n}\n\ntype TouchChannelResult {\n success: Boolean!\n ackOrdinal: Int!\n}\n\ntype Query {\n # Get document models for a namespace\n documentModels(\n namespace: String\n paging: PagingInput\n ): DocumentModelResultPage!\n\n # Get a specific document by ID or slug\n document(identifier: String!, view: ViewFilterInput): DocumentWithChildren\n\n # Get outgoing relationships of a given type from a source document\n documentOutgoingRelationships(\n sourceIdentifier: String!\n relationshipType: String!\n view: ViewFilterInput\n paging: PagingInput\n ): PHDocumentResultPage!\n\n # Get incoming relationships of a given type to a target document\n documentIncomingRelationships(\n targetIdentifier: String!\n relationshipType: String!\n view: ViewFilterInput\n paging: PagingInput\n ): PHDocumentResultPage!\n\n # Find documents by search criteria\n findDocuments(\n search: SearchFilterInput\n view: ViewFilterInput\n paging: PagingInput\n ): PHDocumentResultPage!\n\n # Get job status\n jobStatus(jobId: String!): JobInfo\n\n # Get operations for a document with filtering and pagination\n documentOperations(\n filter: OperationsFilterInput!\n paging: PagingInput\n ): ReactorOperationResultPage!\n\n # Poll for sync envelopes from a channel\n pollSyncEnvelopes(\n channelId: String!\n outboxAck: Int!\n outboxLatest: Int!\n ): PollSyncEnvelopesResult!\n}\n\ntype Mutation {\n # Create a new document\n createDocument(document: JSONObject!, parentIdentifier: String): PHDocument!\n\n # Create an empty document of specified type\n createEmptyDocument(\n documentType: String!\n parentIdentifier: String\n ): PHDocument!\n\n # Apply actions to a document (synchronous)\n mutateDocument(\n documentIdentifier: String!\n actions: [JSONObject!]!\n view: ViewFilterInput\n ): PHDocument!\n\n # Submit actions to a document (asynchronous)\n mutateDocumentAsync(\n documentIdentifier: String!\n actions: [JSONObject!]!\n view: ViewFilterInput\n ): String!\n\n # Rename a document\n renameDocument(\n documentIdentifier: String!\n name: String!\n branch: String\n ): PHDocument!\n\n # Update the preferred editor recorded in the document header meta.\n # Pass null/omit to clear it.\n setPreferredEditor(\n documentIdentifier: String!\n preferredEditor: String\n branch: String\n ): PHDocument!\n\n # Add a relationship between two documents\n addRelationship(\n sourceIdentifier: String!\n targetIdentifier: String!\n relationshipType: String!\n branch: String\n ): PHDocument!\n\n # Remove a relationship between two documents\n removeRelationship(\n sourceIdentifier: String!\n targetIdentifier: String!\n relationshipType: String!\n branch: String\n ): PHDocument!\n\n # Move a relationship from one source to another\n moveRelationship(\n sourceParentIdentifier: String!\n targetParentIdentifier: String!\n targetIdentifier: String!\n relationshipType: String!\n branch: String\n ): MoveRelationshipResult!\n\n # Delete a single document\n deleteDocument(identifier: String!, propagate: PropagationMode): Boolean!\n\n # Delete multiple documents\n deleteDocuments(identifiers: [String!]!, propagate: PropagationMode): Boolean!\n\n # Touch (create or update) a channel for sync\n touchChannel(input: TouchChannelInput!): TouchChannelResult!\n\n # Push sync envelopes to a channel\n pushSyncEnvelopes(envelopes: [SyncEnvelopeInput!]!): Boolean!\n}\n\ntype Subscription {\n # Subscribe to document changes\n documentChanges(\n search: SearchFilterInput\n view: ViewFilterInput\n ): DocumentChangeEvent!\n\n # Subscribe to job changes\n jobChanges(jobId: String!): JobChangeEvent!\n}\n";
|
|
3945
3906
|
//#endregion
|
|
3946
3907
|
//#region src/graphql/reactor/pubsub.ts
|
|
3947
3908
|
const pubSub = new PubSub();
|
|
@@ -4414,10 +4375,10 @@ const ADMIN_USERS = getAdminUsers();
|
|
|
4414
4375
|
//#endregion
|
|
4415
4376
|
//#region src/graphql/system/version.ts
|
|
4416
4377
|
function getVersion() {
|
|
4417
|
-
return "6.2.0-dev.
|
|
4378
|
+
return "6.2.0-dev.4";
|
|
4418
4379
|
}
|
|
4419
4380
|
function getGitHash() {
|
|
4420
|
-
return "
|
|
4381
|
+
return "79386a1a3182a6350dbd6c359927889a9f1f9c2d";
|
|
4421
4382
|
}
|
|
4422
4383
|
function getGitUrl() {
|
|
4423
4384
|
return buildTreeUrl(getGitHash());
|
|
@@ -5774,6 +5735,15 @@ const initAnalyticsStoreSql = [
|
|
|
5774
5735
|
//#region src/server.ts
|
|
5775
5736
|
const defaultLogger = childLogger(["reactor-api", "server"]);
|
|
5776
5737
|
const DEFAULT_PORT = 4e3;
|
|
5738
|
+
function createReadinessGate() {
|
|
5739
|
+
let ready = false;
|
|
5740
|
+
return {
|
|
5741
|
+
isReady: () => ready,
|
|
5742
|
+
markReady: () => {
|
|
5743
|
+
ready = true;
|
|
5744
|
+
}
|
|
5745
|
+
};
|
|
5746
|
+
}
|
|
5777
5747
|
function resolveAttachmentStoragePath(options) {
|
|
5778
5748
|
if (options.attachmentStoragePath) return options.attachmentStoragePath;
|
|
5779
5749
|
if (options.dbPath && !options.dbPath.startsWith("postgres")) return path.resolve(options.dbPath, "..", "attachments");
|
|
@@ -5911,6 +5881,8 @@ async function _setupCommonInfrastructure(options) {
|
|
|
5911
5881
|
if (SKIP_CREDENTIAL_VERIFICATION !== void 0) skipCredentialVerification = SKIP_CREDENTIAL_VERIFICATION === "true";
|
|
5912
5882
|
const logger = options.logger ?? defaultLogger;
|
|
5913
5883
|
httpAdapter.getRoute("/health", () => new Response("OK", { status: 200 }));
|
|
5884
|
+
const readiness = createReadinessGate();
|
|
5885
|
+
httpAdapter.getRoute("/ready", () => readiness.isReady() ? new Response("OK", { status: 200 }) : new Response("starting", { status: 503 }));
|
|
5914
5886
|
const explorerPrefix = `${config.basePath}/explorer`;
|
|
5915
5887
|
httpAdapter.getRoute(`${explorerPrefix}/:endpoint?`, (request) => {
|
|
5916
5888
|
const url = new URL(request.url);
|
|
@@ -5979,7 +5951,8 @@ async function _setupCommonInfrastructure(options) {
|
|
|
5979
5951
|
authorizationService,
|
|
5980
5952
|
attachments,
|
|
5981
5953
|
packages,
|
|
5982
|
-
dbClosers
|
|
5954
|
+
dbClosers,
|
|
5955
|
+
readiness
|
|
5983
5956
|
};
|
|
5984
5957
|
}
|
|
5985
5958
|
/**
|
|
@@ -6101,7 +6074,7 @@ function buildApiDispose(args) {
|
|
|
6101
6074
|
};
|
|
6102
6075
|
}
|
|
6103
6076
|
async function initializeAndStartAPI(clientInitializer, options, processorApp) {
|
|
6104
|
-
const { port, httpAdapter, authFetchMiddleware, authService, auth, relationalDb, analyticsStore, documentPermissionService, authorizationService, attachments, packages, dbClosers } = await _setupCommonInfrastructure(options);
|
|
6077
|
+
const { port, httpAdapter, authFetchMiddleware, authService, auth, relationalDb, analyticsStore, documentPermissionService, authorizationService, attachments, packages, dbClosers, readiness } = await _setupCommonInfrastructure(options);
|
|
6105
6078
|
const { documentModels, processors, subgraphs } = await packages.init();
|
|
6106
6079
|
const { module: reactorClientModule, reactorDriveClient } = await clientInitializer(documentModels);
|
|
6107
6080
|
const reactorClient = reactorClientModule.client;
|
|
@@ -6115,7 +6088,8 @@ async function initializeAndStartAPI(clientInitializer, options, processorApp) {
|
|
|
6115
6088
|
...await _setupAPI(reactorClient, syncManager, reactorProcessorManager, httpAdapter, authFetchMiddleware, authService, port, packages, relationalDb, analyticsStore, documentPermissionService, processors, subgraphs, options, auth, processorApp, (reactorClientModule.reactorModule?.readModelCoordinator)?.readModels ?? [], attachments, authorizationService, documentModelRegistry, dbClosers, reactorDriveClient),
|
|
6116
6089
|
client: reactorClient,
|
|
6117
6090
|
syncManager,
|
|
6118
|
-
documentModelRegistry
|
|
6091
|
+
documentModelRegistry,
|
|
6092
|
+
readiness
|
|
6119
6093
|
};
|
|
6120
6094
|
}
|
|
6121
6095
|
//#endregion
|
|
@@ -6219,7 +6193,7 @@ var PackageManagementService = class {
|
|
|
6219
6193
|
}
|
|
6220
6194
|
};
|
|
6221
6195
|
//#endregion
|
|
6222
|
-
export { ADMIN_USERS, ActionContextInputSchema, ActionInputSchema, AddRelationshipDocument, AnalyticsSubgraph,
|
|
6196
|
+
export { ADMIN_USERS, ActionContextInputSchema, ActionInputSchema, AddRelationshipDocument, AnalyticsSubgraph, AuthService, AuthSubgraph, BaseSubgraph, ChannelMetaInputSchema, CreateDocumentDocument, CreateEmptyDocumentDocument, DeleteDocumentDocument, DeleteDocumentsDocument, DocumentChangeType, DocumentChangeTypeSchema, DocumentChangesDocument, DocumentOperationsFilterInputSchema, DocumentPermissionService, FindDocumentsDocument, GetDocumentDocument, GetDocumentIncomingRelationshipsDocument, GetDocumentModelsDocument, GetDocumentOperationsDocument, GetDocumentOutgoingRelationshipsDocument, GetDocumentWithOperationsDocument, GetJobStatusDocument, GraphQLManager, HttpDocumentModelLoader, HttpPackageLoader, ImportPackageLoader, InMemoryPackageStorage, JobChangesDocument, MoveRelationshipDocument, MutateDocumentAsyncDocument, MutateDocumentDocument, OperationContextInputSchema, OperationInputSchema, OperationWithContextInputSchema, OperationsFilterInputSchema, PackageManagementService, PackageManager, PackagesSubgraph, PagingInputSchema, PhDocumentFieldsFragmentDoc, PollSyncEnvelopesDocument, PropagationMode, PropagationModeSchema, PushSyncEnvelopesDocument, ReactorSignerAppInputSchema, ReactorSignerInputSchema, ReactorSignerUserInputSchema, ReactorSubgraph, RemoteCursorInputSchema, RemoteFilterInputSchema, RemoveRelationshipDocument, RenameDocumentDocument, SearchFilterInputSchema, SetPreferredEditorDocument, SyncEnvelopeInputSchema, SyncEnvelopeType, SyncEnvelopeTypeSchema, SystemSubgraph, TouchChannelDocument, TouchChannelInputSchema, ViewFilterInputSchema, buildGraphQlDocument, buildGraphQlDriveDocument, buildGraphqlOperation, buildGraphqlOperations, buildSubgraphSchemaModule, createAuthFetchMiddleware, createGatewayAdapter, createHttpAdapter, createMergedSchema, createReactorGraphQLClient, createSchema, definedNonNullAnySchema, driveIdFromUrl, extractSubgraphsFromModule, generateDocumentModelSchema, getAuthContext, getDbClient, getDocumentModelSchemaName, getDocumentModelTypeDefs, getGitHash, getGitUrl, getSdk, getUniqueDocumentModels, getVersion, initAnalyticsStoreSql, initializeAndStartAPI, isDefinedNonNullAny, isExpectedLoaderMiss, isSubgraphClass, parseDriveUrl, renderGraphqlPlayground };
|
|
6223
6197
|
|
|
6224
6198
|
//# sourceMappingURL=index.mjs.map
|
|
6225
|
-
//# debugId=
|
|
6199
|
+
//# debugId=5769db0f-d60a-5870-9d50-dc4f5aca8086
|