@webitel/ui-sdk 25.8.69 → 25.8.71

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": "@webitel/ui-sdk",
3
- "version": "25.8.69",
3
+ "version": "25.8.71",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
@@ -90,7 +90,7 @@ const getRole = async ({ itemId: id }) => {
90
90
  try {
91
91
  const response = await rolesApiFactory.readRole(id, fieldsToSend);
92
92
  return applyTransform(response.data, [
93
- snakeToCamel(),
93
+ // snakeToCamel(), // prevent role "access" custom lookups from being converted to camelCase
94
94
  merge(defaultObject),
95
95
  itemResponseHandler,
96
96
  ]);
@@ -107,7 +107,9 @@ const addRole = async ({ itemInstance }) => {
107
107
  ]);
108
108
  try {
109
109
  const response = await rolesApiFactory.createRole(item);
110
- return applyTransform(response.data, [snakeToCamel()]);
110
+ return applyTransform(response.data, [
111
+ // snakeToCamel(), // prevent role "access" custom lookups from being converted to camelCase
112
+ ]);
111
113
  } catch (err) {
112
114
  throw applyTransform(err, [notify]);
113
115
  }
@@ -122,7 +124,9 @@ const updateRole = async ({ itemInstance, itemId: id }) => {
122
124
 
123
125
  try {
124
126
  const response = await rolesApiFactory.updateRole(id, item);
125
- return applyTransform(response.data, [snakeToCamel()]);
127
+ return applyTransform(response.data, [
128
+ // snakeToCamel(), // prevent role "access" custom lookups from being converted to camelCase
129
+ ]);
126
130
  } catch (err) {
127
131
  throw applyTransform(err, [notify]);
128
132
  }
@@ -291,7 +291,7 @@ export default {
291
291
  [CrmSectionsNew.CustomLookups]: ({ linked }) =>
292
292
  linked('objects.customization.customization') +
293
293
  ': ' +
294
- linked('objects.customLookup'),
294
+ linked('objects.customLookup.customLookup'),
295
295
  },
296
296
  },
297
297
  },
@@ -285,7 +285,7 @@ export default {
285
285
  [CrmSectionsNew.CustomLookups]: ({ linked }) =>
286
286
  linked('objects.customization.customization') +
287
287
  ': ' +
288
- linked('objects.customLookup'),
288
+ linked('objects.customLookup.customLookup'),
289
289
  },
290
290
  },
291
291
  },
@@ -291,7 +291,7 @@ export default {
291
291
  [CrmSectionsNew.CustomLookups]: ({ linked }) =>
292
292
  linked('objects.customization.customization') +
293
293
  ': ' +
294
- linked('objects.customLookup'),
294
+ linked('objects.customLookup.customLookup'),
295
295
  },
296
296
  },
297
297
  },
@@ -291,7 +291,7 @@ export default {
291
291
  [CrmSectionsNew.CustomLookups]: ({ linked }) =>
292
292
  linked('objects.customization.customization') +
293
293
  ': ' +
294
- linked('objects.customLookup'),
294
+ linked('objects.customLookup.customLookup'),
295
295
  },
296
296
  },
297
297
  },
@@ -291,7 +291,7 @@ export default {
291
291
  [CrmSectionsNew.CustomLookups]: ({ linked }) =>
292
292
  linked('objects.customization.customization') +
293
293
  ': ' +
294
- linked('objects.customLookup'),
294
+ linked('objects.customLookup.customLookup'),
295
295
  },
296
296
  },
297
297
  },
@@ -291,7 +291,7 @@ export default {
291
291
  [CrmSectionsNew.CustomLookups]: ({ linked }) =>
292
292
  linked('objects.customization.customization') +
293
293
  ': ' +
294
- linked('objects.customLookup'),
294
+ linked('objects.customLookup.customLookup'),
295
295
  },
296
296
  },
297
297
  },
@@ -290,7 +290,7 @@ export default {
290
290
  [CrmSectionsNew.CustomLookups]: ({ linked }) =>
291
291
  linked('objects.customization.customization') +
292
292
  ': ' +
293
- linked('objects.customLookup'),
293
+ linked('objects.customLookup.customLookup'),
294
294
  },
295
295
  },
296
296
  },
@@ -290,7 +290,7 @@ export default {
290
290
  [CrmSectionsNew.CustomLookups]: ({ linked }) =>
291
291
  linked('objects.customization.customization') +
292
292
  ': ' +
293
- linked('objects.customLookup'),
293
+ linked('objects.customLookup.customLookup'),
294
294
  },
295
295
  },
296
296
  },
@@ -291,7 +291,7 @@ export default {
291
291
  [CrmSectionsNew.CustomLookups]: ({ linked }) =>
292
292
  linked('objects.customization.customization') +
293
293
  ': ' +
294
- linked('objects.customLookup'),
294
+ linked('objects.customLookup.customLookup'),
295
295
  },
296
296
  },
297
297
  },