@webitel/ui-sdk 3.2.71 → 3.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "3.2.71",
3
+ "version": "3.2.73",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -97,6 +97,7 @@ export default {
97
97
  options: 'Option | Options',
98
98
  emails: 'Email | Emails',
99
99
  phones: 'Phone | Phones',
100
+ messaging: 'Messaging',
100
101
  },
101
102
  // date-related texts
102
103
  date: {
@@ -96,6 +96,7 @@ export default {
96
96
  options: 'Опция | Опции',
97
97
  emails: 'Email | Emails',
98
98
  phones: 'Телефон | Телефоны',
99
+ messaging: 'Сообщения',
99
100
  },
100
101
  // date-related texts
101
102
  date: {
@@ -96,6 +96,7 @@ export default {
96
96
  options: 'Опція | Опції',
97
97
  emails: 'Email | Emails',
98
98
  phones: 'Телефон | Телефони',
99
+ messaging: 'Повідомлення',
99
100
  },
100
101
  // date-related texts
101
102
  date: {
@@ -16,22 +16,25 @@ export default class ApiStoreModule extends BaseStoreModule {
16
16
  this.actions
17
17
  .POST_ITEM = (
18
18
  _,
19
- { context: callerContext = {} } = {},
20
- ) => api.add(callerContext.state);
19
+ { context: callerContext = {}, params = {} } = {},
20
+ ) => api.add({ ...callerContext.state, ...params });
21
21
  this.actions
22
- .PATCH_ITEM = (_, { context: callerContext = {}, id, changes }) => (
23
- api.patch({ ...callerContext.state, id, changes })
22
+ .PATCH_ITEM = (
23
+ _,
24
+ { context: callerContext = {}, params = {}, id, changes },
25
+ ) => (
26
+ api.patch({ ...callerContext.state, ...params, id, changes })
24
27
  );
25
28
  this.actions
26
29
  .UPD_ITEM = (
27
30
  _,
28
- { context: callerContext = {} } = {},
29
- ) => api.update(callerContext.state);
31
+ { context: callerContext = {}, params = {} } = {},
32
+ ) => api.update({ ...callerContext.state, ...params });
30
33
  this.actions
31
34
  .DELETE_ITEM = (
32
35
  _,
33
- { context: callerContext = {}, id },
34
- ) => api.delete({ ...callerContext.state, id });
36
+ { context: callerContext = {}, params = {}, id },
37
+ ) => api.delete({ ...callerContext.state, ...params, id });
35
38
  return this;
36
39
  }
37
40
  }