@memberjunction/notifications 6.3.0-edge.0 → 6.3.0-edge.1
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 +20 -2
- package/dist/NotificationEngine.d.ts +43 -1
- package/dist/NotificationEngine.d.ts.map +1 -1
- package/dist/NotificationEngine.js +93 -13
- package/dist/NotificationEngine.js.map +1 -1
- package/dist/__tests__/NotificationEngine.test.js +99 -0
- package/dist/__tests__/NotificationEngine.test.js.map +1 -1
- package/dist/__tests__/scoped-notification-config-resolver.test.js +17 -0
- package/dist/__tests__/scoped-notification-config-resolver.test.js.map +1 -1
- package/dist/scoped-notification-config-resolver.d.ts +21 -3
- package/dist/scoped-notification-config-resolver.d.ts.map +1 -1
- package/dist/scoped-notification-config-resolver.js +38 -12
- package/dist/scoped-notification-config-resolver.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +9 -9
|
@@ -30,6 +30,11 @@ export interface ScopedNotificationConfigRow {
|
|
|
30
30
|
Email: ChannelAccess;
|
|
31
31
|
SMS: ChannelAccess;
|
|
32
32
|
IsLocked: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Reserved. Rows are sorted by it inside a specificity level, but `decide()` gives Deny the win over Allow at
|
|
35
|
+
* equal specificity whatever the order, so today it changes no outcome. Kept so a later rule can use it without a
|
|
36
|
+
* schema change.
|
|
37
|
+
*/
|
|
33
38
|
Priority: number;
|
|
34
39
|
Status: string;
|
|
35
40
|
}
|
|
@@ -60,8 +65,12 @@ export interface ScopedChannelDecisions {
|
|
|
60
65
|
* In scope: a global row (no primary record, no secondary scopes); a row whose primary record is the caller's primary
|
|
61
66
|
* scope, the recipient, or a role the recipient holds; and in every case a row whose secondary scopes all match the
|
|
62
67
|
* notice's. Specificity is the primitive's score: secondary match +4, primary record +2, global +1, ties by `Priority`.
|
|
63
|
-
* At equal specificity one `Deny` beats any `Allow`, MJ's permission rule. A `Deny` on a row with `IsLocked`
|
|
64
|
-
*
|
|
68
|
+
* At equal specificity one `Deny` beats any `Allow`, MJ's permission rule. A `Deny` on a row with `IsLocked` turns the
|
|
69
|
+
* channel off regardless of specificity, and the recipient's own preference cannot turn it back on. `Priority` is
|
|
70
|
+
* reserved: it orders rows inside a level but decides nothing (see {@link ScopedNotificationConfigRow.Priority}).
|
|
71
|
+
*
|
|
72
|
+
* A row whose `SecondaryScopes` is not a JSON object is out of scope for every notice and is logged once: read as
|
|
73
|
+
* "no secondary scopes" it would apply to every caller.
|
|
65
74
|
*
|
|
66
75
|
* Pluggable through `ClassFactory`: `CreateScopedNotificationConfigResolver()` returns a host's
|
|
67
76
|
* `@RegisterClass(ScopedNotificationConfigResolver)` subclass when one is registered, else this base. The base itself
|
|
@@ -81,8 +90,17 @@ export declare class ScopedNotificationConfigResolver {
|
|
|
81
90
|
protected score(c: ScopedNotificationConfigRow): number;
|
|
82
91
|
/** The most specific non-null answer for one channel, Deny winning a tie, with the lock noted. */
|
|
83
92
|
private decide;
|
|
84
|
-
|
|
93
|
+
/** The row's secondary scopes; `{}` when it has none, `null` when the stored value is not a JSON object. */
|
|
94
|
+
protected parseScopes(json: string | null | undefined): Record<string, SecondaryScopeValue> | null;
|
|
95
|
+
/** Row IDs already reported as malformed, so a cached bad row is logged once per process, not per notice. */
|
|
96
|
+
private static readonly loggedMalformed;
|
|
97
|
+
private logMalformedScopes;
|
|
85
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Parses a scoped config's `SecondaryScopes`: `{}` for empty, the object when it is a JSON object, `null` for anything
|
|
101
|
+
* else (bad JSON, an array, a scalar). Shared with the entity's server-side validation.
|
|
102
|
+
*/
|
|
103
|
+
export declare function ParseSecondaryScopes(json: string | null | undefined): Record<string, SecondaryScopeValue> | null;
|
|
86
104
|
/** The resolver the engine uses: the base class, or a host's registered subclass. */
|
|
87
105
|
export declare function CreateScopedNotificationConfigResolver(): ScopedNotificationConfigResolver;
|
|
88
106
|
/** One channel's inputs from every level, in the order the engine resolves them. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoped-notification-config-resolver.d.ts","sourceRoot":"","sources":["../src/scoped-notification-config-resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scoped-notification-config-resolver.d.ts","sourceRoot":"","sources":["../src/scoped-notification-config-resolver.ts"],"names":[],"mappings":"AAGA,uFAAuF;AACvF,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CACvD;AAED,2FAA2F;AAC3F,eAAO,MAAM,yBAAyB,WAAW,CAAC;AAClD,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEpE,uGAAuG;AACvG,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,aAAa,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,yFAAyF;AACzF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MA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AAmB,CAAC,GAAG,IAAI,CAQhH;AAED,qFAAqF;AACrF,wBAAgB,sCAAsC,IAAI,gCAAgC,CAEzF;AAED,oFAAoF;AACpF,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,WAAW,EAAE,OAAO,CAAC;IACrB,oCAAoC;IACpC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,uGAAuG;IACvG,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAM7D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LogError } from '@memberjunction/core';
|
|
1
2
|
import { MJGlobal, UUIDsEqual } from '@memberjunction/global';
|
|
2
3
|
/** The well-known secondary dimension this package sets: who or what caused the notice. */
|
|
3
4
|
export const NOTIFICATION_ORIGIN_SCOPE = 'origin';
|
|
@@ -11,8 +12,12 @@ const RESOLVABLE_STATUSES = new Set(['Active', 'Provisional']);
|
|
|
11
12
|
* In scope: a global row (no primary record, no secondary scopes); a row whose primary record is the caller's primary
|
|
12
13
|
* scope, the recipient, or a role the recipient holds; and in every case a row whose secondary scopes all match the
|
|
13
14
|
* notice's. Specificity is the primitive's score: secondary match +4, primary record +2, global +1, ties by `Priority`.
|
|
14
|
-
* At equal specificity one `Deny` beats any `Allow`, MJ's permission rule. A `Deny` on a row with `IsLocked`
|
|
15
|
-
*
|
|
15
|
+
* At equal specificity one `Deny` beats any `Allow`, MJ's permission rule. A `Deny` on a row with `IsLocked` turns the
|
|
16
|
+
* channel off regardless of specificity, and the recipient's own preference cannot turn it back on. `Priority` is
|
|
17
|
+
* reserved: it orders rows inside a level but decides nothing (see {@link ScopedNotificationConfigRow.Priority}).
|
|
18
|
+
*
|
|
19
|
+
* A row whose `SecondaryScopes` is not a JSON object is out of scope for every notice and is logged once: read as
|
|
20
|
+
* "no secondary scopes" it would apply to every caller.
|
|
16
21
|
*
|
|
17
22
|
* Pluggable through `ClassFactory`: `CreateScopedNotificationConfigResolver()` returns a host's
|
|
18
23
|
* `@RegisterClass(ScopedNotificationConfigResolver)` subclass when one is registered, else this base. The base itself
|
|
@@ -50,6 +55,10 @@ export class ScopedNotificationConfigResolver {
|
|
|
50
55
|
return false;
|
|
51
56
|
}
|
|
52
57
|
const rowScopes = this.parseScopes(c.SecondaryScopes);
|
|
58
|
+
if (rowScopes === null) {
|
|
59
|
+
this.logMalformedScopes(c);
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
53
62
|
for (const key of Object.keys(rowScopes)) {
|
|
54
63
|
const sent = scope?.secondaryScopes?.[key];
|
|
55
64
|
if (sent === undefined || String(sent) !== String(rowScopes[key]))
|
|
@@ -62,7 +71,7 @@ export class ScopedNotificationConfigResolver {
|
|
|
62
71
|
let s = 1;
|
|
63
72
|
if (c.PrimaryScopeRecordID)
|
|
64
73
|
s += 2;
|
|
65
|
-
if (Object.keys(this.parseScopes(c.SecondaryScopes)).length > 0)
|
|
74
|
+
if (Object.keys(this.parseScopes(c.SecondaryScopes) ?? {}).length > 0)
|
|
66
75
|
s += 4;
|
|
67
76
|
return s;
|
|
68
77
|
}
|
|
@@ -84,16 +93,33 @@ export class ScopedNotificationConfigResolver {
|
|
|
84
93
|
}
|
|
85
94
|
return { value: null, lockedOff: false };
|
|
86
95
|
}
|
|
96
|
+
/** The row's secondary scopes; `{}` when it has none, `null` when the stored value is not a JSON object. */
|
|
87
97
|
parseScopes(json) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return
|
|
96
|
-
|
|
98
|
+
return ParseSecondaryScopes(json);
|
|
99
|
+
}
|
|
100
|
+
/** Row IDs already reported as malformed, so a cached bad row is logged once per process, not per notice. */
|
|
101
|
+
static { this.loggedMalformed = new Set(); }
|
|
102
|
+
logMalformedScopes(c) {
|
|
103
|
+
const key = c.ID.toLowerCase();
|
|
104
|
+
if (ScopedNotificationConfigResolver.loggedMalformed.has(key))
|
|
105
|
+
return;
|
|
106
|
+
ScopedNotificationConfigResolver.loggedMalformed.add(key);
|
|
107
|
+
LogError(`Scoped notification config ${c.ID} is skipped: its SecondaryScopes is not a JSON object (${c.SecondaryScopes}).`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Parses a scoped config's `SecondaryScopes`: `{}` for empty, the object when it is a JSON object, `null` for anything
|
|
112
|
+
* else (bad JSON, an array, a scalar). Shared with the entity's server-side validation.
|
|
113
|
+
*/
|
|
114
|
+
export function ParseSecondaryScopes(json) {
|
|
115
|
+
if (!json || !json.trim())
|
|
116
|
+
return {};
|
|
117
|
+
try {
|
|
118
|
+
const parsed = JSON.parse(json);
|
|
119
|
+
return parsed && typeof parsed === 'object' && !Array.isArray(parsed) ? parsed : null;
|
|
120
|
+
}
|
|
121
|
+
catch {
|
|
122
|
+
return null;
|
|
97
123
|
}
|
|
98
124
|
}
|
|
99
125
|
/** The resolver the engine uses: the base class, or a host's registered subclass. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoped-notification-config-resolver.js","sourceRoot":"","sources":["../src/scoped-notification-config-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAiB9D,2FAA2F;AAC3F,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"scoped-notification-config-resolver.js","sourceRoot":"","sources":["../src/scoped-notification-config-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAiB9D,2FAA2F;AAC3F,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAAC;AAmDlD,kGAAkG;AAClG,MAAM,mBAAmB,GA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