@onereach/types-contacts-api 3.1.5-beta.2034.0 → 3.2.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 +12 -11
- package/package.json +3 -2
package/dist/index.ts
CHANGED
|
@@ -54,6 +54,7 @@ export interface ContactSearchParamsDto extends ReturnType<typeof IntersectionTy
|
|
|
54
54
|
q?: string;
|
|
55
55
|
filter?: string | DynamicFilterDto;
|
|
56
56
|
contactIds?: string[];
|
|
57
|
+
projection?: string[];
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
export interface OrderParams {
|
|
@@ -85,6 +86,16 @@ export interface DeleteContactParamsDto {
|
|
|
85
86
|
contact_book: string;
|
|
86
87
|
}
|
|
87
88
|
|
|
89
|
+
export interface FindAllParamsDto extends ReturnType<typeof OmitType<ContactSearchParamsDto, 'order' | 'take' | 'skip'>> {
|
|
90
|
+
size?: number;
|
|
91
|
+
from?: number;
|
|
92
|
+
orderProperty?: string;
|
|
93
|
+
orderDirection?: OrderDirection;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type OrderDirection = 'asc' | 'desc';
|
|
97
|
+
export type OrderType = { by: string; order: 'asc' | 'desc'; };
|
|
98
|
+
|
|
88
99
|
export interface LinkContactMultiParamsDto {
|
|
89
100
|
ids: string[];
|
|
90
101
|
contact_books: string[];
|
|
@@ -190,16 +201,6 @@ export interface CrossAccountMetaDto {
|
|
|
190
201
|
original_book_id: string;
|
|
191
202
|
}
|
|
192
203
|
|
|
193
|
-
export interface MigrationStateResponseDto {
|
|
194
|
-
state: MigrationState;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export enum MigrationState {
|
|
198
|
-
InProgress = 'InProgress',
|
|
199
|
-
ToDo = 'ToDo',
|
|
200
|
-
Done = 'Done'
|
|
201
|
-
}
|
|
202
|
-
|
|
203
204
|
export interface FieldSchemaDeleteParamsDto {
|
|
204
205
|
softDelete?: boolean;
|
|
205
206
|
}
|
|
@@ -267,7 +268,7 @@ export interface DynamicFilterDto extends ReturnType<typeof OmitType<CreateFilte
|
|
|
267
268
|
}
|
|
268
269
|
|
|
269
270
|
export interface FieldValueFilterConditionDto extends AbstractFilterCondition {
|
|
270
|
-
|
|
271
|
+
field: string;
|
|
271
272
|
propertyPath?: string[];
|
|
272
273
|
}
|
|
273
274
|
|
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": "3.
|
|
4
|
+
"version": "3.2.0",
|
|
5
5
|
"author": "OneReach.ai",
|
|
6
6
|
"main": "./dist/index.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -14,5 +14,6 @@
|
|
|
14
14
|
"@types/node": "^18.11.10",
|
|
15
15
|
"ts-morph": "^17.0.1",
|
|
16
16
|
"ts-node": "^10.9.1"
|
|
17
|
-
}
|
|
17
|
+
},
|
|
18
|
+
"gitHead": "4a564404eb5cdd5832c9e2be1c41a13bff0b9f27"
|
|
18
19
|
}
|