@burdenoff/be-sdk 2026.510.79
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/README.md +173 -0
- package/configs/eslint/index.js +492 -0
- package/configs/tsconfig/tsconfig.json +53 -0
- package/dist/EventQueueFactory-6NMSGECR.js +8 -0
- package/dist/EventQueueFactory-6NMSGECR.js.map +1 -0
- package/dist/auth/index.d.ts +66 -0
- package/dist/auth/index.js +8 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/cache/index.d.ts +2 -0
- package/dist/cache/index.js +6 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/captcha/index.d.ts +1 -0
- package/dist/captcha/index.js +4 -0
- package/dist/captcha/index.js.map +1 -0
- package/dist/chunk-2HANKZZM.js +245 -0
- package/dist/chunk-2HANKZZM.js.map +1 -0
- package/dist/chunk-2SD5L2F2.js +816 -0
- package/dist/chunk-2SD5L2F2.js.map +1 -0
- package/dist/chunk-3O2RQOPV.js +1068 -0
- package/dist/chunk-3O2RQOPV.js.map +1 -0
- package/dist/chunk-4B43DZIS.js +560 -0
- package/dist/chunk-4B43DZIS.js.map +1 -0
- package/dist/chunk-4XAEES25.js +2444 -0
- package/dist/chunk-4XAEES25.js.map +1 -0
- package/dist/chunk-4XGGWW36.js +1405 -0
- package/dist/chunk-4XGGWW36.js.map +1 -0
- package/dist/chunk-5LXDPGDH.js +245 -0
- package/dist/chunk-5LXDPGDH.js.map +1 -0
- package/dist/chunk-AI7L22ZJ.js +472 -0
- package/dist/chunk-AI7L22ZJ.js.map +1 -0
- package/dist/chunk-CBZNP6RF.js +286 -0
- package/dist/chunk-CBZNP6RF.js.map +1 -0
- package/dist/chunk-ELLX3K54.js +613 -0
- package/dist/chunk-ELLX3K54.js.map +1 -0
- package/dist/chunk-F5XEAGHQ.js +1875 -0
- package/dist/chunk-F5XEAGHQ.js.map +1 -0
- package/dist/chunk-FNZEQOJY.js +628 -0
- package/dist/chunk-FNZEQOJY.js.map +1 -0
- package/dist/chunk-GTEMQXCA.js +516 -0
- package/dist/chunk-GTEMQXCA.js.map +1 -0
- package/dist/chunk-HIWTWIGQ.js +226 -0
- package/dist/chunk-HIWTWIGQ.js.map +1 -0
- package/dist/chunk-IYE2NTRX.js +764 -0
- package/dist/chunk-IYE2NTRX.js.map +1 -0
- package/dist/chunk-J26YGR2U.js +1484 -0
- package/dist/chunk-J26YGR2U.js.map +1 -0
- package/dist/chunk-JG2FTZPI.js +509 -0
- package/dist/chunk-JG2FTZPI.js.map +1 -0
- package/dist/chunk-JVBTNSPG.js +1551 -0
- package/dist/chunk-JVBTNSPG.js.map +1 -0
- package/dist/chunk-L7ZMN2FJ.js +12 -0
- package/dist/chunk-L7ZMN2FJ.js.map +1 -0
- package/dist/chunk-M5IMU3US.js +473 -0
- package/dist/chunk-M5IMU3US.js.map +1 -0
- package/dist/chunk-MLW2HPS5.js +1267 -0
- package/dist/chunk-MLW2HPS5.js.map +1 -0
- package/dist/chunk-MNCGUYLJ.js +269 -0
- package/dist/chunk-MNCGUYLJ.js.map +1 -0
- package/dist/chunk-MOCUBSTW.js +373 -0
- package/dist/chunk-MOCUBSTW.js.map +1 -0
- package/dist/chunk-NGMEI42S.js +103 -0
- package/dist/chunk-NGMEI42S.js.map +1 -0
- package/dist/chunk-NUB5GQTU.js +270 -0
- package/dist/chunk-NUB5GQTU.js.map +1 -0
- package/dist/chunk-OVSYMNCI.js +145 -0
- package/dist/chunk-OVSYMNCI.js.map +1 -0
- package/dist/chunk-QLVKMWFA.js +94 -0
- package/dist/chunk-QLVKMWFA.js.map +1 -0
- package/dist/chunk-SAG6ZYWQ.js +89 -0
- package/dist/chunk-SAG6ZYWQ.js.map +1 -0
- package/dist/chunk-SAK2JCA7.js +198 -0
- package/dist/chunk-SAK2JCA7.js.map +1 -0
- package/dist/chunk-SBS4S2PJ.js +100 -0
- package/dist/chunk-SBS4S2PJ.js.map +1 -0
- package/dist/chunk-SNEOLWXT.js +148 -0
- package/dist/chunk-SNEOLWXT.js.map +1 -0
- package/dist/chunk-TKBD2ONF.js +564 -0
- package/dist/chunk-TKBD2ONF.js.map +1 -0
- package/dist/chunk-UBXFIIAW.js +127 -0
- package/dist/chunk-UBXFIIAW.js.map +1 -0
- package/dist/chunk-VI4VSNTI.js +57 -0
- package/dist/chunk-VI4VSNTI.js.map +1 -0
- package/dist/chunk-VWCN5PMD.js +268 -0
- package/dist/chunk-VWCN5PMD.js.map +1 -0
- package/dist/chunk-XC2YD6CF.js +913 -0
- package/dist/chunk-XC2YD6CF.js.map +1 -0
- package/dist/chunk-XE4OXN2W.js +10 -0
- package/dist/chunk-XE4OXN2W.js.map +1 -0
- package/dist/chunk-YMZEUTD2.js +110 -0
- package/dist/chunk-YMZEUTD2.js.map +1 -0
- package/dist/chunk-Z4IRLBWO.js +758 -0
- package/dist/chunk-Z4IRLBWO.js.map +1 -0
- package/dist/client/internal-client.d.ts +7 -0
- package/dist/client/internal-client.js +5 -0
- package/dist/client/internal-client.js.map +1 -0
- package/dist/client-CSjIrYKS.d.ts +77 -0
- package/dist/config-UKE2E3BW.js +4 -0
- package/dist/config-UKE2E3BW.js.map +1 -0
- package/dist/crypto/index.d.ts +1 -0
- package/dist/crypto/index.js +4 -0
- package/dist/crypto/index.js.map +1 -0
- package/dist/database/index.d.ts +117 -0
- package/dist/database/index.js +7 -0
- package/dist/database/index.js.map +1 -0
- package/dist/dataloader/index.d.ts +1 -0
- package/dist/dataloader/index.js +4 -0
- package/dist/dataloader/index.js.map +1 -0
- package/dist/esm-K6H7EIWK.js +1450 -0
- package/dist/esm-K6H7EIWK.js.map +1 -0
- package/dist/event-queue/index.d.ts +6 -0
- package/dist/event-queue/index.js +10 -0
- package/dist/event-queue/index.js.map +1 -0
- package/dist/export/index.d.ts +2 -0
- package/dist/export/index.js +9 -0
- package/dist/export/index.js.map +1 -0
- package/dist/feature-flags/index.d.ts +1 -0
- package/dist/feature-flags/index.js +4 -0
- package/dist/feature-flags/index.js.map +1 -0
- package/dist/gateway/index.d.ts +4 -0
- package/dist/gateway/index.js +8 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/security/index.d.ts +2 -0
- package/dist/gateway/security/index.js +5 -0
- package/dist/gateway/security/index.js.map +1 -0
- package/dist/graph/index.d.ts +9 -0
- package/dist/graph/index.js +13 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph-emitter-Bk0FqD53.d.ts +47 -0
- package/dist/graphql/index.d.ts +2 -0
- package/dist/graphql/index.js +7 -0
- package/dist/graphql/index.js.map +1 -0
- package/dist/graphql/services/index.d.ts +24 -0
- package/dist/graphql/services/index.js +5 -0
- package/dist/graphql/services/index.js.map +1 -0
- package/dist/graphql-BAVrUgBF.d.ts +22 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.js +5 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n-DA6IPnYy.d.ts +101 -0
- package/dist/index-4gKQKZ2B.d.ts +71 -0
- package/dist/index-B18rrFru.d.ts +42 -0
- package/dist/index-B70b5mYS.d.ts +33 -0
- package/dist/index-BMq3lFjj.d.ts +247 -0
- package/dist/index-BODgvRtL.d.ts +316 -0
- package/dist/index-BS2idbnr.d.ts +874 -0
- package/dist/index-BV3G48cH.d.ts +124 -0
- package/dist/index-CHbVw5M7.d.ts +73 -0
- package/dist/index-Cq_xNjcv.d.ts +602 -0
- package/dist/index-CrQgidpx.d.ts +77 -0
- package/dist/index-CyVEg86m.d.ts +309 -0
- package/dist/index-DOcBnmMe.d.ts +166 -0
- package/dist/index-DSOpj8DI.d.ts +17 -0
- package/dist/index-DW9q22GH.d.ts +75 -0
- package/dist/index-DlFDFyWD.d.ts +55 -0
- package/dist/index-DoK0bjhH.d.ts +607 -0
- package/dist/index-Dtf6FBaD.d.ts +199 -0
- package/dist/index-KVWGHMbS.d.ts +415 -0
- package/dist/index-PaojfSdd.d.ts +71 -0
- package/dist/index-RU_M5c74.d.ts +163 -0
- package/dist/index-UhkH2eaB.d.ts +192 -0
- package/dist/index-e_18DzAg.d.ts +18 -0
- package/dist/index-jOuh_TKn.d.ts +59 -0
- package/dist/index.d.ts +584 -0
- package/dist/index.js +2626 -0
- package/dist/index.js.map +1 -0
- package/dist/init/index.d.ts +2 -0
- package/dist/init/index.js +12 -0
- package/dist/init/index.js.map +1 -0
- package/dist/instrumentation/index.d.ts +3 -0
- package/dist/instrumentation/index.js +5 -0
- package/dist/instrumentation/index.js.map +1 -0
- package/dist/layer/index.d.ts +2 -0
- package/dist/layer/index.js +6 -0
- package/dist/layer/index.js.map +1 -0
- package/dist/layer-DDip18KY.d.ts +67 -0
- package/dist/logger/index.d.ts +2 -0
- package/dist/logger/index.js +4 -0
- package/dist/logger/index.js.map +1 -0
- package/dist/middleware/index.d.ts +3 -0
- package/dist/middleware/index.js +5 -0
- package/dist/middleware/index.js.map +1 -0
- package/dist/notifications/index.d.ts +4 -0
- package/dist/notifications/index.js +7 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/observability/index.d.ts +3 -0
- package/dist/observability/index.js +5 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/pino-logger-RYLGXPHZ.js +5 -0
- package/dist/pino-logger-RYLGXPHZ.js.map +1 -0
- package/dist/prisma/generator/index.d.ts +1 -0
- package/dist/prisma/generator/index.js +228 -0
- package/dist/prisma/generator/index.js.map +1 -0
- package/dist/prisma/index.d.ts +5 -0
- package/dist/prisma/index.js +12 -0
- package/dist/prisma/index.js.map +1 -0
- package/dist/prisma-extension-krXnYnrN.d.ts +30 -0
- package/dist/rbac/index.d.ts +116 -0
- package/dist/rbac/index.js +7 -0
- package/dist/rbac/index.js.map +1 -0
- package/dist/sdk-THO3IWEE.js +136 -0
- package/dist/sdk-THO3IWEE.js.map +1 -0
- package/dist/server/index.d.ts +359 -0
- package/dist/server/index.js +884 -0
- package/dist/server/index.js.map +1 -0
- package/dist/telemetry/index.d.ts +83 -0
- package/dist/telemetry/index.js +209 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/temporal/index.d.ts +148 -0
- package/dist/temporal/index.js +6 -0
- package/dist/temporal/index.js.map +1 -0
- package/dist/tracker/index.d.ts +5 -0
- package/dist/tracker/index.js +9 -0
- package/dist/tracker/index.js.map +1 -0
- package/dist/types-Bo2wkjSP.d.ts +35 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/workspace-guard-LHBNK4TG.js +5 -0
- package/dist/workspace-guard-LHBNK4TG.js.map +1 -0
- package/package.json +241 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Client, WorkflowHandle } from '@temporalio/client';
|
|
2
|
+
import { Duration } from '@temporalio/common';
|
|
3
|
+
import { S as ServiceLayer } from '../layer-DDip18KY.js';
|
|
4
|
+
|
|
5
|
+
type WorkflowSearchAttributes = Record<string, unknown>;
|
|
6
|
+
interface TemporalClientConfig {
|
|
7
|
+
address: string;
|
|
8
|
+
namespace: string;
|
|
9
|
+
taskQueue?: string;
|
|
10
|
+
connectionTimeout?: number;
|
|
11
|
+
tls?: boolean;
|
|
12
|
+
tlsOptions?: {
|
|
13
|
+
serverNameOverride?: string;
|
|
14
|
+
serverRootCACertificate?: Buffer;
|
|
15
|
+
clientCertPair?: {
|
|
16
|
+
crt: Buffer;
|
|
17
|
+
key: Buffer;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
interface WorkflowStartOptions<T extends unknown[] = unknown[]> {
|
|
22
|
+
workflowId: string;
|
|
23
|
+
taskQueue: string;
|
|
24
|
+
args?: T;
|
|
25
|
+
workflowExecutionTimeout?: Duration;
|
|
26
|
+
workflowRunTimeout?: Duration;
|
|
27
|
+
workflowTaskTimeout?: Duration;
|
|
28
|
+
cronSchedule?: string;
|
|
29
|
+
memo?: Record<string, unknown>;
|
|
30
|
+
searchAttributes?: WorkflowSearchAttributes;
|
|
31
|
+
}
|
|
32
|
+
declare class TemporalClient {
|
|
33
|
+
private client;
|
|
34
|
+
private connection;
|
|
35
|
+
private config;
|
|
36
|
+
private isConnected;
|
|
37
|
+
constructor(config: TemporalClientConfig);
|
|
38
|
+
connect(): Promise<Client>;
|
|
39
|
+
disconnect(): Promise<void>;
|
|
40
|
+
getClient(): Promise<Client>;
|
|
41
|
+
startWorkflow<T extends unknown[] = unknown[]>(workflowType: string, options: WorkflowStartOptions<T>): Promise<WorkflowHandle>;
|
|
42
|
+
executeWorkflow<T extends unknown[] = unknown[]>(workflowType: string, options: WorkflowStartOptions<T>): Promise<unknown>;
|
|
43
|
+
getWorkflowHandle(workflowId: string, runId?: string): Promise<WorkflowHandle>;
|
|
44
|
+
signalWorkflow(workflowId: string, signalName: string, args?: unknown[]): Promise<void>;
|
|
45
|
+
queryWorkflow(workflowId: string, queryName: string, args?: unknown[]): Promise<unknown>;
|
|
46
|
+
cancelWorkflow(workflowId: string): Promise<void>;
|
|
47
|
+
terminateWorkflow(workflowId: string, reason?: string): Promise<void>;
|
|
48
|
+
describeWorkflow(workflowId: string): Promise<unknown>;
|
|
49
|
+
getWorkflowResult(workflowId: string): Promise<unknown>;
|
|
50
|
+
isClientConnected(): boolean;
|
|
51
|
+
getConfig(): TemporalClientConfig;
|
|
52
|
+
}
|
|
53
|
+
declare class TemporalClientFactory {
|
|
54
|
+
static createWorkspaceClient(config?: Partial<TemporalClientConfig>): TemporalClient;
|
|
55
|
+
static createTenantClient(config?: Partial<TemporalClientConfig>): TemporalClient;
|
|
56
|
+
static createFromEnv(): TemporalClient;
|
|
57
|
+
static createClientForLayer(layer: ServiceLayer, serviceName: string, config?: Partial<TemporalClientConfig>): TemporalClient;
|
|
58
|
+
static createFromLayerEnv(serviceName: string): TemporalClient;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface TemporalWorkerConfig {
|
|
62
|
+
address: string;
|
|
63
|
+
namespace: string;
|
|
64
|
+
taskQueue: string;
|
|
65
|
+
workflowsPath: string;
|
|
66
|
+
activities?: Record<string, (...args: unknown[]) => Promise<unknown>>;
|
|
67
|
+
maxConcurrentWorkflowTaskExecutions?: number;
|
|
68
|
+
maxConcurrentActivityTaskExecutions?: number;
|
|
69
|
+
debugMode?: boolean;
|
|
70
|
+
tls?: {
|
|
71
|
+
serverNameOverride?: string;
|
|
72
|
+
serverRootCACertificate?: Buffer;
|
|
73
|
+
clientCertPair?: {
|
|
74
|
+
crt: Buffer;
|
|
75
|
+
key: Buffer;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
declare class TemporalWorker {
|
|
80
|
+
private worker;
|
|
81
|
+
private connection;
|
|
82
|
+
private config;
|
|
83
|
+
private isRunning;
|
|
84
|
+
constructor(config: TemporalWorkerConfig);
|
|
85
|
+
start(): Promise<void>;
|
|
86
|
+
stop(): Promise<void>;
|
|
87
|
+
isWorkerRunning(): boolean;
|
|
88
|
+
getConfig(): TemporalWorkerConfig;
|
|
89
|
+
}
|
|
90
|
+
declare class TemporalWorkerFactory {
|
|
91
|
+
static createWorkspaceWorker(config: {
|
|
92
|
+
workflowsPath: string;
|
|
93
|
+
activities?: Record<string, (...args: unknown[]) => Promise<unknown>>;
|
|
94
|
+
taskQueue?: string;
|
|
95
|
+
namespace?: string;
|
|
96
|
+
address?: string;
|
|
97
|
+
}): TemporalWorker;
|
|
98
|
+
static createTenantWorker(config: {
|
|
99
|
+
workflowsPath: string;
|
|
100
|
+
activities?: Record<string, (...args: unknown[]) => Promise<unknown>>;
|
|
101
|
+
taskQueue?: string;
|
|
102
|
+
namespace?: string;
|
|
103
|
+
address?: string;
|
|
104
|
+
}): TemporalWorker;
|
|
105
|
+
static createFromEnv(config: {
|
|
106
|
+
workflowsPath: string;
|
|
107
|
+
activities?: Record<string, (...args: unknown[]) => Promise<unknown>>;
|
|
108
|
+
}): TemporalWorker;
|
|
109
|
+
}
|
|
110
|
+
declare class TemporalWorkerManager {
|
|
111
|
+
private workers;
|
|
112
|
+
registerWorker(name: string, worker: TemporalWorker): void;
|
|
113
|
+
startAll(): Promise<void>;
|
|
114
|
+
stopAll(): Promise<void>;
|
|
115
|
+
getWorker(name: string): TemporalWorker | undefined;
|
|
116
|
+
removeWorker(name: string): boolean;
|
|
117
|
+
getWorkerNames(): string[];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
interface TemporalModuleConfig {
|
|
121
|
+
moduleType: 'workspace' | 'tenant';
|
|
122
|
+
address?: string;
|
|
123
|
+
namespace?: string;
|
|
124
|
+
taskQueue?: string;
|
|
125
|
+
autoConnect?: boolean;
|
|
126
|
+
}
|
|
127
|
+
declare class TemporalModule {
|
|
128
|
+
private client;
|
|
129
|
+
private workerManager;
|
|
130
|
+
private config;
|
|
131
|
+
constructor(config: TemporalModuleConfig);
|
|
132
|
+
private initialize;
|
|
133
|
+
getClient(): TemporalClient;
|
|
134
|
+
getWorkerManager(): TemporalWorkerManager;
|
|
135
|
+
createWorker(config: {
|
|
136
|
+
name: string;
|
|
137
|
+
workflowsPath: string;
|
|
138
|
+
activities?: Record<string, (...args: unknown[]) => Promise<unknown>>;
|
|
139
|
+
taskQueue?: string;
|
|
140
|
+
}): TemporalWorker;
|
|
141
|
+
startWorkers(): Promise<void>;
|
|
142
|
+
stopWorkers(): Promise<void>;
|
|
143
|
+
disconnect(): Promise<void>;
|
|
144
|
+
getConfig(): TemporalModuleConfig;
|
|
145
|
+
static fromEnv(): TemporalModule;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export { TemporalClient, type TemporalClientConfig, TemporalClientFactory, TemporalModule, TemporalWorker, type TemporalWorkerConfig, TemporalWorkerFactory, TemporalWorkerManager, type WorkflowStartOptions };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { TemporalClient, TemporalClientFactory, TemporalModule, TemporalWorker, TemporalWorkerFactory, TemporalWorkerManager } from '../chunk-Z4IRLBWO.js';
|
|
2
|
+
import '../chunk-NGMEI42S.js';
|
|
3
|
+
import '../chunk-CBZNP6RF.js';
|
|
4
|
+
import '../chunk-XE4OXN2W.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import '../graphql-BAVrUgBF.js';
|
|
2
|
+
import '../index-CHbVw5M7.js';
|
|
3
|
+
export { a as ActivityTrackingOptions, P as ProductTracker, R as RbacCheckOptions, b as TrackOptions, c as TrackResult, T as TrackerModule, d as TrackingEvent, e as UNIFIED_TRACKER_CONSTANTS, f as UnifiedTrackerStub, g as UnifiedTrackingOptions, h as UsageMetricType, i as UsageTrackingOptions, j as createProductTracker, t as trackOperation, k as trackerStub } from '../index-KVWGHMbS.js';
|
|
4
|
+
import '../index-CyVEg86m.js';
|
|
5
|
+
import 'graphql-request';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { TrackerModule, UNIFIED_TRACKER_CONSTANTS, UnifiedTrackerStub, UsageMetricType, createProductTracker, trackOperation, trackerStub } from '../chunk-JVBTNSPG.js';
|
|
2
|
+
import '../chunk-J26YGR2U.js';
|
|
3
|
+
import '../chunk-XC2YD6CF.js';
|
|
4
|
+
import '../chunk-SAG6ZYWQ.js';
|
|
5
|
+
import '../chunk-NGMEI42S.js';
|
|
6
|
+
import '../chunk-CBZNP6RF.js';
|
|
7
|
+
import '../chunk-XE4OXN2W.js';
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface MetricsMiddlewareConfig {
|
|
2
|
+
slowRequestThreshold?: number;
|
|
3
|
+
enableDetailedLogging?: boolean;
|
|
4
|
+
}
|
|
5
|
+
interface CSPDirectives {
|
|
6
|
+
defaultSrc?: string[];
|
|
7
|
+
scriptSrc?: string[];
|
|
8
|
+
styleSrc?: string[];
|
|
9
|
+
imgSrc?: string[];
|
|
10
|
+
connectSrc?: string[];
|
|
11
|
+
fontSrc?: string[];
|
|
12
|
+
frameSrc?: string[];
|
|
13
|
+
frameAncestors?: string[];
|
|
14
|
+
baseUri?: string[];
|
|
15
|
+
formAction?: string[];
|
|
16
|
+
upgradeInsecureRequests?: [] | null;
|
|
17
|
+
}
|
|
18
|
+
interface SecurityMiddlewareConfig {
|
|
19
|
+
csrfSkipRoutes?: string[];
|
|
20
|
+
loginEndpoints?: string[];
|
|
21
|
+
cspDirectives?: CSPDirectives;
|
|
22
|
+
enableCSRF?: boolean;
|
|
23
|
+
enableSessionSecurity?: boolean;
|
|
24
|
+
csrfTokenExpiry?: number;
|
|
25
|
+
helmetConfig?: {
|
|
26
|
+
crossOriginEmbedderPolicy?: boolean;
|
|
27
|
+
crossOriginResourcePolicy?: boolean;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
interface MiddlewareConfig {
|
|
31
|
+
metrics?: MetricsMiddlewareConfig;
|
|
32
|
+
security?: SecurityMiddlewareConfig;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type { CSPDirectives as C, MetricsMiddlewareConfig as M, SecurityMiddlewareConfig as S, MiddlewareConfig as a };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as chunk, a as compileValidatedPattern, d as debounce, b as deepMerge, f as formatBytes, g as generateUUID, e as groupBy, h as isNumberInRange, j as isStringLengthValid, k as isTokenExpired, l as isValidBase64, m as isValidEmail, n as isValidHexColor, o as isValidIPv4, p as isValidJSON, q as isValidPhone, r as isValidRegexPattern, s as isValidSlug, t as isValidUUID, u as isValidUrl, v as omit, w as parseJWT, x as pick, y as retry, z as sanitizeForLog, A as sleep, B as throttle, C as truncate, D as unique } from '../index-PaojfSdd.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { chunk, compileValidatedPattern, debounce, deepMerge, formatBytes, generateUUID, groupBy, isNumberInRange, isStringLengthValid, isTokenExpired, isValidBase64, isValidEmail, isValidHexColor, isValidIPv4, isValidJSON, isValidPhone, isValidRegexPattern, isValidSlug, isValidUUID, isValidUrl, omit, parseJWT, pick, retry, sanitizeForLog, sleep, throttle, truncate, unique } from '../chunk-MOCUBSTW.js';
|
|
2
|
+
import '../chunk-XE4OXN2W.js';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"workspace-guard-LHBNK4TG.js"}
|
package/package.json
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@burdenoff/be-sdk",
|
|
3
|
+
"version": "2026.510.79",
|
|
4
|
+
"description": "Backend SDK for Burdenoff products providing unified access to notifications, RBAC, activity tracking, usage monitoring, and more",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"bin": {
|
|
9
|
+
"burdenoff-prisma-field-generator": "./dist/prisma/generator/index.js"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./init": {
|
|
17
|
+
"types": "./dist/init/index.d.ts",
|
|
18
|
+
"import": "./dist/init/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./prisma": {
|
|
21
|
+
"types": "./dist/prisma/index.d.ts",
|
|
22
|
+
"import": "./dist/prisma/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./prisma/generator": {
|
|
25
|
+
"default": "./dist/prisma/generator/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./eslint": {
|
|
28
|
+
"default": "./configs/eslint/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./tsconfig": {
|
|
31
|
+
"default": "./configs/tsconfig/tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
"./graphql": {
|
|
34
|
+
"types": "./dist/graphql/index.d.ts",
|
|
35
|
+
"import": "./dist/graphql/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./graphql/services": {
|
|
38
|
+
"types": "./dist/graphql/services/index.d.ts",
|
|
39
|
+
"import": "./dist/graphql/services/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./client/internal": {
|
|
42
|
+
"types": "./dist/client/internal-client.d.ts",
|
|
43
|
+
"import": "./dist/client/internal-client.js"
|
|
44
|
+
},
|
|
45
|
+
"./gateway": {
|
|
46
|
+
"types": "./dist/gateway/index.d.ts",
|
|
47
|
+
"import": "./dist/gateway/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./gateway/security": {
|
|
50
|
+
"types": "./dist/gateway/security/index.d.ts",
|
|
51
|
+
"import": "./dist/gateway/security/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./*": {
|
|
54
|
+
"types": "./dist/*/index.d.ts",
|
|
55
|
+
"import": "./dist/*/index.js"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"files": [
|
|
59
|
+
"dist",
|
|
60
|
+
"configs",
|
|
61
|
+
"README.md",
|
|
62
|
+
"LICENSE"
|
|
63
|
+
],
|
|
64
|
+
"scripts": {
|
|
65
|
+
"deps:check": "bun scripts/deps-mode.ts check",
|
|
66
|
+
"deps:npm": "bun scripts/deps-mode.ts npm",
|
|
67
|
+
"deps:status": "bun scripts/deps-mode.ts status",
|
|
68
|
+
"deps:workspace": "bun scripts/deps-mode.ts workspace",
|
|
69
|
+
"dev": "tsx watch ./src/index.ts",
|
|
70
|
+
"build": "tsup src/index.ts src/init/index.ts src/logger/index.ts src/cache/index.ts src/database/index.ts src/event-queue/index.ts src/graph/index.ts src/middleware/index.ts src/observability/index.ts src/graphql/index.ts src/graphql/services/index.ts src/prisma/index.ts src/utils/index.ts src/notifications/index.ts src/tracker/index.ts src/export/index.ts src/dataloader/index.ts src/prisma/generator/index.ts src/server/index.ts src/i18n/index.ts src/instrumentation/index.ts src/rbac/index.ts src/temporal/index.ts src/client/internal-client.ts src/layer/index.ts src/gateway/index.ts src/gateway/security/index.ts src/crypto/index.ts src/feature-flags/index.ts src/telemetry/index.ts src/auth/index.ts src/captcha/index.ts --format esm --dts --clean --shims",
|
|
71
|
+
"build:watch": "tsup src/index.ts src/init/index.ts src/logger/index.ts src/cache/index.ts src/database/index.ts src/event-queue/index.ts src/graph/index.ts src/middleware/index.ts src/observability/index.ts src/graphql/index.ts src/graphql/services/index.ts src/prisma/index.ts src/utils/index.ts src/notifications/index.ts src/tracker/index.ts src/export/index.ts src/dataloader/index.ts src/prisma/generator/index.ts src/server/index.ts src/i18n/index.ts src/instrumentation/index.ts src/rbac/index.ts src/temporal/index.ts src/client/internal-client.ts src/layer/index.ts src/gateway/index.ts src/gateway/security/index.ts src/crypto/index.ts src/feature-flags/index.ts src/telemetry/index.ts src/auth/index.ts src/captcha/index.ts --format esm --dts --watch --shims",
|
|
72
|
+
"typecheck": "tsc --noEmit",
|
|
73
|
+
"lint": "eslint ./src",
|
|
74
|
+
"lint:sanity": "if [ \"${CI:-}\" = \"true\" ]; then bun run lint; else bun run lint -- --cache --cache-location .eslintcache; fi",
|
|
75
|
+
"lint:fix": "eslint ./src --fix",
|
|
76
|
+
"format": "bunx prettier --write \"src/**/*.ts\"",
|
|
77
|
+
"format:check": "bunx prettier --check \"src/**/*.ts\"",
|
|
78
|
+
"test": "bun test 2>/dev/null || echo 'No tests found or tests passed'",
|
|
79
|
+
"test:watch": "bun test --watch",
|
|
80
|
+
"test:coverage": "bun test --coverage",
|
|
81
|
+
"test:ci": "if ls src/**/*.test.ts 1>/dev/null 2>&1; then bun test; else echo 'No test files found, skipping'; fi",
|
|
82
|
+
"audit": "bunx better-npm-audit audit --level moderate 2>/dev/null || echo 'Audit completed (install better-npm-audit for detailed report)'",
|
|
83
|
+
"sanity": "bun run format:check && bun run lint:sanity && bun run typecheck && bun run build && bun run test:ci && bun run audit",
|
|
84
|
+
"prepublishOnly": "bun run build",
|
|
85
|
+
"pack:tgz": "mkdir -p dist && rm -rf dist/burdenoff-be-sdk.tgz && bun pm pack --filename dist/burdenoff-be-sdk.tgz"
|
|
86
|
+
},
|
|
87
|
+
"keywords": [
|
|
88
|
+
"burdenoff",
|
|
89
|
+
"sdk",
|
|
90
|
+
"backend",
|
|
91
|
+
"graphql",
|
|
92
|
+
"notifications",
|
|
93
|
+
"rbac",
|
|
94
|
+
"activity",
|
|
95
|
+
"usage",
|
|
96
|
+
"tracking",
|
|
97
|
+
"multi-tenant"
|
|
98
|
+
],
|
|
99
|
+
"author": "Vignesh T.V <vignesh@burdenoff.com>",
|
|
100
|
+
"license": "PROPRIETARY",
|
|
101
|
+
"repository": {
|
|
102
|
+
"type": "git",
|
|
103
|
+
"url": "git+https://github.com/algoshred/burdenoff-be-sdk-node.git"
|
|
104
|
+
},
|
|
105
|
+
"bugs": {
|
|
106
|
+
"url": "https://github.com/algoshred/burdenoff-be-sdk-node/issues"
|
|
107
|
+
},
|
|
108
|
+
"homepage": "https://github.com/algoshred/burdenoff-be-sdk-node#readme",
|
|
109
|
+
"engines": {
|
|
110
|
+
"node": ">=20.0.0",
|
|
111
|
+
"bun": ">=1.3.10"
|
|
112
|
+
},
|
|
113
|
+
"dependencies": {
|
|
114
|
+
"@graphql-yoga/logger": "^2.0.1",
|
|
115
|
+
"@prisma/generator-helper": "^7.2.0",
|
|
116
|
+
"@sinclair/typebox": "^0.34.45"
|
|
117
|
+
},
|
|
118
|
+
"peerDependencies": {
|
|
119
|
+
"@clickhouse/client": "^1.14.0",
|
|
120
|
+
"@elysiajs/cors": "^1.4.0",
|
|
121
|
+
"@graphql-yoga/plugin-apollo-inline-trace": "^3.17.1",
|
|
122
|
+
"@graphql-yoga/plugin-prometheus": "^6.12.1",
|
|
123
|
+
"@prisma/adapter-pg": "^7.0.1",
|
|
124
|
+
"@prisma/client": "^7.0.1",
|
|
125
|
+
"@temporalio/activity": ">=1.0.0",
|
|
126
|
+
"@temporalio/client": ">=1.0.0",
|
|
127
|
+
"@temporalio/common": ">=1.0.0",
|
|
128
|
+
"@temporalio/worker": ">=1.0.0",
|
|
129
|
+
"@temporalio/workflow": ">=1.0.0",
|
|
130
|
+
"arangojs": "^10.1.2",
|
|
131
|
+
"elysia": "^1.4.26",
|
|
132
|
+
"graphql": "16.12.0",
|
|
133
|
+
"graphql-request": "^7.3.5",
|
|
134
|
+
"graphql-yoga": "^5.17.0",
|
|
135
|
+
"@valkey/valkey-glide": "^2.2.6",
|
|
136
|
+
"jose": "^6.1.2",
|
|
137
|
+
"jsonwebtoken": "^9.0.2",
|
|
138
|
+
"nats": "^2.29.3",
|
|
139
|
+
"pg": "^8.16.3",
|
|
140
|
+
"prom-client": "^15.1.3",
|
|
141
|
+
"reflect-metadata": "^0.2.2"
|
|
142
|
+
},
|
|
143
|
+
"peerDependenciesMeta": {
|
|
144
|
+
"@clickhouse/client": {
|
|
145
|
+
"optional": true
|
|
146
|
+
},
|
|
147
|
+
"@graphql-yoga/plugin-apollo-inline-trace": {
|
|
148
|
+
"optional": true
|
|
149
|
+
},
|
|
150
|
+
"@graphql-yoga/plugin-prometheus": {
|
|
151
|
+
"optional": true
|
|
152
|
+
},
|
|
153
|
+
"prom-client": {
|
|
154
|
+
"optional": true
|
|
155
|
+
},
|
|
156
|
+
"arangojs": {
|
|
157
|
+
"optional": true
|
|
158
|
+
},
|
|
159
|
+
"@prisma/adapter-pg": {
|
|
160
|
+
"optional": true
|
|
161
|
+
},
|
|
162
|
+
"jose": {
|
|
163
|
+
"optional": true
|
|
164
|
+
},
|
|
165
|
+
"jsonwebtoken": {
|
|
166
|
+
"optional": true
|
|
167
|
+
},
|
|
168
|
+
"@temporalio/client": {
|
|
169
|
+
"optional": true
|
|
170
|
+
},
|
|
171
|
+
"@temporalio/common": {
|
|
172
|
+
"optional": true
|
|
173
|
+
},
|
|
174
|
+
"@temporalio/worker": {
|
|
175
|
+
"optional": true
|
|
176
|
+
},
|
|
177
|
+
"@temporalio/workflow": {
|
|
178
|
+
"optional": true
|
|
179
|
+
},
|
|
180
|
+
"@temporalio/activity": {
|
|
181
|
+
"optional": true
|
|
182
|
+
},
|
|
183
|
+
"@valkey/valkey-glide": {
|
|
184
|
+
"optional": true
|
|
185
|
+
},
|
|
186
|
+
"reflect-metadata": {
|
|
187
|
+
"optional": true
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"devDependencies": {
|
|
191
|
+
"@clickhouse/client": "^1.15.0",
|
|
192
|
+
"@elysiajs/cors": "^1.4.1",
|
|
193
|
+
"@temporalio/client": "^1.11.7",
|
|
194
|
+
"@temporalio/common": "^1.11.7",
|
|
195
|
+
"@temporalio/worker": "^1.11.7",
|
|
196
|
+
"graphql": "16.12.0",
|
|
197
|
+
"@eslint/js": "^9.39.2",
|
|
198
|
+
"@graphql-yoga/plugin-apollo-inline-trace": "^3.18.0",
|
|
199
|
+
"@graphql-yoga/plugin-prometheus": "^6.13.0",
|
|
200
|
+
"@prisma/adapter-pg": "^7.2.0",
|
|
201
|
+
"@prisma/client": "^7.2.0",
|
|
202
|
+
"@swc/core": "^1.15.8",
|
|
203
|
+
"@types/bun": "^1.3.9",
|
|
204
|
+
"@types/jsonwebtoken": "^9.0.10",
|
|
205
|
+
"@types/node": "^25.0.3",
|
|
206
|
+
"@types/pg": "^8.16.0",
|
|
207
|
+
"arangojs": "^10.1.2",
|
|
208
|
+
"elysia": "^1.4.26",
|
|
209
|
+
"eslint": "^9.39.2",
|
|
210
|
+
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
211
|
+
"eslint-plugin-import": "^2.32.0",
|
|
212
|
+
"eslint-plugin-security": "^3.0.1",
|
|
213
|
+
"eslint-plugin-sonarjs": "^3.0.5",
|
|
214
|
+
"globals": "^16.5.0",
|
|
215
|
+
"@valkey/valkey-glide": "^2.2.6",
|
|
216
|
+
"jose": "^6.1.3",
|
|
217
|
+
"jsonwebtoken": "^9.0.3",
|
|
218
|
+
"lefthook": "^2.1.1",
|
|
219
|
+
"nats": "^2.29.3",
|
|
220
|
+
"pg": "^8.16.3",
|
|
221
|
+
"prettier": "^3.7.4",
|
|
222
|
+
"prisma": "^7.2.0",
|
|
223
|
+
"prom-client": "^15.1.3",
|
|
224
|
+
"tsup": "^8.5.1",
|
|
225
|
+
"tsx": "^4.21.0",
|
|
226
|
+
"typescript": "^5.9.3",
|
|
227
|
+
"typescript-eslint": "^8.51.0"
|
|
228
|
+
},
|
|
229
|
+
"publishConfig": {
|
|
230
|
+
"access": "restricted"
|
|
231
|
+
},
|
|
232
|
+
"overrides": {
|
|
233
|
+
"hono": "4.10.7",
|
|
234
|
+
"valibot": "1.2.0",
|
|
235
|
+
"protobufjs": "7.5.5",
|
|
236
|
+
"serialize-javascript": "7.0.3"
|
|
237
|
+
},
|
|
238
|
+
"resolutions": {
|
|
239
|
+
"graphql": "16.12.0"
|
|
240
|
+
}
|
|
241
|
+
}
|