@onereach/types-contacts-api 1.40.1-beta.1237.0 → 1.40.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 +20 -43
- package/package.json +3 -2
package/dist/index.ts
CHANGED
|
@@ -122,17 +122,6 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
|
|
|
122
122
|
contactsCount: number;
|
|
123
123
|
status?: SharedBookStatus;
|
|
124
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;
|
|
136
125
|
}
|
|
137
126
|
|
|
138
127
|
export interface CreateContactBookDto {
|
|
@@ -153,6 +142,26 @@ export interface CrossAccountMetaDto {
|
|
|
153
142
|
original_book_id: string;
|
|
154
143
|
}
|
|
155
144
|
|
|
145
|
+
export interface ShareContactBookParamsDto {
|
|
146
|
+
targetAccountId: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface SharedBookResponseDto {
|
|
150
|
+
id: string;
|
|
151
|
+
approved_by?: string;
|
|
152
|
+
status: SharedBookStatus;
|
|
153
|
+
target_account: string;
|
|
154
|
+
contact_book: string;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export enum SharedBookStatus {
|
|
158
|
+
pending = 'pending',
|
|
159
|
+
shared = 'shared',
|
|
160
|
+
canceled = 'canceled',
|
|
161
|
+
deletedFromTarget = 'deletedFromTarget',
|
|
162
|
+
deletedFromSource = 'deletedFromSource'
|
|
163
|
+
}
|
|
164
|
+
|
|
156
165
|
export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
|
|
157
166
|
q?: string;
|
|
158
167
|
}
|
|
@@ -235,35 +244,3 @@ export interface SchemaPresetResponseDto extends CreateSchemaPresetDto {
|
|
|
235
244
|
|
|
236
245
|
export interface UpdateSchemaPresetDto extends ReturnType<typeof PartialType<CreateSchemaPresetDto>> {
|
|
237
246
|
}
|
|
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.40.1
|
|
4
|
+
"version": "1.40.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": "8d9c134b0d5324045b095f8a6f4cbad04c0884d4"
|
|
21
22
|
}
|