@live-change/message-authentication-service 0.8.117 → 0.8.118
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/authentication.js +17 -3
- package/package.json +3 -3
package/authentication.js
CHANGED
|
@@ -34,6 +34,18 @@ const targetProperties = {
|
|
|
34
34
|
type: Object
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
},
|
|
38
|
+
fallbackPage: {
|
|
39
|
+
type: Object,
|
|
40
|
+
properties: {
|
|
41
|
+
name: {
|
|
42
|
+
type: String,
|
|
43
|
+
validation: ['nonEmpty']
|
|
44
|
+
},
|
|
45
|
+
params: {
|
|
46
|
+
type: Object
|
|
47
|
+
}
|
|
48
|
+
}
|
|
37
49
|
}
|
|
38
50
|
}
|
|
39
51
|
|
|
@@ -64,11 +76,12 @@ const Authentication = definition.model({
|
|
|
64
76
|
|
|
65
77
|
definition.event({
|
|
66
78
|
name: 'authenticationCreated',
|
|
67
|
-
execute({ authentication, contactType, contact, action, actionProperties,
|
|
79
|
+
execute({ authentication, contactType, contact, action, actionProperties,
|
|
80
|
+
targetPage, fallbackPage, messageData }) {
|
|
68
81
|
return Authentication.create({
|
|
69
82
|
id: authentication,
|
|
70
83
|
contactType, contact,
|
|
71
|
-
action, actionProperties, targetPage,
|
|
84
|
+
action, actionProperties, targetPage, fallbackPage,
|
|
72
85
|
messageData,
|
|
73
86
|
state: 'created'
|
|
74
87
|
})
|
|
@@ -102,7 +115,7 @@ definition.trigger({
|
|
|
102
115
|
...targetProperties,
|
|
103
116
|
...messageProperties
|
|
104
117
|
},
|
|
105
|
-
async execute({ contactType, contact, action, actionProperties, targetPage, messageData },
|
|
118
|
+
async execute({ contactType, contact, action, actionProperties, targetPage, fallbackPage, messageData },
|
|
106
119
|
{ client, service }, emit) {
|
|
107
120
|
const authentication = app.generateUid()
|
|
108
121
|
const secrets = await service.trigger({ type: 'authenticationSecret' }, {
|
|
@@ -127,6 +140,7 @@ definition.trigger({
|
|
|
127
140
|
action,
|
|
128
141
|
actionProperties,
|
|
129
142
|
targetPage,
|
|
143
|
+
fallbackPage,
|
|
130
144
|
messageData
|
|
131
145
|
})
|
|
132
146
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/message-authentication-service",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.118",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "^0.8.
|
|
24
|
+
"@live-change/framework": "^0.8.118",
|
|
25
25
|
"nodemailer": "^6.7.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "cfccde9b1d340cbb23df96a2f0fba72da0a6e3ab",
|
|
28
28
|
"type": "module"
|
|
29
29
|
}
|