@onereach/types-contacts-api 1.37.8-beta.1116.0 → 1.37.8-beta.1117.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 +9 -68
  2. package/package.json +1 -1
package/dist/index.ts CHANGED
@@ -42,42 +42,11 @@ export interface CreateContactDto {
42
42
  data: FieldValueRequestDto[];
43
43
  }
44
44
 
45
- export interface CreateMultipleContactsDto {
46
- contact_book: string;
47
- data: FieldValueRequestDto[][];
48
- }
49
-
50
- export interface DeleteContactMultiParamsDto extends DeleteContactParamsDto {
51
- ids?: string[];
52
- contact_book: string;
53
- all?: true;
54
- }
55
-
56
- export interface DeleteContactParamsDto {
57
- contact_book: string;
58
- }
59
-
60
- export interface LinkContactMultiParamsDto extends LinkContactParamsDto {
61
- ids: string[];
62
- }
63
-
64
- export interface LinkContactParamsDto {
65
- contact_book: string;
66
- }
67
-
68
45
  export interface MergeContactParamsDto {
69
46
  contact_book: string;
70
47
  mergeContactId: string;
71
48
  }
72
49
 
73
- export interface UnlinkContactMultiParamsDto extends UnlinkContactParamsDto {
74
- ids: string[];
75
- }
76
-
77
- export interface UnlinkContactParamsDto {
78
- contact_book: string;
79
- }
80
-
81
50
  export interface UpdateContactDto extends CreateContactDto {
82
51
  }
83
52
 
@@ -112,16 +81,14 @@ export interface ContactBookListDto extends ListApiResponse {
112
81
  }
113
82
 
114
83
  export interface ContactBookParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
115
- q?: string;
116
84
  }
117
85
 
118
86
  export interface ContactBookResponseDto extends CreateContactBookDto {
119
87
  id: string;
120
88
  created_at: Date;
121
89
  updated_at: Date;
122
- contactsCount: number;
123
- status?: SharedBookStatus;
124
- sharedBy?: string;
90
+ contacts?: ContactResponseDto[];
91
+ crossAccountMeta: CrossAccountMetaDto | null;
125
92
  }
126
93
 
127
94
  export interface CreateContactBookDto {
@@ -130,15 +97,13 @@ export interface CreateContactBookDto {
130
97
  schemaPresets?: SchemaPresetResponseDto[];
131
98
  }
132
99
 
133
- export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
134
- }
135
-
136
100
  export interface CrossAccountMetaDto {
137
101
  id: string;
138
102
  created_at: Date;
139
- updated_at: Date;
103
+ is_approved: boolean;
140
104
  account_name: string;
141
105
  account_id: string;
106
+ approved_by: string;
142
107
  original_book_id: string;
143
108
  }
144
109
 
@@ -146,24 +111,7 @@ export interface ShareContactBookParamsDto {
146
111
  targetAccountId: string;
147
112
  }
148
113
 
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
- export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
166
- q?: string;
114
+ export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
167
115
  }
168
116
 
169
117
  export interface FieldSchemaListDto extends ListApiResponse {
@@ -189,24 +137,17 @@ export interface FieldValueResponseDto {
189
137
  schemaId: string;
190
138
  }
191
139
 
192
- export interface ContactFilterConditionDto extends AbstractFilterCondition {
193
- contactField: 'created_at' | 'updated_at';
194
- }
195
-
196
- export interface AbstractFilterCondition {
197
- operator: string;
198
- value: any;
199
- }
200
-
201
140
  export interface CreateFilterDto {
202
141
  name: string;
203
142
  contact_book: string;
204
143
  match_all: boolean;
205
- conditions: FieldValueFilterConditionDto[] | ContactFilterConditionDto[];
144
+ conditions: FilterConditionDto[];
206
145
  }
207
146
 
208
- export interface FieldValueFilterConditionDto extends AbstractFilterCondition {
147
+ export interface FilterConditionDto {
209
148
  schema: string;
149
+ operator: string;
150
+ value: any;
210
151
  propertyPath?: string[];
211
152
  }
212
153
 
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.8-beta.1116.0",
4
+ "version": "1.37.8-beta.1117.0",
5
5
  "author": "OneReach.ai",
6
6
  "main": "./dist/index.ts",
7
7
  "publishConfig": {