@webitel/api-services 0.1.44 → 0.1.45

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/api-services",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,6 +15,7 @@ import {
15
15
  sanitize,
16
16
  snakeToCamel,
17
17
  } from '../../transformers';
18
+ import { generatePermissionsApi } from '../_shared/generatePermissionsApi';
18
19
  import { ContactsSearchMode } from './enums/ContactsSearchMode';
19
20
 
20
21
  const instance = getDefaultInstance();
@@ -22,6 +23,8 @@ const configuration = getDefaultOpenAPIConfig();
22
23
 
23
24
  const contactService = ContactsApiFactory(configuration, '', instance);
24
25
 
26
+ const baseUrl = '/contacts';
27
+
25
28
  const formatAccessMode = (item) => ({
26
29
  ...item,
27
30
  access: {
@@ -447,4 +450,6 @@ export const ContactsAPI = {
447
450
  update,
448
451
  delete: deleteContact,
449
452
  getLookup: getContactsLookup,
453
+
454
+ ...generatePermissionsApi(baseUrl),
450
455
  };
@@ -1,4 +1,15 @@
1
1
  export declare const ContactsAPI: {
2
+ getPermissionsList: ({ parentId, ...params }: {
3
+ [x: string]: any;
4
+ parentId: any;
5
+ }) => Promise<{
6
+ items: any;
7
+ next: any;
8
+ }>;
9
+ patchPermissions: ({ changes, id }: {
10
+ changes: any;
11
+ id: any;
12
+ }) => Promise<any>;
2
13
  getList: (params: any) => Promise<{
3
14
  items: any;
4
15
  next: any;