openchs-models 1.30.72 → 1.30.73

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.
@@ -167,9 +167,7 @@ const refData = (clazz, {
167
167
  translated,
168
168
  parent,
169
169
  syncWeight,
170
- resUrl,
171
- syncPushRequired = true,
172
- syncPullRequired = true
170
+ resUrl
173
171
  } = {}) => ({
174
172
  schemaName: clazz.schema.name,
175
173
  entityName: clazz.schema.name,
@@ -180,14 +178,20 @@ const refData = (clazz, {
180
178
  resourceSearchFilterURL: filter,
181
179
  parent: parent,
182
180
  syncWeight: syncWeight,
183
- resourceUrl: resUrl,
184
- syncPushRequired,
185
- syncPullRequired
181
+ resourceUrl: resUrl
186
182
  });
187
183
 
188
184
  const refDataNameTranslated = (clazz, attrs = {}) => refData(clazz, _objectSpread({}, attrs, {
189
185
  translated: true
190
186
  }));
187
+ /*
188
+ const userInfo = txData(UserInfo, {
189
+ resUrl: "me",
190
+ apiVersion: "v2",
191
+ syncWeight: 1,
192
+ });
193
+ */
194
+
191
195
 
192
196
  const txData = (clazz, {
193
197
  entityName,
@@ -202,9 +206,7 @@ const txData = (clazz, {
202
206
  queryParam,
203
207
  hasMoreThanOneAssociation,
204
208
  apiQueryParams,
205
- apiQueryParamKey,
206
- syncPushRequired = true,
207
- syncPullRequired = true
209
+ apiQueryParamKey
208
210
  } = {}) => ({
209
211
  schemaName: clazz.schema.name,
210
212
  entityName: entityName || clazz.schema.name,
@@ -222,9 +224,7 @@ const txData = (clazz, {
222
224
  queryParam,
223
225
  hasMoreThanOneAssociation: !!hasMoreThanOneAssociation,
224
226
  apiQueryParams,
225
- apiQueryParamKey,
226
- syncPushRequired,
227
- syncPullRequired
227
+ apiQueryParamKey
228
228
  });
229
229
 
230
230
  const checklistDetail = refData(_ChecklistDetail.default, {
@@ -394,10 +394,10 @@ const syncTelemetry = txData(_SyncTelemetry.default, {
394
394
  syncWeight: 1,
395
395
  syncPullRequired: false
396
396
  });
397
- const userInfo = txData(_UserInfo.default, {
398
- resUrl: "me",
399
- apiVersion: "v2",
400
- syncWeight: 1
397
+ const userInfo = refData(_UserInfo.default, {
398
+ resUrl: "v2/me",
399
+ syncWeight: 1,
400
+ filter: ""
401
401
  });
402
402
  const identifierAssignment = txData(_IdentifierAssignment.default, {
403
403
  syncWeight: 0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.30.72",
4
+ "version": "1.30.73",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",