-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathinsertNotificationHandler.cjs
More file actions
85 lines (84 loc) · 2.98 KB
/
insertNotificationHandler.cjs
File metadata and controls
85 lines (84 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
const insertNotificationHandler = async ({deep, notificationPort, notificationRoute, portTypeId, routerListeningTypeId, routerTypeId, routerStringUseTypeId, routeTypeId, handleRouteTypeId, handlerTypeId, supportsId, containTypeId, adminId, fileTypeId, handlerName, code}) => {
return await deep.insert(
{
type_id: portTypeId,
number: {
data: { value: notificationPort },
},
in: {
data: {
type_id: routerListeningTypeId,
from: {
data: {
type_id: routerTypeId,
in: {
data: {
type_id: routerStringUseTypeId,
string: {
data: {
value:
notificationRoute,
},
},
from: {
data: {
type_id: routeTypeId,
out: {
data: {
type_id: handleRouteTypeId,
to: {
data: {
type_id: handlerTypeId,
from_id: supportsId,
in: {
data: {
type_id: containTypeId,
// from_id: deep.linkId,
from_id: adminId,
string: {
data: {
value: handlerName,
},
},
},
},
to: {
data: {
type_id: fileTypeId,
string: {
data: {
value: code,
},
},
in: {
data: {
type_id: containTypeId,
from_id: packageId,
string: {
data: {
value: handlerName,
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
{
name: 'INSERT_HANDLE_ROUTE_HIERARCHICAL',
}
)
}
exports.insertNotificationHandler = insertNotificationHandler;