@onereach/types-contacts-api 1.37.6 → 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.
- package/dist/index.ts +54 -9
- package/package.json +2 -3
package/dist/index.ts
CHANGED
|
@@ -42,6 +42,24 @@ export interface CreateContactDto {
|
|
|
42
42
|
data: FieldValueRequestDto[];
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
export interface DeleteContactMultiParamsDto extends DeleteContactParamsDto {
|
|
46
|
+
ids?: string[];
|
|
47
|
+
contact_book: string;
|
|
48
|
+
all?: true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface DeleteContactParamsDto {
|
|
52
|
+
contact_book: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface LinkContactMultiParamsDto extends LinkContactParamsDto {
|
|
56
|
+
ids: string[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface LinkContactParamsDto {
|
|
60
|
+
contact_book: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
45
63
|
export interface MergeContactParamsDto {
|
|
46
64
|
contact_book: string;
|
|
47
65
|
mergeContactId: string;
|
|
@@ -87,8 +105,9 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
|
|
|
87
105
|
id: string;
|
|
88
106
|
created_at: Date;
|
|
89
107
|
updated_at: Date;
|
|
90
|
-
|
|
91
|
-
|
|
108
|
+
contactsCount: number;
|
|
109
|
+
status?: SharedBookStatus;
|
|
110
|
+
sharedBy?: string;
|
|
92
111
|
}
|
|
93
112
|
|
|
94
113
|
export interface CreateContactBookDto {
|
|
@@ -97,13 +116,15 @@ export interface CreateContactBookDto {
|
|
|
97
116
|
schemaPresets?: SchemaPresetResponseDto[];
|
|
98
117
|
}
|
|
99
118
|
|
|
119
|
+
export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
|
|
120
|
+
}
|
|
121
|
+
|
|
100
122
|
export interface CrossAccountMetaDto {
|
|
101
123
|
id: string;
|
|
102
124
|
created_at: Date;
|
|
103
|
-
|
|
125
|
+
updated_at: Date;
|
|
104
126
|
account_name: string;
|
|
105
127
|
account_id: string;
|
|
106
|
-
approved_by: string;
|
|
107
128
|
original_book_id: string;
|
|
108
129
|
}
|
|
109
130
|
|
|
@@ -111,7 +132,24 @@ export interface ShareContactBookParamsDto {
|
|
|
111
132
|
targetAccountId: string;
|
|
112
133
|
}
|
|
113
134
|
|
|
114
|
-
export interface
|
|
135
|
+
export interface SharedBookResponseDto {
|
|
136
|
+
id: string;
|
|
137
|
+
approved_by?: string;
|
|
138
|
+
status: SharedBookStatus;
|
|
139
|
+
target_account: string;
|
|
140
|
+
contact_book: string;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export enum SharedBookStatus {
|
|
144
|
+
pending = 'pending',
|
|
145
|
+
shared = 'shared',
|
|
146
|
+
canceled = 'canceled',
|
|
147
|
+
deletedFromTarget = 'deletedFromTarget',
|
|
148
|
+
deletedFromSource = 'deletedFromSource'
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
|
|
152
|
+
q?: string;
|
|
115
153
|
}
|
|
116
154
|
|
|
117
155
|
export interface FieldSchemaListDto extends ListApiResponse {
|
|
@@ -137,17 +175,24 @@ export interface FieldValueResponseDto {
|
|
|
137
175
|
schemaId: string;
|
|
138
176
|
}
|
|
139
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
|
+
|
|
140
187
|
export interface CreateFilterDto {
|
|
141
188
|
name: string;
|
|
142
189
|
contact_book: string;
|
|
143
190
|
match_all: boolean;
|
|
144
|
-
conditions:
|
|
191
|
+
conditions: FieldValueFilterConditionDto[] | ContactFilterConditionDto[];
|
|
145
192
|
}
|
|
146
193
|
|
|
147
|
-
export interface
|
|
194
|
+
export interface FieldValueFilterConditionDto extends AbstractFilterCondition {
|
|
148
195
|
schema: string;
|
|
149
|
-
operator: string;
|
|
150
|
-
value: any;
|
|
151
196
|
propertyPath?: string[];
|
|
152
197
|
}
|
|
153
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.
|
|
4
|
+
"version": "1.37.7-beta.1005.0",
|
|
5
5
|
"author": "OneReach.ai",
|
|
6
6
|
"main": "./dist/index.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -17,6 +17,5 @@
|
|
|
17
17
|
"@types/node": "^16.0.0",
|
|
18
18
|
"ts-morph": "^15.1.0",
|
|
19
19
|
"ts-node": "^10.0.0"
|
|
20
|
-
}
|
|
21
|
-
"gitHead": "b604e514255677dcb2a648600273de0f620738ce"
|
|
20
|
+
}
|
|
22
21
|
}
|