@onereach/types-hitl-api 0.0.54-rc.1 → 0.0.54-rc.3

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.
@@ -6,7 +6,7 @@ export interface ISession<Meta = any> extends ITimestamps {
6
6
  readonly claimedBy: string[];
7
7
  readonly claimedByHistory: string[];
8
8
  readonly contactId: string;
9
- readonly closedAt?: Date;
9
+ readonly closedAt?: Date | null;
10
10
  readonly isArchived: boolean;
11
11
  readonly needsAction: boolean;
12
12
  readonly needsActionFrom: string[];
@@ -77,6 +77,8 @@ export interface IContactSearchOptions {
77
77
  readonly from?: number;
78
78
  readonly size?: number;
79
79
  readonly sort?: string;
80
+ readonly orderDirection?: 'asc' | 'desc';
81
+ readonly orderProperty?: string;
80
82
  }
81
83
  export interface ISessionSearchOptions {
82
84
  readonly projection?: string[];
@@ -126,6 +128,8 @@ export interface ISearchSessionsWithContactsResponse {
126
128
  };
127
129
  }
128
130
  export interface IContactSearchParams {
131
+ readonly firstName?: string;
132
+ readonly lastName?: string;
129
133
  readonly name?: string;
130
134
  readonly phoneNumbers?: string;
131
135
  readonly emails?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/types-hitl-api",
3
- "version": "0.0.54-rc.1",
3
+ "version": "0.0.54-rc.3",
4
4
  "author": "OneReach.ai",
5
5
  "main": "dist/types/index.types.js",
6
6
  "types": "dist/types/index.types.d.ts",