@onereach/types-hitl-api 0.0.32-rc.8 → 0.0.32-rc.9
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.
|
@@ -34,3 +34,7 @@ export interface IPageOptions {
|
|
|
34
34
|
export interface ICommonArrayResponse<T = object> {
|
|
35
35
|
readonly data: T[];
|
|
36
36
|
}
|
|
37
|
+
/** Dates are serialized into strings when sent by network */
|
|
38
|
+
export declare type IDateToString<T> = {
|
|
39
|
+
[Property in keyof T]: T[Property] extends Date | undefined ? string : T[Property];
|
|
40
|
+
};
|
|
@@ -29,5 +29,7 @@ export interface ICallbackId {
|
|
|
29
29
|
export declare type IGetListenersQuery = ITargetAccountId & ITargetUserId;
|
|
30
30
|
export declare type IGetListenersResponse = ICommonArrayResponse<IListener>;
|
|
31
31
|
export declare type ICreateListenerQuery = ITargetAccountId & ITargetUserId;
|
|
32
|
-
export declare type ICreateListenerBody =
|
|
32
|
+
export declare type ICreateListenerBody = {
|
|
33
|
+
callback: Partial<IListenerCallback>;
|
|
34
|
+
} & Pick<Partial<IListener>, 'type' | 'version' | 'sessionIds'>;
|
|
33
35
|
export declare type IUpdateListenerBody = Pick<IListener, 'sessionIds'>;
|
|
@@ -31,6 +31,7 @@ export interface ICommand {
|
|
|
31
31
|
readonly name: string;
|
|
32
32
|
readonly ruleTags: string[];
|
|
33
33
|
readonly allowUnclaimed: boolean;
|
|
34
|
+
readonly visibility?: 'default' | 'api';
|
|
34
35
|
}
|
|
35
36
|
export interface ICommandParam {
|
|
36
37
|
readonly properties: ICommandParamProperties;
|
|
@@ -59,8 +60,8 @@ export interface IGetSessionsOptions {
|
|
|
59
60
|
readonly orderBy?: string;
|
|
60
61
|
readonly page?: IPageOptions;
|
|
61
62
|
}
|
|
62
|
-
export declare type IGetSessionsQuery = Partial<IGetSessionsOptions
|
|
63
|
-
export declare type IGetSessionByIdQuery = Partial<IGetSessionByIdOptions
|
|
63
|
+
export declare type IGetSessionsQuery = Partial<IGetSessionsOptions>;
|
|
64
|
+
export declare type IGetSessionByIdQuery = Partial<Omit<IGetSessionByIdOptions, 'sessionId'>>;
|
|
64
65
|
export interface IGetSessionsResponse {
|
|
65
66
|
readonly data: ISession[];
|
|
66
67
|
readonly page?: {
|
|
@@ -101,7 +102,8 @@ export interface ISearchSessionsOptions {
|
|
|
101
102
|
readonly meta?: Record<string, string>;
|
|
102
103
|
readonly sessionsSearchOptions?: ISessionSearchOptions;
|
|
103
104
|
}
|
|
104
|
-
export declare type ISearchSessionsQuery =
|
|
105
|
+
export declare type ISearchSessionsQuery = ITargetAccountId & ITargetUserId;
|
|
106
|
+
export declare type ISearchSessionsBody = Omit<ISearchSessionsOptions, 'accountId' | 'agentId'>;
|
|
105
107
|
export interface ISearchSessionsWithContactsResponse {
|
|
106
108
|
readonly data: ISession[];
|
|
107
109
|
readonly page?: {
|
|
@@ -129,7 +131,8 @@ export interface ISearchSessionsWithContactsOptions {
|
|
|
129
131
|
readonly sessionsSearchOptions?: ISessionSearchOptions;
|
|
130
132
|
readonly contactsSearchOptions?: IContactSearchOptions;
|
|
131
133
|
}
|
|
132
|
-
export declare type ISearchSessionsWithContactsQuery =
|
|
134
|
+
export declare type ISearchSessionsWithContactsQuery = ITargetAccountId & ITargetUserId;
|
|
135
|
+
export declare type ISearchSessionsWithContactsBody = Omit<ISearchSessionsWithContactsOptions, 'accountId' | 'agentId'>;
|
|
133
136
|
export interface IGetQueueSessionOptions {
|
|
134
137
|
readonly accountId: string;
|
|
135
138
|
readonly agentId: string;
|