@onereach/types-hitl-api 0.0.38 → 0.0.40-rc.0

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,6 +1,6 @@
1
1
  import { AGENT_STATUS, USER_ROLE } from '@/constants/api';
2
2
  import { ITargetAccountId } from '@/interfaces/api/common';
3
- export interface IAgent<T extends IMeta = IMeta> {
3
+ export interface IAgent {
4
4
  readonly id: string;
5
5
  readonly agentId: string;
6
6
  readonly multiUserId: string;
@@ -8,12 +8,7 @@ export interface IAgent<T extends IMeta = IMeta> {
8
8
  readonly email: string;
9
9
  readonly ruleGroupIds: string[];
10
10
  readonly statusData: Omit<IAgentStatus, 'agentId'>;
11
- readonly meta: T;
12
- }
13
- export interface IMeta {
14
- readonly firstName?: string;
15
- readonly lastName?: string;
16
- readonly type?: string;
11
+ readonly meta: object;
17
12
  }
18
13
  export interface IGetAgentsOptions extends ITargetAccountId {
19
14
  readonly accountId?: string;
@@ -104,6 +99,7 @@ export interface IUpdateAgentsStatusBody<T extends IStatusChangeContext = IStatu
104
99
  }
105
100
  export interface ISyncAgentsOptions {
106
101
  readonly accountId: string;
102
+ readonly token: string;
107
103
  readonly agentIds?: string[];
108
104
  }
109
105
  export declare type ISyncAgentsQuery = ITargetAccountId;
@@ -22,7 +22,7 @@ export interface IGetConferenceMembersResponse {
22
22
  readonly data: IConferenceMember[];
23
23
  }
24
24
  export declare type IAddOrUpdateConferenceMemberQuery = ITargetAccountId;
25
- export declare type IAddOrUpdateConferenceMemberBody = Pick<IConferenceMember, 'hitlSessionId' | 'memberId'> & Omit<Partial<IConferenceMember>, 'hitlSessionId' | 'memberId' | 'joinedAt'>;
25
+ export declare type IAddOrUpdateConferenceMemberBody = ITargetAccountId & Pick<IConferenceMember, 'hitlSessionId' | 'memberId'> & Omit<Partial<IConferenceMember>, 'hitlSessionId' | 'memberId' | 'joinedAt'>;
26
26
  export interface ICleanUpConferenceQuery extends ITargetAccountId {
27
27
  readonly memberId?: string;
28
28
  readonly hitlSessionId?: string;
@@ -12,6 +12,7 @@ export interface IGetMigrationsQuery extends ITargetAccountId {
12
12
  export interface IRunMigrationsQuery extends IGetMigrationsQuery {
13
13
  readonly name?: string;
14
14
  readonly method?: 'up' | 'down';
15
+ readonly lazy?: boolean;
15
16
  }
16
17
  export interface IGetMigrationsResponse {
17
18
  readonly executed: IMigration[];
@@ -124,6 +124,7 @@ export interface IContactSearchParams {
124
124
  export interface ISearchSessionsWithContactsOptions {
125
125
  readonly accountId: string;
126
126
  readonly agentId: string;
127
+ readonly token: string;
127
128
  readonly contact?: IContactSearchParams;
128
129
  readonly dateRange?: IDateRangeOptions;
129
130
  readonly searchPhrase?: string;
@@ -132,7 +133,7 @@ export interface ISearchSessionsWithContactsOptions {
132
133
  readonly contactsSearchOptions?: IContactSearchOptions;
133
134
  }
134
135
  export declare type ISearchSessionsWithContactsQuery = ITargetAccountId & ITargetUserId;
135
- export declare type ISearchSessionsWithContactsBody = Omit<ISearchSessionsWithContactsOptions, 'accountId' | 'agentId'>;
136
+ export declare type ISearchSessionsWithContactsBody = Omit<ISearchSessionsWithContactsOptions, 'accountId' | 'agentId' | 'token'>;
136
137
  export interface IGetQueueSessionOptions {
137
138
  readonly accountId: string;
138
139
  readonly agentId: string;
@@ -154,6 +155,7 @@ export interface ITransferToBotBody {
154
155
  readonly params?: object;
155
156
  }
156
157
  export interface IUpdateSessionBody {
158
+ readonly meta?: JSONType;
157
159
  readonly tags?: string[];
158
160
  readonly contactId?: string;
159
161
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/types-hitl-api",
3
- "version": "0.0.38",
3
+ "version": "0.0.40-rc.0",
4
4
  "author": "OneReach.ai",
5
5
  "main": "dist/types/index.types.js",
6
6
  "types": "dist/types/index.types.d.ts",