@webitel/api-services 0.1.54 → 0.1.55

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.
@@ -1,5 +1,5 @@
1
1
  import axios, { type CreateAxiosDefaults } from 'axios';
2
- interface GenerateInstanceOptions extends CreateAxiosDefaults {
2
+ export interface GenerateInstanceOptions extends CreateAxiosDefaults {
3
3
  interceptors?: {
4
4
  request?: Parameters<ReturnType<typeof axios.create>['interceptors']['request']['use']>[];
5
5
  response?: Parameters<ReturnType<typeof axios.create>['interceptors']['response']['use']>[];
@@ -14,4 +14,3 @@ interface GenerateInstanceOptions extends CreateAxiosDefaults {
14
14
  * @returns Configured Axios instance
15
15
  */
16
16
  export declare const generateInstance: ({ interceptors, baseURL, ...rest }?: GenerateInstanceOptions) => import("axios").AxiosInstance;
17
- export {};
@@ -0,0 +1,10 @@
1
+ export declare const ChatDialogsAPI: {
2
+ getList: (params: any) => Promise<{
3
+ items: any;
4
+ next: any;
5
+ }>;
6
+ getLookup: (params: any) => Promise<{
7
+ items: any;
8
+ next: any;
9
+ }>;
10
+ };
@@ -15,6 +15,7 @@ export * from './caseStatusConditions/caseStatusConditions';
15
15
  export * from './caseStatuses/caseStatuses';
16
16
  export * from './catalog/catalog';
17
17
  export * from './changelogs/changelogs';
18
+ export * from './chatDialogs/chatDialogs';
18
19
  export * from './chatGateways/chatGateways';
19
20
  export * from './communications/communications';
20
21
  export * from './configurations/configurations';
@@ -1,2 +1,2 @@
1
- declare const camelToSnakeTransformer: (skipKeys?: any[]) => (obj: any) => any;
1
+ declare const camelToSnakeTransformer: (skipKeys?: string[]) => (obj: any) => any;
2
2
  export default camelToSnakeTransformer;
@@ -1,2 +1,2 @@
1
- declare const snakeToCamelTransformer: (skipKeys?: any[]) => (obj: any) => any;
1
+ declare const snakeToCamelTransformer: (skipKeys?: string[]) => (obj: any) => any;
2
2
  export default snakeToCamelTransformer;
@@ -2,8 +2,8 @@ import type { I18n } from 'vue-i18n';
2
2
  export type ApiServicesConfig = {
3
3
  eventBus?: {
4
4
  $emit: (event: string, payload: unknown) => unknown;
5
- };
6
- i18n?: I18n;
5
+ } | null;
6
+ i18n?: I18n | null;
7
7
  };
8
8
  export declare const config: ApiServicesConfig;
9
9
  export declare const setConfig: (conf: ApiServicesConfig) => void;
@@ -3,5 +3,5 @@ export interface DownloadFileOptions {
3
3
  response: any;
4
4
  fileFormat: FileFormat;
5
5
  filename?: string;
6
- mimetype?: string;
6
+ mimetype?: string | null;
7
7
  }
@@ -4,6 +4,6 @@ export declare const kebabToCamel: (str: any) => any;
4
4
  export declare const camelToKebab: (str: any) => any;
5
5
  export declare const kebabToSnake: (str: any) => any;
6
6
  export declare const snakeToKebab: (str: any) => any;
7
- export declare const objSnakeToCamel: (obj: any, skipKeys?: any[]) => any;
8
- export declare const objCamelToSnake: (obj: any, skipKeys?: any[]) => any;
7
+ export declare const objSnakeToCamel: (obj: any, skipKeys?: string[]) => any;
8
+ export declare const objCamelToSnake: (obj: any, skipKeys?: string[]) => any;
9
9
  export declare const objCamelToKebab: (obj: any, skipKeys?: any[]) => any;