@onereach/types-contacts-api 1.40.1 → 1.40.2-beta.1277.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.
Files changed (2) hide show
  1. package/dist/index.ts +43 -20
  2. package/package.json +2 -3
package/dist/index.ts CHANGED
@@ -122,6 +122,17 @@ 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;
125
136
  }
126
137
 
127
138
  export interface CreateContactBookDto {
@@ -142,26 +153,6 @@ export interface CrossAccountMetaDto {
142
153
  original_book_id: string;
143
154
  }
144
155
 
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
-
165
156
  export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
166
157
  q?: string;
167
158
  }
@@ -244,3 +235,35 @@ export interface SchemaPresetResponseDto extends CreateSchemaPresetDto {
244
235
 
245
236
  export interface UpdateSchemaPresetDto extends ReturnType<typeof PartialType<CreateSchemaPresetDto>> {
246
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.40.1",
4
+ "version": "1.40.2-beta.1277.0",
5
5
  "author": "OneReach.ai",
6
6
  "main": "./dist/index.ts",
7
7
  "publishConfig": {
@@ -17,6 +17,5 @@
17
17
  "@types/node": "^18.11.10",
18
18
  "ts-morph": "^17.0.1",
19
19
  "ts-node": "^10.9.1"
20
- },
21
- "gitHead": "8d9c134b0d5324045b095f8a6f4cbad04c0884d4"
20
+ }
22
21
  }