vintasend 0.12.2 → 0.13.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/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/services/attachment-manager/local-file-attachment-manager.js +1 -1
- package/dist/services/notification-adapters/base-notification-adapter.d.ts +2 -1
- package/dist/services/notification-adapters/base-notification-adapter.d.ts.map +1 -1
- package/dist/services/notification-adapters/base-notification-adapter.js +3 -0
- package/dist/services/notification-backends/base-notification-backend.d.ts +1 -1
- package/dist/services/notification-backends/base-notification-backend.d.ts.map +1 -1
- package/dist/services/notification-service.d.ts +1 -0
- package/dist/services/notification-service.d.ts.map +1 -1
- package/dist/services/notification-service.js +47 -20
- package/dist/services/notification-template-renderers/base-email-template-renderer.d.ts +4 -9
- package/dist/services/notification-template-renderers/base-email-template-renderer.d.ts.map +1 -1
- package/dist/services/notification-template-renderers/base-email-template-renderer.js +9 -1
- package/dist/services/notification-template-renderers/base-notification-template-renderer.d.ts +6 -3
- package/dist/services/notification-template-renderers/base-notification-template-renderer.d.ts.map +1 -1
- package/dist/services/notification-template-renderers/base-notification-template-renderer.js +14 -1
- package/dist/services/notification-template-renderers/base-text-notification-template-renderer.d.ts +2 -11
- package/dist/services/notification-template-renderers/base-text-notification-template-renderer.d.ts.map +1 -1
- package/dist/services/notification-template-renderers/base-text-notification-template-renderer.js +3 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,8 @@ export { LocalFileAttachmentManager } from './services/attachment-manager/local-
|
|
|
4
4
|
export type { BaseGitCommitShaProvider } from './services/git-commit-sha/base-git-commit-sha-provider.js';
|
|
5
5
|
export type { BaseLogger } from './services/loggers/base-logger.js';
|
|
6
6
|
export { BaseNotificationAdapter, isOneOffNotification, } from './services/notification-adapters/base-notification-adapter.js';
|
|
7
|
-
export type { BaseNotificationBackend } from './services/notification-backends/base-notification-backend.js';
|
|
8
|
-
export {
|
|
9
|
-
export type { NotificationFilter, NotificationFilterFields, DateRange, NotificationFilterCapabilities, NotificationOrderBy, NotificationOrderByField, NotificationOrderDirection, StringFilterLookup, StringFieldFilter, } from './services/notification-backends/base-notification-backend.js';
|
|
7
|
+
export type { BaseNotificationBackend, DateRange, NotificationFilter, NotificationFilterCapabilities, NotificationFilterFields, NotificationOrderBy, NotificationOrderByField, NotificationOrderDirection, StringFieldFilter, StringFilterLookup, } from './services/notification-backends/base-notification-backend.js';
|
|
8
|
+
export { isFieldFilter, supportsAttachments, } from './services/notification-backends/base-notification-backend.js';
|
|
10
9
|
export type { BaseNotificationQueueService } from './services/notification-queue-service/base-notification-queue-service.js';
|
|
11
10
|
export type { BaseNotificationReplicationQueueService } from './services/notification-queue-service/base-notification-replication-queue-service.js';
|
|
12
11
|
export type { VintaSend } from './services/notification-service.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,YAAY,EAAE,gCAAgC,EAAE,MAAM,gEAAgE,CAAC;AACvH,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAE5G,YAAY,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAC;AAE1G,YAAY,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,+DAA+D,CAAC;AACvE,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,YAAY,EAAE,gCAAgC,EAAE,MAAM,gEAAgE,CAAC;AACvH,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAA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B,wCAAwC,GACzC,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AACnF,YAAY,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,YAAY,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,6 @@ export { BaseAttachmentManager } from './services/attachment-manager/base-attach
|
|
|
3
3
|
export { LocalFileAttachmentManager } from './services/attachment-manager/local-file-attachment-manager.js';
|
|
4
4
|
// Notification Adapters and Backends
|
|
5
5
|
export { BaseNotificationAdapter, isOneOffNotification, } from './services/notification-adapters/base-notification-adapter.js';
|
|
6
|
-
export {
|
|
6
|
+
export { isFieldFilter, supportsAttachments, } from './services/notification-backends/base-notification-backend.js';
|
|
7
7
|
export { VintaSendFactory } from './services/notification-service.js';
|
|
8
8
|
export { isAttachmentReference } from './types/attachment.js';
|
|
@@ -121,7 +121,7 @@ export class LocalFileAttachmentManager extends BaseAttachmentManager {
|
|
|
121
121
|
updatedAt: new Date(metadata.updatedAt),
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
catch (
|
|
124
|
+
catch (_error) {
|
|
125
125
|
// If metadata file doesn't exist, try to reconstruct from file
|
|
126
126
|
try {
|
|
127
127
|
await access(filePath, fs.constants.F_OK);
|
|
@@ -3,9 +3,9 @@ import type { JsonObject, JsonValue } from '../../types/json-values.js';
|
|
|
3
3
|
import type { AnyDatabaseNotification, DatabaseOneOffNotification } from '../../types/notification.js';
|
|
4
4
|
import type { NotificationType } from '../../types/notification-type.js';
|
|
5
5
|
import type { BaseNotificationTypeConfig } from '../../types/notification-type-config.js';
|
|
6
|
-
import type { EmailTemplate, EmailTemplateContent } from '../notification-template-renderers/base-email-template-renderer.js';
|
|
7
6
|
import type { BaseLogger } from '../loggers/base-logger.js';
|
|
8
7
|
import type { BaseNotificationBackend } from '../notification-backends/base-notification-backend.js';
|
|
8
|
+
import type { EmailTemplate, EmailTemplateContent } from '../notification-template-renderers/base-email-template-renderer.js';
|
|
9
9
|
import type { BaseNotificationTemplateRenderer } from '../notification-template-renderers/base-notification-template-renderer.js';
|
|
10
10
|
/**
|
|
11
11
|
* Type guard to check if a notification is a one-off notification
|
|
@@ -44,6 +44,7 @@ export declare abstract class BaseNotificationAdapter<TemplateRenderer extends B
|
|
|
44
44
|
firstName: string;
|
|
45
45
|
lastName: string;
|
|
46
46
|
};
|
|
47
|
+
getTemplateRenderer(): TemplateRenderer;
|
|
47
48
|
injectBackend(backend: BaseNotificationBackend<Config>): void;
|
|
48
49
|
injectLogger(logger: BaseLogger): void;
|
|
49
50
|
renderFromTemplateContent(notification: AnyDatabaseNotification<Config>, templateContent: EmailTemplateContent, context: JsonObject): Promise<EmailTemplate>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-notification-adapter.d.ts","sourceRoot":"","sources":["../../../src/services/notification-adapters/base-notification-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"base-notification-adapter.d.ts","sourceRoot":"","sources":["../../../src/services/notification-adapters/base-notification-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EACV,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCA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IACH,SAAS,CAAC,gBAAgB,CACxB,YAAY,EAAE,uBAAuB,CAAC,MAAM,CAAC,EAC7C,OAAO,EAAE,SAAS,GACjB;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;IAuB1C,mBAAmB,IAAI,gBAAgB;IAIvC,aAAa,CAAC,OAAO,EAAE,uBAAuB,CAAC,MAAM,CAAC,GAAG,IAAI;IAI7D,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAIhC,yBAAyB,CAC7B,YAAY,EAAE,uBAAuB,CAAC,MAAM,CAAC,EAC7C,eAAe,EAAE,oBAAoB,EACrC,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,aAAa,CAAC;CAa1B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AttachmentFileRecord, StoredAttachment } from '../../types/attachment.js';
|
|
2
2
|
import type { InputJsonValue } from '../../types/json-values.js';
|
|
3
|
+
import type { AnyDatabaseNotification, AnyNotification, DatabaseNotification, DatabaseOneOffNotification, Notification, OneOffNotificationInput } from '../../types/notification.js';
|
|
3
4
|
import type { NotificationStatus } from '../../types/notification-status.js';
|
|
4
5
|
import type { NotificationType } from '../../types/notification-type.js';
|
|
5
|
-
import type { AnyDatabaseNotification, AnyNotification, DatabaseNotification, DatabaseOneOffNotification, Notification, OneOffNotificationInput } from '../../types/notification.js';
|
|
6
6
|
import type { BaseNotificationTypeConfig } from '../../types/notification-type-config.js';
|
|
7
7
|
import type { BaseLogger } from '../loggers/base-logger.js';
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-notification-backend.d.ts","sourceRoot":"","sources":["../../../src/services/notification-backends/base-notification-backend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"base-notification-backend.d.ts","sourceRoot":"","sources":["../../../src/services/notification-backends/base-notification-backend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EACV,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,0BAA0B,EAC1B,YAAY,EACZ,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,EAAE,CAAC,EAAE,IAAI,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,OAAO,GAAG,YAAY,GAAG,UAAU,GAAG,UAAU,CAAC;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,kBAAkB,CAAC;AAE5D,MAAM,MAAM,wBAAwB,GAChC,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,MAAM,0BAA0B,GAAG,KAAK,GAAG,MAAM,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,wBAAwB,CAAC;IAChC,SAAS,EAAE,0BAA0B,CAAC;CACvC,CAAC;AAEF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AAgB,oBAAoB,CAAC,KAAK,EAAE,iBAAiB,GAAG,KAAK,IAAI,kBAAkB,CAE1F;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,SAAS,0BAA0B,EAC3E,OAAO,EAAE,uBAAuB,CAAC,MAAM,CAAC,GACvC,OAAO,IAAI,uBAAuB,CAAC,MAAM,CAAC,GAAG;IAC9C,yBAAyB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAC9E,4BAA4B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IACrF,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,0BAA0B,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAC9D,cAAc,CAAC,cAAc,EAAE,MAAM,CAAC,oBAAoB,CAAC,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAC1F,4BAA4B,CAC1B,cAAc,EAAE,MAAM,CAAC,oBAAoB,CAAC,EAC5C,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB,CAUA"}
|
|
@@ -78,6 +78,7 @@ export declare class VintaSend<Config extends BaseNotificationTypeConfig, Adapte
|
|
|
78
78
|
private contextGeneratorsMap;
|
|
79
79
|
private backends;
|
|
80
80
|
private primaryBackendIdentifier;
|
|
81
|
+
private validateUniqueAdapterNotificationTypes;
|
|
81
82
|
/**
|
|
82
83
|
* Creates a VintaSend instance with one primary backend and optional additional backends.
|
|
83
84
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-service.d.ts","sourceRoot":"","sources":["../../src/services/notification-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EACV,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,0BAA0B,EAC1B,YAAY,EACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,sDAAsD,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"notification-service.d.ts","sourceRoot":"","sources":["../../src/services/notification-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EACV,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,0BAA0B,EAC1B,YAAY,EACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,KAAK,uBAAuB,EAE5B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACzB,MAAM,sDAAsD,CAAC;AAE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Injection(backend) {
|
|
|
20
20
|
typeof backend.injectAttachmentManager === 'function');
|
|
21
21
|
}
|
|
22
22
|
export class VintaSend {
|
|
23
|
+
validateUniqueAdapterNotificationTypes(adapters) {
|
|
24
|
+
const adapterKeysByType = new Map();
|
|
25
|
+
for (const adapter of adapters) {
|
|
26
|
+
const notificationType = String(adapter.notificationType);
|
|
27
|
+
const adapterKey = adapter.key ?? 'unknown';
|
|
28
|
+
const existingAdapterKeys = adapterKeysByType.get(notificationType);
|
|
29
|
+
if (existingAdapterKeys) {
|
|
30
|
+
existingAdapterKeys.push(adapterKey);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
adapterKeysByType.set(notificationType, [adapterKey]);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const duplicatedTypes = Array.from(adapterKeysByType.entries()).filter(([, adapterKeys]) => adapterKeys.length > 1);
|
|
37
|
+
if (duplicatedTypes.length === 0) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const duplicatedTypesDescription = duplicatedTypes
|
|
41
|
+
.map(([notificationType, adapterKeys]) => {
|
|
42
|
+
return `${notificationType} (${adapterKeys.join(', ')})`;
|
|
43
|
+
})
|
|
44
|
+
.join('; ');
|
|
45
|
+
throw new Error(`Duplicate adapter notification types are not allowed. Found duplicates for: ${duplicatedTypesDescription}`);
|
|
46
|
+
}
|
|
23
47
|
/**
|
|
24
48
|
* Creates a VintaSend instance with one primary backend and optional additional backends.
|
|
25
49
|
*
|
|
@@ -39,6 +63,7 @@ export class VintaSend {
|
|
|
39
63
|
this.options = options;
|
|
40
64
|
this.gitCommitShaProvider = gitCommitShaProvider;
|
|
41
65
|
this.replicationQueueService = replicationQueueService;
|
|
66
|
+
this.validateUniqueAdapterNotificationTypes(adapters);
|
|
42
67
|
this.contextGeneratorsMap = new NotificationContextGeneratorsMap(contextGeneratorsMap);
|
|
43
68
|
this.backends = new Map();
|
|
44
69
|
this.primaryBackendIdentifier = this.getBackendIdentifier(backend);
|
|
@@ -63,7 +88,7 @@ export class VintaSend {
|
|
|
63
88
|
adapter.injectBackend(backend);
|
|
64
89
|
adapter.injectLogger(logger);
|
|
65
90
|
// Inject logger into template renderer if it supports it
|
|
66
|
-
const templateRenderer = adapter.
|
|
91
|
+
const templateRenderer = adapter.getTemplateRenderer();
|
|
67
92
|
if (templateRenderer && typeof templateRenderer.injectLogger === 'function') {
|
|
68
93
|
templateRenderer.injectLogger(logger);
|
|
69
94
|
}
|
|
@@ -627,6 +652,16 @@ export class VintaSend {
|
|
|
627
652
|
lastAdapterKey = adapter.key ?? 'unknown';
|
|
628
653
|
try {
|
|
629
654
|
await adapter.send(notificationWithExecutionGitCommitSha, context);
|
|
655
|
+
try {
|
|
656
|
+
await this.executeMultiBackendWrite('markAsSent', async (backend) => {
|
|
657
|
+
return backend.markAsSent(notificationWithExecutionGitCommitSha.id, true);
|
|
658
|
+
}, async (backend) => {
|
|
659
|
+
await backend.markAsSent(notificationWithExecutionGitCommitSha.id, true);
|
|
660
|
+
}, notificationWithExecutionGitCommitSha.id);
|
|
661
|
+
}
|
|
662
|
+
catch (markSentError) {
|
|
663
|
+
this.logger.error(`Error marking notification ${notificationWithExecutionGitCommitSha.id} as sent: ${markSentError}`);
|
|
664
|
+
}
|
|
630
665
|
}
|
|
631
666
|
catch (sendError) {
|
|
632
667
|
this.logger.error(`Error sending notification ${notificationWithExecutionGitCommitSha.id} with adapter ${adapter.key}: ${sendError}`);
|
|
@@ -641,27 +676,19 @@ export class VintaSend {
|
|
|
641
676
|
this.logger.error(`Error marking notification ${notificationWithExecutionGitCommitSha.id} as failed: ${markFailedError}`);
|
|
642
677
|
}
|
|
643
678
|
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
679
|
+
finally {
|
|
680
|
+
try {
|
|
681
|
+
await this.executeMultiBackendWrite('storeAdapterAndContextUsed', async (backend) => {
|
|
682
|
+
await backend.storeAdapterAndContextUsed(notificationWithExecutionGitCommitSha.id, lastAdapterKey, context);
|
|
683
|
+
}, async (backend) => {
|
|
684
|
+
await backend.storeAdapterAndContextUsed(notificationWithExecutionGitCommitSha.id, lastAdapterKey, context);
|
|
685
|
+
}, notificationWithExecutionGitCommitSha.id);
|
|
686
|
+
}
|
|
687
|
+
catch (storeContextError) {
|
|
688
|
+
this.logger.error(`Error storing adapter and context for notification ${notificationWithExecutionGitCommitSha.id}: ${storeContextError}`);
|
|
689
|
+
}
|
|
653
690
|
}
|
|
654
691
|
}
|
|
655
|
-
try {
|
|
656
|
-
await this.executeMultiBackendWrite('storeAdapterAndContextUsed', async (backend) => {
|
|
657
|
-
await backend.storeAdapterAndContextUsed(notificationWithExecutionGitCommitSha.id, lastAdapterKey, context);
|
|
658
|
-
}, async (backend) => {
|
|
659
|
-
await backend.storeAdapterAndContextUsed(notificationWithExecutionGitCommitSha.id, lastAdapterKey, context);
|
|
660
|
-
}, notificationWithExecutionGitCommitSha.id);
|
|
661
|
-
}
|
|
662
|
-
catch (storeContextError) {
|
|
663
|
-
this.logger.error(`Error storing adapter and context for notification ${notificationWithExecutionGitCommitSha.id}: ${storeContextError}`);
|
|
664
|
-
}
|
|
665
692
|
}
|
|
666
693
|
async bulkPersistNotifications(notifications) {
|
|
667
694
|
return this.executeMultiBackendWrite('bulkPersistNotifications', async (backend) => {
|
|
@@ -2,8 +2,7 @@ import type { Buffer } from 'node:buffer';
|
|
|
2
2
|
import type { JsonObject } from '../../types/json-values.js';
|
|
3
3
|
import type { AnyNotification } from '../../types/notification.js';
|
|
4
4
|
import type { BaseNotificationTypeConfig } from '../../types/notification-type-config.js';
|
|
5
|
-
import
|
|
6
|
-
import type { BaseNotificationTemplateRenderer } from './base-notification-template-renderer.js';
|
|
5
|
+
import { BaseNotificationTemplateRenderer } from './base-notification-template-renderer.js';
|
|
7
6
|
export type Attachment = File | Buffer | string;
|
|
8
7
|
export type EmailTemplate = {
|
|
9
8
|
subject: string;
|
|
@@ -13,12 +12,8 @@ export type EmailTemplateContent = {
|
|
|
13
12
|
subject: string | null;
|
|
14
13
|
body: string;
|
|
15
14
|
};
|
|
16
|
-
export
|
|
17
|
-
render(
|
|
18
|
-
renderFromTemplateContent(
|
|
19
|
-
/**
|
|
20
|
-
* Inject logger into the template renderer (optional - called by VintaSend when logger exists)
|
|
21
|
-
*/
|
|
22
|
-
injectLogger?(logger: BaseLogger): void;
|
|
15
|
+
export declare abstract class BaseEmailTemplateRenderer<Config extends BaseNotificationTypeConfig> extends BaseNotificationTemplateRenderer<Config, EmailTemplate> {
|
|
16
|
+
render(_notification: AnyNotification<Config>, _context: JsonObject): Promise<EmailTemplate>;
|
|
17
|
+
renderFromTemplateContent(_notification: AnyNotification<Config>, _templateContent: EmailTemplateContent, _context: JsonObject): Promise<EmailTemplate>;
|
|
23
18
|
}
|
|
24
19
|
//# sourceMappingURL=base-email-template-renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-email-template-renderer.d.ts","sourceRoot":"","sources":["../../../src/services/notification-template-renderers/base-email-template-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,
|
|
1
|
+
{"version":3,"file":"base-email-template-renderer.d.ts","sourceRoot":"","sources":["../../../src/services/notification-template-renderers/base-email-template-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAE5F,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,8BAAsB,yBAAyB,CAC7C,MAAM,SAAS,0BAA0B,CACzC,SAAQ,gCAAgC,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/D,MAAM,CAAC,aAAa,EAAE,eAAe,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC;IAI5F,yBAAyB,CACvB,aAAa,EAAE,eAAe,CAAC,MAAM,CAAC,EACtC,gBAAgB,EAAE,oBAAoB,EACtC,QAAQ,EAAE,UAAU,GACnB,OAAO,CAAC,aAAa,CAAC;CAG1B"}
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { BaseNotificationTemplateRenderer } from './base-notification-template-renderer.js';
|
|
2
|
+
export class BaseEmailTemplateRenderer extends BaseNotificationTemplateRenderer {
|
|
3
|
+
render(_notification, _context) {
|
|
4
|
+
throw 'Not implemented';
|
|
5
|
+
}
|
|
6
|
+
renderFromTemplateContent(_notification, _templateContent, _context) {
|
|
7
|
+
throw 'Not implemented';
|
|
8
|
+
}
|
|
9
|
+
}
|
package/dist/services/notification-template-renderers/base-notification-template-renderer.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { JsonObject } from '../../types/json-values.js';
|
|
2
2
|
import type { AnyNotification } from '../../types/notification.js';
|
|
3
3
|
import type { BaseNotificationTypeConfig } from '../../types/notification-type-config.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import type { BaseLogger } from '../loggers/base-logger.js';
|
|
5
|
+
export declare abstract class BaseNotificationTemplateRenderer<Config extends BaseNotificationTypeConfig, T = unknown> {
|
|
6
|
+
logger: BaseLogger | null;
|
|
7
|
+
render(_notification: AnyNotification<Config>, _context: JsonObject): Promise<T>;
|
|
8
|
+
renderFromTemplateContent(_notification: AnyNotification<Config>, _templateContent: unknown, _context: JsonObject): Promise<T>;
|
|
9
|
+
injectLogger(logger: BaseLogger): void;
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=base-notification-template-renderer.d.ts.map
|
package/dist/services/notification-template-renderers/base-notification-template-renderer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-notification-template-renderer.d.ts","sourceRoot":"","sources":["../../../src/services/notification-template-renderers/base-notification-template-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"base-notification-template-renderer.d.ts","sourceRoot":"","sources":["../../../src/services/notification-template-renderers/base-notification-template-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,8BAAsB,gCAAgC,CACpD,MAAM,SAAS,0BAA0B,EACzC,CAAC,GAAG,OAAO;IAEX,MAAM,EAAE,UAAU,GAAG,IAAI,CAAQ;IAEjC,MAAM,CAAC,aAAa,EAAE,eAAe,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC;IAIhF,yBAAyB,CACvB,aAAa,EAAE,eAAe,CAAC,MAAM,CAAC,EACtC,gBAAgB,EAAE,OAAO,EACzB,QAAQ,EAAE,UAAU,GACnB,OAAO,CAAC,CAAC,CAAC;IAIb,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;CAGvC"}
|
package/dist/services/notification-template-renderers/base-notification-template-renderer.js
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export class BaseNotificationTemplateRenderer {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.logger = null;
|
|
4
|
+
}
|
|
5
|
+
render(_notification, _context) {
|
|
6
|
+
throw 'Not implemented';
|
|
7
|
+
}
|
|
8
|
+
renderFromTemplateContent(_notification, _templateContent, _context) {
|
|
9
|
+
throw 'Not implemented';
|
|
10
|
+
}
|
|
11
|
+
injectLogger(logger) {
|
|
12
|
+
this.logger = logger;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/dist/services/notification-template-renderers/base-text-notification-template-renderer.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { Buffer } from 'node:buffer';
|
|
2
|
-
import type { JsonObject } from '../../types/json-values.js';
|
|
3
|
-
import type { AnyNotification } from '../../types/notification.js';
|
|
4
2
|
import type { BaseNotificationTypeConfig } from '../../types/notification-type-config.js';
|
|
5
|
-
import
|
|
6
|
-
import type { BaseNotificationTemplateRenderer } from './base-notification-template-renderer.js';
|
|
3
|
+
import { BaseNotificationTemplateRenderer } from './base-notification-template-renderer.js';
|
|
7
4
|
export type Attachment = File | Buffer | string;
|
|
8
5
|
export type TextNotificationTemplate = {
|
|
9
6
|
text: string;
|
|
@@ -11,12 +8,6 @@ export type TextNotificationTemplate = {
|
|
|
11
8
|
export type TextNotificationTemplateContent = {
|
|
12
9
|
text: string;
|
|
13
10
|
};
|
|
14
|
-
export
|
|
15
|
-
render(notification: AnyNotification<Config>, context: JsonObject): Promise<TextNotificationTemplate>;
|
|
16
|
-
renderFromTemplateContent(notification: AnyNotification<Config>, templateContent: TextNotificationTemplateContent, context: JsonObject): Promise<TextNotificationTemplate>;
|
|
17
|
-
/**
|
|
18
|
-
* Inject logger into the template renderer (optional - called by VintaSend when logger exists)
|
|
19
|
-
*/
|
|
20
|
-
injectLogger?(logger: BaseLogger): void;
|
|
11
|
+
export declare abstract class BaseTextNotificationTemplateRenderer<Config extends BaseNotificationTypeConfig> extends BaseNotificationTemplateRenderer<Config, TextNotificationTemplate> {
|
|
21
12
|
}
|
|
22
13
|
//# sourceMappingURL=base-text-notification-template-renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-text-notification-template-renderer.d.ts","sourceRoot":"","sources":["../../../src/services/notification-template-renderers/base-text-notification-template-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"base-text-notification-template-renderer.d.ts","sourceRoot":"","sources":["../../../src/services/notification-template-renderers/base-text-notification-template-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAE5F,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhD,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,8BAAsB,oCAAoC,CACxD,MAAM,SAAS,0BAA0B,CACzC,SAAQ,gCAAgC,CAAC,MAAM,EAAE,wBAAwB,CAAC;CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vintasend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"format:implementations": "node scripts/run-implementations-script.js format",
|
|
30
30
|
"test:implementations:local": "node scripts/test-implementations-local.js",
|
|
31
31
|
"build:implementations:local": "node scripts/test-implementations-local.js --command=build",
|
|
32
|
-
"release:prepare": "npm run format:implementations && npm run test:implementations:local && npm run build:implementations:local",
|
|
32
|
+
"release:prepare": "npm run format && npm test && npm run format:implementations && npm run test:implementations:local && npm run build:implementations:local",
|
|
33
33
|
"release:bump": "node scripts/release-bump.js",
|
|
34
34
|
"release:bump:patch": "node scripts/release-bump.js --bump=patch",
|
|
35
35
|
"release:bump:minor": "node scripts/release-bump.js --bump=minor",
|