@onereach/types-contacts-api 1.37.6-beta.860.0 → 1.37.7-beta.1005.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 +25 -9
  2. package/package.json +1 -1
package/dist/index.ts CHANGED
@@ -52,6 +52,14 @@ export interface DeleteContactParamsDto {
52
52
  contact_book: string;
53
53
  }
54
54
 
55
+ export interface LinkContactMultiParamsDto extends LinkContactParamsDto {
56
+ ids: string[];
57
+ }
58
+
59
+ export interface LinkContactParamsDto {
60
+ contact_book: string;
61
+ }
62
+
55
63
  export interface MergeContactParamsDto {
56
64
  contact_book: string;
57
65
  mergeContactId: string;
@@ -99,6 +107,7 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
99
107
  updated_at: Date;
100
108
  contactsCount: number;
101
109
  status?: SharedBookStatus;
110
+ sharedBy?: string;
102
111
  }
103
112
 
104
113
  export interface CreateContactBookDto {
@@ -123,12 +132,8 @@ export interface ShareContactBookParamsDto {
123
132
  targetAccountId: string;
124
133
  }
125
134
 
126
- export interface SharedBookMetaParamsDto {
127
- accountId: string;
128
- bookIds: string;
129
- }
130
-
131
135
  export interface SharedBookResponseDto {
136
+ id: string;
132
137
  approved_by?: string;
133
138
  status: SharedBookStatus;
134
139
  target_account: string;
@@ -143,6 +148,10 @@ export enum SharedBookStatus {
143
148
  deletedFromSource = 'deletedFromSource'
144
149
  }
145
150
 
151
+ export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
152
+ q?: string;
153
+ }
154
+
146
155
  export interface FieldSchemaListDto extends ListApiResponse {
147
156
  items: FieldSchemaResponseDto[];
148
157
  }
@@ -166,17 +175,24 @@ export interface FieldValueResponseDto {
166
175
  schemaId: string;
167
176
  }
168
177
 
178
+ export interface ContactFilterConditionDto extends AbstractFilterCondition {
179
+ contactField: 'created_at' | 'updated_at';
180
+ }
181
+
182
+ export interface AbstractFilterCondition {
183
+ operator: string;
184
+ value: any;
185
+ }
186
+
169
187
  export interface CreateFilterDto {
170
188
  name: string;
171
189
  contact_book: string;
172
190
  match_all: boolean;
173
- conditions: FilterConditionDto[];
191
+ conditions: FieldValueFilterConditionDto[] | ContactFilterConditionDto[];
174
192
  }
175
193
 
176
- export interface FilterConditionDto {
194
+ export interface FieldValueFilterConditionDto extends AbstractFilterCondition {
177
195
  schema: string;
178
- operator: string;
179
- value: any;
180
196
  propertyPath?: string[];
181
197
  }
182
198
 
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.6-beta.860.0",
4
+ "version": "1.37.7-beta.1005.0",
5
5
  "author": "OneReach.ai",
6
6
  "main": "./dist/index.ts",
7
7
  "publishConfig": {