@onereach/types-contacts-api 1.37.7-beta.876.0 → 1.37.7-beta.881.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 +11 -4
  2. package/package.json +1 -1
package/dist/index.ts CHANGED
@@ -162,17 +162,24 @@ export interface FieldValueResponseDto {
162
162
  schemaId: string;
163
163
  }
164
164
 
165
+ export interface ContactFilterConditionDto extends AbstractFilterCondition {
166
+ contactField: 'created_at' | 'updated_at';
167
+ }
168
+
169
+ export interface AbstractFilterCondition {
170
+ operator: string;
171
+ value: any;
172
+ }
173
+
165
174
  export interface CreateFilterDto {
166
175
  name: string;
167
176
  contact_book: string;
168
177
  match_all: boolean;
169
- conditions: FilterConditionDto[];
178
+ conditions: FieldValueFilterConditionDto[] | ContactFilterConditionDto[];
170
179
  }
171
180
 
172
- export interface FilterConditionDto {
181
+ export interface FieldValueFilterConditionDto extends AbstractFilterCondition {
173
182
  schema: string;
174
- operator: string;
175
- value: any;
176
183
  propertyPath?: string[];
177
184
  }
178
185
 
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.37.7-beta.876.0",
4
+ "version": "1.37.7-beta.881.0",
5
5
  "author": "OneReach.ai",
6
6
  "main": "./dist/index.ts",
7
7
  "publishConfig": {