@live-change/online-service 0.8.9 → 0.8.11
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/index.js +13 -5
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -24,6 +24,7 @@ async function sendOnlineEvent(path) {
|
|
|
24
24
|
try {
|
|
25
25
|
if(type == 'object') {
|
|
26
26
|
const { group } = params
|
|
27
|
+
console.log("PARAMs", params)
|
|
27
28
|
const triggerName = `${group}Online`
|
|
28
29
|
console.log("TRIGGER", triggerName)
|
|
29
30
|
await app.trigger({
|
|
@@ -260,12 +261,19 @@ definition.view({
|
|
|
260
261
|
|
|
261
262
|
definition.view({
|
|
262
263
|
name: "object",
|
|
263
|
-
properties: {
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
properties: {
|
|
265
|
+
objectType: {
|
|
266
|
+
type: String
|
|
267
|
+
},
|
|
268
|
+
objectId: {
|
|
269
|
+
type: String
|
|
270
|
+
}
|
|
266
271
|
},
|
|
267
|
-
async
|
|
268
|
-
return onlineClient.
|
|
272
|
+
async get({ objectType, objectId }, { client, service }) {
|
|
273
|
+
return onlineClient.get(['online', 'object', { objectType, objectId }])
|
|
274
|
+
},
|
|
275
|
+
async observable({ objectType, objectId }, { client, service }) {
|
|
276
|
+
return onlineClient.observable(['online', 'object', { objectType, objectId }], ReactiveDao.ObservableValue)
|
|
269
277
|
}
|
|
270
278
|
})
|
|
271
279
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/online-service",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
},
|
|
11
11
|
"author": "Michał Łaszczewski <michal@emikse.com>",
|
|
12
12
|
"license": "BSD-3-Clause",
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "c69f8c0c5b1f9c8b62d74bd44e97dccbdc789c5a",
|
|
14
14
|
"type": "module"
|
|
15
15
|
}
|