@onereach/types-contacts-api 1.40.2-beta.1283.0 → 1.41.1
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 +45 -35
- package/package.json +3 -2
package/dist/index.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface ContactBookFieldSchemaDto extends CreateFieldSchemaDto {
|
|
|
85
85
|
id?: string;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export interface CreateFieldSchemaDto
|
|
88
|
+
export interface CreateFieldSchemaDto {
|
|
89
89
|
label: string;
|
|
90
90
|
singular_label?: string;
|
|
91
91
|
properties?: Record<string, string>;
|
|
@@ -107,10 +107,6 @@ export enum ColumnTypes {
|
|
|
107
107
|
|
|
108
108
|
export type ColumnValueName = 'string_values' | 'object_values' | 'number_values' | 'date_values' | 'double_values';
|
|
109
109
|
|
|
110
|
-
export interface MachineNameParamDto {
|
|
111
|
-
machine_name: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
110
|
export interface ContactBookListDto extends ListApiResponse {
|
|
115
111
|
items: ContactBookResponseDto[];
|
|
116
112
|
}
|
|
@@ -126,6 +122,17 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
|
|
|
126
122
|
contactsCount: number;
|
|
127
123
|
status?: SharedBookStatus;
|
|
128
124
|
sharedBy?: string;
|
|
125
|
+
contactPermission: SharedBookContactPermissionResponseDto;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface SharedBookContactPermissionResponseDto extends CreateSharedBookContactPermissionDto {
|
|
129
|
+
id: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface CreateSharedBookContactPermissionDto {
|
|
133
|
+
edit?: boolean;
|
|
134
|
+
delete?: boolean;
|
|
135
|
+
create?: boolean;
|
|
129
136
|
}
|
|
130
137
|
|
|
131
138
|
export interface CreateContactBookDto {
|
|
@@ -146,26 +153,6 @@ export interface CrossAccountMetaDto {
|
|
|
146
153
|
original_book_id: string;
|
|
147
154
|
}
|
|
148
155
|
|
|
149
|
-
export interface ShareContactBookParamsDto {
|
|
150
|
-
targetAccountId: string;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface SharedBookResponseDto {
|
|
154
|
-
id: string;
|
|
155
|
-
approved_by?: string;
|
|
156
|
-
status: SharedBookStatus;
|
|
157
|
-
target_account: string;
|
|
158
|
-
contact_book: string;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export enum SharedBookStatus {
|
|
162
|
-
pending = 'pending',
|
|
163
|
-
shared = 'shared',
|
|
164
|
-
canceled = 'canceled',
|
|
165
|
-
deletedFromTarget = 'deletedFromTarget',
|
|
166
|
-
deletedFromSource = 'deletedFromSource'
|
|
167
|
-
}
|
|
168
|
-
|
|
169
156
|
export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
|
|
170
157
|
q?: string;
|
|
171
158
|
}
|
|
@@ -178,16 +165,7 @@ export interface FieldSchemaResponseDto extends CreateFieldSchemaDto {
|
|
|
178
165
|
id: string;
|
|
179
166
|
}
|
|
180
167
|
|
|
181
|
-
export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type'
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export interface DeleteFieldValueByMachineNameDto extends ReturnType<typeof OmitType<UpsertFieldValueByMachineNameDto, 'value'>> {
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export interface UpsertFieldValueByMachineNameDto {
|
|
188
|
-
contact: string;
|
|
189
|
-
machine_name: string;
|
|
190
|
-
value: any;
|
|
168
|
+
export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type'>>>> {
|
|
191
169
|
}
|
|
192
170
|
|
|
193
171
|
export interface FieldValueRequestDto {
|
|
@@ -257,3 +235,35 @@ export interface SchemaPresetResponseDto extends CreateSchemaPresetDto {
|
|
|
257
235
|
|
|
258
236
|
export interface UpdateSchemaPresetDto extends ReturnType<typeof PartialType<CreateSchemaPresetDto>> {
|
|
259
237
|
}
|
|
238
|
+
|
|
239
|
+
export interface ShareContactBookParamsDto {
|
|
240
|
+
targetAccountId: string;
|
|
241
|
+
contactPermission?: CreateSharedBookContactPermissionDto;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface SharedBookResponseDto {
|
|
245
|
+
id: string;
|
|
246
|
+
approved_by?: string;
|
|
247
|
+
status: SharedBookStatus;
|
|
248
|
+
target_account: string;
|
|
249
|
+
contact_book: string;
|
|
250
|
+
contactPermission: SharedBookContactPermissionResponseDto;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export enum SharedBookStatus {
|
|
254
|
+
pending = 'pending',
|
|
255
|
+
shared = 'shared',
|
|
256
|
+
canceled = 'canceled',
|
|
257
|
+
deletedFromTarget = 'deletedFromTarget',
|
|
258
|
+
deletedFromSource = 'deletedFromSource'
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface SharedBookContactPermissionListDto extends ListApiResponse {
|
|
262
|
+
items: SharedBookContactPermissionResponseDto[];
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface SharedBookContactPermissionParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface UpdateSharedBookContactPermissionDto extends CreateSharedBookContactPermissionDto {
|
|
269
|
+
}
|
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.41.1",
|
|
5
5
|
"author": "OneReach.ai",
|
|
6
6
|
"main": "./dist/index.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -17,5 +17,6 @@
|
|
|
17
17
|
"@types/node": "^18.11.10",
|
|
18
18
|
"ts-morph": "^17.0.1",
|
|
19
19
|
"ts-node": "^10.9.1"
|
|
20
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"gitHead": "b23266724c5cec2a7d6017ff2fb41c07f3dd9e32"
|
|
21
22
|
}
|