@onereach/types-contacts-api 1.41.4-beta.1314.0 → 1.42.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 +8 -16
- package/package.json +3 -2
package/dist/index.ts
CHANGED
|
@@ -20,6 +20,11 @@ export interface ListApiParams {
|
|
|
20
20
|
skip?: number;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
export interface ContactRequestDto {
|
|
24
|
+
id?: string;
|
|
25
|
+
data: FieldValueRequestDto[];
|
|
26
|
+
}
|
|
27
|
+
|
|
23
28
|
export interface ContactResponseDto {
|
|
24
29
|
id: string;
|
|
25
30
|
created_at: Date;
|
|
@@ -44,7 +49,7 @@ export interface CreateContactDto {
|
|
|
44
49
|
|
|
45
50
|
export interface CreateMultipleContactsDto {
|
|
46
51
|
contact_book: string;
|
|
47
|
-
|
|
52
|
+
contacts: ContactRequestDto[];
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
export interface DeleteContactMultiParamsDto extends DeleteContactParamsDto {
|
|
@@ -85,7 +90,7 @@ export interface ContactBookFieldSchemaDto extends CreateFieldSchemaDto {
|
|
|
85
90
|
id?: string;
|
|
86
91
|
}
|
|
87
92
|
|
|
88
|
-
export interface CreateFieldSchemaDto
|
|
93
|
+
export interface CreateFieldSchemaDto {
|
|
89
94
|
label: string;
|
|
90
95
|
singular_label?: string;
|
|
91
96
|
properties?: Record<string, string>;
|
|
@@ -107,10 +112,6 @@ export enum ColumnTypes {
|
|
|
107
112
|
|
|
108
113
|
export type ColumnValueName = 'string_values' | 'object_values' | 'number_values' | 'date_values' | 'double_values';
|
|
109
114
|
|
|
110
|
-
export interface MachineNameParamDto {
|
|
111
|
-
machine_name: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
115
|
export interface ContactBookListDto extends ListApiResponse {
|
|
115
116
|
items: ContactBookResponseDto[];
|
|
116
117
|
}
|
|
@@ -169,16 +170,7 @@ export interface FieldSchemaResponseDto extends CreateFieldSchemaDto {
|
|
|
169
170
|
id: string;
|
|
170
171
|
}
|
|
171
172
|
|
|
172
|
-
export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type'
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export interface DeleteFieldValueByMachineNameDto extends ReturnType<typeof OmitType<UpsertFieldValueByMachineNameDto, 'value'>> {
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export interface UpsertFieldValueByMachineNameDto {
|
|
179
|
-
contact: string;
|
|
180
|
-
machine_name: string;
|
|
181
|
-
value: any;
|
|
173
|
+
export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type'>>>> {
|
|
182
174
|
}
|
|
183
175
|
|
|
184
176
|
export interface FieldValueRequestDto {
|
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.
|
|
4
|
+
"version": "1.42.0",
|
|
5
5
|
"author": "OneReach.ai",
|
|
6
6
|
"main": "./dist/index.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -17,5 +17,6 @@
|
|
|
17
17
|
"@types/node": "^18.11.10",
|
|
18
18
|
"ts-morph": "^17.0.1",
|
|
19
19
|
"ts-node": "^10.9.1"
|
|
20
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"gitHead": "a18d610d67037b81247051b387766fcb55f1a664"
|
|
21
22
|
}
|