@burdenoff/be-sdk 2026.1021.3 → 2026.1021.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/{chunk-7SOI4IHZ.js → chunk-DTE2MHKE.js} +3 -3
- package/dist/{chunk-7SOI4IHZ.js.map → chunk-DTE2MHKE.js.map} +1 -1
- package/dist/{chunk-5OROGKQW.js → chunk-IZZ45AGA.js} +252 -14
- package/dist/chunk-IZZ45AGA.js.map +1 -0
- package/dist/{chunk-F4R5AHSD.js → chunk-V3N6HDFE.js} +29 -8
- package/dist/chunk-V3N6HDFE.js.map +1 -0
- package/dist/graph/index.d.ts +2 -2
- package/dist/graph/index.js +2 -2
- package/dist/{index-Dl8EAdYu.d.ts → index-CL7koBpQ.d.ts} +1 -1
- package/dist/{index-D3DzCz1d.d.ts → index-DG5lCWNk.d.ts} +21 -152
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/prisma/index.d.ts +2 -2
- package/dist/prisma/index.js +2 -2
- package/dist/prisma-extension-gYhYriA0.d.ts +174 -0
- package/package.json +1 -1
- package/dist/chunk-5OROGKQW.js.map +0 -1
- package/dist/chunk-F4R5AHSD.js.map +0 -1
- package/dist/prisma-extension-krXnYnrN.d.ts +0 -30
|
@@ -1,144 +1,8 @@
|
|
|
1
1
|
import { B as BurdenoffGraphQLClient } from './graphql-AaLJfGzz.js';
|
|
2
2
|
import { a as SDKContext } from './index-CfRZtB99.js';
|
|
3
|
+
import { M as ModuleGraphConfig, E as EntityGraphConfig, R as RegistryEntityRbacConfig, a as RelationshipGraphConfig, b as EntityBulkOperationsConfig, c as GraphEventType, d as GraphEvent, G as GraphEventEmitter, e as EdgeDocument, f as EntityEventType, g as EntityVertex, h as GraphMiddlewareConfig, P as ProductFacet, S as SearchFacets, i as SearchFilters, j as SearchResponse, k as SearchResult, T as TypeFacet, l as addGraphExtension } from './prisma-extension-gYhYriA0.js';
|
|
3
4
|
import { P as PrismaClientBase } from './client-CCXpAZ2r.js';
|
|
4
5
|
import { G as GraphEventEmitterImpl, E as EntityEventRbacMetadata } from './graph-emitter-r5TylDBm.js';
|
|
5
|
-
import { G as GraphEventEmitter, E as EntityEventType, a as GraphMiddlewareConfig, b as addGraphExtension } from './prisma-extension-krXnYnrN.js';
|
|
6
|
-
|
|
7
|
-
type GraphEventType = 'entity.created' | 'entity.updated' | 'entity.deleted' | 'relationship.created' | 'relationship.updated' | 'relationship.deleted';
|
|
8
|
-
interface GraphEvent {
|
|
9
|
-
eventId: string;
|
|
10
|
-
eventType: GraphEventType;
|
|
11
|
-
organizationId: string;
|
|
12
|
-
productSource: string;
|
|
13
|
-
timestamp: string;
|
|
14
|
-
entity: {
|
|
15
|
-
id: string;
|
|
16
|
-
type: string;
|
|
17
|
-
data: Record<string, unknown>;
|
|
18
|
-
};
|
|
19
|
-
relationship?: {
|
|
20
|
-
from: {
|
|
21
|
-
id: string;
|
|
22
|
-
type: string;
|
|
23
|
-
};
|
|
24
|
-
to: {
|
|
25
|
-
id: string;
|
|
26
|
-
type: string;
|
|
27
|
-
};
|
|
28
|
-
type: string;
|
|
29
|
-
metadata: Record<string, unknown>;
|
|
30
|
-
};
|
|
31
|
-
metadata: {
|
|
32
|
-
userId?: string;
|
|
33
|
-
correlationId: string;
|
|
34
|
-
causedBy?: string;
|
|
35
|
-
retryCount?: number;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
interface EntityVertex {
|
|
39
|
-
_key: string;
|
|
40
|
-
_id?: string;
|
|
41
|
-
organizationId: string;
|
|
42
|
-
workspaceId?: string;
|
|
43
|
-
projectId?: string;
|
|
44
|
-
productSource: string;
|
|
45
|
-
entityType: string;
|
|
46
|
-
entityId: string;
|
|
47
|
-
title?: string;
|
|
48
|
-
isActive: boolean;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
updatedAt: string;
|
|
51
|
-
metadata?: Record<string, unknown>;
|
|
52
|
-
isPlaceholder?: boolean;
|
|
53
|
-
}
|
|
54
|
-
interface EdgeDocument {
|
|
55
|
-
_key?: string;
|
|
56
|
-
_from: string;
|
|
57
|
-
_to: string;
|
|
58
|
-
organizationId: string;
|
|
59
|
-
productSource: string;
|
|
60
|
-
createdAt: string;
|
|
61
|
-
updatedAt: string;
|
|
62
|
-
isActive?: boolean;
|
|
63
|
-
deletedAt?: string;
|
|
64
|
-
[key: string]: unknown;
|
|
65
|
-
}
|
|
66
|
-
interface RegistryEntityRbacConfig {
|
|
67
|
-
resourceTypeName: string;
|
|
68
|
-
extractName?: (data: Record<string, unknown>) => string | undefined;
|
|
69
|
-
extractIdentifier?: (data: Record<string, unknown>) => string | undefined;
|
|
70
|
-
parentResourceField?: string;
|
|
71
|
-
createResource?: boolean;
|
|
72
|
-
}
|
|
73
|
-
interface EntityGraphConfig {
|
|
74
|
-
fields?: string[];
|
|
75
|
-
collection?: string;
|
|
76
|
-
extractTitle?: (entity: Record<string, unknown>) => string;
|
|
77
|
-
enabled?: boolean;
|
|
78
|
-
rbac?: RegistryEntityRbacConfig;
|
|
79
|
-
}
|
|
80
|
-
interface RelationshipGraphConfig {
|
|
81
|
-
from: string;
|
|
82
|
-
fromField: string;
|
|
83
|
-
to: string;
|
|
84
|
-
toField?: string;
|
|
85
|
-
label: string;
|
|
86
|
-
description?: string;
|
|
87
|
-
extractMetadata?: (record: Record<string, unknown>) => Record<string, unknown>;
|
|
88
|
-
polymorphicTypeField?: string;
|
|
89
|
-
enabled?: boolean;
|
|
90
|
-
}
|
|
91
|
-
interface ModuleGraphConfig {
|
|
92
|
-
moduleName: string;
|
|
93
|
-
entities: Record<string, EntityGraphConfig>;
|
|
94
|
-
relationships?: Record<string, RelationshipGraphConfig>;
|
|
95
|
-
}
|
|
96
|
-
interface SearchFilters {
|
|
97
|
-
productSources?: string[];
|
|
98
|
-
entityTypes?: string[];
|
|
99
|
-
dateRange?: {
|
|
100
|
-
from?: string;
|
|
101
|
-
to?: string;
|
|
102
|
-
};
|
|
103
|
-
metadataFilters?: {
|
|
104
|
-
field: string;
|
|
105
|
-
operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'in';
|
|
106
|
-
value: unknown;
|
|
107
|
-
}[];
|
|
108
|
-
limit?: number;
|
|
109
|
-
offset?: number;
|
|
110
|
-
}
|
|
111
|
-
interface SearchResult {
|
|
112
|
-
id: string;
|
|
113
|
-
type: string;
|
|
114
|
-
productSource: string;
|
|
115
|
-
title: string;
|
|
116
|
-
description?: string;
|
|
117
|
-
metadata?: Record<string, unknown>;
|
|
118
|
-
score: number;
|
|
119
|
-
highlights?: string[];
|
|
120
|
-
url: string;
|
|
121
|
-
createdAt?: string;
|
|
122
|
-
updatedAt?: string;
|
|
123
|
-
}
|
|
124
|
-
interface ProductFacet {
|
|
125
|
-
product: string;
|
|
126
|
-
count: number;
|
|
127
|
-
}
|
|
128
|
-
interface TypeFacet {
|
|
129
|
-
type: string;
|
|
130
|
-
count: number;
|
|
131
|
-
}
|
|
132
|
-
interface SearchFacets {
|
|
133
|
-
byProduct: ProductFacet[];
|
|
134
|
-
byType: TypeFacet[];
|
|
135
|
-
}
|
|
136
|
-
interface SearchResponse {
|
|
137
|
-
entities: SearchResult[];
|
|
138
|
-
total: number;
|
|
139
|
-
hasMore: boolean;
|
|
140
|
-
facets: SearchFacets;
|
|
141
|
-
}
|
|
142
6
|
|
|
143
7
|
interface ResolvedEntityGraphConfig extends Omit<EntityGraphConfig, 'fields'> {
|
|
144
8
|
fields: string[];
|
|
@@ -162,6 +26,7 @@ declare class GraphRegistry {
|
|
|
162
26
|
static getOrganizationId(entityType: string, data: Record<string, unknown>): string | undefined;
|
|
163
27
|
static getWorkspaceId(entityType: string, data: Record<string, unknown>): string | undefined;
|
|
164
28
|
static getRbacConfig(entityType: string): RegistryEntityRbacConfig | undefined;
|
|
29
|
+
static getBulkOperationsConfig(entityType: string): EntityBulkOperationsConfig | undefined;
|
|
165
30
|
static resolveRbacMetadata(entityType: string, entityData: Record<string, unknown>): {
|
|
166
31
|
resourceTypeName: string;
|
|
167
32
|
name?: string;
|
|
@@ -241,6 +106,7 @@ interface GenericEntityConfig {
|
|
|
241
106
|
extractTitle?: FieldMapper<string>;
|
|
242
107
|
enabled?: boolean;
|
|
243
108
|
rbac?: EntityRbacConfig$1;
|
|
109
|
+
bulkOperations?: EntityBulkOperationsConfig;
|
|
244
110
|
}
|
|
245
111
|
interface GenericRelationshipConfig {
|
|
246
112
|
from: string;
|
|
@@ -300,6 +166,7 @@ interface PrismaGraphIntegrationOptions<TPrismaClient = unknown> {
|
|
|
300
166
|
validateRuntime?: boolean;
|
|
301
167
|
autoInit?: boolean;
|
|
302
168
|
createPrismaClient: () => TPrismaClient;
|
|
169
|
+
bulkOperations?: EntityBulkOperationsConfig;
|
|
303
170
|
}
|
|
304
171
|
declare function createPrismaGraphIntegration<TPrismaClient extends PrismaClientBase>(options: PrismaGraphIntegrationOptions<TPrismaClient>): {
|
|
305
172
|
initializeGraphEmitter: () => Promise<void>;
|
|
@@ -675,6 +542,7 @@ interface InitializeGraphOptions {
|
|
|
675
542
|
monitoredEntityTypes?: string[];
|
|
676
543
|
enabled?: boolean;
|
|
677
544
|
validateRuntime?: boolean;
|
|
545
|
+
bulkOperations?: EntityBulkOperationsConfig;
|
|
678
546
|
}
|
|
679
547
|
declare function initializeGraph<TPrisma>(prismaClient: TPrisma, config: GenericGraphConfig, options: InitializeGraphOptions): TPrisma;
|
|
680
548
|
declare function isGraphInitialized(moduleName: string): boolean;
|
|
@@ -791,15 +659,16 @@ type index_DeferredGraphResult<T> = DeferredGraphResult<T>;
|
|
|
791
659
|
type index_DefineEntityConfigOptions = DefineEntityConfigOptions;
|
|
792
660
|
type index_DefineGraphConfigOptions = DefineGraphConfigOptions;
|
|
793
661
|
type index_DefineRelationshipConfigOptions = DefineRelationshipConfigOptions;
|
|
794
|
-
|
|
662
|
+
declare const index_EdgeDocument: typeof EdgeDocument;
|
|
663
|
+
declare const index_EntityBulkOperationsConfig: typeof EntityBulkOperationsConfig;
|
|
795
664
|
type index_EntityDefinition<T = Record<string, unknown>> = EntityDefinition<T>;
|
|
796
665
|
type index_EntityEventContext = EntityEventContext;
|
|
797
666
|
type index_EntityEventData = EntityEventData;
|
|
798
667
|
type index_EntityEventHook = EntityEventHook;
|
|
799
668
|
declare const index_EntityEventType: typeof EntityEventType;
|
|
800
|
-
|
|
669
|
+
declare const index_EntityGraphConfig: typeof EntityGraphConfig;
|
|
801
670
|
type index_EntityRbacConfig = EntityRbacConfig;
|
|
802
|
-
|
|
671
|
+
declare const index_EntityVertex: typeof EntityVertex;
|
|
803
672
|
type index_ExtractedEntityData = ExtractedEntityData;
|
|
804
673
|
type index_ExtractedRelationshipData = ExtractedRelationshipData;
|
|
805
674
|
type index_FieldMapper<T = string> = FieldMapper<T>;
|
|
@@ -809,11 +678,11 @@ type index_GenericRelationshipConfig = GenericRelationshipConfig;
|
|
|
809
678
|
type index_GraphEdge = GraphEdge;
|
|
810
679
|
type index_GraphEntityConfig = GraphEntityConfig;
|
|
811
680
|
type index_GraphEntityExport = GraphEntityExport;
|
|
812
|
-
|
|
681
|
+
declare const index_GraphEvent: typeof GraphEvent;
|
|
813
682
|
declare const index_GraphEventEmitter: typeof GraphEventEmitter;
|
|
814
683
|
type index_GraphEventOptions = GraphEventOptions;
|
|
815
684
|
type index_GraphEventPublishOptions = GraphEventPublishOptions;
|
|
816
|
-
|
|
685
|
+
declare const index_GraphEventType: typeof GraphEventType;
|
|
817
686
|
type index_GraphEventsHelper = GraphEventsHelper;
|
|
818
687
|
type index_GraphEventsHelperConfig = GraphEventsHelperConfig;
|
|
819
688
|
type index_GraphEventsPublisher = GraphEventsPublisher;
|
|
@@ -835,27 +704,27 @@ type index_GraphValidationError = GraphValidationError;
|
|
|
835
704
|
type index_GraphValidationResult = GraphValidationResult;
|
|
836
705
|
type index_InitializeGraphOptions = InitializeGraphOptions;
|
|
837
706
|
type index_ModuleGraph = ModuleGraph;
|
|
838
|
-
|
|
707
|
+
declare const index_ModuleGraphConfig: typeof ModuleGraphConfig;
|
|
839
708
|
type index_ModuleGraphDefinition = ModuleGraphDefinition;
|
|
840
709
|
type index_PrismaGraphIntegration<TPrismaClient extends PrismaClientBase> = PrismaGraphIntegration<TPrismaClient>;
|
|
841
710
|
type index_PrismaGraphIntegrationOptions<TPrismaClient = unknown> = PrismaGraphIntegrationOptions<TPrismaClient>;
|
|
842
|
-
|
|
711
|
+
declare const index_ProductFacet: typeof ProductFacet;
|
|
843
712
|
type index_QueryGraphOptions = QueryGraphOptions;
|
|
844
713
|
type index_RelationshipDefinition = RelationshipDefinition;
|
|
845
714
|
type index_RelationshipEventData = RelationshipEventData;
|
|
846
715
|
type index_RelationshipExportData = RelationshipExportData;
|
|
847
|
-
|
|
716
|
+
declare const index_RelationshipGraphConfig: typeof RelationshipGraphConfig;
|
|
848
717
|
declare const index_SOFT_DELETE_FIELDS: typeof SOFT_DELETE_FIELDS;
|
|
849
718
|
declare const index_STANDARD_FIELDS: typeof STANDARD_FIELDS;
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
719
|
+
declare const index_SearchFacets: typeof SearchFacets;
|
|
720
|
+
declare const index_SearchFilters: typeof SearchFilters;
|
|
721
|
+
declare const index_SearchResponse: typeof SearchResponse;
|
|
722
|
+
declare const index_SearchResult: typeof SearchResult;
|
|
854
723
|
declare const index_TENANT_FIELDS: typeof TENANT_FIELDS;
|
|
855
724
|
type index_TraverseDirection = TraverseDirection;
|
|
856
725
|
type index_TraverseOptions = TraverseOptions;
|
|
857
726
|
type index_TraverseResult = TraverseResult;
|
|
858
|
-
|
|
727
|
+
declare const index_TypeFacet: typeof TypeFacet;
|
|
859
728
|
type index_ValidationErrorType = ValidationErrorType;
|
|
860
729
|
declare const index_addGraphExtension: typeof addGraphExtension;
|
|
861
730
|
declare const index_createEntityEvent: typeof createEntityEvent;
|
|
@@ -880,7 +749,7 @@ declare const index_shouldSyncEntity: typeof shouldSyncEntity;
|
|
|
880
749
|
declare const index_shouldSyncRelationship: typeof shouldSyncRelationship;
|
|
881
750
|
declare const index_withDeferredGraphEvents: typeof withDeferredGraphEvents;
|
|
882
751
|
declare namespace index {
|
|
883
|
-
export { index_AUDIT_FIELDS as AUDIT_FIELDS, type index_CreateEdgeOptions as CreateEdgeOptions, type index_CreateNodeOptions as CreateNodeOptions, type index_DeferredGraphResult as DeferredGraphResult, type index_DefineEntityConfigOptions as DefineEntityConfigOptions, type index_DefineGraphConfigOptions as DefineGraphConfigOptions, type index_DefineRelationshipConfigOptions as DefineRelationshipConfigOptions,
|
|
752
|
+
export { index_AUDIT_FIELDS as AUDIT_FIELDS, type index_CreateEdgeOptions as CreateEdgeOptions, type index_CreateNodeOptions as CreateNodeOptions, type index_DeferredGraphResult as DeferredGraphResult, type index_DefineEntityConfigOptions as DefineEntityConfigOptions, type index_DefineGraphConfigOptions as DefineGraphConfigOptions, type index_DefineRelationshipConfigOptions as DefineRelationshipConfigOptions, index_EdgeDocument as EdgeDocument, index_EntityBulkOperationsConfig as EntityBulkOperationsConfig, type index_EntityDefinition as EntityDefinition, type index_EntityEventContext as EntityEventContext, type index_EntityEventData as EntityEventData, type index_EntityEventHook as EntityEventHook, index_EntityEventType as EntityEventType, type EntityFetcher$1 as EntityFetcher, index_EntityGraphConfig as EntityGraphConfig, type index_EntityRbacConfig as EntityRbacConfig, index_EntityVertex as EntityVertex, type index_ExtractedEntityData as ExtractedEntityData, type index_ExtractedRelationshipData as ExtractedRelationshipData, type index_FieldMapper as FieldMapper, type index_GenericEntityConfig as GenericEntityConfig, type EntityRbacConfig$1 as GenericEntityRbacConfig, type index_GenericGraphConfig as GenericGraphConfig, type index_GenericRelationshipConfig as GenericRelationshipConfig, type index_GraphEdge as GraphEdge, type index_GraphEntityConfig as GraphEntityConfig, type index_GraphEntityExport as GraphEntityExport, index_GraphEvent as GraphEvent, index_GraphEventEmitter as GraphEventEmitter, type index_GraphEventOptions as GraphEventOptions, type index_GraphEventPublishOptions as GraphEventPublishOptions, index_GraphEventType as GraphEventType, type index_GraphEventsHelper as GraphEventsHelper, type index_GraphEventsHelperConfig as GraphEventsHelperConfig, index_GraphEventsPublisher as GraphEventsPublisher, type index_GraphExportResponse as GraphExportResponse, index_GraphExportService as GraphExportService, type index_GraphExportServiceConfig as GraphExportServiceConfig, index_GraphMiddlewareConfig as GraphMiddlewareConfig, index_GraphModule as GraphModule, type index_GraphNode as GraphNode, index_GraphRegistry as GraphRegistry, type index_GraphRelationshipData as GraphRelationshipData, type index_GraphRelationshipExport as GraphRelationshipExport, type index_GraphSchema as GraphSchema, type index_GraphValidationError as GraphValidationError, type index_GraphValidationResult as GraphValidationResult, type index_InitializeGraphOptions as InitializeGraphOptions, type index_ModuleGraph as ModuleGraph, index_ModuleGraphConfig as ModuleGraphConfig, type index_ModuleGraphDefinition as ModuleGraphDefinition, type index_PrismaGraphIntegration as PrismaGraphIntegration, type index_PrismaGraphIntegrationOptions as PrismaGraphIntegrationOptions, index_ProductFacet as ProductFacet, type index_QueryGraphOptions as QueryGraphOptions, type index_RelationshipDefinition as RelationshipDefinition, type index_RelationshipEventData as RelationshipEventData, type index_RelationshipExportData as RelationshipExportData, type RelationshipFetcher$1 as RelationshipFetcher, index_RelationshipGraphConfig as RelationshipGraphConfig, index_SOFT_DELETE_FIELDS as SOFT_DELETE_FIELDS, index_STANDARD_FIELDS as STANDARD_FIELDS, index_SearchFacets as SearchFacets, index_SearchFilters as SearchFilters, index_SearchResponse as SearchResponse, index_SearchResult as SearchResult, index_TENANT_FIELDS as TENANT_FIELDS, type index_TraverseDirection as TraverseDirection, type index_TraverseOptions as TraverseOptions, type index_TraverseResult as TraverseResult, index_TypeFacet as TypeFacet, type index_ValidationErrorType as ValidationErrorType, index_addGraphExtension as addGraphExtension, index_createEntityEvent as createEntityEvent, index_createGraphEventsHelper as createGraphEventsHelper, index_createGraphExportService as createGraphExportService, index_createPrismaGraphIntegration as createPrismaGraphIntegration, index_createRelationshipEvent as createRelationshipEvent, index_createRelationshipFromEntity as createRelationshipFromEntity, index_defineEntity as defineEntity, index_defineGraphConfig as defineGraphConfig, index_defineModuleGraph as defineModuleGraph, index_defineRelationship as defineRelationship, index_extractEntityTitle as extractEntityTitle, index_extractMinimalFields as extractMinimalFields, index_getCollectionForEntity as getCollectionForEntity, index_getGraphEventsPublisher as getGraphEventsPublisher, index_getGraphStats as getGraphStats, index_initializeGraph as initializeGraph, index_isGraphInitialized as isGraphInitialized, index_parseRelationship as parseRelationship, index_shouldSyncEntity as shouldSyncEntity, index_shouldSyncRelationship as shouldSyncRelationship, index_withDeferredGraphEvents as withDeferredGraphEvents };
|
|
884
753
|
}
|
|
885
754
|
|
|
886
|
-
export { type
|
|
755
|
+
export { type TraverseDirection as $, AUDIT_FIELDS as A, type GraphExportServiceConfig as B, type CreateEdgeOptions as C, type DeferredGraphResult as D, type EntityDefinition as E, type FieldMapper as F, GraphModule as G, type GraphNode as H, GraphRegistry as I, type GraphRelationshipData as J, type GraphRelationshipExport as K, type GraphSchema as L, type GraphValidationError as M, type GraphValidationResult as N, type InitializeGraphOptions as O, type ModuleGraph as P, type ModuleGraphDefinition as Q, type PrismaGraphIntegration as R, type PrismaGraphIntegrationOptions as S, type QueryGraphOptions as T, type RelationshipDefinition as U, type RelationshipEventData as V, type RelationshipExportData as W, type RelationshipFetcher$1 as X, SOFT_DELETE_FIELDS as Y, STANDARD_FIELDS as Z, TENANT_FIELDS as _, type CreateNodeOptions as a, type TraverseOptions as a0, type TraverseResult as a1, type ValidationErrorType as a2, createEntityEvent as a3, createGraphEventsHelper as a4, createGraphExportService as a5, createPrismaGraphIntegration as a6, createRelationshipEvent as a7, createRelationshipFromEntity as a8, defineEntity as a9, defineGraphConfig as aa, defineModuleGraph as ab, defineRelationship as ac, extractEntityTitle as ad, extractMinimalFields as ae, getCollectionForEntity as af, getGraphEventsPublisher as ag, getGraphStats as ah, initializeGraph as ai, isGraphInitialized as aj, parseRelationship as ak, shouldSyncEntity as al, shouldSyncRelationship as am, withDeferredGraphEvents as an, type DefineEntityConfigOptions as b, type DefineGraphConfigOptions as c, type DefineRelationshipConfigOptions as d, type EntityEventContext as e, type EntityEventData as f, type EntityEventHook as g, type EntityFetcher$1 as h, index as i, type EntityRbacConfig as j, type ExtractedEntityData as k, type ExtractedRelationshipData as l, type GenericEntityConfig as m, type EntityRbacConfig$1 as n, type GenericGraphConfig as o, type GenericRelationshipConfig as p, type GraphEdge as q, type GraphEntityConfig as r, type GraphEntityExport as s, type GraphEventOptions as t, type GraphEventPublishOptions as u, type GraphEventsHelper as v, type GraphEventsHelperConfig as w, GraphEventsPublisher as x, type GraphExportResponse as y, GraphExportService as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ import { A as ActivityModule, U as UsageModule, T as TrackerModule } from './ind
|
|
|
11
11
|
import { DatabaseConfig, DatabaseModule } from './database/index.js';
|
|
12
12
|
import { E as EventsModule, I as IEventPublisher } from './index-BVXRewdr.js';
|
|
13
13
|
export { i as EventQueue } from './index-BVXRewdr.js';
|
|
14
|
-
import { G as GraphModule } from './index-
|
|
15
|
-
export { i as Graph } from './index-
|
|
14
|
+
import { G as GraphModule } from './index-DG5lCWNk.js';
|
|
15
|
+
export { i as Graph } from './index-DG5lCWNk.js';
|
|
16
16
|
import { B as BurdenoffGraphQLClient } from './graphql-AaLJfGzz.js';
|
|
17
17
|
import { TemporalModule } from './temporal/index.js';
|
|
18
18
|
export { TemporalClient, TemporalClientConfig, TemporalClientFactory, TemporalWorker, TemporalWorkerConfig, TemporalWorkerFactory, TemporalWorkerManager, WorkflowStartOptions } from './temporal/index.js';
|
|
@@ -24,7 +24,7 @@ export { i as Cache } from './index-Cx5I3ydM.js';
|
|
|
24
24
|
export { i as Middleware } from './index-DSOpj8DI.js';
|
|
25
25
|
export { i as Observability } from './index-4gKQKZ2B.js';
|
|
26
26
|
export { i as GraphQL } from './index-joONjwLt.js';
|
|
27
|
-
export { i as Prisma } from './index-
|
|
27
|
+
export { i as Prisma } from './index-CL7koBpQ.js';
|
|
28
28
|
export { i as Utils } from './index-PaojfSdd.js';
|
|
29
29
|
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-D4l1u8VR.js';
|
|
30
30
|
export { i as Export } from './index-B4ciT3OZ.js';
|
|
@@ -54,7 +54,7 @@ import '@envelop/core';
|
|
|
54
54
|
import './explicit-activity-scope-CCoxVwAr.js';
|
|
55
55
|
import '@clickhouse/client';
|
|
56
56
|
import './graph-emitter-r5TylDBm.js';
|
|
57
|
-
import './prisma-extension-
|
|
57
|
+
import './prisma-extension-gYhYriA0.js';
|
|
58
58
|
import '@temporalio/client';
|
|
59
59
|
import '@temporalio/common';
|
|
60
60
|
import 'elysia';
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export { ActivityModule, TrackerModule, UsageModule } from './chunk-YCSIHUYP.js'
|
|
|
5
5
|
export { NAME_MAX_LENGTH, NAME_MIN_LENGTH, RbacCoverageError, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, validation_exports as Validation, analyzeRbacCoverage, assertRbacCoverage, lengthInCodePoints, validateName, validateUserFields, validateUsername } from './chunk-WVOW3CJR.js';
|
|
6
6
|
export { observability_exports as Observability } from './chunk-VAT66FJA.js';
|
|
7
7
|
export { platform_exports as Platform } from './chunk-N2UT3ESH.js';
|
|
8
|
-
export { prisma_exports as Prisma } from './chunk-
|
|
8
|
+
export { prisma_exports as Prisma } from './chunk-DTE2MHKE.js';
|
|
9
9
|
export { PRODUCT_RENAMES, PRODUCT_RENAME_EMIT, PRODUCT_SLUG_ALIASES, product_alias_exports as ProductAlias, RENAME_CONCERNS, billingIdVariants, emitBillingId, emitName, emitProductSlug, emitQuotaKey, emitRbacResource, emitTemplateKey, isLegacyName, isSameBillingId, isSameGraphQLName, isSameName, isSameProductSlug, isSameQuotaKey, isSameRbacResource, isSameTemplateKey, nameVariants, normalizeBillingId, normalizeGraphQLName, normalizeProductSlug, normalizeQuotaKey, normalizeRbacResource, normalizeTemplateKey, productSlugVariants, quotaKeyVariants, rbacResourceVariants, readRenamedEnv, templateKeyVariants, toCurrentName, toLegacyName } from './chunk-OBBCR6WY.js';
|
|
10
10
|
import { RBACModule } from './chunk-5JNHVKHG.js';
|
|
11
11
|
export { RBACModule, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './chunk-5JNHVKHG.js';
|
|
@@ -17,9 +17,9 @@ import { TenantNotificationsModule, NotificationsModule } from './chunk-INAZ3PKF
|
|
|
17
17
|
export { tenant_notifications_exports as Notifications, NotificationsModule } from './chunk-INAZ3PKF.js';
|
|
18
18
|
export { export_exports as Export } from './chunk-TNYNRKLQ.js';
|
|
19
19
|
export { feature_flags_exports as FeatureFlags } from './chunk-UNASM5VJ.js';
|
|
20
|
-
import { GraphModule } from './chunk-
|
|
21
|
-
export { graph_exports as Graph, GraphModule } from './chunk-
|
|
22
|
-
import './chunk-
|
|
20
|
+
import { GraphModule } from './chunk-V3N6HDFE.js';
|
|
21
|
+
export { graph_exports as Graph, GraphModule } from './chunk-V3N6HDFE.js';
|
|
22
|
+
import './chunk-IZZ45AGA.js';
|
|
23
23
|
import { EventsModule } from './chunk-JV7XNJP4.js';
|
|
24
24
|
export { event_queue_exports as EventQueue, EventsModule } from './chunk-JV7XNJP4.js';
|
|
25
25
|
import './chunk-HEAQSZBX.js';
|
package/dist/prisma/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as ContextFilterInput, a as ContextWhereCondition, D as DatabaseClient, b as DatabaseClientConfig, F as FieldExtractionOptions, c as FieldExtractionResult, I as InputJsonValue, J as JsonValue, M as ModelFieldsMap, O as OperationContext, P as PoolTuningEnv, d as PrismaJsonFilter, e as buildContextWhereClause, f as buildContextWhereConditions, g as checkDatabaseHealth, h as contextMatches, j as createContextFromSDK, k as createDatabaseClient, l as createDatabaseClientFromEnv, m as extractFieldsFromModel, n as getAllModelNames, o as getDatabaseManager, p as getDatabaseProductName, q as getDatabaseStats, r as getDatabaseVersion, s as getDb, t as getModelFields, u as hasModel, v as initializeDatabase, w as initializeDatabaseWithConfig, x as isDatabaseInitialized, y as loadGeneratedFields, z as mergeContext, A as parseContext, B as resetDatabaseManager, E as resolvePoolTuningFromEnv, G as testConnection, H as toContextJson } from '../index-
|
|
1
|
+
export { C as ContextFilterInput, a as ContextWhereCondition, D as DatabaseClient, b as DatabaseClientConfig, F as FieldExtractionOptions, c as FieldExtractionResult, I as InputJsonValue, J as JsonValue, M as ModelFieldsMap, O as OperationContext, P as PoolTuningEnv, d as PrismaJsonFilter, e as buildContextWhereClause, f as buildContextWhereConditions, g as checkDatabaseHealth, h as contextMatches, j as createContextFromSDK, k as createDatabaseClient, l as createDatabaseClientFromEnv, m as extractFieldsFromModel, n as getAllModelNames, o as getDatabaseManager, p as getDatabaseProductName, q as getDatabaseStats, r as getDatabaseVersion, s as getDb, t as getModelFields, u as hasModel, v as initializeDatabase, w as initializeDatabaseWithConfig, x as isDatabaseInitialized, y as loadGeneratedFields, z as mergeContext, A as parseContext, B as resetDatabaseManager, E as resolvePoolTuningFromEnv, G as testConnection, H as toContextJson } from '../index-CL7koBpQ.js';
|
|
2
2
|
export { C as ConnectionState, d as DatabaseHealth, D as DatabaseReturnType, P as PrismaClientBase, c as PrismaClientConfig, a as PrismaClientConstructorOptions, b as PrismaClientWrapper, e as PrismaEvent, f as PrismaLogDefinition, g as PrismaLogEvent, h as PrismaLogLevel, i as PrismaQueryEvent, j as PrismaTransactionOptions, k as configurePrismaLogging, l as createConnectionPool, m as createPrismaAdapter, n as createPrismaClient, o as ensureServiceApplicationName, p as installAcquireRetry, q as isTransientAcquireError } from '../client-CCXpAZ2r.js';
|
|
3
3
|
export { C as CallerTransaction, P as PrismaQueryInternalParams, R as RawPrismaForCallerTransaction, T as TransactionContextStatement, a as WorkspaceContext, W as WorkspaceExtensionConfig, b as addWorkspaceExtension, c as buildTransactionContextStatement, d as defaultWorkspaceExtensionConfig, g as getCallerTransaction, e as getWorkspaceContext, i as injectCreateFields, f as injectWhereWorkspaceId, m as maybeSetRlsGuc, h as maybeTagConnection, r as resetCallerTransactionStateForTests, j as runOperationInCallerTransaction, k as runOperationWithRlsGuc, s as setWorkspaceContext, w as withWorkspaceContext, l as withWorkspaceContextSync } from '../workspace-extension-DiNiTLa3.js';
|
|
4
|
-
import '../prisma-extension-
|
|
4
|
+
import '../prisma-extension-gYhYriA0.js';
|
|
5
5
|
import '@prisma/adapter-pg';
|
|
6
6
|
import 'pg';
|
package/dist/prisma/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { buildContextWhereClause, buildContextWhereConditions, checkDatabaseHealth, contextMatches, createContextFromSDK, createDatabaseClient, createDatabaseClientFromEnv, extractFieldsFromModel, getAllModelNames, getDatabaseManager, getDatabaseProductName, getDatabaseStats, getDatabaseVersion, getDb, getModelFields, hasModel, initializeDatabase, initializeDatabaseWithConfig, isDatabaseInitialized, loadGeneratedFields, mergeContext, parseContext, resetDatabaseManager, resolvePoolTuningFromEnv, testConnection, toContextJson } from '../chunk-
|
|
1
|
+
export { buildContextWhereClause, buildContextWhereConditions, checkDatabaseHealth, contextMatches, createContextFromSDK, createDatabaseClient, createDatabaseClientFromEnv, extractFieldsFromModel, getAllModelNames, getDatabaseManager, getDatabaseProductName, getDatabaseStats, getDatabaseVersion, getDb, getModelFields, hasModel, initializeDatabase, initializeDatabaseWithConfig, isDatabaseInitialized, loadGeneratedFields, mergeContext, parseContext, resetDatabaseManager, resolvePoolTuningFromEnv, testConnection, toContextJson } from '../chunk-DTE2MHKE.js';
|
|
2
2
|
import '../chunk-OBBCR6WY.js';
|
|
3
3
|
export { addWorkspaceExtension, buildTransactionContextStatement, defaultWorkspaceExtensionConfig, getCallerTransaction, getWorkspaceContext, injectCreateFields, injectWhereWorkspaceId, maybeSetRlsGuc, maybeTagConnection, resetCallerTransactionStateForTests, runOperationInCallerTransaction, runOperationWithRlsGuc, setWorkspaceContext, withWorkspaceContext, withWorkspaceContextSync } from '../chunk-3Z2VRCT6.js';
|
|
4
|
-
export { PrismaClientWrapper, configurePrismaLogging, createConnectionPool, createPrismaAdapter, createPrismaClient, ensureServiceApplicationName, installAcquireRetry, isTransientAcquireError } from '../chunk-
|
|
4
|
+
export { PrismaClientWrapper, configurePrismaLogging, createConnectionPool, createPrismaAdapter, createPrismaClient, ensureServiceApplicationName, installAcquireRetry, isTransientAcquireError } from '../chunk-IZZ45AGA.js';
|
|
5
5
|
import '../chunk-HEAQSZBX.js';
|
|
6
6
|
import '../chunk-DNULGVN3.js';
|
|
7
7
|
import '../chunk-KS2HQCJR.js';
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
type GraphEventType = 'entity.created' | 'entity.updated' | 'entity.deleted' | 'relationship.created' | 'relationship.updated' | 'relationship.deleted';
|
|
2
|
+
interface GraphEvent {
|
|
3
|
+
eventId: string;
|
|
4
|
+
eventType: GraphEventType;
|
|
5
|
+
organizationId: string;
|
|
6
|
+
productSource: string;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
entity: {
|
|
9
|
+
id: string;
|
|
10
|
+
type: string;
|
|
11
|
+
data: Record<string, unknown>;
|
|
12
|
+
};
|
|
13
|
+
relationship?: {
|
|
14
|
+
from: {
|
|
15
|
+
id: string;
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
to: {
|
|
19
|
+
id: string;
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
type: string;
|
|
23
|
+
metadata: Record<string, unknown>;
|
|
24
|
+
};
|
|
25
|
+
metadata: {
|
|
26
|
+
userId?: string;
|
|
27
|
+
correlationId: string;
|
|
28
|
+
causedBy?: string;
|
|
29
|
+
retryCount?: number;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
interface EntityVertex {
|
|
33
|
+
_key: string;
|
|
34
|
+
_id?: string;
|
|
35
|
+
organizationId: string;
|
|
36
|
+
workspaceId?: string;
|
|
37
|
+
projectId?: string;
|
|
38
|
+
productSource: string;
|
|
39
|
+
entityType: string;
|
|
40
|
+
entityId: string;
|
|
41
|
+
title?: string;
|
|
42
|
+
isActive: boolean;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
metadata?: Record<string, unknown>;
|
|
46
|
+
isPlaceholder?: boolean;
|
|
47
|
+
}
|
|
48
|
+
interface EdgeDocument {
|
|
49
|
+
_key?: string;
|
|
50
|
+
_from: string;
|
|
51
|
+
_to: string;
|
|
52
|
+
organizationId: string;
|
|
53
|
+
productSource: string;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
updatedAt: string;
|
|
56
|
+
isActive?: boolean;
|
|
57
|
+
deletedAt?: string;
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
}
|
|
60
|
+
interface RegistryEntityRbacConfig {
|
|
61
|
+
resourceTypeName: string;
|
|
62
|
+
extractName?: (data: Record<string, unknown>) => string | undefined;
|
|
63
|
+
extractIdentifier?: (data: Record<string, unknown>) => string | undefined;
|
|
64
|
+
parentResourceField?: string;
|
|
65
|
+
createResource?: boolean;
|
|
66
|
+
}
|
|
67
|
+
interface EntityBulkOperationsConfig {
|
|
68
|
+
mode: 'skip' | 'per-row';
|
|
69
|
+
maxRows?: number;
|
|
70
|
+
throttleMs?: number;
|
|
71
|
+
ignoreFields?: string[];
|
|
72
|
+
}
|
|
73
|
+
interface EntityGraphConfig {
|
|
74
|
+
fields?: string[];
|
|
75
|
+
collection?: string;
|
|
76
|
+
extractTitle?: (entity: Record<string, unknown>) => string;
|
|
77
|
+
enabled?: boolean;
|
|
78
|
+
rbac?: RegistryEntityRbacConfig;
|
|
79
|
+
bulkOperations?: EntityBulkOperationsConfig;
|
|
80
|
+
}
|
|
81
|
+
interface RelationshipGraphConfig {
|
|
82
|
+
from: string;
|
|
83
|
+
fromField: string;
|
|
84
|
+
to: string;
|
|
85
|
+
toField?: string;
|
|
86
|
+
label: string;
|
|
87
|
+
description?: string;
|
|
88
|
+
extractMetadata?: (record: Record<string, unknown>) => Record<string, unknown>;
|
|
89
|
+
polymorphicTypeField?: string;
|
|
90
|
+
enabled?: boolean;
|
|
91
|
+
}
|
|
92
|
+
interface ModuleGraphConfig {
|
|
93
|
+
moduleName: string;
|
|
94
|
+
entities: Record<string, EntityGraphConfig>;
|
|
95
|
+
relationships?: Record<string, RelationshipGraphConfig>;
|
|
96
|
+
}
|
|
97
|
+
interface SearchFilters {
|
|
98
|
+
productSources?: string[];
|
|
99
|
+
entityTypes?: string[];
|
|
100
|
+
dateRange?: {
|
|
101
|
+
from?: string;
|
|
102
|
+
to?: string;
|
|
103
|
+
};
|
|
104
|
+
metadataFilters?: {
|
|
105
|
+
field: string;
|
|
106
|
+
operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'in';
|
|
107
|
+
value: unknown;
|
|
108
|
+
}[];
|
|
109
|
+
limit?: number;
|
|
110
|
+
offset?: number;
|
|
111
|
+
}
|
|
112
|
+
interface SearchResult {
|
|
113
|
+
id: string;
|
|
114
|
+
type: string;
|
|
115
|
+
productSource: string;
|
|
116
|
+
title: string;
|
|
117
|
+
description?: string;
|
|
118
|
+
metadata?: Record<string, unknown>;
|
|
119
|
+
score: number;
|
|
120
|
+
highlights?: string[];
|
|
121
|
+
url: string;
|
|
122
|
+
createdAt?: string;
|
|
123
|
+
updatedAt?: string;
|
|
124
|
+
}
|
|
125
|
+
interface ProductFacet {
|
|
126
|
+
product: string;
|
|
127
|
+
count: number;
|
|
128
|
+
}
|
|
129
|
+
interface TypeFacet {
|
|
130
|
+
type: string;
|
|
131
|
+
count: number;
|
|
132
|
+
}
|
|
133
|
+
interface SearchFacets {
|
|
134
|
+
byProduct: ProductFacet[];
|
|
135
|
+
byType: TypeFacet[];
|
|
136
|
+
}
|
|
137
|
+
interface SearchResponse {
|
|
138
|
+
entities: SearchResult[];
|
|
139
|
+
total: number;
|
|
140
|
+
hasMore: boolean;
|
|
141
|
+
facets: SearchFacets;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
type EntityEventType = 'entity.created' | 'entity.updated' | 'entity.deleted' | 'relationship.created' | 'relationship.deleted';
|
|
145
|
+
interface EntityEventRbacMetadata {
|
|
146
|
+
resourceTypeName: string;
|
|
147
|
+
name?: string;
|
|
148
|
+
identifier?: string;
|
|
149
|
+
parentResourceIdentifier?: string;
|
|
150
|
+
createResource?: boolean;
|
|
151
|
+
}
|
|
152
|
+
interface GraphEventEmitter {
|
|
153
|
+
publishEntityEvent(eventType: EntityEventType, entity: {
|
|
154
|
+
id: string;
|
|
155
|
+
type: string;
|
|
156
|
+
data: Record<string, unknown>;
|
|
157
|
+
}, context: {
|
|
158
|
+
productName: string;
|
|
159
|
+
organizationId: string;
|
|
160
|
+
actorId?: string;
|
|
161
|
+
workspaceId?: string;
|
|
162
|
+
}, rbac?: EntityEventRbacMetadata): Promise<void>;
|
|
163
|
+
}
|
|
164
|
+
interface GraphMiddlewareConfig {
|
|
165
|
+
enabled: boolean;
|
|
166
|
+
productName: string;
|
|
167
|
+
eventEmitter: GraphEventEmitter;
|
|
168
|
+
entityTypes?: string[];
|
|
169
|
+
monitoredOperations?: Array<'create' | 'update' | 'delete' | 'deleteMany' | 'updateMany'>;
|
|
170
|
+
bulkOperations?: EntityBulkOperationsConfig;
|
|
171
|
+
}
|
|
172
|
+
declare function addGraphExtension<T>(baseClient: T, config: GraphMiddlewareConfig): T;
|
|
173
|
+
|
|
174
|
+
export { type EntityGraphConfig as E, type GraphEventEmitter as G, type ModuleGraphConfig as M, type ProductFacet as P, type RegistryEntityRbacConfig as R, type SearchFacets as S, type TypeFacet as T, type RelationshipGraphConfig as a, type EntityBulkOperationsConfig as b, type GraphEventType as c, type GraphEvent as d, type EdgeDocument as e, type EntityEventType as f, type EntityVertex as g, type GraphMiddlewareConfig as h, type SearchFilters as i, type SearchResponse as j, type SearchResult as k, addGraphExtension as l };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/be-sdk",
|
|
3
|
-
"version": "2026.1021.
|
|
3
|
+
"version": "2026.1021.4",
|
|
4
4
|
"description": "Backend SDK for Burdenoff products providing unified access to notifications, RBAC, activity tracking, usage monitoring, and more",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|