@onereach/types-contacts-api 1.37.6-beta.844.0 → 1.37.6-beta.848.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 +30 -5
  2. package/package.json +1 -1
package/dist/index.ts CHANGED
@@ -42,6 +42,16 @@ 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
+
45
55
  export interface MergeContactParamsDto {
46
56
  contact_book: string;
47
57
  mergeContactId: string;
@@ -87,8 +97,9 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
87
97
  id: string;
88
98
  created_at: Date;
89
99
  updated_at: Date;
90
- contacts?: ContactResponseDto[];
91
- crossAccountMeta: CrossAccountMetaDto | null;
100
+ contactsCount: number;
101
+ status?: SharedBookStatus;
102
+ sharedBy?: string;
92
103
  }
93
104
 
94
105
  export interface CreateContactBookDto {
@@ -97,13 +108,15 @@ export interface CreateContactBookDto {
97
108
  schemaPresets?: SchemaPresetResponseDto[];
98
109
  }
99
110
 
111
+ export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
112
+ }
113
+
100
114
  export interface CrossAccountMetaDto {
101
115
  id: string;
102
116
  created_at: Date;
103
- is_approved: boolean;
117
+ updated_at: Date;
104
118
  account_name: string;
105
119
  account_id: string;
106
- approved_by: string;
107
120
  original_book_id: string;
108
121
  }
109
122
 
@@ -111,7 +124,19 @@ export interface ShareContactBookParamsDto {
111
124
  targetAccountId: string;
112
125
  }
113
126
 
114
- export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
127
+ export interface SharedBookResponseDto {
128
+ approved_by?: string;
129
+ status: SharedBookStatus;
130
+ target_account: string;
131
+ contact_book: string;
132
+ }
133
+
134
+ export enum SharedBookStatus {
135
+ pending = 'pending',
136
+ shared = 'shared',
137
+ canceled = 'canceled',
138
+ deletedFromTarget = 'deletedFromTarget',
139
+ deletedFromSource = 'deletedFromSource'
115
140
  }
116
141
 
117
142
  export interface FieldSchemaListDto extends ListApiResponse {
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.37.6-beta.844.0",
4
+ "version": "1.37.6-beta.848.0",
5
5
  "author": "OneReach.ai",
6
6
  "main": "./dist/index.ts",
7
7
  "publishConfig": {