@onereach/types-contacts-api 1.37.8-beta.1133.0 → 1.38.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 +63 -9
- package/package.json +3 -2
package/dist/index.ts
CHANGED
|
@@ -42,11 +42,37 @@ 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;
|
|
48
66
|
}
|
|
49
67
|
|
|
68
|
+
export interface UnlinkContactMultiParamsDto extends UnlinkContactParamsDto {
|
|
69
|
+
ids: string[];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface UnlinkContactParamsDto {
|
|
73
|
+
contact_book: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
50
76
|
export interface UpdateContactDto extends CreateContactDto {
|
|
51
77
|
}
|
|
52
78
|
|
|
@@ -81,14 +107,16 @@ export interface ContactBookListDto extends ListApiResponse {
|
|
|
81
107
|
}
|
|
82
108
|
|
|
83
109
|
export interface ContactBookParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
|
|
110
|
+
q?: string;
|
|
84
111
|
}
|
|
85
112
|
|
|
86
113
|
export interface ContactBookResponseDto extends CreateContactBookDto {
|
|
87
114
|
id: string;
|
|
88
115
|
created_at: Date;
|
|
89
116
|
updated_at: Date;
|
|
90
|
-
|
|
91
|
-
|
|
117
|
+
contactsCount: number;
|
|
118
|
+
status?: SharedBookStatus;
|
|
119
|
+
sharedBy?: string;
|
|
92
120
|
}
|
|
93
121
|
|
|
94
122
|
export interface CreateContactBookDto {
|
|
@@ -97,13 +125,15 @@ export interface CreateContactBookDto {
|
|
|
97
125
|
schemaPresets?: SchemaPresetResponseDto[];
|
|
98
126
|
}
|
|
99
127
|
|
|
128
|
+
export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
|
|
129
|
+
}
|
|
130
|
+
|
|
100
131
|
export interface CrossAccountMetaDto {
|
|
101
132
|
id: string;
|
|
102
133
|
created_at: Date;
|
|
103
|
-
|
|
134
|
+
updated_at: Date;
|
|
104
135
|
account_name: string;
|
|
105
136
|
account_id: string;
|
|
106
|
-
approved_by: string;
|
|
107
137
|
original_book_id: string;
|
|
108
138
|
}
|
|
109
139
|
|
|
@@ -111,7 +141,24 @@ export interface ShareContactBookParamsDto {
|
|
|
111
141
|
targetAccountId: string;
|
|
112
142
|
}
|
|
113
143
|
|
|
114
|
-
export interface
|
|
144
|
+
export interface SharedBookResponseDto {
|
|
145
|
+
id: string;
|
|
146
|
+
approved_by?: string;
|
|
147
|
+
status: SharedBookStatus;
|
|
148
|
+
target_account: string;
|
|
149
|
+
contact_book: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export enum SharedBookStatus {
|
|
153
|
+
pending = 'pending',
|
|
154
|
+
shared = 'shared',
|
|
155
|
+
canceled = 'canceled',
|
|
156
|
+
deletedFromTarget = 'deletedFromTarget',
|
|
157
|
+
deletedFromSource = 'deletedFromSource'
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
|
|
161
|
+
q?: string;
|
|
115
162
|
}
|
|
116
163
|
|
|
117
164
|
export interface FieldSchemaListDto extends ListApiResponse {
|
|
@@ -137,17 +184,24 @@ export interface FieldValueResponseDto {
|
|
|
137
184
|
schemaId: string;
|
|
138
185
|
}
|
|
139
186
|
|
|
187
|
+
export interface ContactFilterConditionDto extends AbstractFilterCondition {
|
|
188
|
+
contactField: 'created_at' | 'updated_at';
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface AbstractFilterCondition {
|
|
192
|
+
operator: string;
|
|
193
|
+
value: any;
|
|
194
|
+
}
|
|
195
|
+
|
|
140
196
|
export interface CreateFilterDto {
|
|
141
197
|
name: string;
|
|
142
198
|
contact_book: string;
|
|
143
199
|
match_all: boolean;
|
|
144
|
-
conditions:
|
|
200
|
+
conditions: FieldValueFilterConditionDto[] | ContactFilterConditionDto[];
|
|
145
201
|
}
|
|
146
202
|
|
|
147
|
-
export interface
|
|
203
|
+
export interface FieldValueFilterConditionDto extends AbstractFilterCondition {
|
|
148
204
|
schema: string;
|
|
149
|
-
operator: string;
|
|
150
|
-
value: any;
|
|
151
205
|
propertyPath?: string[];
|
|
152
206
|
}
|
|
153
207
|
|
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.
|
|
4
|
+
"version": "1.38.0",
|
|
5
5
|
"author": "OneReach.ai",
|
|
6
6
|
"main": "./dist/index.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -17,5 +17,6 @@
|
|
|
17
17
|
"@types/node": "^16.0.0",
|
|
18
18
|
"ts-morph": "^15.1.0",
|
|
19
19
|
"ts-node": "^10.0.0"
|
|
20
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"gitHead": "6f1c9f0f3d25a8a883f619a6397e0900aedb6c4b"
|
|
21
22
|
}
|