@onereach/types-contacts-api 1.44.5 → 1.44.7-beta.1380.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.
- package/dist/index.ts +19 -12
- package/package.json +2 -3
package/dist/index.ts
CHANGED
|
@@ -11,13 +11,8 @@ export interface ListApiResponse {
|
|
|
11
11
|
total: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface ContactParamsDto
|
|
15
|
-
contact_book
|
|
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
|
|
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[];
|
|
@@ -162,6 +162,10 @@ export interface CrossAccountMetaDto {
|
|
|
162
162
|
original_book_id: string;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
export interface FieldSchemaDeleteParamsDto {
|
|
166
|
+
softDelete?: boolean;
|
|
167
|
+
}
|
|
168
|
+
|
|
165
169
|
export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
|
|
166
170
|
q?: string;
|
|
167
171
|
}
|
|
@@ -209,18 +213,21 @@ export interface AbstractFilterCondition {
|
|
|
209
213
|
|
|
210
214
|
export interface CreateFilterDto {
|
|
211
215
|
name: string;
|
|
212
|
-
contact_book
|
|
216
|
+
contact_book?: string;
|
|
213
217
|
match_all: boolean;
|
|
214
218
|
conditions: FieldValueFilterConditionDto[] | ContactFilterConditionDto[];
|
|
215
219
|
}
|
|
216
220
|
|
|
221
|
+
export interface DynamicFilterDto extends ReturnType<typeof OmitType<CreateFilterDto, ['name']>> {
|
|
222
|
+
}
|
|
223
|
+
|
|
217
224
|
export interface FieldValueFilterConditionDto extends AbstractFilterCondition {
|
|
218
|
-
|
|
225
|
+
field: string;
|
|
219
226
|
propertyPath?: string[];
|
|
220
227
|
}
|
|
221
228
|
|
|
222
229
|
export interface FilterListParamsDto extends ListApiParams {
|
|
223
|
-
contact_book
|
|
230
|
+
contact_book?: string;
|
|
224
231
|
}
|
|
225
232
|
|
|
226
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.44.
|
|
4
|
+
"version": "1.44.7-beta.1380.0",
|
|
5
5
|
"author": "OneReach.ai",
|
|
6
6
|
"main": "./dist/index.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -17,6 +17,5 @@
|
|
|
17
17
|
"@types/node": "^18.11.10",
|
|
18
18
|
"ts-morph": "^17.0.1",
|
|
19
19
|
"ts-node": "^10.9.1"
|
|
20
|
-
}
|
|
21
|
-
"gitHead": "e9c521b04057f28f2886ce1d422730744c556a6a"
|
|
20
|
+
}
|
|
22
21
|
}
|