@onereach/types-contacts-api 1.40.1-beta.1237.0 → 1.40.1-beta.1252.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 +26 -45
- package/package.json +1 -1
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 extends MachineNameParamDto {
|
|
89
89
|
label: string;
|
|
90
90
|
singular_label?: string;
|
|
91
91
|
properties?: Record<string, string>;
|
|
@@ -107,6 +107,10 @@ 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
|
+
|
|
110
114
|
export interface ContactBookListDto extends ListApiResponse {
|
|
111
115
|
items: ContactBookResponseDto[];
|
|
112
116
|
}
|
|
@@ -122,17 +126,6 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
|
|
|
122
126
|
contactsCount: number;
|
|
123
127
|
status?: SharedBookStatus;
|
|
124
128
|
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;
|
|
136
129
|
}
|
|
137
130
|
|
|
138
131
|
export interface CreateContactBookDto {
|
|
@@ -153,6 +146,26 @@ export interface CrossAccountMetaDto {
|
|
|
153
146
|
original_book_id: string;
|
|
154
147
|
}
|
|
155
148
|
|
|
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
|
+
|
|
156
169
|
export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
|
|
157
170
|
q?: string;
|
|
158
171
|
}
|
|
@@ -165,7 +178,7 @@ export interface FieldSchemaResponseDto extends CreateFieldSchemaDto {
|
|
|
165
178
|
id: string;
|
|
166
179
|
}
|
|
167
180
|
|
|
168
|
-
export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type'>>>> {
|
|
181
|
+
export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type' | 'machine_name'>>>> {
|
|
169
182
|
}
|
|
170
183
|
|
|
171
184
|
export interface FieldValueRequestDto {
|
|
@@ -235,35 +248,3 @@ export interface SchemaPresetResponseDto extends CreateSchemaPresetDto {
|
|
|
235
248
|
|
|
236
249
|
export interface UpdateSchemaPresetDto extends ReturnType<typeof PartialType<CreateSchemaPresetDto>> {
|
|
237
250
|
}
|
|
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