@webitel/api-services 26.8.54 → 26.8.56

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.
@@ -95,6 +95,7 @@ export * from './triggers/triggerJobs';
95
95
  export * from './triggers/triggers';
96
96
  export * from './userSettings/userSettings';
97
97
  export * from './users/users';
98
+ export * from './userTokens/userTokens';
98
99
  export * from './variables/variables';
99
100
  export * from './workingConditions/workingConditions';
100
101
  export * from './workspaceWidgets/workspaceWidgets';
@@ -1,3 +1,4 @@
1
+ import type { ContactsTimelineEventType } from '../../../gen-wire/_models';
1
2
  import type { ApiId, ApiParams } from '../_shared/types';
2
3
  type TimelineEntity = 'case' | 'contact';
3
4
  export declare const TimelineAPI: {
@@ -12,9 +13,10 @@ export declare const TimelineAPI: {
12
13
  entity: TimelineEntity;
13
14
  parentId: ApiId;
14
15
  }) => Promise<any>;
15
- getInfo: ({ parentId, type, id, }: {
16
+ getInfo: ({ entity, parentId, type, id, }: {
17
+ entity: TimelineEntity;
16
18
  parentId: ApiId;
17
- type: "chat" | "call" | "email";
19
+ type: ContactsTimelineEventType;
18
20
  id: ApiId;
19
21
  }) => Promise<any>;
20
22
  };
@@ -0,0 +1,11 @@
1
+ import type { ApiParams, NestedAddItemParams, NestedDeleteItemParams, NestedGetItemParams, NestedUpdateItemParams } from '../_shared/types';
2
+ export declare const UserTokensAPI: {
3
+ getList: (params: ApiParams) => Promise<{
4
+ items: any;
5
+ next: any;
6
+ }>;
7
+ get: ({ parentId, itemId: id }: NestedGetItemParams) => Promise<any>;
8
+ add: ({ parentId, itemInstance, }: NestedAddItemParams) => Promise<any>;
9
+ update: ({ parentId, itemId: id, itemInstance, }: NestedUpdateItemParams) => Promise<any>;
10
+ delete: ({ parentId, id }: NestedDeleteItemParams) => Promise<any>;
11
+ };
@@ -1,4 +1,4 @@
1
1
  import type { FormatDateMode } from '../enums/FormatDateMode/FormatDateMode';
2
- export declare function formatDate(date: string | number | Date, to: (typeof FormatDateMode)[keyof typeof FormatDateMode], { timezone, }?: {
2
+ export declare function formatDate(date: string | number | Date | null | undefined, to: (typeof FormatDateMode)[keyof typeof FormatDateMode], { timezone, }?: {
3
3
  timezone?: string;
4
4
  }): string;
@@ -45,4 +45,5 @@ export * from './slaCondition/slaCondition.validations';
45
45
  export * from './typeExtension/typeExtension.validations';
46
46
  export * from './types';
47
47
  export * from './user/user.validations';
48
+ export * from './userToken/userToken.validations';
48
49
  export * from './variable/variable.validations';
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ export declare const userTokenSchema: z.ZodObject<{
3
+ usage: z.ZodDefault<z.ZodString>;
4
+ }, z.core.$strip>;