@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.
- package/dist/index.ts +30 -5
- 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
|
-
|
|
91
|
-
|
|
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
|
-
|
|
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
|
|
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