@onereach/types-contacts-api 1.37.6-beta.849.0 → 1.37.6
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 -30
- 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,9 +87,8 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
|
|
|
97
87
|
id: string;
|
|
98
88
|
created_at: Date;
|
|
99
89
|
updated_at: Date;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
sharedBy?: string;
|
|
90
|
+
contacts?: ContactResponseDto[];
|
|
91
|
+
crossAccountMeta: CrossAccountMetaDto | null;
|
|
103
92
|
}
|
|
104
93
|
|
|
105
94
|
export interface CreateContactBookDto {
|
|
@@ -108,15 +97,13 @@ export interface CreateContactBookDto {
|
|
|
108
97
|
schemaPresets?: SchemaPresetResponseDto[];
|
|
109
98
|
}
|
|
110
99
|
|
|
111
|
-
export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
|
|
112
|
-
}
|
|
113
|
-
|
|
114
100
|
export interface CrossAccountMetaDto {
|
|
115
101
|
id: string;
|
|
116
102
|
created_at: Date;
|
|
117
|
-
|
|
103
|
+
is_approved: boolean;
|
|
118
104
|
account_name: string;
|
|
119
105
|
account_id: string;
|
|
106
|
+
approved_by: string;
|
|
120
107
|
original_book_id: string;
|
|
121
108
|
}
|
|
122
109
|
|
|
@@ -124,19 +111,7 @@ export interface ShareContactBookParamsDto {
|
|
|
124
111
|
targetAccountId: string;
|
|
125
112
|
}
|
|
126
113
|
|
|
127
|
-
export interface
|
|
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'
|
|
114
|
+
export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
|
|
140
115
|
}
|
|
141
116
|
|
|
142
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.6
|
|
4
|
+
"version": "1.37.6",
|
|
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": "b604e514255677dcb2a648600273de0f620738ce"
|
|
21
22
|
}
|