@onereach/types-contacts-api 1.42.0 → 1.43.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 +15 -2
  2. package/package.json +2 -2
package/dist/index.ts CHANGED
@@ -90,7 +90,7 @@ export interface ContactBookFieldSchemaDto extends CreateFieldSchemaDto {
90
90
  id?: string;
91
91
  }
92
92
 
93
- export interface CreateFieldSchemaDto {
93
+ export interface CreateFieldSchemaDto extends MachineNameParamDto {
94
94
  label: string;
95
95
  singular_label?: string;
96
96
  properties?: Record<string, string>;
@@ -112,6 +112,10 @@ export enum ColumnTypes {
112
112
 
113
113
  export type ColumnValueName = 'string_values' | 'object_values' | 'number_values' | 'date_values' | 'double_values';
114
114
 
115
+ export interface MachineNameParamDto {
116
+ machine_name: string;
117
+ }
118
+
115
119
  export interface ContactBookListDto extends ListApiResponse {
116
120
  items: ContactBookResponseDto[];
117
121
  }
@@ -170,7 +174,16 @@ export interface FieldSchemaResponseDto extends CreateFieldSchemaDto {
170
174
  id: string;
171
175
  }
172
176
 
173
- export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type'>>>> {
177
+ export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type' | 'machine_name'>>>> {
178
+ }
179
+
180
+ export interface DeleteFieldValueByMachineNameDto extends ReturnType<typeof OmitType<UpsertFieldValueByMachineNameDto, 'value'>> {
181
+ }
182
+
183
+ export interface UpsertFieldValueByMachineNameDto {
184
+ contact: string;
185
+ machine_name: string;
186
+ value: any;
174
187
  }
175
188
 
176
189
  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.42.0",
4
+ "version": "1.43.0",
5
5
  "author": "OneReach.ai",
6
6
  "main": "./dist/index.ts",
7
7
  "publishConfig": {
@@ -18,5 +18,5 @@
18
18
  "ts-morph": "^17.0.1",
19
19
  "ts-node": "^10.9.1"
20
20
  },
21
- "gitHead": "a18d610d67037b81247051b387766fcb55f1a664"
21
+ "gitHead": "033b518cd7eac183eb00ea2576afb5f3948df634"
22
22
  }