@live-change/user-service 0.8.70 → 0.8.72

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": "@live-change/user-service",
3
- "version": "0.8.70",
3
+ "version": "0.8.72",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,9 +22,9 @@
22
22
  },
23
23
  "type": "module",
24
24
  "dependencies": {
25
- "@live-change/framework": "^0.8.70",
26
- "@live-change/relations-plugin": "^0.8.70",
25
+ "@live-change/framework": "^0.8.72",
26
+ "@live-change/relations-plugin": "^0.8.72",
27
27
  "pluralize": "^8.0.0"
28
28
  },
29
- "gitHead": "560679d86691f507c84a4ce951a567cfb3cc37aa"
29
+ "gitHead": "58800a29cbc31ab9292cfaeeb1cdf2eeee21244d"
30
30
  }
@@ -182,13 +182,14 @@ definition.processor(function(service, app) {
182
182
  const extendedCombinations = [[]].concat(allCombinations(extendedWith).slice(0, -1))
183
183
  for(const combination of extendedCombinations) {
184
184
  const propsUpperCase = combination.map(prop => prop[0].toUpperCase() + prop.slice(1))
185
- const indexName = 'by' + (combination).map(prop => prop[0].toUpperCase() + prop.slice(1))
185
+ const indexName = 'by' + (['SessionOrUser', ...combination])
186
+ .map(prop => prop[0].toUpperCase() + prop.slice(1))
186
187
  const viewName = 'my' + propsUpperCase.join('And') + pluralize(modelName)
187
188
  const identifiers = createIdentifiersProperties(combination)
188
189
  service.views[viewName] = new ViewDefinition({
189
190
  name: viewName,
190
191
  properties: {
191
- ...extendedIdentifiersProperties,
192
+ ...identifiers,
192
193
  ...App.rangeProperties,
193
194
  },
194
195
  access(params, context) {
@@ -199,6 +200,7 @@ definition.processor(function(service, app) {
199
200
  for (const key of combination) {
200
201
  owner.push(params[key + 'Type'], params[key])
201
202
  }
203
+ console.log("PATH", modelRuntime().indexRangePath(indexName, owner, App.extractRange(params) ))
202
204
  return modelRuntime().indexRangePath(indexName, owner, App.extractRange(params) )
203
205
  }
204
206
  })