@onereach/types-contacts-api 1.37.7-beta.960.0 → 1.37.7

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 -53
  2. package/package.json +3 -2
package/dist/index.ts CHANGED
@@ -42,24 +42,6 @@ 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
-
55
- export interface LinkContactMultiParamsDto extends LinkContactParamsDto {
56
- ids: string[];
57
- }
58
-
59
- export interface LinkContactParamsDto {
60
- contact_book: string;
61
- }
62
-
63
45
  export interface MergeContactParamsDto {
64
46
  contact_book: string;
65
47
  mergeContactId: string;
@@ -105,9 +87,8 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
105
87
  id: string;
106
88
  created_at: Date;
107
89
  updated_at: Date;
108
- contactsCount: number;
109
- status?: SharedBookStatus;
110
- sharedBy?: string;
90
+ contacts?: ContactResponseDto[];
91
+ crossAccountMeta: CrossAccountMetaDto | null;
111
92
  }
112
93
 
113
94
  export interface CreateContactBookDto {
@@ -116,15 +97,13 @@ export interface CreateContactBookDto {
116
97
  schemaPresets?: SchemaPresetResponseDto[];
117
98
  }
118
99
 
119
- export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
120
- }
121
-
122
100
  export interface CrossAccountMetaDto {
123
101
  id: string;
124
102
  created_at: Date;
125
- updated_at: Date;
103
+ is_approved: boolean;
126
104
  account_name: string;
127
105
  account_id: string;
106
+ approved_by: string;
128
107
  original_book_id: string;
129
108
  }
130
109
 
@@ -132,23 +111,7 @@ export interface ShareContactBookParamsDto {
132
111
  targetAccountId: string;
133
112
  }
134
113
 
135
- export interface SharedBookResponseDto {
136
- approved_by?: string;
137
- status: SharedBookStatus;
138
- target_account: string;
139
- contact_book: string;
140
- }
141
-
142
- export enum SharedBookStatus {
143
- pending = 'pending',
144
- shared = 'shared',
145
- canceled = 'canceled',
146
- deletedFromTarget = 'deletedFromTarget',
147
- deletedFromSource = 'deletedFromSource'
148
- }
149
-
150
- export interface FieldSchemaListParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
151
- q?: string;
114
+ export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
152
115
  }
153
116
 
154
117
  export interface FieldSchemaListDto extends ListApiResponse {
@@ -174,24 +137,17 @@ export interface FieldValueResponseDto {
174
137
  schemaId: string;
175
138
  }
176
139
 
177
- export interface ContactFilterConditionDto extends AbstractFilterCondition {
178
- contactField: 'created_at' | 'updated_at';
179
- }
180
-
181
- export interface AbstractFilterCondition {
182
- operator: string;
183
- value: any;
184
- }
185
-
186
140
  export interface CreateFilterDto {
187
141
  name: string;
188
142
  contact_book: string;
189
143
  match_all: boolean;
190
- conditions: FieldValueFilterConditionDto[] | ContactFilterConditionDto[];
144
+ conditions: FilterConditionDto[];
191
145
  }
192
146
 
193
- export interface FieldValueFilterConditionDto extends AbstractFilterCondition {
147
+ export interface FilterConditionDto {
194
148
  schema: string;
149
+ operator: string;
150
+ value: any;
195
151
  propertyPath?: string[];
196
152
  }
197
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.7-beta.960.0",
4
+ "version": "1.37.7",
5
5
  "author": "OneReach.ai",
6
6
  "main": "./dist/index.ts",
7
7
  "publishConfig": {
@@ -17,5 +17,6 @@
17
17
  "@types/node": "^16.0.0",
18
18
  "ts-morph": "^15.1.0",
19
19
  "ts-node": "^10.0.0"
20
- }
20
+ },
21
+ "gitHead": "244800cd8a5585931ad14f8b72b3c86f0219ece8"
21
22
  }