@onereach/types-contacts-api 1.41.4-beta.1312.0 → 1.41.4-beta.1314.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 +16 -8
- package/package.json +1 -1
package/dist/index.ts
CHANGED
|
@@ -20,11 +20,6 @@ export interface ListApiParams {
|
|
|
20
20
|
skip?: number;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export interface ContactRequestDto {
|
|
24
|
-
id?: string;
|
|
25
|
-
data: FieldValueRequestDto[];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
23
|
export interface ContactResponseDto {
|
|
29
24
|
id: string;
|
|
30
25
|
created_at: Date;
|
|
@@ -49,7 +44,7 @@ export interface CreateContactDto {
|
|
|
49
44
|
|
|
50
45
|
export interface CreateMultipleContactsDto {
|
|
51
46
|
contact_book: string;
|
|
52
|
-
|
|
47
|
+
data: FieldValueRequestDto[][];
|
|
53
48
|
}
|
|
54
49
|
|
|
55
50
|
export interface DeleteContactMultiParamsDto extends DeleteContactParamsDto {
|
|
@@ -90,7 +85,7 @@ export interface ContactBookFieldSchemaDto extends CreateFieldSchemaDto {
|
|
|
90
85
|
id?: string;
|
|
91
86
|
}
|
|
92
87
|
|
|
93
|
-
export interface CreateFieldSchemaDto {
|
|
88
|
+
export interface CreateFieldSchemaDto extends MachineNameParamDto {
|
|
94
89
|
label: string;
|
|
95
90
|
singular_label?: string;
|
|
96
91
|
properties?: Record<string, string>;
|
|
@@ -112,6 +107,10 @@ export enum ColumnTypes {
|
|
|
112
107
|
|
|
113
108
|
export type ColumnValueName = 'string_values' | 'object_values' | 'number_values' | 'date_values' | 'double_values';
|
|
114
109
|
|
|
110
|
+
export interface MachineNameParamDto {
|
|
111
|
+
machine_name: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
115
114
|
export interface ContactBookListDto extends ListApiResponse {
|
|
116
115
|
items: ContactBookResponseDto[];
|
|
117
116
|
}
|
|
@@ -170,7 +169,16 @@ export interface FieldSchemaResponseDto extends CreateFieldSchemaDto {
|
|
|
170
169
|
id: string;
|
|
171
170
|
}
|
|
172
171
|
|
|
173
|
-
export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type'>>>> {
|
|
172
|
+
export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type' | 'machine_name'>>>> {
|
|
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;
|
|
174
182
|
}
|
|
175
183
|
|
|
176
184
|
export interface FieldValueRequestDto {
|
package/package.json
CHANGED