@burdenoff/be-sdk 2026.514.2 → 2026.516.2
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/EventQueueFactory-6UJ3UIP4.js +6 -0
- package/dist/{EventQueueFactory-DGHBOV7I.js.map → EventQueueFactory-6UJ3UIP4.js.map} +1 -1
- package/dist/cache/index.d.ts +1 -1
- package/dist/cache/index.js +1 -1
- package/dist/{chunk-FT74HIIG.js → chunk-24VR7PF3.js} +2 -2
- package/dist/{chunk-FT74HIIG.js.map → chunk-24VR7PF3.js.map} +1 -1
- package/dist/chunk-75VTKG4Q.js +243 -0
- package/dist/chunk-75VTKG4Q.js.map +1 -0
- package/dist/{chunk-M3PYLAPT.js → chunk-7Y3RNUS3.js} +4 -4
- package/dist/{chunk-M3PYLAPT.js.map → chunk-7Y3RNUS3.js.map} +1 -1
- package/dist/{chunk-FSTWNBRX.js → chunk-MQ6OE5QR.js} +10 -33
- package/dist/chunk-MQ6OE5QR.js.map +1 -0
- package/dist/{chunk-N52W3RQA.js → chunk-MVHOP4IG.js} +3 -174
- package/dist/chunk-MVHOP4IG.js.map +1 -0
- package/dist/{chunk-S74C6CEN.js → chunk-Q6N74R6S.js} +61 -68
- package/dist/chunk-Q6N74R6S.js.map +1 -0
- package/dist/chunk-RRFNSBDZ.js +181 -0
- package/dist/chunk-RRFNSBDZ.js.map +1 -0
- package/dist/{chunk-D35GTG7Y.js → chunk-SNW4BLF2.js} +3 -3
- package/dist/{chunk-D35GTG7Y.js.map → chunk-SNW4BLF2.js.map} +1 -1
- package/dist/chunk-TM5RQ6P2.js +925 -0
- package/dist/chunk-TM5RQ6P2.js.map +1 -0
- package/dist/{chunk-IX5QCHWE.js → chunk-U455UF4O.js} +3 -3
- package/dist/{chunk-IX5QCHWE.js.map → chunk-U455UF4O.js.map} +1 -1
- package/dist/{chunk-CCV2AVAI.js → chunk-V4RLPTTT.js} +3 -3
- package/dist/{chunk-CCV2AVAI.js.map → chunk-V4RLPTTT.js.map} +1 -1
- package/dist/{chunk-KLYAIEAX.js → chunk-VKSB2K5E.js} +15 -30
- package/dist/chunk-VKSB2K5E.js.map +1 -0
- package/dist/event-queue/index.d.ts +2 -2
- package/dist/event-queue/index.js +4 -6
- package/dist/export/index.js +3 -3
- package/dist/gateway/index.js +2 -2
- package/dist/gateway/security/index.js +1 -1
- package/dist/graph/index.d.ts +2 -2
- package/dist/graph/index.js +5 -6
- package/dist/{graph-emitter-Bk0FqD53.d.ts → graph-emitter-Dp7UE1Yd.d.ts} +3 -2
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.js +2 -2
- package/dist/{index-C1ojTQq0.d.ts → index-B6IwtUb1.d.ts} +2 -0
- package/dist/{index-DZO2nvC9.d.ts → index-Bo58dlMU.d.ts} +2 -2
- package/dist/{index-syMAjErz.d.ts → index-D_Nc4UHi.d.ts} +6 -84
- package/dist/index-joONjwLt.d.ts +33 -0
- package/dist/{index-XY9x2I6b.d.ts → index-tJYziwMs.d.ts} +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +14 -15
- package/dist/index.js.map +1 -1
- package/dist/init/index.d.ts +1 -1
- package/dist/init/index.js +3 -6
- package/dist/prisma/index.js +4 -6
- package/package.json +1 -6
- package/dist/EventQueueFactory-DGHBOV7I.js +0 -8
- package/dist/chunk-7V6GUNGP.js +0 -438
- package/dist/chunk-7V6GUNGP.js.map +0 -1
- package/dist/chunk-FSTWNBRX.js.map +0 -1
- package/dist/chunk-KLYAIEAX.js.map +0 -1
- package/dist/chunk-LRGXT37B.js +0 -1966
- package/dist/chunk-LRGXT37B.js.map +0 -1
- package/dist/chunk-N52W3RQA.js.map +0 -1
- package/dist/chunk-Q4HKXQVD.js +0 -478
- package/dist/chunk-Q4HKXQVD.js.map +0 -1
- package/dist/chunk-S74C6CEN.js.map +0 -1
- package/dist/chunk-UVYDP6P6.js +0 -13
- package/dist/chunk-UVYDP6P6.js.map +0 -1
- package/dist/config-QVYSAUMT.js +0 -4
- package/dist/config-QVYSAUMT.js.map +0 -1
- package/dist/index-CDFQRL-h.d.ts +0 -66
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
export { EventPriority, EventsModule, ModuleEventsService, createConsumer, createModuleEventsService, createPublisher } from '../chunk-
|
|
2
|
-
export { MemoryEventBus, MemoryEventConsumer, MemoryEventPublisher, MemoryEventQueue, NatsGraphEventEmitter, createGraphEventEmitter2 as createGraphEventEmitter, createMemoryConsumer, createGraphEventEmitter as createMemoryGraphEventEmitter, createMemoryPublisher, getGraphEventEmitter, resetGraphEventEmitter } from '../chunk-
|
|
3
|
-
export { EventQueueFactory,
|
|
4
|
-
export {
|
|
5
|
-
export { RedisStreamsConnection, dlqKey as redisDlqKey, streamKey as redisStreamKey } from '../chunk-N52W3RQA.js';
|
|
6
|
-
import '../chunk-NGMEI42S.js';
|
|
1
|
+
export { EventPriority, EventsModule, ModuleEventsService, createConsumer, createModuleEventsService, createPublisher } from '../chunk-MQ6OE5QR.js';
|
|
2
|
+
export { GraphEventEmitterImpl, MemoryEventBus, MemoryEventConsumer, MemoryEventPublisher, MemoryEventQueue, NatsGraphEventEmitter, createGraphEventEmitter2 as createGraphEventEmitter, createMemoryConsumer, createGraphEventEmitter as createMemoryGraphEventEmitter, createMemoryPublisher, getGraphEventEmitter, resetGraphEventEmitter } from '../chunk-VKSB2K5E.js';
|
|
3
|
+
export { EventQueueFactory, QueueType, RedisStreamsEventConsumer, RedisStreamsEventPublisher } from '../chunk-TM5RQ6P2.js';
|
|
4
|
+
export { RedisStreamsConnection, dlqKey as redisDlqKey, streamKey as redisStreamKey } from '../chunk-MVHOP4IG.js';
|
|
7
5
|
import '../chunk-CBZNP6RF.js';
|
|
8
6
|
import '../chunk-XE4OXN2W.js';
|
|
9
7
|
//# sourceMappingURL=index.js.map
|
package/dist/export/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { BaseModuleExporter, PaginationService, convertToCSV, csvToJSON, estimateCSVSize, getCSVHeaders, parseCSV, triggerExportJob } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { BaseModuleExporter, PaginationService, convertToCSV, csvToJSON, estimateCSVSize, getCSVHeaders, parseCSV, triggerExportJob } from '../chunk-SNW4BLF2.js';
|
|
2
|
+
import '../chunk-U455UF4O.js';
|
|
3
|
+
import '../chunk-24VR7PF3.js';
|
|
4
4
|
import '../chunk-HIWTWIGQ.js';
|
|
5
5
|
import '../chunk-NGMEI42S.js';
|
|
6
6
|
import '../chunk-CBZNP6RF.js';
|
package/dist/gateway/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CircuitState, GatewayClient, GatewayError, GatewayErrorType, createGatewayClient, createGatewayClientFromEnv } from '../chunk-
|
|
2
|
-
export { security_exports as Security } from '../chunk-
|
|
1
|
+
export { CircuitState, GatewayClient, GatewayError, GatewayErrorType, createGatewayClient, createGatewayClientFromEnv } from '../chunk-U455UF4O.js';
|
|
2
|
+
export { security_exports as Security } from '../chunk-24VR7PF3.js';
|
|
3
3
|
import '../chunk-HIWTWIGQ.js';
|
|
4
4
|
import '../chunk-NGMEI42S.js';
|
|
5
5
|
import '../chunk-CBZNP6RF.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DEFAULT_ARMOR_CONFIG, DEFAULT_COST_MAP, DEFAULT_TIERS, MemoryValkey, __resetMetricsForTest, __setSecurityValkeyForTest, buildSecurityPlugins, checkRateLimit, createArmorPlugins, createOperationTimeoutPlugin, createOtelPlugin, createQueryComplexityPlugin, createRateLimitPlugin, getMetrics, getSecurityValkey, initializeMetrics, initializeOtel, initializeSecurityValkey, mergeCostMap, resolveActor, resolveSecurityOptionsFromEnv, resolveTiersFromEnv, scrapeMetrics, shutdownOtel } from '../../chunk-
|
|
1
|
+
export { DEFAULT_ARMOR_CONFIG, DEFAULT_COST_MAP, DEFAULT_TIERS, MemoryValkey, __resetMetricsForTest, __setSecurityValkeyForTest, buildSecurityPlugins, checkRateLimit, createArmorPlugins, createOperationTimeoutPlugin, createOtelPlugin, createQueryComplexityPlugin, createRateLimitPlugin, getMetrics, getSecurityValkey, initializeMetrics, initializeOtel, initializeSecurityValkey, mergeCostMap, resolveActor, resolveSecurityOptionsFromEnv, resolveTiersFromEnv, scrapeMetrics, shutdownOtel } from '../../chunk-24VR7PF3.js';
|
|
2
2
|
import '../../chunk-CBZNP6RF.js';
|
|
3
3
|
import '../../chunk-XE4OXN2W.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/graph/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../graphql-0_hoaeUf.js';
|
|
2
2
|
import '../index-CSPbpywb.js';
|
|
3
|
-
export { A as AUDIT_FIELDS, C as CreateEdgeOptions, a as CreateNodeOptions, D as DefineEntityConfigOptions, b as DefineGraphConfigOptions, c as DefineRelationshipConfigOptions, E as EdgeDocument, d as EntityDefinition, e as EntityEventContext, f as EntityEventData, g as EntityEventHook, h as EntityFetcher, j as EntityGraphConfig, k as EntityRbacConfig, l as EntityVertex, m as ExtractedEntityData, n as ExtractedRelationshipData, F as FieldMapper, o as GenericEntityConfig, p as GenericEntityRbacConfig, q as GenericGraphConfig, r as GenericRelationshipConfig, s as GraphEdge, t as GraphEntityConfig, u as GraphEntityExport, v as GraphEvent, w as GraphEventOptions, x as GraphEventPublishOptions, y as GraphEventType, z as GraphEventsHelper, B as GraphEventsHelperConfig, H as GraphEventsPublisher, I as GraphExportResponse, J as GraphExportService, K as GraphExportServiceConfig, G as GraphModule, L as GraphNode, M as GraphRegistry, N as GraphRelationshipData, O as GraphRelationshipExport, P as GraphSchema, Q as GraphValidationError, R as GraphValidationResult, S as InitializeGraphOptions, T as ModuleGraph, U as ModuleGraphConfig, V as ModuleGraphDefinition, W as PrismaGraphIntegration, X as PrismaGraphIntegrationOptions, Y as ProductFacet, Z as QueryGraphOptions, _ as RelationshipDefinition, $ as RelationshipEventData, a0 as RelationshipExportData, a1 as RelationshipFetcher, a2 as RelationshipGraphConfig, a3 as SOFT_DELETE_FIELDS, a4 as STANDARD_FIELDS, a5 as SearchFacets, a6 as SearchFilters, a7 as SearchResponse, a8 as SearchResult, a9 as TENANT_FIELDS, aa as TraverseDirection, ab as TraverseOptions, ac as TraverseResult, ad as TypeFacet, ae as ValidationErrorType, af as createEntityEvent, ag as createGraphEventsHelper, ah as createGraphExportService, ai as createPrismaGraphIntegration, aj as createRelationshipEvent, ak as createRelationshipFromEntity, al as defineEntity, am as defineGraphConfig, an as defineModuleGraph, ao as defineRelationship, ap as extractEntityTitle, aq as extractMinimalFields, ar as getCollectionForEntity, as as getGraphEventsPublisher, at as getGraphStats, au as initializeGraph, av as isGraphInitialized, aw as parseRelationship, ax as shouldSyncEntity, ay as shouldSyncRelationship } from '../index-
|
|
3
|
+
export { A as AUDIT_FIELDS, C as CreateEdgeOptions, a as CreateNodeOptions, D as DefineEntityConfigOptions, b as DefineGraphConfigOptions, c as DefineRelationshipConfigOptions, E as EdgeDocument, d as EntityDefinition, e as EntityEventContext, f as EntityEventData, g as EntityEventHook, h as EntityFetcher, j as EntityGraphConfig, k as EntityRbacConfig, l as EntityVertex, m as ExtractedEntityData, n as ExtractedRelationshipData, F as FieldMapper, o as GenericEntityConfig, p as GenericEntityRbacConfig, q as GenericGraphConfig, r as GenericRelationshipConfig, s as GraphEdge, t as GraphEntityConfig, u as GraphEntityExport, v as GraphEvent, w as GraphEventOptions, x as GraphEventPublishOptions, y as GraphEventType, z as GraphEventsHelper, B as GraphEventsHelperConfig, H as GraphEventsPublisher, I as GraphExportResponse, J as GraphExportService, K as GraphExportServiceConfig, G as GraphModule, L as GraphNode, M as GraphRegistry, N as GraphRelationshipData, O as GraphRelationshipExport, P as GraphSchema, Q as GraphValidationError, R as GraphValidationResult, S as InitializeGraphOptions, T as ModuleGraph, U as ModuleGraphConfig, V as ModuleGraphDefinition, W as PrismaGraphIntegration, X as PrismaGraphIntegrationOptions, Y as ProductFacet, Z as QueryGraphOptions, _ as RelationshipDefinition, $ as RelationshipEventData, a0 as RelationshipExportData, a1 as RelationshipFetcher, a2 as RelationshipGraphConfig, a3 as SOFT_DELETE_FIELDS, a4 as STANDARD_FIELDS, a5 as SearchFacets, a6 as SearchFilters, a7 as SearchResponse, a8 as SearchResult, a9 as TENANT_FIELDS, aa as TraverseDirection, ab as TraverseOptions, ac as TraverseResult, ad as TypeFacet, ae as ValidationErrorType, af as createEntityEvent, ag as createGraphEventsHelper, ah as createGraphExportService, ai as createPrismaGraphIntegration, aj as createRelationshipEvent, ak as createRelationshipFromEntity, al as defineEntity, am as defineGraphConfig, an as defineModuleGraph, ao as defineRelationship, ap as extractEntityTitle, aq as extractMinimalFields, ar as getCollectionForEntity, as as getGraphEventsPublisher, at as getGraphStats, au as initializeGraph, av as isGraphInitialized, aw as parseRelationship, ax as shouldSyncEntity, ay as shouldSyncRelationship } from '../index-Bo58dlMU.js';
|
|
4
4
|
export { E as EntityEventType, G as GraphEventEmitter, a as GraphMiddlewareConfig, b as addGraphExtension } from '../prisma-extension-krXnYnrN.js';
|
|
5
5
|
import 'graphql-request';
|
|
6
6
|
import '../client-CSjIrYKS.js';
|
|
7
7
|
import '@prisma/adapter-pg';
|
|
8
8
|
import 'pg';
|
|
9
|
-
import '../graph-emitter-
|
|
9
|
+
import '../graph-emitter-Dp7UE1Yd.js';
|
package/dist/graph/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export { AUDIT_FIELDS, GraphEventsPublisher, GraphExportService, GraphModule, SOFT_DELETE_FIELDS, STANDARD_FIELDS, TENANT_FIELDS, createGraphEventsHelper, createGraphExportService, createPrismaGraphIntegration, createRelationshipFromEntity, defineEntity, defineGraphConfig, defineModuleGraph, defineRelationship, getGraphEventsPublisher, getGraphStats, initializeGraph, isGraphInitialized } from '../chunk-
|
|
1
|
+
export { AUDIT_FIELDS, GraphEventsPublisher, GraphExportService, GraphModule, SOFT_DELETE_FIELDS, STANDARD_FIELDS, TENANT_FIELDS, createGraphEventsHelper, createGraphExportService, createPrismaGraphIntegration, createRelationshipFromEntity, defineEntity, defineGraphConfig, defineModuleGraph, defineRelationship, getGraphEventsPublisher, getGraphStats, initializeGraph, isGraphInitialized } from '../chunk-7Y3RNUS3.js';
|
|
2
2
|
export { GraphRegistry, addGraphExtension, createEntityEvent, createRelationshipEvent, extractEntityTitle, extractMinimalFields, getCollectionForEntity, parseRelationship, shouldSyncEntity, shouldSyncRelationship } from '../chunk-TKBD2ONF.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-N52W3RQA.js';
|
|
3
|
+
import '../chunk-MQ6OE5QR.js';
|
|
4
|
+
import '../chunk-VKSB2K5E.js';
|
|
5
|
+
import '../chunk-TM5RQ6P2.js';
|
|
6
|
+
import '../chunk-MVHOP4IG.js';
|
|
8
7
|
import '../chunk-RTQIRGVB.js';
|
|
9
8
|
import '../chunk-NGMEI42S.js';
|
|
10
9
|
import '../chunk-CBZNP6RF.js';
|
|
@@ -18,7 +18,7 @@ interface GraphEventEmitter {
|
|
|
18
18
|
workspaceId?: string;
|
|
19
19
|
}, rbac?: EntityEventRbacMetadata): Promise<void>;
|
|
20
20
|
}
|
|
21
|
-
declare class
|
|
21
|
+
declare class GraphEventEmitterImpl implements GraphEventEmitter {
|
|
22
22
|
private publisher;
|
|
23
23
|
private connected;
|
|
24
24
|
private connecting;
|
|
@@ -42,6 +42,7 @@ declare class NatsGraphEventEmitter implements GraphEventEmitter {
|
|
|
42
42
|
}
|
|
43
43
|
declare function getGraphEventEmitter(): GraphEventEmitter;
|
|
44
44
|
declare function createGraphEventEmitter(): GraphEventEmitter;
|
|
45
|
+
declare const NatsGraphEventEmitter: typeof GraphEventEmitterImpl;
|
|
45
46
|
declare function resetGraphEventEmitter(): Promise<void>;
|
|
46
47
|
|
|
47
|
-
export { type EntityEventRbacMetadata as E,
|
|
48
|
+
export { type EntityEventRbacMetadata as E, GraphEventEmitterImpl as G, NatsGraphEventEmitter as N, type EntityEventType as a, type GraphEventEmitter as b, createGraphEventEmitter as c, getGraphEventEmitter as g, resetGraphEventEmitter as r };
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { R as RedisStreamsEventTarget, a as RedisStreamsEventTargetOptions, c as createRedisStreamsEventTarget } from '../index-joONjwLt.js';
|
|
2
2
|
export { DatabaseService, Logger, PrismaTransactionClient, createDatabaseService } from './services/index.js';
|
package/dist/graphql/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { createRedisStreamsEventTarget } from '../chunk-RRFNSBDZ.js';
|
|
2
2
|
export { Logger, createDatabaseService } from '../chunk-QLVKMWFA.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-MVHOP4IG.js';
|
|
4
4
|
import '../chunk-CBZNP6RF.js';
|
|
5
5
|
import '../chunk-XE4OXN2W.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -170,6 +170,7 @@ declare class ValkeyGlideProvider implements ICacheProvider {
|
|
|
170
170
|
private clusterScanCursor;
|
|
171
171
|
private clientIsCluster;
|
|
172
172
|
private connected;
|
|
173
|
+
private connectPromise;
|
|
173
174
|
private readonly config;
|
|
174
175
|
private namespace;
|
|
175
176
|
private readonly defaultTTL;
|
|
@@ -179,6 +180,7 @@ declare class ValkeyGlideProvider implements ICacheProvider {
|
|
|
179
180
|
private serverReportsCluster;
|
|
180
181
|
private scanClusterKeys;
|
|
181
182
|
private getKeys;
|
|
183
|
+
private ensureConnected;
|
|
182
184
|
connect(): Promise<void>;
|
|
183
185
|
disconnect(): Promise<void>;
|
|
184
186
|
isConnected(): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B as BurdenoffGraphQLClient } from './graphql-0_hoaeUf.js';
|
|
2
2
|
import { S as SDKContext } from './index-CSPbpywb.js';
|
|
3
3
|
import { P as PrismaClientBase } from './client-CSjIrYKS.js';
|
|
4
|
-
import {
|
|
4
|
+
import { G as GraphEventEmitterImpl, E as EntityEventRbacMetadata } from './graph-emitter-Dp7UE1Yd.js';
|
|
5
5
|
import { G as GraphEventEmitter, E as EntityEventType, a as GraphMiddlewareConfig, b as addGraphExtension } from './prisma-extension-krXnYnrN.js';
|
|
6
6
|
|
|
7
7
|
type GraphEventType = 'entity.created' | 'entity.updated' | 'entity.deleted' | 'relationship.created' | 'relationship.updated' | 'relationship.deleted';
|
|
@@ -308,7 +308,7 @@ declare function createPrismaGraphIntegration<TPrismaClient extends PrismaClient
|
|
|
308
308
|
};
|
|
309
309
|
prisma: TPrismaClient;
|
|
310
310
|
cleanup: () => Promise<void>;
|
|
311
|
-
getGraphEmitter: () =>
|
|
311
|
+
getGraphEmitter: () => GraphEventEmitterImpl | null;
|
|
312
312
|
isInitialized: () => boolean;
|
|
313
313
|
};
|
|
314
314
|
type PrismaGraphIntegration<TPrismaClient extends PrismaClientBase> = ReturnType<typeof createPrismaGraphIntegration<TPrismaClient>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as ServiceLayer } from './layer-DDip18KY.js';
|
|
2
|
-
import { E as EntityEventRbacMetadata, a as EntityEventType$1,
|
|
2
|
+
import { E as EntityEventRbacMetadata, a as EntityEventType$1, b as GraphEventEmitter$1, G as GraphEventEmitterImpl, N as NatsGraphEventEmitter, c as createGraphEventEmitter$1, g as getGraphEventEmitter, r as resetGraphEventEmitter } from './graph-emitter-Dp7UE1Yd.js';
|
|
3
3
|
import { B as BurdenoffGraphQLClient } from './graphql-0_hoaeUf.js';
|
|
4
4
|
import { S as SDKContext } from './index-CSPbpywb.js';
|
|
5
5
|
|
|
@@ -72,7 +72,6 @@ interface SubscriptionOptions {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
declare enum QueueType {
|
|
75
|
-
NATS = "nats",
|
|
76
75
|
REDIS_STREAMS = "redis-streams",
|
|
77
76
|
RABBITMQ = "rabbitmq",
|
|
78
77
|
KAFKA = "kafka",
|
|
@@ -206,82 +205,8 @@ declare class EventQueueFactory {
|
|
|
206
205
|
static createConsumer(config: ConsumerConfig): IEventConsumer;
|
|
207
206
|
static createPublisherFromEnv(): IEventPublisher;
|
|
208
207
|
static createConsumerFromEnv(stream: string, consumer: string): IEventConsumer;
|
|
209
|
-
static createPublisherForLayer(
|
|
210
|
-
static createConsumerForLayer(
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
declare class NatsEventPublisher implements IEventPublisher {
|
|
214
|
-
private config;
|
|
215
|
-
private connectionManager;
|
|
216
|
-
private publishCount;
|
|
217
|
-
private lastPublishTime;
|
|
218
|
-
constructor(config: PublisherConfig);
|
|
219
|
-
connect(): Promise<void>;
|
|
220
|
-
disconnect(): Promise<void>;
|
|
221
|
-
isConnected(): boolean;
|
|
222
|
-
healthCheck(): Promise<EventQueueHealthCheckResult>;
|
|
223
|
-
getStatistics(): Promise<QueueStatistics>;
|
|
224
|
-
ensureStream(config: StreamConfig): Promise<void>;
|
|
225
|
-
private deriveStreamSubjects;
|
|
226
|
-
private deriveStreamName;
|
|
227
|
-
publish<T = unknown>(options: {
|
|
228
|
-
subject: string;
|
|
229
|
-
data: T;
|
|
230
|
-
metadata?: Partial<EventMetadata>;
|
|
231
|
-
options?: PublishOptions;
|
|
232
|
-
}): Promise<number | string>;
|
|
233
|
-
publishBatch<T = unknown>(events: Array<{
|
|
234
|
-
subject: string;
|
|
235
|
-
data: T;
|
|
236
|
-
metadata?: Partial<EventMetadata>;
|
|
237
|
-
options?: PublishOptions;
|
|
238
|
-
}>): Promise<Array<number | string>>;
|
|
239
|
-
publishWithAck<T = unknown, R = unknown>(options: {
|
|
240
|
-
subject: string;
|
|
241
|
-
data: T;
|
|
242
|
-
metadata?: Partial<EventMetadata>;
|
|
243
|
-
timeout?: number;
|
|
244
|
-
}): Promise<R>;
|
|
245
|
-
private mapRetentionPolicy;
|
|
246
|
-
private mapStorageType;
|
|
247
|
-
private generateMessageId;
|
|
248
|
-
private generateCorrelationId;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
declare class NatsEventConsumer implements IEventConsumer {
|
|
252
|
-
private config;
|
|
253
|
-
private connectionManager;
|
|
254
|
-
private subscriptions;
|
|
255
|
-
constructor(config: ConsumerConfig);
|
|
256
|
-
connect(): Promise<void>;
|
|
257
|
-
disconnect(): Promise<void>;
|
|
258
|
-
isConnected(): boolean;
|
|
259
|
-
healthCheck(): Promise<EventQueueHealthCheckResult>;
|
|
260
|
-
getStatistics(): Promise<QueueStatistics>;
|
|
261
|
-
ensureStream(config: StreamConfig): Promise<void>;
|
|
262
|
-
ensureConsumer(config: ConsumerConfig): Promise<void>;
|
|
263
|
-
private deriveStreamSubjects;
|
|
264
|
-
subscribe<T = unknown>(options: {
|
|
265
|
-
subject: string;
|
|
266
|
-
handler: EventHandler<T>;
|
|
267
|
-
options?: SubscriptionOptions;
|
|
268
|
-
}): Promise<ISubscription>;
|
|
269
|
-
subscribeMultiple<T = unknown>(subjects: string[], handler: EventHandler<T>, options?: SubscriptionOptions): Promise<ISubscription[]>;
|
|
270
|
-
pull<T = unknown>(options: {
|
|
271
|
-
subject: string;
|
|
272
|
-
batch?: number;
|
|
273
|
-
timeout?: number;
|
|
274
|
-
}): Promise<AcknowledgeableEvent<T>[]>;
|
|
275
|
-
unsubscribeAll(): Promise<void>;
|
|
276
|
-
getSubscriptions(): ISubscription[];
|
|
277
|
-
processDLQ<T = unknown>(_handler: EventHandler<T>): Promise<void>;
|
|
278
|
-
listSubjects(streamName?: string): Promise<string[]>;
|
|
279
|
-
private consumeMessages;
|
|
280
|
-
private wrapMessage;
|
|
281
|
-
private mapRetentionPolicy;
|
|
282
|
-
private mapStorageType;
|
|
283
|
-
private mapAckPolicy;
|
|
284
|
-
private mapDeliverPolicy;
|
|
208
|
+
static createPublisherForLayer(_layer: ServiceLayer, serviceName: string): IEventPublisher;
|
|
209
|
+
static createConsumerForLayer(_layer: ServiceLayer, serviceName: string, stream: string, consumer: string): IEventConsumer;
|
|
285
210
|
}
|
|
286
211
|
|
|
287
212
|
type IoRedis = {
|
|
@@ -708,6 +633,7 @@ declare const index_EventQueueFactory: typeof EventQueueFactory;
|
|
|
708
633
|
type index_EventQueueHealthCheckResult = EventQueueHealthCheckResult;
|
|
709
634
|
type index_EventsModule = EventsModule;
|
|
710
635
|
declare const index_EventsModule: typeof EventsModule;
|
|
636
|
+
declare const index_GraphEventEmitterImpl: typeof GraphEventEmitterImpl;
|
|
711
637
|
type index_IEventConsumer = IEventConsumer;
|
|
712
638
|
type index_IEventPublisher = IEventPublisher;
|
|
713
639
|
type index_IEventQueue = IEventQueue;
|
|
@@ -725,10 +651,6 @@ type index_ModuleEventsConfig = ModuleEventsConfig;
|
|
|
725
651
|
type index_ModuleEventsService = ModuleEventsService;
|
|
726
652
|
declare const index_ModuleEventsService: typeof ModuleEventsService;
|
|
727
653
|
type index_NATSConsumerOptions = NATSConsumerOptions;
|
|
728
|
-
type index_NatsEventConsumer = NatsEventConsumer;
|
|
729
|
-
declare const index_NatsEventConsumer: typeof NatsEventConsumer;
|
|
730
|
-
type index_NatsEventPublisher = NatsEventPublisher;
|
|
731
|
-
declare const index_NatsEventPublisher: typeof NatsEventPublisher;
|
|
732
654
|
declare const index_NatsGraphEventEmitter: typeof NatsGraphEventEmitter;
|
|
733
655
|
type index_PublishEventOptions = PublishEventOptions;
|
|
734
656
|
type index_PublishOptions = PublishOptions;
|
|
@@ -755,7 +677,7 @@ declare const index_createPublisher: typeof createPublisher;
|
|
|
755
677
|
declare const index_getGraphEventEmitter: typeof getGraphEventEmitter;
|
|
756
678
|
declare const index_resetGraphEventEmitter: typeof resetGraphEventEmitter;
|
|
757
679
|
declare namespace index {
|
|
758
|
-
export { type index_AcknowledgeableEvent as AcknowledgeableEvent, type index_BaseQueueConfig as BaseQueueConfig, type index_BulkEventPayload as BulkEventPayload, type index_ConsumerConfig as ConsumerConfig, index_EntityEventRbacMetadata as EntityEventRbacMetadata, EntityEventType$1 as EntityEventType, type index_EventHandler as EventHandler, type EventMessage$1 as EventMessage, type index_EventMetadata as EventMetadata, index_EventPriority as EventPriority, index_EventQueueFactory as EventQueueFactory, type index_EventQueueHealthCheckResult as EventQueueHealthCheckResult, index_EventsModule as EventsModule, GraphEventEmitter$1 as GraphEventEmitter, type EventMessage as GraphQLEventMessage, type EventQueueHealthCheckResult as HealthCheckResult, type index_IEventConsumer as IEventConsumer, type index_IEventPublisher as IEventPublisher, type index_IEventQueue as IEventQueue, type index_ISubscription as ISubscription, index_MemoryEventBus as MemoryEventBus, index_MemoryEventConsumer as MemoryEventConsumer, index_MemoryEventPublisher as MemoryEventPublisher, index_MemoryEventQueue as MemoryEventQueue, type index_ModuleEventPayload as ModuleEventPayload, type index_ModuleEventsConfig as ModuleEventsConfig, index_ModuleEventsService as ModuleEventsService, type index_NATSConsumerOptions as NATSConsumerOptions,
|
|
680
|
+
export { type index_AcknowledgeableEvent as AcknowledgeableEvent, type index_BaseQueueConfig as BaseQueueConfig, type index_BulkEventPayload as BulkEventPayload, type index_ConsumerConfig as ConsumerConfig, index_EntityEventRbacMetadata as EntityEventRbacMetadata, EntityEventType$1 as EntityEventType, type index_EventHandler as EventHandler, type EventMessage$1 as EventMessage, type index_EventMetadata as EventMetadata, index_EventPriority as EventPriority, index_EventQueueFactory as EventQueueFactory, type index_EventQueueHealthCheckResult as EventQueueHealthCheckResult, index_EventsModule as EventsModule, GraphEventEmitter$1 as GraphEventEmitter, index_GraphEventEmitterImpl as GraphEventEmitterImpl, type EventMessage as GraphQLEventMessage, type EventQueueHealthCheckResult as HealthCheckResult, type index_IEventConsumer as IEventConsumer, type index_IEventPublisher as IEventPublisher, type index_IEventQueue as IEventQueue, type index_ISubscription as ISubscription, index_MemoryEventBus as MemoryEventBus, index_MemoryEventConsumer as MemoryEventConsumer, index_MemoryEventPublisher as MemoryEventPublisher, index_MemoryEventQueue as MemoryEventQueue, type index_ModuleEventPayload as ModuleEventPayload, type index_ModuleEventsConfig as ModuleEventsConfig, index_ModuleEventsService as ModuleEventsService, type index_NATSConsumerOptions as NATSConsumerOptions, index_NatsGraphEventEmitter as NatsGraphEventEmitter, type index_PublishEventOptions as PublishEventOptions, type index_PublishOptions as PublishOptions, type index_PublishResult as PublishResult, type index_PublisherConfig as PublisherConfig, type index_QueueStatistics as QueueStatistics, index_QueueType as QueueType, index_RedisStreamsConnection as RedisStreamsConnection, index_RedisStreamsEventConsumer as RedisStreamsEventConsumer, index_RedisStreamsEventPublisher as RedisStreamsEventPublisher, type index_StreamConfig as StreamConfig, type index_StreamInfo as StreamInfo, type index_SubscribeOptions as SubscribeOptions, type index_SubscriptionOptions as SubscriptionOptions, index_createConsumer as createConsumer, createGraphEventEmitter$1 as createGraphEventEmitter, index_createMemoryConsumer as createMemoryConsumer, createGraphEventEmitter as createMemoryGraphEventEmitter, index_createMemoryPublisher as createMemoryPublisher, index_createModuleEventsService as createModuleEventsService, index_createPublisher as createPublisher, index_getGraphEventEmitter as getGraphEventEmitter, dlqKey as redisDlqKey, streamKey as redisStreamKey, index_resetGraphEventEmitter as resetGraphEventEmitter };
|
|
759
681
|
}
|
|
760
682
|
|
|
761
|
-
export { type AcknowledgeableEvent as A, type BaseQueueConfig as B, type ConsumerConfig as C, type
|
|
683
|
+
export { type AcknowledgeableEvent as A, type BaseQueueConfig as B, type ConsumerConfig as C, type SubscriptionOptions as D, EventsModule as E, createConsumer as F, createMemoryConsumer as G, createGraphEventEmitter as H, type IEventPublisher as I, createMemoryPublisher as J, createModuleEventsService as K, createPublisher as L, MemoryEventBus as M, type NATSConsumerOptions as N, dlqKey as O, type PublishEventOptions as P, type QueueStatistics as Q, RedisStreamsConnection as R, type StreamConfig as S, streamKey as T, type BulkEventPayload as a, type EventHandler as b, type EventMessage$1 as c, type EventMetadata as d, EventPriority as e, EventQueueFactory as f, type EventQueueHealthCheckResult as g, type EventMessage as h, index as i, type IEventConsumer as j, type IEventQueue as k, type ISubscription as l, MemoryEventConsumer as m, MemoryEventPublisher as n, MemoryEventQueue as o, type ModuleEventPayload as p, type ModuleEventsConfig as q, ModuleEventsService as r, type PublishOptions as s, type PublishResult as t, type PublisherConfig as u, QueueType as v, RedisStreamsEventConsumer as w, RedisStreamsEventPublisher as x, type StreamInfo as y, type SubscribeOptions as z };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DatabaseService, Logger, PrismaTransactionClient, createDatabaseService } from './graphql/services/index.js';
|
|
2
|
+
|
|
3
|
+
interface RedisStreamsEventTarget {
|
|
4
|
+
addEventListener(type: string, listener: (event: Event) => void): void;
|
|
5
|
+
removeEventListener(type: string, listener: (event: Event) => void): void;
|
|
6
|
+
dispatchEvent(event: Event): boolean;
|
|
7
|
+
close(): Promise<void>;
|
|
8
|
+
isHealthy(): boolean;
|
|
9
|
+
}
|
|
10
|
+
interface RedisStreamsEventTargetOptions {
|
|
11
|
+
redisUrl?: string;
|
|
12
|
+
password?: string;
|
|
13
|
+
subjectPrefix?: string;
|
|
14
|
+
maxLen?: number;
|
|
15
|
+
serializer?: {
|
|
16
|
+
stringify: (data: unknown) => string | Promise<string>;
|
|
17
|
+
parse: (msg: string) => unknown | Promise<unknown>;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
declare function createRedisStreamsEventTarget(options?: RedisStreamsEventTargetOptions): Promise<RedisStreamsEventTarget>;
|
|
21
|
+
|
|
22
|
+
declare const index_DatabaseService: typeof DatabaseService;
|
|
23
|
+
declare const index_Logger: typeof Logger;
|
|
24
|
+
declare const index_PrismaTransactionClient: typeof PrismaTransactionClient;
|
|
25
|
+
type index_RedisStreamsEventTarget = RedisStreamsEventTarget;
|
|
26
|
+
type index_RedisStreamsEventTargetOptions = RedisStreamsEventTargetOptions;
|
|
27
|
+
declare const index_createDatabaseService: typeof createDatabaseService;
|
|
28
|
+
declare const index_createRedisStreamsEventTarget: typeof createRedisStreamsEventTarget;
|
|
29
|
+
declare namespace index {
|
|
30
|
+
export { index_DatabaseService as DatabaseService, index_Logger as Logger, index_PrismaTransactionClient as PrismaTransactionClient, type index_RedisStreamsEventTarget as RedisStreamsEventTarget, type index_RedisStreamsEventTargetOptions as RedisStreamsEventTargetOptions, index_createDatabaseService as createDatabaseService, index_createRedisStreamsEventTarget as createRedisStreamsEventTarget };
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { type RedisStreamsEventTarget as R, type RedisStreamsEventTargetOptions as a, createRedisStreamsEventTarget as c, index as i };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,23 +9,23 @@ import { RBACModule } from './rbac/index.js';
|
|
|
9
9
|
export { LayerAwareRBACConfig, RBACDirectiveConfig, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './rbac/index.js';
|
|
10
10
|
import { A as ActivityModule, U as UsageModule, T as TrackerModule } from './index-DJq060D-.js';
|
|
11
11
|
import { DatabaseConfig, DatabaseModule } from './database/index.js';
|
|
12
|
-
import { E as EventsModule, I as IEventPublisher } from './index-
|
|
13
|
-
export { i as EventQueue } from './index-
|
|
14
|
-
import { G as GraphModule } from './index-
|
|
15
|
-
export { i as Graph } from './index-
|
|
12
|
+
import { E as EventsModule, I as IEventPublisher } from './index-D_Nc4UHi.js';
|
|
13
|
+
export { i as EventQueue } from './index-D_Nc4UHi.js';
|
|
14
|
+
import { G as GraphModule } from './index-Bo58dlMU.js';
|
|
15
|
+
export { i as Graph } from './index-Bo58dlMU.js';
|
|
16
16
|
import { B as BurdenoffGraphQLClient } from './graphql-0_hoaeUf.js';
|
|
17
17
|
import { TemporalModule } from './temporal/index.js';
|
|
18
18
|
export { TemporalClient, TemporalClientConfig, TemporalClientFactory, TemporalWorker, TemporalWorkerConfig, TemporalWorkerFactory, TemporalWorkerManager, WorkflowStartOptions } from './temporal/index.js';
|
|
19
19
|
export { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from './client/internal-client.js';
|
|
20
|
-
export { i as Cache } from './index-
|
|
20
|
+
export { i as Cache } from './index-B6IwtUb1.js';
|
|
21
21
|
export { i as Middleware } from './index-DSOpj8DI.js';
|
|
22
22
|
export { i as Observability } from './index-4gKQKZ2B.js';
|
|
23
|
-
export { i as GraphQL } from './index-
|
|
23
|
+
export { i as GraphQL } from './index-joONjwLt.js';
|
|
24
24
|
export { i as Prisma } from './index-Dtf6FBaD.js';
|
|
25
25
|
export { i as Utils } from './index-PaojfSdd.js';
|
|
26
26
|
export { i as I18n, I as I18nCapableContext, T as Translator, c as createTranslator, g as getLanguage, a as getLocale, h as hasI18n, t } from './index-BV3G48cH.js';
|
|
27
27
|
export { i as Export } from './index-BMq3lFjj.js';
|
|
28
|
-
export { i as Init } from './index-
|
|
28
|
+
export { i as Init } from './index-tJYziwMs.js';
|
|
29
29
|
export { i as DataLoader } from './index-DW9q22GH.js';
|
|
30
30
|
export { a as Instrumentation } from './index-TKcu5LDR.js';
|
|
31
31
|
export { i as Layer } from './index-DlFDFyWD.js';
|
|
@@ -37,7 +37,7 @@ export { C as CircuitBreakerConfig, h as DEFAULT_CIRCUIT_BREAKER_CONFIG, i as DE
|
|
|
37
37
|
import 'graphql-request';
|
|
38
38
|
import '@envelop/core';
|
|
39
39
|
import '@clickhouse/client';
|
|
40
|
-
import './graph-emitter-
|
|
40
|
+
import './graph-emitter-Dp7UE1Yd.js';
|
|
41
41
|
import './client-CSjIrYKS.js';
|
|
42
42
|
import '@prisma/adapter-pg';
|
|
43
43
|
import 'pg';
|
package/dist/index.js
CHANGED
|
@@ -6,32 +6,31 @@ export { middleware_exports as Middleware } from './chunk-2HANKZZM.js';
|
|
|
6
6
|
import { TenantNotificationsModule, NotificationsModule } from './chunk-AQTNM2EY.js';
|
|
7
7
|
export { tenant_notifications_exports as Notifications, NotificationsModule } from './chunk-AQTNM2EY.js';
|
|
8
8
|
export { observability_exports as Observability } from './chunk-5LXDPGDH.js';
|
|
9
|
-
export { prisma_exports as Prisma } from './chunk-
|
|
9
|
+
export { prisma_exports as Prisma } from './chunk-V4RLPTTT.js';
|
|
10
10
|
import './chunk-GTEMQXCA.js';
|
|
11
11
|
import { RBACModule } from './chunk-RVB5QFZ4.js';
|
|
12
12
|
export { RBACModule, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './chunk-RVB5QFZ4.js';
|
|
13
|
-
export { export_exports as Export } from './chunk-
|
|
13
|
+
export { export_exports as Export } from './chunk-SNW4BLF2.js';
|
|
14
14
|
export { feature_flags_exports as FeatureFlags } from './chunk-VWCN5PMD.js';
|
|
15
|
-
import { GraphModule } from './chunk-
|
|
16
|
-
export { graph_exports as Graph, GraphModule } from './chunk-
|
|
15
|
+
import { GraphModule } from './chunk-7Y3RNUS3.js';
|
|
16
|
+
export { graph_exports as Graph, GraphModule } from './chunk-7Y3RNUS3.js';
|
|
17
17
|
import './chunk-TKBD2ONF.js';
|
|
18
|
-
import { EventsModule } from './chunk-
|
|
19
|
-
export { event_queue_exports as EventQueue, EventsModule } from './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
|
|
18
|
+
import { EventsModule } from './chunk-MQ6OE5QR.js';
|
|
19
|
+
export { event_queue_exports as EventQueue, EventsModule } from './chunk-MQ6OE5QR.js';
|
|
20
|
+
import './chunk-VKSB2K5E.js';
|
|
21
|
+
import { EventQueueFactory } from './chunk-TM5RQ6P2.js';
|
|
22
|
+
export { graphql_exports as GraphQL } from './chunk-RRFNSBDZ.js';
|
|
22
23
|
import './chunk-QLVKMWFA.js';
|
|
24
|
+
import './chunk-MVHOP4IG.js';
|
|
23
25
|
export { i18n_exports as I18n, createTranslator, getLanguage, getLocale, hasI18n, t } from './chunk-IYE2NTRX.js';
|
|
24
|
-
export { init_exports as Init } from './chunk-
|
|
25
|
-
export { gateway_exports as Gateway } from './chunk-
|
|
26
|
-
import './chunk-
|
|
26
|
+
export { init_exports as Init } from './chunk-75VTKG4Q.js';
|
|
27
|
+
export { gateway_exports as Gateway } from './chunk-U455UF4O.js';
|
|
28
|
+
import './chunk-24VR7PF3.js';
|
|
27
29
|
export { layer_exports as Layer } from './chunk-HIWTWIGQ.js';
|
|
28
|
-
import { EventQueueFactory } from './chunk-LRGXT37B.js';
|
|
29
|
-
import './chunk-UVYDP6P6.js';
|
|
30
|
-
import './chunk-N52W3RQA.js';
|
|
31
30
|
import { AuthModule } from './chunk-WBWM7UY7.js';
|
|
32
31
|
export { AuthModule } from './chunk-WBWM7UY7.js';
|
|
33
32
|
export { utils_exports as Utils } from './chunk-MOCUBSTW.js';
|
|
34
|
-
export { cache_exports as Cache } from './chunk-
|
|
33
|
+
export { cache_exports as Cache } from './chunk-Q6N74R6S.js';
|
|
35
34
|
export { captcha_exports as Captcha, isCaptchaEnabled, verifyCaptcha, verifyCaptchaIfEnabled } from './chunk-YMZEUTD2.js';
|
|
36
35
|
export { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from './chunk-VI4VSNTI.js';
|
|
37
36
|
export { crypto_exports as Crypto } from './chunk-SBS4S2PJ.js';
|