@onereach/types-contacts-api 1.37.5-beta.827.0 → 1.37.5
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 +5 -34
- package/package.json +3 -2
package/dist/index.ts
CHANGED
|
@@ -42,16 +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
45
|
export interface MergeContactParamsDto {
|
|
56
46
|
contact_book: string;
|
|
57
47
|
mergeContactId: string;
|
|
@@ -97,8 +87,8 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
|
|
|
97
87
|
id: string;
|
|
98
88
|
created_at: Date;
|
|
99
89
|
updated_at: Date;
|
|
100
|
-
|
|
101
|
-
|
|
90
|
+
contacts?: ContactResponseDto[];
|
|
91
|
+
crossAccountMeta: CrossAccountMetaDto | null;
|
|
102
92
|
}
|
|
103
93
|
|
|
104
94
|
export interface CreateContactBookDto {
|
|
@@ -107,15 +97,13 @@ export interface CreateContactBookDto {
|
|
|
107
97
|
schemaPresets?: SchemaPresetResponseDto[];
|
|
108
98
|
}
|
|
109
99
|
|
|
110
|
-
export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
|
|
111
|
-
}
|
|
112
|
-
|
|
113
100
|
export interface CrossAccountMetaDto {
|
|
114
101
|
id: string;
|
|
115
102
|
created_at: Date;
|
|
116
|
-
|
|
103
|
+
is_approved: boolean;
|
|
117
104
|
account_name: string;
|
|
118
105
|
account_id: string;
|
|
106
|
+
approved_by: string;
|
|
119
107
|
original_book_id: string;
|
|
120
108
|
}
|
|
121
109
|
|
|
@@ -123,24 +111,7 @@ export interface ShareContactBookParamsDto {
|
|
|
123
111
|
targetAccountId: string;
|
|
124
112
|
}
|
|
125
113
|
|
|
126
|
-
export interface
|
|
127
|
-
accountId: string;
|
|
128
|
-
bookIds: string;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface SharedBookResponseDto {
|
|
132
|
-
approved_by?: string;
|
|
133
|
-
status: SharedBookStatus;
|
|
134
|
-
target_account: string;
|
|
135
|
-
contact_book: string;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export enum SharedBookStatus {
|
|
139
|
-
pending = 'pending',
|
|
140
|
-
shared = 'shared',
|
|
141
|
-
canceled = 'canceled',
|
|
142
|
-
deletedFromTarget = 'deletedFromTarget',
|
|
143
|
-
deletedFromSource = 'deletedFromSource'
|
|
114
|
+
export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
|
|
144
115
|
}
|
|
145
116
|
|
|
146
117
|
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.5
|
|
4
|
+
"version": "1.37.5",
|
|
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": "157458fc92d2c2ee169e9d0b4da436ac5db8ace2"
|
|
21
22
|
}
|