@bodhveda/js 0.3.0
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/LICENSE +21 -0
- package/README.md +260 -0
- package/dist/cjs/bodhveda.d.ts +184 -0
- package/dist/cjs/bodhveda.d.ts.map +1 -0
- package/dist/cjs/bodhveda.js +181 -0
- package/dist/cjs/bodhveda.js.map +1 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +19 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/routes.d.ts +30 -0
- package/dist/cjs/routes.d.ts.map +1 -0
- package/dist/cjs/routes.js +33 -0
- package/dist/cjs/routes.js.map +1 -0
- package/dist/cjs/types.d.ts +363 -0
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js +3 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/esm/bodhveda.d.ts +184 -0
- package/dist/esm/bodhveda.d.ts.map +1 -0
- package/dist/esm/bodhveda.js +174 -0
- package/dist/esm/bodhveda.js.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/routes.d.ts +30 -0
- package/dist/esm/routes.d.ts.map +1 -0
- package/dist/esm/routes.js +30 -0
- package/dist/esm/routes.js.map +1 -0
- package/dist/esm/types.d.ts +363 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const ROUTES: {
|
|
2
|
+
notifications: {
|
|
3
|
+
send: string;
|
|
4
|
+
};
|
|
5
|
+
recipients: {
|
|
6
|
+
create: string;
|
|
7
|
+
createBatch: string;
|
|
8
|
+
get: (recipientID: string) => string;
|
|
9
|
+
update: (recipientID: string) => string;
|
|
10
|
+
delete: (recipientID: string) => string;
|
|
11
|
+
notifications: {
|
|
12
|
+
list: (recipientID: string) => string;
|
|
13
|
+
unreadCount: (recipientID: string) => string;
|
|
14
|
+
udpateState: (recipientID: string) => string;
|
|
15
|
+
delete: (recipientID: string) => string;
|
|
16
|
+
};
|
|
17
|
+
preferences: {
|
|
18
|
+
list: (recipientID: string) => string;
|
|
19
|
+
set: (recipientID: string) => string;
|
|
20
|
+
check: (recipientID: string) => string;
|
|
21
|
+
};
|
|
22
|
+
contacts: {
|
|
23
|
+
list: (recipientID: string) => string;
|
|
24
|
+
create: (recipientID: string) => string;
|
|
25
|
+
update: (recipientID: string, contactID: number) => string;
|
|
26
|
+
delete: (recipientID: string, contactID: number) => string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/routes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;2BAQQ,MAAM;8BAEH,MAAM;8BAEN,MAAM;;gCAIJ,MAAM;uCAEC,MAAM;uCAIN,MAAM;kCAEX,MAAM;;;gCAKR,MAAM;+BAEP,MAAM;iCAEJ,MAAM;;;gCAOP,MAAM;kCAEJ,MAAM;kCAEN,MAAM,aAAa,MAAM;kCAIzB,MAAM,aAAa,MAAM;;;CAM1D,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTES = void 0;
|
|
4
|
+
exports.ROUTES = {
|
|
5
|
+
notifications: {
|
|
6
|
+
send: "/notifications/send",
|
|
7
|
+
},
|
|
8
|
+
recipients: {
|
|
9
|
+
create: "/recipients",
|
|
10
|
+
createBatch: "/recipients/batch",
|
|
11
|
+
get: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}`,
|
|
12
|
+
update: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}`,
|
|
13
|
+
delete: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}`,
|
|
14
|
+
notifications: {
|
|
15
|
+
list: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}/notifications`,
|
|
16
|
+
unreadCount: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}/notifications/unread-count`,
|
|
17
|
+
udpateState: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}/notifications`,
|
|
18
|
+
delete: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}/notifications`,
|
|
19
|
+
},
|
|
20
|
+
preferences: {
|
|
21
|
+
list: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}/preferences`,
|
|
22
|
+
set: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}/preferences`,
|
|
23
|
+
check: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}/preferences/check`,
|
|
24
|
+
},
|
|
25
|
+
contacts: {
|
|
26
|
+
list: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}/contacts`,
|
|
27
|
+
create: (recipientID) => `/recipients/${encodeURIComponent(recipientID)}/contacts`,
|
|
28
|
+
update: (recipientID, contactID) => `/recipients/${encodeURIComponent(recipientID)}/contacts/${contactID}`,
|
|
29
|
+
delete: (recipientID, contactID) => `/recipients/${encodeURIComponent(recipientID)}/contacts/${contactID}`,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../src/routes.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,aAAa,EAAE;QACX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AW;YAC7D,MAAM,EAAE,CAAC,WAAmB,EAAE,SAAiB,EAAE,EAAE,CAC/C,eAAe,kBAAkB,CAC7B,WAAW,CACd,aAAa,SAAS,EAAE;YAC7B,MAAM,EAAE,CAAC,WAAmB,EAAE,SAAiB,EAAE,EAAE,CAC/C,eAAe,kBAAkB,CAC7B,WAAW,CACd,aAAa,SAAS,EAAE;SAChC;KACJ;CACJ,CAAC"}
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a target for notifications.
|
|
3
|
+
*/
|
|
4
|
+
export interface Target {
|
|
5
|
+
channel: string;
|
|
6
|
+
topic: string;
|
|
7
|
+
event: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A medium a preference applies to. In-app and email are toggled independently
|
|
11
|
+
* for the same target.
|
|
12
|
+
*/
|
|
13
|
+
export type PreferenceMedium = "in_app" | "email";
|
|
14
|
+
/**
|
|
15
|
+
* Represents a preference target, extending the Target interface.
|
|
16
|
+
*/
|
|
17
|
+
export interface TargetWithLabel extends Target {
|
|
18
|
+
/**
|
|
19
|
+
* The medium this preference applies to (`in_app` or `email`).
|
|
20
|
+
*/
|
|
21
|
+
medium?: PreferenceMedium;
|
|
22
|
+
label?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Represents the state of a preference that was just written. It describes the
|
|
26
|
+
* stored rule, so it carries no catalog context — reads answer a different
|
|
27
|
+
* question and reply with {@link ResolvedPreferenceState}.
|
|
28
|
+
*/
|
|
29
|
+
export interface PreferenceState {
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* `true` when the recipient has no rule of their own for this exact
|
|
33
|
+
* (target, medium).
|
|
34
|
+
*/
|
|
35
|
+
inherited: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* What a preference read returns: whether a send would ACTUALLY deliver, plus
|
|
39
|
+
* the context to explain it.
|
|
40
|
+
*/
|
|
41
|
+
export interface ResolvedPreferenceState {
|
|
42
|
+
/**
|
|
43
|
+
* The resolved decision — what a send to this (target, medium) would do.
|
|
44
|
+
*
|
|
45
|
+
* This is not a stored flag. It is resolved through the recipient's exact
|
|
46
|
+
* rule, their `topic: "any"` rule, the project's exact rule, the project's
|
|
47
|
+
* `topic: "any"` rule, and finally the medium's default — `in_app` delivers,
|
|
48
|
+
* every other medium does not.
|
|
49
|
+
*/
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* `true` when the recipient has no rule of their own for this exact
|
|
53
|
+
* (target, medium); the value came from elsewhere in the cascade.
|
|
54
|
+
*/
|
|
55
|
+
inherited: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether a project-level rule exists for this exact (target, medium).
|
|
58
|
+
*
|
|
59
|
+
* Context for deciding what to render, **not** a gate: an explicit recipient
|
|
60
|
+
* rule on an uncataloged pair still delivers, and `in_app` delivers by
|
|
61
|
+
* default with no catalog entry at all. `enabled` is the answer.
|
|
62
|
+
*/
|
|
63
|
+
cataloged: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Represents a resolved preference with a target and state.
|
|
67
|
+
*/
|
|
68
|
+
export interface Preference {
|
|
69
|
+
target: TargetWithLabel;
|
|
70
|
+
state: ResolvedPreferenceState;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Represents the state of a notification.
|
|
74
|
+
*/
|
|
75
|
+
export interface NotificationState {
|
|
76
|
+
opened: boolean;
|
|
77
|
+
read: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Represents a notification.
|
|
81
|
+
*/
|
|
82
|
+
export interface Notification {
|
|
83
|
+
id: number;
|
|
84
|
+
recipient_id: string;
|
|
85
|
+
payload: unknown;
|
|
86
|
+
target: Target;
|
|
87
|
+
state: NotificationState;
|
|
88
|
+
broadcast_id: number | null;
|
|
89
|
+
created_at: string;
|
|
90
|
+
updated_at: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Represents a broadcast.
|
|
94
|
+
*/
|
|
95
|
+
export interface Broadcast {
|
|
96
|
+
id: number;
|
|
97
|
+
payload: unknown;
|
|
98
|
+
target: Target;
|
|
99
|
+
created_at: string;
|
|
100
|
+
updated_at: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Represents a recipient.
|
|
104
|
+
*/
|
|
105
|
+
export interface Recipient {
|
|
106
|
+
id: string;
|
|
107
|
+
name: string;
|
|
108
|
+
created_at: string;
|
|
109
|
+
updated_at: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Represents a request to create a recipient.
|
|
113
|
+
*/
|
|
114
|
+
export interface CreateRecipientRequest {
|
|
115
|
+
id: string;
|
|
116
|
+
name?: string;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Represents the response after creating a recipient.
|
|
120
|
+
*/
|
|
121
|
+
export interface CreateRecipientResponse extends Recipient {
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Represents a request to create multiple recipients in a batch.
|
|
125
|
+
*/
|
|
126
|
+
export interface CreateRecipientsBatchRequest {
|
|
127
|
+
recipients: CreateRecipientRequest[];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Represents a result item for batch creation of recipients.
|
|
131
|
+
*/
|
|
132
|
+
interface BatchCreateRecipientResultItem {
|
|
133
|
+
id: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Represents a result item with error details for batch creation of recipients.
|
|
137
|
+
*/
|
|
138
|
+
interface BatchCreatereRecicpientResultItemWithError extends BatchCreateRecipientResultItem {
|
|
139
|
+
batch_index: number;
|
|
140
|
+
errors: {
|
|
141
|
+
message: string;
|
|
142
|
+
description: string;
|
|
143
|
+
property_path?: string;
|
|
144
|
+
invalid_value?: unknown;
|
|
145
|
+
}[];
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Represents the response after creating multiple recipients in a batch.
|
|
149
|
+
*/
|
|
150
|
+
export interface CreateRecipientsBatchResponse {
|
|
151
|
+
created: BatchCreateRecipientResultItem[];
|
|
152
|
+
updated: BatchCreateRecipientResultItem[];
|
|
153
|
+
failed: BatchCreatereRecicpientResultItemWithError[];
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Represents the response after retrieving a recipient.
|
|
157
|
+
*/
|
|
158
|
+
export interface GetRecipientResponse extends Recipient {
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Represents a request to update a recipient.
|
|
162
|
+
*/
|
|
163
|
+
export interface UpdateRecipientRequest {
|
|
164
|
+
name?: string;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Represents the response after updating a recipient.
|
|
168
|
+
*/
|
|
169
|
+
export interface UpdateRecipientResponse extends Recipient {
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Typed email content for a send. Its presence makes email eligible for this
|
|
173
|
+
* send (direct-only); absence means no email. Bodhveda is a pass-through — the
|
|
174
|
+
* caller renders its own template and passes the result. `subject` is required
|
|
175
|
+
* and at least one of `html`/`text` must be set; `text` is recommended for
|
|
176
|
+
* deliverability and is auto-derived from `html` when omitted.
|
|
177
|
+
*/
|
|
178
|
+
export interface EmailContent {
|
|
179
|
+
subject: string;
|
|
180
|
+
html?: string;
|
|
181
|
+
text?: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Represents a request to send a notification.
|
|
185
|
+
*/
|
|
186
|
+
export interface SendNotificationRequest {
|
|
187
|
+
payload: unknown;
|
|
188
|
+
recipient_id?: string;
|
|
189
|
+
target?: Target;
|
|
190
|
+
/**
|
|
191
|
+
* Optional typed email block. Present ⇒ email is attempted (direct sends
|
|
192
|
+
* only); absent ⇒ no email. Gated by catalog + per-medium preference + a
|
|
193
|
+
* primary email contact.
|
|
194
|
+
*/
|
|
195
|
+
email?: EmailContent;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* A per-medium delivery outcome returned on a direct send (email in v1).
|
|
199
|
+
*/
|
|
200
|
+
export interface NotificationDelivery {
|
|
201
|
+
medium: string;
|
|
202
|
+
status: string;
|
|
203
|
+
address?: string;
|
|
204
|
+
failure_reason?: string;
|
|
205
|
+
created_at: string;
|
|
206
|
+
updated_at: string;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Represents the response after sending a notification.
|
|
210
|
+
*/
|
|
211
|
+
export interface SendNotificationResponse {
|
|
212
|
+
notification: Notification | null;
|
|
213
|
+
broadcast: Broadcast | null;
|
|
214
|
+
/**
|
|
215
|
+
* Per-medium delivery outcomes for a direct send (email). A partial-medium
|
|
216
|
+
* failure never rejects the send — the outcome is reported here.
|
|
217
|
+
*/
|
|
218
|
+
deliveries?: NotificationDelivery[];
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Represents a request to list notifications.
|
|
222
|
+
*/
|
|
223
|
+
export interface ListNotificationsRequest {
|
|
224
|
+
limit?: number;
|
|
225
|
+
before?: string;
|
|
226
|
+
after?: string;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Represents the response after listing notifications.
|
|
230
|
+
*/
|
|
231
|
+
export interface ListNotificationsResponse {
|
|
232
|
+
notifications: Notification[];
|
|
233
|
+
cursor: {
|
|
234
|
+
before: string | null;
|
|
235
|
+
after: string | null;
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Represents the response with the count of unread notifications.
|
|
240
|
+
*/
|
|
241
|
+
export interface UnreadCountResponse {
|
|
242
|
+
unread_count: number;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Represents a request to update the state of notifications.
|
|
246
|
+
*/
|
|
247
|
+
export interface UpdateNotificationsStateRequest {
|
|
248
|
+
ids: number[];
|
|
249
|
+
state: Partial<NotificationState>;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Represents the response after updating the state of notifications.
|
|
253
|
+
*/
|
|
254
|
+
export interface UpdateNotificationsStateResponse {
|
|
255
|
+
updated_count: number;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Represents a request to delete notifications.
|
|
259
|
+
*/
|
|
260
|
+
export interface DeleteNotificationsRequest {
|
|
261
|
+
ids: number[];
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Represents the response after deleting notifications.
|
|
265
|
+
*/
|
|
266
|
+
export interface DeleteNotificationsResponse {
|
|
267
|
+
deleted_count: number;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Represents the response after listing preferences.
|
|
271
|
+
*/
|
|
272
|
+
export interface ListPreferencesResponse {
|
|
273
|
+
preferences: Preference[];
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Represents a request to set a preference.
|
|
277
|
+
*/
|
|
278
|
+
export interface SetPreferenceRequest {
|
|
279
|
+
target: Target;
|
|
280
|
+
/**
|
|
281
|
+
* The medium this preference applies to. Defaults to `in_app` when omitted.
|
|
282
|
+
*/
|
|
283
|
+
medium?: PreferenceMedium;
|
|
284
|
+
state: {
|
|
285
|
+
enabled: boolean;
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Represents the response after setting a preference.
|
|
290
|
+
*/
|
|
291
|
+
export interface SetPreferenceResponse {
|
|
292
|
+
target: TargetWithLabel;
|
|
293
|
+
state: PreferenceState;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Represents a request to check a preference.
|
|
297
|
+
*/
|
|
298
|
+
export interface CheckPreferenceRequest {
|
|
299
|
+
target: Target;
|
|
300
|
+
/**
|
|
301
|
+
* The medium to check. Defaults to `in_app` when omitted.
|
|
302
|
+
*/
|
|
303
|
+
medium?: PreferenceMedium;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Represents the response after checking a preference. The target need not be
|
|
307
|
+
* cataloged, or stored at all — any (channel, topic, event) resolves.
|
|
308
|
+
*/
|
|
309
|
+
export interface CheckPreferenceResponse {
|
|
310
|
+
target: TargetWithLabel;
|
|
311
|
+
state: ResolvedPreferenceState;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* A delivery transport a recipient contact can be registered for. Only `email`
|
|
315
|
+
* is exercised today; the rest are reserved for future transports.
|
|
316
|
+
*/
|
|
317
|
+
export type Medium = "email" | "sms" | "web_push" | "mobile_push";
|
|
318
|
+
/**
|
|
319
|
+
* Represents a per-medium contact address for a recipient.
|
|
320
|
+
*/
|
|
321
|
+
export interface RecipientContact {
|
|
322
|
+
id: number;
|
|
323
|
+
medium: Medium;
|
|
324
|
+
address: string;
|
|
325
|
+
is_primary: boolean;
|
|
326
|
+
verified_at: string | null;
|
|
327
|
+
created_at: string;
|
|
328
|
+
updated_at: string;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Represents a request to add a contact to a recipient.
|
|
332
|
+
*/
|
|
333
|
+
export interface CreateRecipientContactRequest {
|
|
334
|
+
medium: Medium;
|
|
335
|
+
address: string;
|
|
336
|
+
is_primary?: boolean;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Represents the response after creating a recipient contact.
|
|
340
|
+
*/
|
|
341
|
+
export interface CreateRecipientContactResponse extends RecipientContact {
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Represents the response after listing a recipient's contacts.
|
|
345
|
+
*/
|
|
346
|
+
export interface ListRecipientContactsResponse {
|
|
347
|
+
contacts: RecipientContact[];
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Represents a request to update a recipient's contact. Both fields are
|
|
351
|
+
* optional; a changed address invalidates the contact's verification.
|
|
352
|
+
*/
|
|
353
|
+
export interface UpdateRecipientContactRequest {
|
|
354
|
+
address?: string;
|
|
355
|
+
is_primary?: boolean;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Represents the response after updating a recipient contact.
|
|
359
|
+
*/
|
|
360
|
+
export interface UpdateRecipientContactResponse extends RecipientContact {
|
|
361
|
+
}
|
|
362
|
+
export {};
|
|
363
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,MAAM;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,MAAM;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;;;;OAOG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,uBAAuB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,iBAAiB,CAAC;IACzB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AAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;CAAG;AAE3E;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { ListNotificationsResponse, ListNotificationsRequest, ListPreferencesResponse, SetPreferenceRequest, SetPreferenceResponse, UnreadCountResponse, UpdateNotificationsStateResponse, UpdateNotificationsStateRequest, DeleteNotificationsRequest, DeleteNotificationsResponse, CheckPreferenceRequest, CheckPreferenceResponse, SendNotificationRequest, SendNotificationResponse, CreateRecipientRequest, CreateRecipientResponse, CreateRecipientsBatchRequest, CreateRecipientsBatchResponse, GetRecipientResponse, UpdateRecipientRequest, UpdateRecipientResponse, CreateRecipientContactRequest, CreateRecipientContactResponse, ListRecipientContactsResponse, UpdateRecipientContactRequest, UpdateRecipientContactResponse } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Options for configuring the Bodhveda SDK.
|
|
4
|
+
*/
|
|
5
|
+
interface BodhvedaOptions {
|
|
6
|
+
apiURL?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Main interface for interacting with Bodhveda services.
|
|
10
|
+
*/
|
|
11
|
+
interface BodhvedaClient {
|
|
12
|
+
/**
|
|
13
|
+
* Provides access to notification-related methods.
|
|
14
|
+
*/
|
|
15
|
+
notifications: NotificationsClient;
|
|
16
|
+
/**
|
|
17
|
+
* Provides access to recipient-related methods.
|
|
18
|
+
*/
|
|
19
|
+
recipients: RecipientsClient;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Main class for initializing and interacting with the Bodhveda SDK.
|
|
23
|
+
*/
|
|
24
|
+
export declare class Bodhveda implements BodhvedaClient {
|
|
25
|
+
notifications: NotificationsClient;
|
|
26
|
+
recipients: RecipientsClient;
|
|
27
|
+
/**
|
|
28
|
+
* Creates an instance of the Bodhveda SDK.
|
|
29
|
+
* @param apiKey - The API key for authentication.
|
|
30
|
+
* @param options - Optional configuration options.
|
|
31
|
+
*/
|
|
32
|
+
constructor(apiKey: string, options?: BodhvedaOptions);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Interface for interacting with notifications.
|
|
36
|
+
*/
|
|
37
|
+
interface NotificationsClient {
|
|
38
|
+
/**
|
|
39
|
+
* Sends a notification.
|
|
40
|
+
* @param req - The request object containing notification details.
|
|
41
|
+
* @returns The response from the API.
|
|
42
|
+
*/
|
|
43
|
+
send(req: SendNotificationRequest): Promise<SendNotificationResponse>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Interface for interacting with recipients.
|
|
47
|
+
*/
|
|
48
|
+
interface RecipientsClient {
|
|
49
|
+
/**
|
|
50
|
+
* Creates a new recipient.
|
|
51
|
+
* @param req - The request object containing recipient details.
|
|
52
|
+
* @returns The response after creating the recipient.
|
|
53
|
+
*/
|
|
54
|
+
create(req: CreateRecipientRequest): Promise<CreateRecipientResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Creates multiple recipients in a batch.
|
|
57
|
+
* @param req - The request object containing an array of recipients.
|
|
58
|
+
* @returns The response after creating recipients in batch.
|
|
59
|
+
*/
|
|
60
|
+
createBatch(req: CreateRecipientsBatchRequest): Promise<CreateRecipientsBatchResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves a recipient by ID.
|
|
63
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
64
|
+
* @returns The recipient details.
|
|
65
|
+
*/
|
|
66
|
+
get(recipientID: string): Promise<GetRecipientResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Updates a recipient by ID.
|
|
69
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
70
|
+
* @param req - The request object containing updated recipient details.
|
|
71
|
+
* @returns The updated recipient details.
|
|
72
|
+
*/
|
|
73
|
+
update(recipientID: string, req: UpdateRecipientRequest): Promise<UpdateRecipientResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Deletes a recipient by ID.
|
|
76
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
77
|
+
* @returns A promise that resolves when the recipient is deleted.
|
|
78
|
+
*/
|
|
79
|
+
delete(recipientID: string): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Provides access to recipient preferences methods.
|
|
82
|
+
*/
|
|
83
|
+
preferences: RecipientsPreferencesClient;
|
|
84
|
+
/**
|
|
85
|
+
* Provides access to recipient notifications methods.
|
|
86
|
+
*/
|
|
87
|
+
notifications: RecipientsNotificationsClient;
|
|
88
|
+
/**
|
|
89
|
+
* Provides access to recipient contacts methods.
|
|
90
|
+
*/
|
|
91
|
+
contacts: RecipientsContactsClient;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Interface for managing recipient notifications.
|
|
95
|
+
*/
|
|
96
|
+
interface RecipientsNotificationsClient {
|
|
97
|
+
/**
|
|
98
|
+
* Lists notifications for a recipient.
|
|
99
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
100
|
+
* @param req - Optional request parameters for listing notifications.
|
|
101
|
+
* @returns The response containing the list of notifications.
|
|
102
|
+
*/
|
|
103
|
+
list(recipientID: string, req?: ListNotificationsRequest): Promise<ListNotificationsResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* Gets the count of unread notifications for a recipient.
|
|
106
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
107
|
+
* @returns The response containing the unread count.
|
|
108
|
+
*/
|
|
109
|
+
unreadCount(recipientID: string): Promise<UnreadCountResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* Updates the state of notifications for a recipient.
|
|
112
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
113
|
+
* @param req - The request object containing state updates.
|
|
114
|
+
* @returns The response after updating notification states.
|
|
115
|
+
*/
|
|
116
|
+
updateState(recipientID: string, req: UpdateNotificationsStateRequest): Promise<UpdateNotificationsStateResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* Deletes notifications for a recipient.
|
|
119
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
120
|
+
* @param req - The request object containing IDs of notifications to delete.
|
|
121
|
+
* @returns The response after deleting notifications.
|
|
122
|
+
*/
|
|
123
|
+
delete(recipientID: string, req: DeleteNotificationsRequest): Promise<DeleteNotificationsResponse>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Interface for managing recipient preferences.
|
|
127
|
+
*/
|
|
128
|
+
interface RecipientsPreferencesClient {
|
|
129
|
+
/**
|
|
130
|
+
* Lists preferences for a recipient.
|
|
131
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
132
|
+
* @returns The response containing the list of preferences.
|
|
133
|
+
*/
|
|
134
|
+
list(recipientID: string): Promise<ListPreferencesResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* Sets a preference for a recipient.
|
|
137
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
138
|
+
* @param req - The request object containing the preference to set.
|
|
139
|
+
* @returns The response after setting the preference.
|
|
140
|
+
*/
|
|
141
|
+
set(recipientID: string, req: SetPreferenceRequest): Promise<SetPreferenceResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* Checks a preference for a recipient.
|
|
144
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
145
|
+
* @param req - The request object specifying the preference to check.
|
|
146
|
+
* @returns The response after checking the preference.
|
|
147
|
+
*/
|
|
148
|
+
check(recipientID: string, req: CheckPreferenceRequest): Promise<CheckPreferenceResponse>;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Interface for managing recipient contacts.
|
|
152
|
+
*/
|
|
153
|
+
interface RecipientsContactsClient {
|
|
154
|
+
/**
|
|
155
|
+
* Lists a recipient's contacts.
|
|
156
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
157
|
+
* @returns The response containing the list of contacts.
|
|
158
|
+
*/
|
|
159
|
+
list(recipientID: string): Promise<ListRecipientContactsResponse>;
|
|
160
|
+
/**
|
|
161
|
+
* Adds a contact to a recipient.
|
|
162
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
163
|
+
* @param req - The request object containing the contact to add.
|
|
164
|
+
* @returns The response after creating the contact.
|
|
165
|
+
*/
|
|
166
|
+
create(recipientID: string, req: CreateRecipientContactRequest): Promise<CreateRecipientContactResponse>;
|
|
167
|
+
/**
|
|
168
|
+
* Updates a recipient's contact by contact ID.
|
|
169
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
170
|
+
* @param contactID - The unique identifier of the contact.
|
|
171
|
+
* @param req - The request object containing the fields to update.
|
|
172
|
+
* @returns The response after updating the contact.
|
|
173
|
+
*/
|
|
174
|
+
update(recipientID: string, contactID: number, req: UpdateRecipientContactRequest): Promise<UpdateRecipientContactResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* Deletes a recipient's contact by contact ID. Requires a full-scope API key.
|
|
177
|
+
* @param recipientID - The unique identifier of the recipient.
|
|
178
|
+
* @param contactID - The unique identifier of the contact.
|
|
179
|
+
* @returns A promise that resolves when the contact is deleted.
|
|
180
|
+
*/
|
|
181
|
+
delete(recipientID: string, contactID: number): Promise<void>;
|
|
182
|
+
}
|
|
183
|
+
export {};
|
|
184
|
+
//# sourceMappingURL=bodhveda.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bodhveda.d.ts","sourceRoot":"","sources":["../../src/bodhveda.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,gCAAgC,EAChC,+BAA+B,EAC/B,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,6BAA6B,EAC7B,8BAA8B,EACjC,MAAM,SAAS,CAAC;AAGjB;;GAEG;AACH,UAAU,eAAe;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,UAAU,cAAc;IACpB;;OAEG;IACH,aAAa,EAAE,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAU,EAAE,gBAAgB,CAAC;CAChC;AAED;;GAEG;AACH,qBAAa,QAAS,YAAW,cAAc;IAC3C,aAAa,EAAE,mBAAmB,CAAC;IACnC,UAAU,EAAE,gBAAgB,CAAC;IAE7B;;;;OAIG;gBACS,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB;CAyB5D;AAED;;GAEG;AACH,UAAU,mBAAmB;IACzB;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACzE;AAwBD;;GAEG;AACH,UAAU,gBAAgB;IACtB;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAA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