@burdenoff/be-sdk 2026.513.3 → 2026.513.5
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-FNE7H66N.js +8 -0
- package/dist/{EventQueueFactory-TWDDFMQY.js.map → EventQueueFactory-FNE7H66N.js.map} +1 -1
- package/dist/{chunk-QKJR4L7B.js → chunk-COSUYUCB.js} +3 -149
- package/dist/chunk-COSUYUCB.js.map +1 -0
- package/dist/{chunk-Y4TPKRZB.js → chunk-DR5AQJT6.js} +3 -3
- package/dist/{chunk-Y4TPKRZB.js.map → chunk-DR5AQJT6.js.map} +1 -1
- package/dist/{chunk-EMSON3UD.js → chunk-KSO6QQVD.js} +10 -952
- package/dist/chunk-KSO6QQVD.js.map +1 -0
- package/dist/{chunk-L72RC2EI.js → chunk-LRL6GKXI.js} +3 -3
- package/dist/{chunk-L72RC2EI.js.map → chunk-LRL6GKXI.js.map} +1 -1
- package/dist/{chunk-MI72VKNQ.js → chunk-NUZZRJNN.js} +5 -171
- package/dist/chunk-NUZZRJNN.js.map +1 -0
- package/dist/{chunk-Q6HJARHV.js → chunk-S52PJKSW.js} +3 -3
- package/dist/{chunk-Q6HJARHV.js.map → chunk-S52PJKSW.js.map} +1 -1
- package/dist/{chunk-OMKFTTAN.js → chunk-SXIL2AJF.js} +5 -5
- package/dist/{chunk-OMKFTTAN.js.map → chunk-SXIL2AJF.js.map} +1 -1
- package/dist/{chunk-UVYDP6P6.js → chunk-VOFKF27Q.js} +2 -3
- package/dist/chunk-VOFKF27Q.js.map +1 -0
- package/dist/{chunk-3JBKPVWY.js → chunk-WPGSKLAG.js} +5 -24
- package/dist/chunk-WPGSKLAG.js.map +1 -0
- package/dist/config-7U7J3QXQ.js +4 -0
- package/dist/{config-QVYSAUMT.js.map → config-7U7J3QXQ.js.map} +1 -1
- package/dist/esm-K6H7EIWK.js +1450 -0
- package/dist/esm-K6H7EIWK.js.map +1 -0
- package/dist/event-queue/index.d.ts +1 -1
- package/dist/event-queue/index.js +5 -5
- package/dist/graph/index.js +6 -6
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.js +2 -2
- package/dist/{index-eUvoVdr7.d.ts → index-BF2uh_h9.d.ts} +2 -158
- package/dist/{index-CDFQRL-h.d.ts → index-HkD7NBED.d.ts} +2 -24
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -12
- package/dist/init/index.js +4 -4
- package/dist/prisma/index.js +5 -5
- package/dist/server/index.js +20 -0
- package/dist/server/index.js.map +1 -1
- package/dist/telemetry/index.js.map +1 -1
- package/package.json +3 -14
- package/dist/EventQueueFactory-TWDDFMQY.js +0 -8
- package/dist/chunk-3JBKPVWY.js.map +0 -1
- package/dist/chunk-EMSON3UD.js.map +0 -1
- package/dist/chunk-MI72VKNQ.js.map +0 -1
- package/dist/chunk-QKJR4L7B.js.map +0 -1
- package/dist/chunk-UVYDP6P6.js.map +0 -1
- package/dist/config-QVYSAUMT.js +0 -4
- package/dist/esm-M2M7HGV4.js +0 -1356
- package/dist/esm-M2M7HGV4.js.map +0 -1
|
@@ -73,7 +73,6 @@ interface SubscriptionOptions {
|
|
|
73
73
|
|
|
74
74
|
declare enum QueueType {
|
|
75
75
|
NATS = "nats",
|
|
76
|
-
REDIS_STREAMS = "redis-streams",
|
|
77
76
|
RABBITMQ = "rabbitmq",
|
|
78
77
|
KAFKA = "kafka",
|
|
79
78
|
SQS = "sqs"
|
|
@@ -284,155 +283,6 @@ declare class NatsEventConsumer implements IEventConsumer {
|
|
|
284
283
|
private mapDeliverPolicy;
|
|
285
284
|
}
|
|
286
285
|
|
|
287
|
-
type IoRedis = {
|
|
288
|
-
status: string;
|
|
289
|
-
connect: () => Promise<void>;
|
|
290
|
-
disconnect: () => void;
|
|
291
|
-
quit: () => Promise<unknown>;
|
|
292
|
-
ping: () => Promise<string>;
|
|
293
|
-
on: (event: string, handler: (...args: unknown[]) => void) => void;
|
|
294
|
-
duplicate: () => IoRedis;
|
|
295
|
-
xadd: (...args: unknown[]) => Promise<string>;
|
|
296
|
-
xack: (...args: unknown[]) => Promise<number>;
|
|
297
|
-
xreadgroup: (...args: unknown[]) => Promise<unknown>;
|
|
298
|
-
xgroup: (...args: unknown[]) => Promise<unknown>;
|
|
299
|
-
xautoclaim: (...args: unknown[]) => Promise<unknown>;
|
|
300
|
-
xpending: (...args: unknown[]) => Promise<unknown>;
|
|
301
|
-
xlen: (key: string) => Promise<number>;
|
|
302
|
-
xinfo: (...args: unknown[]) => Promise<unknown>;
|
|
303
|
-
xrevrange: (...args: unknown[]) => Promise<unknown>;
|
|
304
|
-
xrange: (...args: unknown[]) => Promise<unknown>;
|
|
305
|
-
xdel: (key: string, ...ids: string[]) => Promise<number>;
|
|
306
|
-
set: (...args: unknown[]) => Promise<string | null>;
|
|
307
|
-
expire: (key: string, seconds: number) => Promise<number>;
|
|
308
|
-
del: (...keys: string[]) => Promise<number>;
|
|
309
|
-
sadd: (key: string, ...members: string[]) => Promise<number>;
|
|
310
|
-
smembers: (key: string) => Promise<string[]>;
|
|
311
|
-
zadd: (...args: unknown[]) => Promise<number>;
|
|
312
|
-
zrangebyscore: (...args: unknown[]) => Promise<string[]>;
|
|
313
|
-
zrem: (key: string, ...members: string[]) => Promise<number>;
|
|
314
|
-
pipeline: () => {
|
|
315
|
-
xadd: (...args: unknown[]) => unknown;
|
|
316
|
-
exec: () => Promise<Array<[Error | null, unknown]>>;
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
declare class RedisStreamsConnection {
|
|
320
|
-
private readonly config;
|
|
321
|
-
private client;
|
|
322
|
-
private connecting;
|
|
323
|
-
private readonly tls;
|
|
324
|
-
private readonly host;
|
|
325
|
-
private readonly normalisedUrl;
|
|
326
|
-
constructor(config: BaseQueueConfig);
|
|
327
|
-
isConnected(): boolean;
|
|
328
|
-
connect(): Promise<void>;
|
|
329
|
-
private doConnect;
|
|
330
|
-
disconnect(): Promise<void>;
|
|
331
|
-
getClient(): IoRedis;
|
|
332
|
-
makeBlockingClient(): Promise<IoRedis>;
|
|
333
|
-
ping(): Promise<string>;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
interface RedisStreamsPublisherConfig extends PublisherConfig {
|
|
337
|
-
maxLen?: number;
|
|
338
|
-
dedupTtlSeconds?: number;
|
|
339
|
-
keyPrefix?: string;
|
|
340
|
-
}
|
|
341
|
-
declare class RedisStreamsEventPublisher implements IEventPublisher {
|
|
342
|
-
private config;
|
|
343
|
-
private connection;
|
|
344
|
-
private publishCount;
|
|
345
|
-
private lastPublishTime;
|
|
346
|
-
private readonly maxLen;
|
|
347
|
-
private readonly dedupTtl;
|
|
348
|
-
private readonly keyPrefix;
|
|
349
|
-
constructor(config: RedisStreamsPublisherConfig);
|
|
350
|
-
connect(): Promise<void>;
|
|
351
|
-
disconnect(): Promise<void>;
|
|
352
|
-
isConnected(): boolean;
|
|
353
|
-
healthCheck(): Promise<EventQueueHealthCheckResult>;
|
|
354
|
-
getStatistics(): Promise<QueueStatistics>;
|
|
355
|
-
ensureStream(_config: StreamConfig): Promise<void>;
|
|
356
|
-
publish<T = unknown>(options: {
|
|
357
|
-
subject: string;
|
|
358
|
-
data: T;
|
|
359
|
-
metadata?: Partial<EventMetadata>;
|
|
360
|
-
options?: PublishOptions;
|
|
361
|
-
}): Promise<number | string>;
|
|
362
|
-
private publishInternal;
|
|
363
|
-
publishBatch<T = unknown>(events: Array<{
|
|
364
|
-
subject: string;
|
|
365
|
-
data: T;
|
|
366
|
-
metadata?: Partial<EventMetadata>;
|
|
367
|
-
options?: PublishOptions;
|
|
368
|
-
}>): Promise<Array<number | string>>;
|
|
369
|
-
publishWithAck<T = unknown, R = unknown>(opts: {
|
|
370
|
-
subject: string;
|
|
371
|
-
data: T;
|
|
372
|
-
metadata?: Partial<EventMetadata>;
|
|
373
|
-
timeout?: number;
|
|
374
|
-
}): Promise<R>;
|
|
375
|
-
sendReply(correlationId: string, data: unknown): Promise<void>;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
interface RedisStreamsConsumerConfig extends ConsumerConfig {
|
|
379
|
-
keyPrefix?: string;
|
|
380
|
-
}
|
|
381
|
-
declare class RedisStreamsEventConsumer implements IEventConsumer {
|
|
382
|
-
private readonly connection;
|
|
383
|
-
private subscriptions;
|
|
384
|
-
private readonly subscriptionLoops;
|
|
385
|
-
private readonly keyPrefix;
|
|
386
|
-
private readonly consumerName;
|
|
387
|
-
private readonly group;
|
|
388
|
-
private readonly maxDeliver;
|
|
389
|
-
private readonly ackWaitMs;
|
|
390
|
-
private readonly maxConcurrent;
|
|
391
|
-
private consumedCount;
|
|
392
|
-
private failedCount;
|
|
393
|
-
private lastActivity;
|
|
394
|
-
private stopped;
|
|
395
|
-
private sweepTimer;
|
|
396
|
-
private delayqTimer;
|
|
397
|
-
private knownStreams;
|
|
398
|
-
constructor(config: RedisStreamsConsumerConfig);
|
|
399
|
-
connect(): Promise<void>;
|
|
400
|
-
disconnect(): Promise<void>;
|
|
401
|
-
isConnected(): boolean;
|
|
402
|
-
healthCheck(): Promise<EventQueueHealthCheckResult>;
|
|
403
|
-
getStatistics(): Promise<QueueStatistics>;
|
|
404
|
-
ensureStream(_config: StreamConfig): Promise<void>;
|
|
405
|
-
ensureConsumer(_config: ConsumerConfig): Promise<void>;
|
|
406
|
-
subscribe<T = unknown>(opts: {
|
|
407
|
-
subject: string;
|
|
408
|
-
handler: EventHandler<T>;
|
|
409
|
-
options?: SubscriptionOptions;
|
|
410
|
-
}): Promise<ISubscription>;
|
|
411
|
-
subscribeMultiple<T = unknown>(subjects: string[], handler: EventHandler<T>, options?: SubscriptionOptions): Promise<ISubscription[]>;
|
|
412
|
-
pull<T = unknown>(opts: {
|
|
413
|
-
subject: string;
|
|
414
|
-
batch?: number;
|
|
415
|
-
timeout?: number;
|
|
416
|
-
}): Promise<AcknowledgeableEvent<T>[]>;
|
|
417
|
-
unsubscribeAll(): Promise<void>;
|
|
418
|
-
getSubscriptions(): ISubscription[];
|
|
419
|
-
processDLQ<T = unknown>(handler: EventHandler<T>): Promise<void>;
|
|
420
|
-
listSubjects(_stream?: string): Promise<string[]>;
|
|
421
|
-
private resolveStartId;
|
|
422
|
-
private ensureGroup;
|
|
423
|
-
private spawnLoop;
|
|
424
|
-
private parseEntry;
|
|
425
|
-
private toAcknowledgeable;
|
|
426
|
-
private sweepPending;
|
|
427
|
-
private drainDelayQueues;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
interface KeyspaceOptions {
|
|
431
|
-
prefix?: string;
|
|
432
|
-
}
|
|
433
|
-
declare function streamKey(subject: string, opts?: KeyspaceOptions): string;
|
|
434
|
-
declare function dlqKey(stream: string): string;
|
|
435
|
-
|
|
436
286
|
type EntityEventType = 'entity.created' | 'entity.updated' | 'entity.deleted';
|
|
437
287
|
interface GraphEventEmitter {
|
|
438
288
|
publishEntityEvent(eventType: EntityEventType, entity: {
|
|
@@ -736,12 +586,6 @@ type index_PublisherConfig = PublisherConfig;
|
|
|
736
586
|
type index_QueueStatistics = QueueStatistics;
|
|
737
587
|
type index_QueueType = QueueType;
|
|
738
588
|
declare const index_QueueType: typeof QueueType;
|
|
739
|
-
type index_RedisStreamsConnection = RedisStreamsConnection;
|
|
740
|
-
declare const index_RedisStreamsConnection: typeof RedisStreamsConnection;
|
|
741
|
-
type index_RedisStreamsEventConsumer = RedisStreamsEventConsumer;
|
|
742
|
-
declare const index_RedisStreamsEventConsumer: typeof RedisStreamsEventConsumer;
|
|
743
|
-
type index_RedisStreamsEventPublisher = RedisStreamsEventPublisher;
|
|
744
|
-
declare const index_RedisStreamsEventPublisher: typeof RedisStreamsEventPublisher;
|
|
745
589
|
type index_StreamConfig = StreamConfig;
|
|
746
590
|
type index_StreamInfo = StreamInfo;
|
|
747
591
|
type index_SubscribeOptions = SubscribeOptions;
|
|
@@ -754,7 +598,7 @@ declare const index_createPublisher: typeof createPublisher;
|
|
|
754
598
|
declare const index_getGraphEventEmitter: typeof getGraphEventEmitter;
|
|
755
599
|
declare const index_resetGraphEventEmitter: typeof resetGraphEventEmitter;
|
|
756
600
|
declare namespace index {
|
|
757
|
-
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, index_NatsEventConsumer as NatsEventConsumer, index_NatsEventPublisher as NatsEventPublisher, 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,
|
|
601
|
+
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, index_NatsEventConsumer as NatsEventConsumer, index_NatsEventPublisher as NatsEventPublisher, 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, 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, index_resetGraphEventEmitter as resetGraphEventEmitter };
|
|
758
602
|
}
|
|
759
603
|
|
|
760
|
-
export { type AcknowledgeableEvent as A, type BaseQueueConfig as B, type ConsumerConfig as C, type
|
|
604
|
+
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, type PublishEventOptions as P, type QueueStatistics as Q, type StreamConfig as S, 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, NatsEventConsumer as s, NatsEventPublisher as t, type PublishOptions as u, type PublishResult as v, type PublisherConfig as w, QueueType as x, type StreamInfo as y, type SubscribeOptions as z };
|
|
@@ -29,38 +29,16 @@ interface NatsEventTarget {
|
|
|
29
29
|
}
|
|
30
30
|
declare function createNatsEventTarget(options: NatsEventTargetOptions): Promise<NatsEventTarget>;
|
|
31
31
|
|
|
32
|
-
interface RedisStreamsEventTarget {
|
|
33
|
-
addEventListener(type: string, listener: (event: Event) => void): void;
|
|
34
|
-
removeEventListener(type: string, listener: (event: Event) => void): void;
|
|
35
|
-
dispatchEvent(event: Event): boolean;
|
|
36
|
-
close(): Promise<void>;
|
|
37
|
-
isHealthy(): boolean;
|
|
38
|
-
}
|
|
39
|
-
interface RedisStreamsEventTargetOptions {
|
|
40
|
-
redisUrl?: string;
|
|
41
|
-
password?: string;
|
|
42
|
-
subjectPrefix?: string;
|
|
43
|
-
maxLen?: number;
|
|
44
|
-
serializer?: {
|
|
45
|
-
stringify: (data: unknown) => string | Promise<string>;
|
|
46
|
-
parse: (msg: string) => unknown | Promise<unknown>;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
declare function createRedisStreamsEventTarget(options?: RedisStreamsEventTargetOptions): Promise<RedisStreamsEventTarget>;
|
|
50
|
-
|
|
51
32
|
declare const index_DatabaseService: typeof DatabaseService;
|
|
52
33
|
declare const index_Logger: typeof Logger;
|
|
53
34
|
type index_MessageSerializer = MessageSerializer;
|
|
54
35
|
type index_NatsEventTarget = NatsEventTarget;
|
|
55
36
|
type index_NatsEventTargetOptions = NatsEventTargetOptions;
|
|
56
37
|
declare const index_PrismaTransactionClient: typeof PrismaTransactionClient;
|
|
57
|
-
type index_RedisStreamsEventTarget = RedisStreamsEventTarget;
|
|
58
|
-
type index_RedisStreamsEventTargetOptions = RedisStreamsEventTargetOptions;
|
|
59
38
|
declare const index_createDatabaseService: typeof createDatabaseService;
|
|
60
39
|
declare const index_createNatsEventTarget: typeof createNatsEventTarget;
|
|
61
|
-
declare const index_createRedisStreamsEventTarget: typeof createRedisStreamsEventTarget;
|
|
62
40
|
declare namespace index {
|
|
63
|
-
export { index_DatabaseService as DatabaseService, index_Logger as Logger, type index_MessageSerializer as MessageSerializer, type index_NatsEventTarget as NatsEventTarget, type index_NatsEventTargetOptions as NatsEventTargetOptions, index_PrismaTransactionClient as PrismaTransactionClient,
|
|
41
|
+
export { index_DatabaseService as DatabaseService, index_Logger as Logger, type index_MessageSerializer as MessageSerializer, type index_NatsEventTarget as NatsEventTarget, type index_NatsEventTargetOptions as NatsEventTargetOptions, index_PrismaTransactionClient as PrismaTransactionClient, index_createDatabaseService as createDatabaseService, index_createNatsEventTarget as createNatsEventTarget };
|
|
64
42
|
}
|
|
65
43
|
|
|
66
|
-
export { type MessageSerializer as M, type NatsEventTarget as N, type
|
|
44
|
+
export { type MessageSerializer as M, type NatsEventTarget as N, type NatsEventTargetOptions as a, createNatsEventTarget as c, index as i };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ 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-
|
|
12
|
+
import { E as EventsModule, I as IEventPublisher } from './index-BF2uh_h9.js';
|
|
13
|
+
export { i as EventQueue } from './index-BF2uh_h9.js';
|
|
14
14
|
import { G as GraphModule } from './index-DZO2nvC9.js';
|
|
15
15
|
export { i as Graph } from './index-DZO2nvC9.js';
|
|
16
16
|
import { B as BurdenoffGraphQLClient } from './graphql-0_hoaeUf.js';
|
|
@@ -20,7 +20,7 @@ export { createInternalClient, createInternalClientForTenant, createInternalClie
|
|
|
20
20
|
export { i as Cache } from './index-BODgvRtL.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-HkD7NBED.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';
|
package/dist/index.js
CHANGED
|
@@ -6,35 +6,35 @@ export { middleware_exports as Middleware } from './chunk-2HANKZZM.js';
|
|
|
6
6
|
import { TenantNotificationsModule, NotificationsModule } from './chunk-I43B35CP.js';
|
|
7
7
|
export { tenant_notifications_exports as Notifications, NotificationsModule } from './chunk-I43B35CP.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-LRL6GKXI.js';
|
|
10
10
|
import './chunk-GTEMQXCA.js';
|
|
11
11
|
import { RBACModule } from './chunk-ER77ZA7C.js';
|
|
12
12
|
export { RBACModule, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './chunk-ER77ZA7C.js';
|
|
13
13
|
export { export_exports as Export } from './chunk-FNZEQOJY.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-DR5AQJT6.js';
|
|
16
|
+
export { graph_exports as Graph, GraphModule } from './chunk-DR5AQJT6.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
|
-
export { graphql_exports as GraphQL } from './chunk-
|
|
18
|
+
import { EventsModule } from './chunk-WPGSKLAG.js';
|
|
19
|
+
export { event_queue_exports as EventQueue, EventsModule } from './chunk-WPGSKLAG.js';
|
|
20
|
+
import './chunk-S52PJKSW.js';
|
|
21
|
+
export { graphql_exports as GraphQL } from './chunk-NUZZRJNN.js';
|
|
22
22
|
import './chunk-QLVKMWFA.js';
|
|
23
23
|
export { i18n_exports as I18n, createTranslator, getLanguage, getLocale, hasI18n, t } from './chunk-IYE2NTRX.js';
|
|
24
|
-
export { init_exports as Init } from './chunk-
|
|
24
|
+
export { init_exports as Init } from './chunk-SXIL2AJF.js';
|
|
25
25
|
export { gateway_exports as Gateway } from './chunk-4B43DZIS.js';
|
|
26
26
|
import './chunk-MLW2HPS5.js';
|
|
27
27
|
export { layer_exports as Layer } from './chunk-HIWTWIGQ.js';
|
|
28
|
-
import { EventQueueFactory } from './chunk-
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-
|
|
28
|
+
import { EventQueueFactory } from './chunk-KSO6QQVD.js';
|
|
29
|
+
import './chunk-VOFKF27Q.js';
|
|
30
|
+
import './chunk-COSUYUCB.js';
|
|
31
31
|
import { AuthModule } from './chunk-WBWM7UY7.js';
|
|
32
32
|
export { AuthModule } from './chunk-WBWM7UY7.js';
|
|
33
33
|
export { utils_exports as Utils } from './chunk-MOCUBSTW.js';
|
|
34
34
|
export { cache_exports as Cache } from './chunk-4XGGWW36.js';
|
|
35
35
|
export { captcha_exports as Captcha, isCaptchaEnabled, verifyCaptcha, verifyCaptchaIfEnabled } from './chunk-YMZEUTD2.js';
|
|
36
|
-
export { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from './chunk-VI4VSNTI.js';
|
|
37
36
|
export { crypto_exports as Crypto } from './chunk-SBS4S2PJ.js';
|
|
37
|
+
export { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from './chunk-VI4VSNTI.js';
|
|
38
38
|
import { DatabaseModule } from './chunk-5CAA3JST.js';
|
|
39
39
|
export { DatabaseModule } from './chunk-5CAA3JST.js';
|
|
40
40
|
import { APIError, NetworkError, TimeoutError, ValidationError } from './chunk-RTQIRGVB.js';
|
package/dist/init/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { getSDKState, initializeBurdenoffSDK, isSDKInitialized, resetSDK } from '../chunk-
|
|
1
|
+
export { getSDKState, initializeBurdenoffSDK, isSDKInitialized, resetSDK } from '../chunk-SXIL2AJF.js';
|
|
2
2
|
import '../chunk-4B43DZIS.js';
|
|
3
3
|
import '../chunk-MLW2HPS5.js';
|
|
4
4
|
import '../chunk-HIWTWIGQ.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-KSO6QQVD.js';
|
|
6
|
+
import '../chunk-VOFKF27Q.js';
|
|
7
|
+
import '../chunk-COSUYUCB.js';
|
|
8
8
|
import '../chunk-NGMEI42S.js';
|
|
9
9
|
import '../chunk-CBZNP6RF.js';
|
|
10
10
|
import '../chunk-XE4OXN2W.js';
|
package/dist/prisma/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { PrismaClientWrapper, buildContextWhereClause, buildContextWhereConditions, checkDatabaseHealth, configurePrismaLogging, contextMatches, createConnectionPool, createContextFromSDK, createDatabaseClient, createDatabaseClientFromEnv, createPrismaAdapter, createPrismaClient, extractFieldsFromModel, getAllModelNames, getDatabaseManager, getDatabaseProductName, getDatabaseStats, getDatabaseVersion, getDb, getModelFields, hasModel, initializeDatabase, initializeDatabaseWithConfig, isDatabaseInitialized, loadGeneratedFields, mergeContext, parseContext, resetDatabaseManager, testConnection, toContextJson } from '../chunk-
|
|
1
|
+
export { PrismaClientWrapper, buildContextWhereClause, buildContextWhereConditions, checkDatabaseHealth, configurePrismaLogging, contextMatches, createConnectionPool, createContextFromSDK, createDatabaseClient, createDatabaseClientFromEnv, createPrismaAdapter, createPrismaClient, extractFieldsFromModel, getAllModelNames, getDatabaseManager, getDatabaseProductName, getDatabaseStats, getDatabaseVersion, getDb, getModelFields, hasModel, initializeDatabase, initializeDatabaseWithConfig, isDatabaseInitialized, loadGeneratedFields, mergeContext, parseContext, resetDatabaseManager, testConnection, toContextJson } from '../chunk-LRL6GKXI.js';
|
|
2
2
|
export { addWorkspaceExtension, getWorkspaceContext, injectWhereWorkspaceId, setWorkspaceContext, withWorkspaceContext, withWorkspaceContextSync } from '../chunk-GTEMQXCA.js';
|
|
3
3
|
import '../chunk-TKBD2ONF.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-S52PJKSW.js';
|
|
5
|
+
import '../chunk-KSO6QQVD.js';
|
|
6
|
+
import '../chunk-VOFKF27Q.js';
|
|
7
|
+
import '../chunk-COSUYUCB.js';
|
|
8
8
|
import '../chunk-NGMEI42S.js';
|
|
9
9
|
import '../chunk-CBZNP6RF.js';
|
|
10
10
|
import '../chunk-XE4OXN2W.js';
|
package/dist/server/index.js
CHANGED
|
@@ -692,6 +692,26 @@ async function createServer(definition) {
|
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
+
if (pathname === "/metrics" && request.method === "GET") {
|
|
696
|
+
try {
|
|
697
|
+
const promClientMod = "prom-client";
|
|
698
|
+
const prom = await import(promClientMod);
|
|
699
|
+
try {
|
|
700
|
+
prom.collectDefaultMetrics({
|
|
701
|
+
register: prom.register
|
|
702
|
+
});
|
|
703
|
+
} catch {
|
|
704
|
+
}
|
|
705
|
+
const body = await prom.register.metrics();
|
|
706
|
+
return new Response(body, {
|
|
707
|
+
status: 200,
|
|
708
|
+
headers: {
|
|
709
|
+
"Content-Type": prom.register.contentType ?? "text/plain; version=0.0.4; charset=utf-8"
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
} catch {
|
|
713
|
+
}
|
|
714
|
+
}
|
|
695
715
|
const yogaRoutes = [
|
|
696
716
|
graphqlEndpoint,
|
|
697
717
|
`${graphqlEndpoint}/`,
|