@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,309 @@
|
|
|
1
|
+
import { B as BurdenoffGraphQLClient } from './graphql-BAVrUgBF.js';
|
|
2
|
+
import { S as SDKContext } from './index-CHbVw5M7.js';
|
|
3
|
+
|
|
4
|
+
declare enum NotificationChannel$1 {
|
|
5
|
+
EMAIL = "EMAIL",
|
|
6
|
+
SMS = "SMS",
|
|
7
|
+
PUSH = "PUSH",
|
|
8
|
+
IN_APP = "IN_APP",
|
|
9
|
+
WEBHOOK = "WEBHOOK",
|
|
10
|
+
WHATSAPP = "WHATSAPP",
|
|
11
|
+
TEAMS = "TEAMS",
|
|
12
|
+
SLACK = "SLACK",
|
|
13
|
+
TELEGRAM = "TELEGRAM",
|
|
14
|
+
DISCORD = "DISCORD"
|
|
15
|
+
}
|
|
16
|
+
declare enum NotificationPriority {
|
|
17
|
+
LOW = "LOW",
|
|
18
|
+
MEDIUM = "MEDIUM",
|
|
19
|
+
HIGH = "HIGH",
|
|
20
|
+
URGENT = "URGENT"
|
|
21
|
+
}
|
|
22
|
+
declare enum NotificationType$1 {
|
|
23
|
+
TRANSACTIONAL = "TRANSACTIONAL",
|
|
24
|
+
MARKETING = "MARKETING",
|
|
25
|
+
SYSTEM = "SYSTEM",
|
|
26
|
+
ALERT = "ALERT"
|
|
27
|
+
}
|
|
28
|
+
interface RecipientInput$1 {
|
|
29
|
+
userId?: string;
|
|
30
|
+
email?: string;
|
|
31
|
+
phoneNumber?: string;
|
|
32
|
+
pushToken?: string;
|
|
33
|
+
whatsappNumber?: string;
|
|
34
|
+
teamsUserId?: string;
|
|
35
|
+
slackUserId?: string;
|
|
36
|
+
webhookUrl?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
locale?: string;
|
|
39
|
+
timezone?: string;
|
|
40
|
+
}
|
|
41
|
+
interface SendNotificationInput {
|
|
42
|
+
recipient: RecipientInput$1;
|
|
43
|
+
channel: NotificationChannel$1;
|
|
44
|
+
type?: NotificationType$1;
|
|
45
|
+
priority?: NotificationPriority;
|
|
46
|
+
subject?: string;
|
|
47
|
+
body: string;
|
|
48
|
+
htmlBody?: string;
|
|
49
|
+
data?: Record<string, unknown>;
|
|
50
|
+
metadata?: Record<string, unknown>;
|
|
51
|
+
scheduledFor?: Date;
|
|
52
|
+
expiresAt?: Date;
|
|
53
|
+
trackOpens?: boolean;
|
|
54
|
+
trackClicks?: boolean;
|
|
55
|
+
}
|
|
56
|
+
interface SendWithTemplateInput {
|
|
57
|
+
templateSlug: string;
|
|
58
|
+
variables: Record<string, unknown>;
|
|
59
|
+
recipient: RecipientInput$1;
|
|
60
|
+
priority?: NotificationPriority;
|
|
61
|
+
scheduledFor?: Date;
|
|
62
|
+
expiresAt?: Date;
|
|
63
|
+
trackOpens?: boolean;
|
|
64
|
+
trackClicks?: boolean;
|
|
65
|
+
channelId?: string;
|
|
66
|
+
platform?: NotificationChannel$1;
|
|
67
|
+
timezone?: string;
|
|
68
|
+
}
|
|
69
|
+
interface BatchNotificationInput {
|
|
70
|
+
notifications: SendNotificationInput[];
|
|
71
|
+
batchSize?: number;
|
|
72
|
+
delayBetweenBatches?: number;
|
|
73
|
+
priority?: NotificationPriority;
|
|
74
|
+
}
|
|
75
|
+
interface Notification$1 {
|
|
76
|
+
id: string;
|
|
77
|
+
userId: string;
|
|
78
|
+
channel: NotificationChannel$1;
|
|
79
|
+
type: NotificationType$1;
|
|
80
|
+
priority: NotificationPriority;
|
|
81
|
+
status: string;
|
|
82
|
+
deliveryStatus?: string;
|
|
83
|
+
title: string;
|
|
84
|
+
message: string;
|
|
85
|
+
htmlMessage?: string;
|
|
86
|
+
subject?: string;
|
|
87
|
+
recipientEmail?: string;
|
|
88
|
+
recipientPhone?: string;
|
|
89
|
+
trackOpens: boolean;
|
|
90
|
+
trackClicks: boolean;
|
|
91
|
+
openedAt?: string;
|
|
92
|
+
clickedAt?: string;
|
|
93
|
+
sentAt?: string;
|
|
94
|
+
deliveredAt?: string;
|
|
95
|
+
createdAt: string;
|
|
96
|
+
updatedAt: string;
|
|
97
|
+
}
|
|
98
|
+
interface NotificationTemplate {
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
slug: string;
|
|
102
|
+
description?: string;
|
|
103
|
+
channel: NotificationChannel$1;
|
|
104
|
+
type: NotificationType$1;
|
|
105
|
+
locale: string;
|
|
106
|
+
subject?: string;
|
|
107
|
+
bodyTemplate: string;
|
|
108
|
+
htmlTemplate?: string;
|
|
109
|
+
variables: Array<{
|
|
110
|
+
name: string;
|
|
111
|
+
type: string;
|
|
112
|
+
required: boolean;
|
|
113
|
+
defaultValue?: unknown;
|
|
114
|
+
description?: string;
|
|
115
|
+
example?: unknown;
|
|
116
|
+
}>;
|
|
117
|
+
enabled: boolean;
|
|
118
|
+
version: number;
|
|
119
|
+
createdAt: string;
|
|
120
|
+
updatedAt: string;
|
|
121
|
+
}
|
|
122
|
+
interface NotificationStats {
|
|
123
|
+
total: number;
|
|
124
|
+
pending: number;
|
|
125
|
+
queued: number;
|
|
126
|
+
processing: number;
|
|
127
|
+
sent: number;
|
|
128
|
+
delivered: number;
|
|
129
|
+
failed: number;
|
|
130
|
+
byChannel: Record<string, number>;
|
|
131
|
+
byType: Record<string, number>;
|
|
132
|
+
}
|
|
133
|
+
declare class TenantNotificationsModule {
|
|
134
|
+
private client;
|
|
135
|
+
private context;
|
|
136
|
+
constructor(client: BurdenoffGraphQLClient, context: SDKContext);
|
|
137
|
+
send(input: SendNotificationInput): Promise<string>;
|
|
138
|
+
sendWithTemplate(input: SendWithTemplateInput): Promise<string>;
|
|
139
|
+
sendBatch(input: BatchNotificationInput): Promise<{
|
|
140
|
+
totalRequested: number;
|
|
141
|
+
totalQueued: number;
|
|
142
|
+
totalFailed: number;
|
|
143
|
+
batchId: string;
|
|
144
|
+
}>;
|
|
145
|
+
getNotification(id: string): Promise<Notification$1 | null>;
|
|
146
|
+
getNotifications(filter?: {
|
|
147
|
+
userId?: string;
|
|
148
|
+
channel?: NotificationChannel$1;
|
|
149
|
+
type?: NotificationType$1;
|
|
150
|
+
status?: string;
|
|
151
|
+
priority?: NotificationPriority;
|
|
152
|
+
startDate?: Date;
|
|
153
|
+
endDate?: Date;
|
|
154
|
+
limit?: number;
|
|
155
|
+
offset?: number;
|
|
156
|
+
}): Promise<Notification$1[]>;
|
|
157
|
+
getTemplate(slug: string, locale?: string): Promise<NotificationTemplate | null>;
|
|
158
|
+
getTemplates(filter?: {
|
|
159
|
+
channel?: NotificationChannel$1;
|
|
160
|
+
type?: NotificationType$1;
|
|
161
|
+
enabled?: boolean;
|
|
162
|
+
}): Promise<NotificationTemplate[]>;
|
|
163
|
+
getStats(filter?: {
|
|
164
|
+
userId?: string;
|
|
165
|
+
startDate?: Date;
|
|
166
|
+
endDate?: Date;
|
|
167
|
+
}): Promise<NotificationStats>;
|
|
168
|
+
markAsRead(notificationIds: string[]): Promise<boolean>;
|
|
169
|
+
markAllAsRead(): Promise<boolean>;
|
|
170
|
+
deleteNotifications(notificationIds: string[]): Promise<boolean>;
|
|
171
|
+
deleteAllReadNotifications(): Promise<boolean>;
|
|
172
|
+
private validateSendInput;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
type tenantNotifications_BatchNotificationInput = BatchNotificationInput;
|
|
176
|
+
type tenantNotifications_NotificationPriority = NotificationPriority;
|
|
177
|
+
declare const tenantNotifications_NotificationPriority: typeof NotificationPriority;
|
|
178
|
+
type tenantNotifications_NotificationStats = NotificationStats;
|
|
179
|
+
type tenantNotifications_NotificationTemplate = NotificationTemplate;
|
|
180
|
+
type tenantNotifications_SendNotificationInput = SendNotificationInput;
|
|
181
|
+
type tenantNotifications_SendWithTemplateInput = SendWithTemplateInput;
|
|
182
|
+
type tenantNotifications_TenantNotificationsModule = TenantNotificationsModule;
|
|
183
|
+
declare const tenantNotifications_TenantNotificationsModule: typeof TenantNotificationsModule;
|
|
184
|
+
declare namespace tenantNotifications {
|
|
185
|
+
export { type tenantNotifications_BatchNotificationInput as BatchNotificationInput, type Notification$1 as Notification, NotificationChannel$1 as NotificationChannel, tenantNotifications_NotificationPriority as NotificationPriority, type tenantNotifications_NotificationStats as NotificationStats, type tenantNotifications_NotificationTemplate as NotificationTemplate, NotificationType$1 as NotificationType, type RecipientInput$1 as RecipientInput, type tenantNotifications_SendNotificationInput as SendNotificationInput, type tenantNotifications_SendWithTemplateInput as SendWithTemplateInput, tenantNotifications_TenantNotificationsModule as TenantNotificationsModule };
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
declare enum NotificationType {
|
|
189
|
+
INFO = "info",
|
|
190
|
+
SUCCESS = "success",
|
|
191
|
+
WARNING = "warning",
|
|
192
|
+
ERROR = "error"
|
|
193
|
+
}
|
|
194
|
+
declare enum NotificationChannel {
|
|
195
|
+
EMAIL = "EMAIL",
|
|
196
|
+
SMS = "SMS",
|
|
197
|
+
WHATSAPP = "WHATSAPP",
|
|
198
|
+
PUSH = "PUSH",
|
|
199
|
+
SLACK = "SLACK",
|
|
200
|
+
TEAMS = "TEAMS",
|
|
201
|
+
WEBHOOK = "WEBHOOK"
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
interface SendNotificationOptions {
|
|
205
|
+
title: string;
|
|
206
|
+
message: string;
|
|
207
|
+
type?: NotificationType;
|
|
208
|
+
userIds: string[];
|
|
209
|
+
redirectUrl?: string;
|
|
210
|
+
appName?: string;
|
|
211
|
+
email?: boolean;
|
|
212
|
+
sms?: boolean;
|
|
213
|
+
}
|
|
214
|
+
interface NotificationResponse {
|
|
215
|
+
successCount: number;
|
|
216
|
+
failureCount: number;
|
|
217
|
+
errors: string[];
|
|
218
|
+
notificationIds?: string[];
|
|
219
|
+
}
|
|
220
|
+
interface GetNotificationsOptions {
|
|
221
|
+
userId: string;
|
|
222
|
+
status?: 'unread' | 'read' | 'all';
|
|
223
|
+
type?: NotificationType;
|
|
224
|
+
appName?: string;
|
|
225
|
+
search?: string;
|
|
226
|
+
limit?: number;
|
|
227
|
+
offset?: number;
|
|
228
|
+
}
|
|
229
|
+
interface Notification {
|
|
230
|
+
id: string;
|
|
231
|
+
userId: string;
|
|
232
|
+
title: string;
|
|
233
|
+
message: string;
|
|
234
|
+
type: NotificationType;
|
|
235
|
+
status: 'unread' | 'read';
|
|
236
|
+
redirectUrl?: string;
|
|
237
|
+
appName?: string;
|
|
238
|
+
createdAt: string;
|
|
239
|
+
updatedAt: string;
|
|
240
|
+
}
|
|
241
|
+
interface RecipientInput {
|
|
242
|
+
email?: string;
|
|
243
|
+
locale?: string;
|
|
244
|
+
name?: string;
|
|
245
|
+
phoneNumber?: string;
|
|
246
|
+
pushToken?: string;
|
|
247
|
+
slackUserId?: string;
|
|
248
|
+
teamsUserId?: string;
|
|
249
|
+
timezone?: string;
|
|
250
|
+
userId?: string;
|
|
251
|
+
webhookUrl?: string;
|
|
252
|
+
whatsappNumber?: string;
|
|
253
|
+
}
|
|
254
|
+
interface SendChannelNotificationOptions {
|
|
255
|
+
platform: NotificationChannel;
|
|
256
|
+
recipient: RecipientInput;
|
|
257
|
+
recipients?: RecipientInput[];
|
|
258
|
+
subject?: string;
|
|
259
|
+
body: string;
|
|
260
|
+
htmlBody?: string;
|
|
261
|
+
type?: NotificationType;
|
|
262
|
+
appName?: string;
|
|
263
|
+
redirectUrl?: string;
|
|
264
|
+
includeInApp?: boolean;
|
|
265
|
+
userIds?: string[];
|
|
266
|
+
metadata?: Record<string, unknown>;
|
|
267
|
+
trackOpens?: boolean;
|
|
268
|
+
trackClicks?: boolean;
|
|
269
|
+
expiresAt?: Date;
|
|
270
|
+
channelId?: string;
|
|
271
|
+
}
|
|
272
|
+
interface SendTemplateNotificationOptions {
|
|
273
|
+
platform: NotificationChannel;
|
|
274
|
+
templateSlug: string;
|
|
275
|
+
variables: Record<string, unknown>;
|
|
276
|
+
recipient?: RecipientInput;
|
|
277
|
+
recipients?: RecipientInput[];
|
|
278
|
+
includeInApp?: boolean;
|
|
279
|
+
userIds?: string[];
|
|
280
|
+
appName?: string;
|
|
281
|
+
trackOpens?: boolean;
|
|
282
|
+
trackClicks?: boolean;
|
|
283
|
+
expiresAt?: Date;
|
|
284
|
+
scheduledFor?: Date;
|
|
285
|
+
timezone?: string;
|
|
286
|
+
channelId?: string;
|
|
287
|
+
}
|
|
288
|
+
declare class NotificationsModule {
|
|
289
|
+
private client;
|
|
290
|
+
private context;
|
|
291
|
+
constructor(client: BurdenoffGraphQLClient, context: SDKContext);
|
|
292
|
+
send(options: SendNotificationOptions): Promise<NotificationResponse>;
|
|
293
|
+
sendToUser(userId: string, title: string, message: string, options?: Omit<SendNotificationOptions, 'userIds' | 'title' | 'message'>): Promise<NotificationResponse>;
|
|
294
|
+
getNotifications(options: GetNotificationsOptions): Promise<{
|
|
295
|
+
notifications: Notification[];
|
|
296
|
+
total: number;
|
|
297
|
+
unreadCount: number;
|
|
298
|
+
}>;
|
|
299
|
+
markAsRead(notificationId: string): Promise<boolean>;
|
|
300
|
+
markMultipleAsRead(notificationIds: string[]): Promise<number>;
|
|
301
|
+
markAllAsRead(): Promise<number>;
|
|
302
|
+
deleteNotification(notificationId: string): Promise<boolean>;
|
|
303
|
+
deleteMultiple(notificationIds: string[]): Promise<number>;
|
|
304
|
+
getUnreadCount(userId: string): Promise<number>;
|
|
305
|
+
sendChannelNotification(options: SendChannelNotificationOptions): Promise<NotificationResponse>;
|
|
306
|
+
sendTemplateNotification(options: SendTemplateNotificationOptions): Promise<NotificationResponse>;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export { type GetNotificationsOptions as G, NotificationType as N, type RecipientInput as R, type SendChannelNotificationOptions as S, TenantNotificationsModule as T, NotificationsModule as a, type Notification as b, NotificationChannel as c, NotificationPriority as d, type NotificationResponse as e, type SendNotificationOptions as f, type SendTemplateNotificationOptions as g, tenantNotifications as t };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { S as ServiceLayer } from './layer-DDip18KY.js';
|
|
2
|
+
|
|
3
|
+
interface DatabaseConfig {
|
|
4
|
+
url: string;
|
|
5
|
+
maxConnections?: number;
|
|
6
|
+
idleTimeoutMillis?: number;
|
|
7
|
+
connectionTimeoutMillis?: number;
|
|
8
|
+
enableQueryLogging?: boolean;
|
|
9
|
+
slowQueryThreshold?: number;
|
|
10
|
+
migrationsPath?: string;
|
|
11
|
+
}
|
|
12
|
+
interface LoggingConfig {
|
|
13
|
+
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
14
|
+
format?: 'json' | 'pretty';
|
|
15
|
+
console?: boolean;
|
|
16
|
+
structured?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface GraphSyncConfig {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
eventsEnabled?: boolean;
|
|
21
|
+
syncInterval?: number;
|
|
22
|
+
batchSize?: number;
|
|
23
|
+
consumerGroup?: string;
|
|
24
|
+
productSource?: string;
|
|
25
|
+
streamName?: string;
|
|
26
|
+
}
|
|
27
|
+
interface SDKValkeyCacheConfig {
|
|
28
|
+
url: string;
|
|
29
|
+
password?: string;
|
|
30
|
+
defaultTTL?: number;
|
|
31
|
+
db?: number;
|
|
32
|
+
keyPrefix?: string;
|
|
33
|
+
maxMemoryPolicy?: string;
|
|
34
|
+
}
|
|
35
|
+
interface ClickHouseConfig {
|
|
36
|
+
url: string;
|
|
37
|
+
database: string;
|
|
38
|
+
username?: string;
|
|
39
|
+
password?: string;
|
|
40
|
+
requestTimeout?: number;
|
|
41
|
+
maxConnections?: number;
|
|
42
|
+
compression?: boolean;
|
|
43
|
+
}
|
|
44
|
+
interface NATSConfig {
|
|
45
|
+
url?: string;
|
|
46
|
+
servers?: string | string[];
|
|
47
|
+
user?: string;
|
|
48
|
+
password?: string;
|
|
49
|
+
token?: string;
|
|
50
|
+
maxReconnectAttempts?: number;
|
|
51
|
+
reconnectTimeWait?: number;
|
|
52
|
+
tls?: {
|
|
53
|
+
certFile?: string;
|
|
54
|
+
keyFile?: string;
|
|
55
|
+
caFile?: string;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
interface MetricsConfig {
|
|
59
|
+
enabled?: boolean;
|
|
60
|
+
port?: number;
|
|
61
|
+
endpoint?: string;
|
|
62
|
+
defaultMetrics?: boolean;
|
|
63
|
+
collectInterval?: number;
|
|
64
|
+
}
|
|
65
|
+
interface OpenTelemetryConfig {
|
|
66
|
+
enabled?: boolean;
|
|
67
|
+
serviceName?: string;
|
|
68
|
+
exporterEndpoint?: string;
|
|
69
|
+
samplingRate?: number;
|
|
70
|
+
consoleExporter?: boolean;
|
|
71
|
+
}
|
|
72
|
+
interface ObservabilityConfig {
|
|
73
|
+
metrics?: MetricsConfig;
|
|
74
|
+
openTelemetry?: OpenTelemetryConfig;
|
|
75
|
+
}
|
|
76
|
+
interface SDKCacheConfig {
|
|
77
|
+
valkey?: SDKValkeyCacheConfig;
|
|
78
|
+
localMaxSize?: number;
|
|
79
|
+
localTTL?: number;
|
|
80
|
+
}
|
|
81
|
+
interface AnalyticsConfig {
|
|
82
|
+
clickhouse?: ClickHouseConfig;
|
|
83
|
+
valkeyDb?: number;
|
|
84
|
+
eventMaxPropertiesSize?: number;
|
|
85
|
+
eventMaxBatchSize?: number;
|
|
86
|
+
rateLimitEnabled?: boolean;
|
|
87
|
+
rateLimitPerMinute?: number;
|
|
88
|
+
rateLimitPerHour?: number;
|
|
89
|
+
samplingEnabled?: boolean;
|
|
90
|
+
samplingRate?: number;
|
|
91
|
+
}
|
|
92
|
+
interface EventQueueConfig {
|
|
93
|
+
nats?: NATSConfig;
|
|
94
|
+
useNATSPubSub?: boolean;
|
|
95
|
+
defaultStreams?: {
|
|
96
|
+
name: string;
|
|
97
|
+
subjects: string[];
|
|
98
|
+
retention?: 'limits' | 'interest' | 'workqueue';
|
|
99
|
+
storage?: 'file' | 'memory';
|
|
100
|
+
maxAge?: number;
|
|
101
|
+
maxBytes?: number;
|
|
102
|
+
}[];
|
|
103
|
+
}
|
|
104
|
+
interface LayerInitConfig {
|
|
105
|
+
type: ServiceLayer;
|
|
106
|
+
serviceName: string;
|
|
107
|
+
serviceIdentity?: string;
|
|
108
|
+
autoCreateStreams?: boolean;
|
|
109
|
+
}
|
|
110
|
+
interface BurdenoffSDKInitConfig {
|
|
111
|
+
database: DatabaseConfig;
|
|
112
|
+
layer?: LayerInitConfig;
|
|
113
|
+
logging?: LoggingConfig;
|
|
114
|
+
graph?: GraphSyncConfig;
|
|
115
|
+
cache?: SDKCacheConfig;
|
|
116
|
+
analytics?: AnalyticsConfig;
|
|
117
|
+
eventQueue?: EventQueueConfig;
|
|
118
|
+
observability?: ObservabilityConfig;
|
|
119
|
+
app?: {
|
|
120
|
+
nodeEnv?: string;
|
|
121
|
+
serviceName?: string;
|
|
122
|
+
version?: string;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
interface InitializedSDKState {
|
|
126
|
+
prisma?: unknown;
|
|
127
|
+
valkey?: unknown;
|
|
128
|
+
clickhouse?: unknown;
|
|
129
|
+
nats?: unknown;
|
|
130
|
+
layerManager?: unknown;
|
|
131
|
+
gatewayClient?: unknown;
|
|
132
|
+
graphSyncEnabled: boolean;
|
|
133
|
+
analyticsEnabled: boolean;
|
|
134
|
+
observabilityEnabled: boolean;
|
|
135
|
+
layerAwareEnabled: boolean;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
declare function initializeBurdenoffSDK(config: BurdenoffSDKInitConfig): Promise<InitializedSDKState>;
|
|
139
|
+
declare function getSDKState(): InitializedSDKState;
|
|
140
|
+
declare function isSDKInitialized(): boolean;
|
|
141
|
+
declare function resetSDK(): Promise<void>;
|
|
142
|
+
|
|
143
|
+
type index_AnalyticsConfig = AnalyticsConfig;
|
|
144
|
+
type index_BurdenoffSDKInitConfig = BurdenoffSDKInitConfig;
|
|
145
|
+
type index_ClickHouseConfig = ClickHouseConfig;
|
|
146
|
+
type index_DatabaseConfig = DatabaseConfig;
|
|
147
|
+
type index_EventQueueConfig = EventQueueConfig;
|
|
148
|
+
type index_GraphSyncConfig = GraphSyncConfig;
|
|
149
|
+
type index_InitializedSDKState = InitializedSDKState;
|
|
150
|
+
type index_LayerInitConfig = LayerInitConfig;
|
|
151
|
+
type index_LoggingConfig = LoggingConfig;
|
|
152
|
+
type index_MetricsConfig = MetricsConfig;
|
|
153
|
+
type index_NATSConfig = NATSConfig;
|
|
154
|
+
type index_ObservabilityConfig = ObservabilityConfig;
|
|
155
|
+
type index_OpenTelemetryConfig = OpenTelemetryConfig;
|
|
156
|
+
type index_SDKCacheConfig = SDKCacheConfig;
|
|
157
|
+
type index_SDKValkeyCacheConfig = SDKValkeyCacheConfig;
|
|
158
|
+
declare const index_getSDKState: typeof getSDKState;
|
|
159
|
+
declare const index_initializeBurdenoffSDK: typeof initializeBurdenoffSDK;
|
|
160
|
+
declare const index_isSDKInitialized: typeof isSDKInitialized;
|
|
161
|
+
declare const index_resetSDK: typeof resetSDK;
|
|
162
|
+
declare namespace index {
|
|
163
|
+
export { type index_AnalyticsConfig as AnalyticsConfig, type index_BurdenoffSDKInitConfig as BurdenoffSDKInitConfig, type index_ClickHouseConfig as ClickHouseConfig, type index_DatabaseConfig as DatabaseConfig, type index_EventQueueConfig as EventQueueConfig, type index_GraphSyncConfig as GraphSyncConfig, type index_InitializedSDKState as InitializedSDKState, type index_LayerInitConfig as LayerInitConfig, type index_LoggingConfig as LoggingConfig, type index_MetricsConfig as MetricsConfig, type index_NATSConfig as NATSConfig, type index_ObservabilityConfig as ObservabilityConfig, type index_OpenTelemetryConfig as OpenTelemetryConfig, type index_SDKCacheConfig as SDKCacheConfig, type index_SDKValkeyCacheConfig as SDKValkeyCacheConfig, index_getSDKState as getSDKState, index_initializeBurdenoffSDK as initializeBurdenoffSDK, index_isSDKInitialized as isSDKInitialized, index_resetSDK as resetSDK };
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export { type AnalyticsConfig as A, type BurdenoffSDKInitConfig as B, type ClickHouseConfig as C, type DatabaseConfig as D, type EventQueueConfig as E, type GraphSyncConfig as G, type InitializedSDKState as I, type LayerInitConfig as L, type MetricsConfig as M, type NATSConfig as N, type ObservabilityConfig as O, type SDKCacheConfig as S, type LoggingConfig as a, type OpenTelemetryConfig as b, type SDKValkeyCacheConfig as c, initializeBurdenoffSDK as d, isSDKInitialized as e, getSDKState as g, index as i, resetSDK as r };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AnyElysia } from 'elysia';
|
|
2
|
+
import { S as SecurityMiddlewareConfig, C as CSPDirectives, M as MetricsMiddlewareConfig, a as MiddlewareConfig } from './types-Bo2wkjSP.js';
|
|
3
|
+
|
|
4
|
+
declare function createSecurityPlugin(config?: SecurityMiddlewareConfig): AnyElysia;
|
|
5
|
+
declare function cleanupExpiredTokens(): void;
|
|
6
|
+
|
|
7
|
+
declare const index_CSPDirectives: typeof CSPDirectives;
|
|
8
|
+
declare const index_MetricsMiddlewareConfig: typeof MetricsMiddlewareConfig;
|
|
9
|
+
declare const index_MiddlewareConfig: typeof MiddlewareConfig;
|
|
10
|
+
declare const index_SecurityMiddlewareConfig: typeof SecurityMiddlewareConfig;
|
|
11
|
+
declare const index_cleanupExpiredTokens: typeof cleanupExpiredTokens;
|
|
12
|
+
declare const index_createSecurityPlugin: typeof createSecurityPlugin;
|
|
13
|
+
declare namespace index {
|
|
14
|
+
export { index_CSPDirectives as CSPDirectives, index_MetricsMiddlewareConfig as MetricsMiddlewareConfig, index_MiddlewareConfig as MiddlewareConfig, index_SecurityMiddlewareConfig as SecurityMiddlewareConfig, index_cleanupExpiredTokens as cleanupExpiredTokens, index_createSecurityPlugin as createSecurityPlugin };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { createSecurityPlugin as a, cleanupExpiredTokens as c, index as i };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
type BatchFunction<K, V> = (keys: readonly K[]) => Promise<(V | Error | null)[]>;
|
|
2
|
+
type SimpleBatchFunction<K, V> = (keys: readonly K[]) => Promise<V[]>;
|
|
3
|
+
interface EntityLoaderOptions<T, K extends string | number = string> {
|
|
4
|
+
batchFn: SimpleBatchFunction<K, T>;
|
|
5
|
+
getKey: (entity: T) => K;
|
|
6
|
+
cacheKeyFn?: (key: K) => string;
|
|
7
|
+
}
|
|
8
|
+
interface RelationLoaderOptions<T, K extends string | number = string> {
|
|
9
|
+
batchFn: SimpleBatchFunction<K, T>;
|
|
10
|
+
getKey: (entity: T) => K | null | undefined;
|
|
11
|
+
cacheKeyFn?: (key: K) => string;
|
|
12
|
+
}
|
|
13
|
+
interface CompositeKeyLoaderOptions<T> {
|
|
14
|
+
batchFn: SimpleBatchFunction<string, T>;
|
|
15
|
+
getKey: (entity: T) => string;
|
|
16
|
+
cacheKeyFn?: (key: string) => string;
|
|
17
|
+
}
|
|
18
|
+
interface DataLoaderConfig<K, V> {
|
|
19
|
+
batchLoadFn: BatchFunction<K, V>;
|
|
20
|
+
maxBatchSize?: number;
|
|
21
|
+
cache?: boolean;
|
|
22
|
+
cacheKeyFn?: (key: K) => string;
|
|
23
|
+
}
|
|
24
|
+
declare class SimpleDataLoader<K, V> {
|
|
25
|
+
private config;
|
|
26
|
+
private cache;
|
|
27
|
+
private pendingBatch;
|
|
28
|
+
private pendingPromises;
|
|
29
|
+
private batchScheduled;
|
|
30
|
+
constructor(config: DataLoaderConfig<K, V>);
|
|
31
|
+
load(key: K): Promise<V | null>;
|
|
32
|
+
loadMany(keys: K[]): Promise<(V | null)[]>;
|
|
33
|
+
clear(key: K): this;
|
|
34
|
+
clearAll(): this;
|
|
35
|
+
prime(key: K, value: V | Error | null): this;
|
|
36
|
+
private getCacheKey;
|
|
37
|
+
private scheduleBatch;
|
|
38
|
+
private deduplicateKeys;
|
|
39
|
+
private resolvePromisesForKey;
|
|
40
|
+
private processResults;
|
|
41
|
+
private rejectAllPromises;
|
|
42
|
+
private executeBatch;
|
|
43
|
+
}
|
|
44
|
+
declare function createEntityLoader<T, K extends string | number = string>(options: EntityLoaderOptions<T, K>): SimpleDataLoader<K, T>;
|
|
45
|
+
declare function createRelationLoader<T, K extends string | number = string>(options: RelationLoaderOptions<T, K>): SimpleDataLoader<K, T[]>;
|
|
46
|
+
declare function createCompositeKeyLoader<T>(options: CompositeKeyLoaderOptions<T>): SimpleDataLoader<string, T[]>;
|
|
47
|
+
declare class DataLoaderFactory {
|
|
48
|
+
private loaders;
|
|
49
|
+
registerEntityLoader<T, K extends string | number = string>(name: string, options: EntityLoaderOptions<T, K>): SimpleDataLoader<K, T>;
|
|
50
|
+
registerRelationLoader<T, K extends string | number = string>(name: string, options: RelationLoaderOptions<T, K>): SimpleDataLoader<K, T[]>;
|
|
51
|
+
registerCompositeKeyLoader<T>(name: string, options: CompositeKeyLoaderOptions<T>): SimpleDataLoader<string, T[]>;
|
|
52
|
+
get<K, V>(name: string): SimpleDataLoader<K, V> | undefined;
|
|
53
|
+
clearAll(): void;
|
|
54
|
+
}
|
|
55
|
+
declare function createDataLoaderFactory(): DataLoaderFactory;
|
|
56
|
+
|
|
57
|
+
type index_BatchFunction<K, V> = BatchFunction<K, V>;
|
|
58
|
+
type index_CompositeKeyLoaderOptions<T> = CompositeKeyLoaderOptions<T>;
|
|
59
|
+
type index_DataLoaderConfig<K, V> = DataLoaderConfig<K, V>;
|
|
60
|
+
type index_DataLoaderFactory = DataLoaderFactory;
|
|
61
|
+
declare const index_DataLoaderFactory: typeof DataLoaderFactory;
|
|
62
|
+
type index_EntityLoaderOptions<T, K extends string | number = string> = EntityLoaderOptions<T, K>;
|
|
63
|
+
type index_RelationLoaderOptions<T, K extends string | number = string> = RelationLoaderOptions<T, K>;
|
|
64
|
+
type index_SimpleBatchFunction<K, V> = SimpleBatchFunction<K, V>;
|
|
65
|
+
type index_SimpleDataLoader<K, V> = SimpleDataLoader<K, V>;
|
|
66
|
+
declare const index_SimpleDataLoader: typeof SimpleDataLoader;
|
|
67
|
+
declare const index_createCompositeKeyLoader: typeof createCompositeKeyLoader;
|
|
68
|
+
declare const index_createDataLoaderFactory: typeof createDataLoaderFactory;
|
|
69
|
+
declare const index_createEntityLoader: typeof createEntityLoader;
|
|
70
|
+
declare const index_createRelationLoader: typeof createRelationLoader;
|
|
71
|
+
declare namespace index {
|
|
72
|
+
export { type index_BatchFunction as BatchFunction, type index_CompositeKeyLoaderOptions as CompositeKeyLoaderOptions, type index_DataLoaderConfig as DataLoaderConfig, index_DataLoaderFactory as DataLoaderFactory, type index_EntityLoaderOptions as EntityLoaderOptions, type index_RelationLoaderOptions as RelationLoaderOptions, type index_SimpleBatchFunction as SimpleBatchFunction, index_SimpleDataLoader as SimpleDataLoader, index_createCompositeKeyLoader as createCompositeKeyLoader, index_createDataLoaderFactory as createDataLoaderFactory, index_createEntityLoader as createEntityLoader, index_createRelationLoader as createRelationLoader };
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { type BatchFunction as B, type CompositeKeyLoaderOptions as C, type DataLoaderConfig as D, type EntityLoaderOptions as E, type RelationLoaderOptions as R, type SimpleBatchFunction as S, DataLoaderFactory as a, SimpleDataLoader as b, createCompositeKeyLoader as c, createDataLoaderFactory as d, createEntityLoader as e, createRelationLoader as f, index as i };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { L as LayerConfig, S as ServiceLayer, a as LayerFullConfig, D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, G as GatewayRoutingConfig, d as LayerGatewayConfig, e as LayerResourceUrls } from './layer-DDip18KY.js';
|
|
2
|
+
|
|
3
|
+
declare class LayerManager {
|
|
4
|
+
private config;
|
|
5
|
+
private gatewayConfig;
|
|
6
|
+
private resourceConfig;
|
|
7
|
+
private routingConfig;
|
|
8
|
+
constructor(config: LayerConfig);
|
|
9
|
+
private resolveGatewayConfig;
|
|
10
|
+
private resolveResourceConfig;
|
|
11
|
+
getLayer(): ServiceLayer;
|
|
12
|
+
getServiceName(): string;
|
|
13
|
+
getServiceIdentity(): string;
|
|
14
|
+
getInternalGatewayUrl(): string;
|
|
15
|
+
getCrossLayerGatewayUrl(): string;
|
|
16
|
+
getNatsUrl(): string;
|
|
17
|
+
getValkeyUrl(): string;
|
|
18
|
+
getTemporalAddress(): string;
|
|
19
|
+
getTemporalNamespace(): string;
|
|
20
|
+
getRbacGatewayUrl(): string;
|
|
21
|
+
getDefaultStreams(): Array<{
|
|
22
|
+
name: string;
|
|
23
|
+
subjects: string[];
|
|
24
|
+
description?: string;
|
|
25
|
+
}>;
|
|
26
|
+
getFullConfig(): LayerFullConfig;
|
|
27
|
+
isWspaceLayer(): boolean;
|
|
28
|
+
isGlobalLayer(): boolean;
|
|
29
|
+
getOppositeLayer(): ServiceLayer;
|
|
30
|
+
}
|
|
31
|
+
declare function createLayerManagerFromEnv(): LayerManager;
|
|
32
|
+
declare function detectLayerFromServiceName(serviceName: string): ServiceLayer | undefined;
|
|
33
|
+
declare function getGatewayUrlForLayer(sourceLayer: ServiceLayer, targetLayer: ServiceLayer, sourceManager?: LayerManager): string;
|
|
34
|
+
declare function validateLayerConfig(config: LayerConfig): void;
|
|
35
|
+
|
|
36
|
+
declare const index_DEFAULT_GATEWAY_ROUTING: typeof DEFAULT_GATEWAY_ROUTING;
|
|
37
|
+
declare const index_DEFAULT_LAYER_RESOURCES: typeof DEFAULT_LAYER_RESOURCES;
|
|
38
|
+
declare const index_DEFAULT_LAYER_STREAMS: typeof DEFAULT_LAYER_STREAMS;
|
|
39
|
+
declare const index_GatewayRoutingConfig: typeof GatewayRoutingConfig;
|
|
40
|
+
declare const index_LayerConfig: typeof LayerConfig;
|
|
41
|
+
declare const index_LayerFullConfig: typeof LayerFullConfig;
|
|
42
|
+
declare const index_LayerGatewayConfig: typeof LayerGatewayConfig;
|
|
43
|
+
type index_LayerManager = LayerManager;
|
|
44
|
+
declare const index_LayerManager: typeof LayerManager;
|
|
45
|
+
declare const index_LayerResourceUrls: typeof LayerResourceUrls;
|
|
46
|
+
declare const index_ServiceLayer: typeof ServiceLayer;
|
|
47
|
+
declare const index_createLayerManagerFromEnv: typeof createLayerManagerFromEnv;
|
|
48
|
+
declare const index_detectLayerFromServiceName: typeof detectLayerFromServiceName;
|
|
49
|
+
declare const index_getGatewayUrlForLayer: typeof getGatewayUrlForLayer;
|
|
50
|
+
declare const index_validateLayerConfig: typeof validateLayerConfig;
|
|
51
|
+
declare namespace index {
|
|
52
|
+
export { index_DEFAULT_GATEWAY_ROUTING as DEFAULT_GATEWAY_ROUTING, index_DEFAULT_LAYER_RESOURCES as DEFAULT_LAYER_RESOURCES, index_DEFAULT_LAYER_STREAMS as DEFAULT_LAYER_STREAMS, index_GatewayRoutingConfig as GatewayRoutingConfig, index_LayerConfig as LayerConfig, index_LayerFullConfig as LayerFullConfig, index_LayerGatewayConfig as LayerGatewayConfig, index_LayerManager as LayerManager, index_LayerResourceUrls as LayerResourceUrls, index_ServiceLayer as ServiceLayer, index_createLayerManagerFromEnv as createLayerManagerFromEnv, index_detectLayerFromServiceName as detectLayerFromServiceName, index_getGatewayUrlForLayer as getGatewayUrlForLayer, index_validateLayerConfig as validateLayerConfig };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { LayerManager as L, createLayerManagerFromEnv as c, detectLayerFromServiceName as d, getGatewayUrlForLayer as g, index as i, validateLayerConfig as v };
|