@onereach/types-contacts-api 1.29.1-beta.672.0 → 1.32.2-beta.711.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.
Files changed (2) hide show
  1. package/dist/index.ts +20 -8
  2. package/package.json +1 -1
package/dist/index.ts CHANGED
@@ -27,16 +27,12 @@ export interface ContactResponseDto {
27
27
  fieldValues?: FieldValueResponseDto[];
28
28
  }
29
29
 
30
- export interface ContactSearchParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
30
+ export interface ContactSearchParamsDto extends ListApiParams {
31
31
  contact_book: string;
32
32
  q?: string;
33
33
  filter?: string;
34
34
  }
35
35
 
36
- export interface OrderParams {
37
- order?: string;
38
- }
39
-
40
36
  export interface CreateContactDto {
41
37
  contact_book: string;
42
38
  data: FieldValueRequestDto[];
@@ -54,6 +50,7 @@ export interface CreateFieldSchemaDto {
54
50
  singular_label?: string;
55
51
  properties?: Record<string, string>;
56
52
  type: ColumnTypes;
53
+ schemaPresets?: SchemaPresetResponseDto[];
57
54
  }
58
55
 
59
56
  export enum ColumnTypes {
@@ -74,9 +71,6 @@ export interface ContactBookListDto extends ListApiResponse {
74
71
  items: ContactBookResponseDto[];
75
72
  }
76
73
 
77
- export interface ContactBookParamsDto extends ReturnType<typeof IntersectionType<OrderParams, ListApiParams>> {
78
- }
79
-
80
74
  export interface ContactBookResponseDto extends CreateContactBookDto {
81
75
  id: string;
82
76
  created_at: Date;
@@ -87,6 +81,7 @@ export interface ContactBookResponseDto extends CreateContactBookDto {
87
81
  export interface CreateContactBookDto {
88
82
  label: string;
89
83
  fieldSchemas: ContactBookFieldSchemaDto[];
84
+ schemaPresets?: SchemaPresetResponseDto[];
90
85
  }
91
86
 
92
87
  export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
@@ -145,3 +140,20 @@ export interface FilterResponseDto extends ReturnType<typeof OmitType<CreateFilt
145
140
 
146
141
  export interface UpdateFilterDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFilterDto, 'contact_book'>>>> {
147
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onereach/types-contacts-api",
3
3
  "description": "Generated types for Contacts Api",
4
- "version": "1.29.1-beta.672.0",
4
+ "version": "1.32.2-beta.711.0",
5
5
  "author": "OneReach.ai",
6
6
  "main": "./dist/index.ts",
7
7
  "publishConfig": {