@onereach/types-contacts-api 1.45.0 → 1.46.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.
Files changed (2) hide show
  1. package/dist/index.ts +16 -13
  2. package/package.json +2 -2
package/dist/index.ts CHANGED
@@ -11,13 +11,8 @@ export interface ListApiResponse {
11
11
  total: number;
12
12
  }
13
13
 
14
- export interface ContactParamsDto extends ListApiParams {
15
- contact_book: string;
16
- }
17
-
18
- export interface ListApiParams {
19
- take?: number;
20
- skip?: number;
14
+ export interface ContactParamsDto {
15
+ contact_book?: string;
21
16
  }
22
17
 
23
18
  export interface ContactRequestDto {
@@ -33,15 +28,20 @@ export interface ContactResponseDto {
33
28
  }
34
29
 
35
30
  export interface ContactSearchParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
36
- contact_book: string;
31
+ contact_book?: string;
37
32
  q?: string;
38
- filter?: string;
33
+ filter?: string | DynamicFilterDto;
39
34
  }
40
35
 
41
36
  export interface OrderParams {
42
37
  order?: string;
43
38
  }
44
39
 
40
+ export interface ListApiParams {
41
+ take?: number;
42
+ skip?: number;
43
+ }
44
+
45
45
  export interface CreateContactDto {
46
46
  contact_book: string;
47
47
  data: FieldValueRequestDto[];
@@ -163,7 +163,7 @@ export interface CrossAccountMetaDto {
163
163
  }
164
164
 
165
165
  export interface FieldSchemaDeleteParamsDto {
166
- softDelete: boolean;
166
+ softDelete?: boolean;
167
167
  }
168
168
 
169
169
  export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
@@ -213,18 +213,21 @@ export interface AbstractFilterCondition {
213
213
 
214
214
  export interface CreateFilterDto {
215
215
  name: string;
216
- contact_book: string;
216
+ contact_book?: string;
217
217
  match_all: boolean;
218
218
  conditions: FieldValueFilterConditionDto[] | ContactFilterConditionDto[];
219
219
  }
220
220
 
221
+ export interface DynamicFilterDto extends ReturnType<typeof OmitType<CreateFilterDto, 'name'>> {
222
+ }
223
+
221
224
  export interface FieldValueFilterConditionDto extends AbstractFilterCondition {
222
- schema: string;
225
+ field: string;
223
226
  propertyPath?: string[];
224
227
  }
225
228
 
226
229
  export interface FilterListParamsDto extends ListApiParams {
227
- contact_book: string;
230
+ contact_book?: string;
228
231
  }
229
232
 
230
233
  export interface FilterListDto extends ListApiResponse {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onereach/types-contacts-api",
3
3
  "description": "Generated types for Contacts Api",
4
- "version": "1.45.0",
4
+ "version": "1.46.0",
5
5
  "author": "OneReach.ai",
6
6
  "main": "./dist/index.ts",
7
7
  "publishConfig": {
@@ -18,5 +18,5 @@
18
18
  "ts-morph": "^17.0.1",
19
19
  "ts-node": "^10.9.1"
20
20
  },
21
- "gitHead": "07a55b8c25293a33c48b910600bdf7b64ed8c0cb"
21
+ "gitHead": "62c4398f0232045f21c868adc581f11a3f5058a1"
22
22
  }