@onereach/types-contacts-api 1.37.8-beta.1118.0 → 1.37.8-beta.1122.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 +9 -63
- package/package.json +1 -1
package/dist/index.ts
CHANGED
|
@@ -42,37 +42,11 @@ 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
|
-
|
|
63
45
|
export interface MergeContactParamsDto {
|
|
64
46
|
contact_book: string;
|
|
65
47
|
mergeContactId: string;
|
|
66
48
|
}
|
|
67
49
|
|
|
68
|
-
export interface UnlinkContactMultiParamsDto extends UnlinkContactParamsDto {
|
|
69
|
-
ids: string[];
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface UnlinkContactParamsDto {
|
|
73
|
-
contact_book: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
50
|
export interface UpdateContactDto extends CreateContactDto {
|
|
77
51
|
}
|
|
78
52
|
|
|
@@ -107,16 +81,14 @@ export interface ContactBookListDto extends ListApiResponse {
|
|
|
107
81
|
}
|
|
108
82
|
|
|
109
83
|
export interface ContactBookParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
|
|
110
|
-
q?: string;
|
|
111
84
|
}
|
|
112
85
|
|
|
113
86
|
export interface ContactBookResponseDto extends CreateContactBookDto {
|
|
114
87
|
id: string;
|
|
115
88
|
created_at: Date;
|
|
116
89
|
updated_at: Date;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
sharedBy?: string;
|
|
90
|
+
contacts?: ContactResponseDto[];
|
|
91
|
+
crossAccountMeta: CrossAccountMetaDto | null;
|
|
120
92
|
}
|
|
121
93
|
|
|
122
94
|
export interface CreateContactBookDto {
|
|
@@ -125,15 +97,13 @@ export interface CreateContactBookDto {
|
|
|
125
97
|
schemaPresets?: SchemaPresetResponseDto[];
|
|
126
98
|
}
|
|
127
99
|
|
|
128
|
-
export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
|
|
129
|
-
}
|
|
130
|
-
|
|
131
100
|
export interface CrossAccountMetaDto {
|
|
132
101
|
id: string;
|
|
133
102
|
created_at: Date;
|
|
134
|
-
|
|
103
|
+
is_approved: boolean;
|
|
135
104
|
account_name: string;
|
|
136
105
|
account_id: string;
|
|
106
|
+
approved_by: string;
|
|
137
107
|
original_book_id: string;
|
|
138
108
|
}
|
|
139
109
|
|
|
@@ -141,24 +111,7 @@ export interface ShareContactBookParamsDto {
|
|
|
141
111
|
targetAccountId: string;
|
|
142
112
|
}
|
|
143
113
|
|
|
144
|
-
export interface
|
|
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;
|
|
114
|
+
export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
|
|
162
115
|
}
|
|
163
116
|
|
|
164
117
|
export interface FieldSchemaListDto extends ListApiResponse {
|
|
@@ -184,24 +137,17 @@ export interface FieldValueResponseDto {
|
|
|
184
137
|
schemaId: string;
|
|
185
138
|
}
|
|
186
139
|
|
|
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
|
-
|
|
196
140
|
export interface CreateFilterDto {
|
|
197
141
|
name: string;
|
|
198
142
|
contact_book: string;
|
|
199
143
|
match_all: boolean;
|
|
200
|
-
conditions:
|
|
144
|
+
conditions: FilterConditionDto[];
|
|
201
145
|
}
|
|
202
146
|
|
|
203
|
-
export interface
|
|
147
|
+
export interface FilterConditionDto {
|
|
204
148
|
schema: string;
|
|
149
|
+
operator: string;
|
|
150
|
+
value: any;
|
|
205
151
|
propertyPath?: string[];
|
|
206
152
|
}
|
|
207
153
|
|
package/package.json
CHANGED