@onereach/types-contacts-api 1.29.1-beta.668.0 → 1.32.1-beta.708.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 +19 -0
- package/package.json +1 -1
package/dist/index.ts
CHANGED
|
@@ -50,6 +50,7 @@ export interface CreateFieldSchemaDto {
|
|
|
50
50
|
singular_label?: string;
|
|
51
51
|
properties?: Record<string, string>;
|
|
52
52
|
type: ColumnTypes;
|
|
53
|
+
schemaPresets?: SchemaPresetResponseDto[];
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
export enum ColumnTypes {
|
|
@@ -80,6 +81,7 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
|
|
|
80
81
|
export interface CreateContactBookDto {
|
|
81
82
|
label: string;
|
|
82
83
|
fieldSchemas: ContactBookFieldSchemaDto[];
|
|
84
|
+
schemaPresets?: SchemaPresetResponseDto[];
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
|
|
@@ -138,3 +140,20 @@ export interface FilterResponseDto extends ReturnType<typeof OmitType<CreateFilt
|
|
|
138
140
|
|
|
139
141
|
export interface UpdateFilterDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFilterDto, 'contact_book'>>>> {
|
|
140
142
|
}
|
|
143
|
+
|
|
144
|
+
export interface CreateSchemaPresetDto {
|
|
145
|
+
type: string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface SchemaPresetListDto extends ListApiResponse {
|
|
149
|
+
items: SchemaPresetResponseDto[];
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface SchemaPresetResponseDto extends CreateSchemaPresetDto {
|
|
153
|
+
id: string;
|
|
154
|
+
created_at: Date;
|
|
155
|
+
updated_at: Date;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface UpdateSchemaPresetDto extends ReturnType<typeof PartialType<CreateSchemaPresetDto>> {
|
|
159
|
+
}
|
package/package.json
CHANGED