@reventlessdev/trait-notification 1.0.0-alpha.6 → 1.0.0-alpha.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/trait-notification",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"description": "Notification domain trait: rules, host contract, conformance suite and emitter for a per-recipient contact directory, a kind x channel subscription matrix, and the decision to send, suppress or record a message as undeliverable",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"sury": "11.0.0-rc.2",
|
|
15
15
|
"sury-ppx": "11.0.0-rc.2",
|
|
16
|
-
"@reventlessdev/reventless-gwt": "1.0.0-alpha.
|
|
17
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.
|
|
16
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.206",
|
|
17
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.132"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"rescript": "12.3.0"
|
|
@@ -1005,7 +1005,7 @@ let contactRelayPatch = (c: config): patch => {
|
|
|
1005
1005
|
let n = namesOf(c)
|
|
1006
1006
|
let id = n.recipientId
|
|
1007
1007
|
{
|
|
1008
|
-
into: `${c.chapter}/
|
|
1008
|
+
into: `${c.chapter}/OutboundTranslation/${n.relay}.res (new, plus its _Translation)`,
|
|
1009
1009
|
at: `a new file — the trait cannot write what this host's events mean`,
|
|
1010
1010
|
contents: lines(
|
|
1011
1011
|
Array.flatMap(
|
|
@@ -1085,7 +1085,7 @@ let intakeRelayPatch = (c: config): patch => {
|
|
|
1085
1085
|
let n = namesOf(c)
|
|
1086
1086
|
let id = n.recipientId
|
|
1087
1087
|
{
|
|
1088
|
-
into: `${c.chapter}/
|
|
1088
|
+
into: `${c.chapter}/Automation/${n.intake}.res (new, plus its _Automation)`,
|
|
1089
1089
|
at: `a new file — the wording is this host's sentence, not the trait's`,
|
|
1090
1090
|
contents: lines([
|
|
1091
1091
|
`// Turns one of this host's occurrences into a request to notify somebody.`,
|
|
@@ -1266,16 +1266,16 @@ let emit = (~config: config, ~into: string, ~tests: string): output => {
|
|
|
1266
1266
|
let n = namesOf(config)
|
|
1267
1267
|
{
|
|
1268
1268
|
files: [
|
|
1269
|
-
{path: `${into}/
|
|
1270
|
-
{path: `${into}/
|
|
1271
|
-
{path: `${into}/
|
|
1269
|
+
{path: `${into}/StateChange/${n.slice}.res`, contents: sliceSpec(config)},
|
|
1270
|
+
{path: `${into}/StateChange/${n.slice}_Behavior.res`, contents: sliceBehavior(config)},
|
|
1271
|
+
{path: `${into}/StateChange/${n.claims}.res`, contents: claimsSpec(config)},
|
|
1272
1272
|
{
|
|
1273
|
-
path: `${into}/
|
|
1273
|
+
path: `${into}/StateChange/${n.claims}_Behavior.res`,
|
|
1274
1274
|
contents: claimsBehavior(config),
|
|
1275
1275
|
},
|
|
1276
|
-
{path: `${into}/
|
|
1276
|
+
{path: `${into}/OutboundTranslation/${n.send}.res`, contents: sendSpec(config)},
|
|
1277
1277
|
{
|
|
1278
|
-
path: `${into}/
|
|
1278
|
+
path: `${into}/OutboundTranslation/${n.send}_Translation.res`,
|
|
1279
1279
|
contents: sendTranslation(config),
|
|
1280
1280
|
},
|
|
1281
1281
|
{path: `${tests}/NotificationConformance_GWT.res`, contents: conformanceBinding(config)},
|
|
@@ -879,7 +879,7 @@ function contactRelayPatch(c) {
|
|
|
879
879
|
let n = namesOf(c);
|
|
880
880
|
let id = n.recipientId;
|
|
881
881
|
return {
|
|
882
|
-
into: c.chapter + `/
|
|
882
|
+
into: c.chapter + `/OutboundTranslation/` + n.relay + `.res (new, plus its _Translation)`,
|
|
883
883
|
at: `a new file — the trait cannot write what this host's events mean`,
|
|
884
884
|
contents: [
|
|
885
885
|
[
|
|
@@ -952,7 +952,7 @@ function intakeRelayPatch(c) {
|
|
|
952
952
|
let n = namesOf(c);
|
|
953
953
|
let id = n.recipientId;
|
|
954
954
|
return {
|
|
955
|
-
into: c.chapter + `/
|
|
955
|
+
into: c.chapter + `/Automation/` + n.intake + `.res (new, plus its _Automation)`,
|
|
956
956
|
at: `a new file — the wording is this host's sentence, not the trait's`,
|
|
957
957
|
contents: [
|
|
958
958
|
`// Turns one of this host's occurrences into a request to notify somebody.`,
|
|
@@ -1128,27 +1128,27 @@ function emit(config, into, tests) {
|
|
|
1128
1128
|
return {
|
|
1129
1129
|
files: [
|
|
1130
1130
|
{
|
|
1131
|
-
path: into + `/
|
|
1131
|
+
path: into + `/StateChange/` + n.slice + `.res`,
|
|
1132
1132
|
contents: sliceSpec(config)
|
|
1133
1133
|
},
|
|
1134
1134
|
{
|
|
1135
|
-
path: into + `/
|
|
1135
|
+
path: into + `/StateChange/` + n.slice + `_Behavior.res`,
|
|
1136
1136
|
contents: sliceBehavior(config)
|
|
1137
1137
|
},
|
|
1138
1138
|
{
|
|
1139
|
-
path: into + `/
|
|
1139
|
+
path: into + `/StateChange/` + n.claims + `.res`,
|
|
1140
1140
|
contents: claimsSpec(config)
|
|
1141
1141
|
},
|
|
1142
1142
|
{
|
|
1143
|
-
path: into + `/
|
|
1143
|
+
path: into + `/StateChange/` + n.claims + `_Behavior.res`,
|
|
1144
1144
|
contents: claimsBehavior(config)
|
|
1145
1145
|
},
|
|
1146
1146
|
{
|
|
1147
|
-
path: into + `/
|
|
1147
|
+
path: into + `/OutboundTranslation/` + n.send + `.res`,
|
|
1148
1148
|
contents: sendSpec(config)
|
|
1149
1149
|
},
|
|
1150
1150
|
{
|
|
1151
|
-
path: into + `/
|
|
1151
|
+
path: into + `/OutboundTranslation/` + n.send + `_Translation.res`,
|
|
1152
1152
|
contents: sendTranslation(config)
|
|
1153
1153
|
},
|
|
1154
1154
|
{
|