@onereach/types-contacts-api 1.40.1 → 1.40.2-beta.1274.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 +12 -2
- package/package.json +2 -3
package/dist/index.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface ContactBookFieldSchemaDto extends CreateFieldSchemaDto {
|
|
|
85
85
|
id?: string;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export interface CreateFieldSchemaDto {
|
|
88
|
+
export interface CreateFieldSchemaDto extends MachineNameParamDto {
|
|
89
89
|
label: string;
|
|
90
90
|
singular_label?: string;
|
|
91
91
|
properties?: Record<string, string>;
|
|
@@ -107,6 +107,10 @@ export enum ColumnTypes {
|
|
|
107
107
|
|
|
108
108
|
export type ColumnValueName = 'string_values' | 'object_values' | 'number_values' | 'date_values' | 'double_values';
|
|
109
109
|
|
|
110
|
+
export interface MachineNameParamDto {
|
|
111
|
+
machine_name: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
110
114
|
export interface ContactBookListDto extends ListApiResponse {
|
|
111
115
|
items: ContactBookResponseDto[];
|
|
112
116
|
}
|
|
@@ -174,7 +178,7 @@ export interface FieldSchemaResponseDto extends CreateFieldSchemaDto {
|
|
|
174
178
|
id: string;
|
|
175
179
|
}
|
|
176
180
|
|
|
177
|
-
export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type'>>>> {
|
|
181
|
+
export interface UpdateFieldSchemaDto extends ReturnType<typeof PartialType<ReturnType<typeof OmitType<CreateFieldSchemaDto, 'type' | 'machine_name'>>>> {
|
|
178
182
|
}
|
|
179
183
|
|
|
180
184
|
export interface FieldValueRequestDto {
|
|
@@ -189,6 +193,12 @@ export interface FieldValueResponseDto {
|
|
|
189
193
|
schemaId: string;
|
|
190
194
|
}
|
|
191
195
|
|
|
196
|
+
export interface UpsertFieldValueByMachineNameDto {
|
|
197
|
+
contact: string;
|
|
198
|
+
machine_name: string;
|
|
199
|
+
value: any;
|
|
200
|
+
}
|
|
201
|
+
|
|
192
202
|
export interface ContactFilterConditionDto extends AbstractFilterCondition {
|
|
193
203
|
contactField: 'created_at' | 'updated_at';
|
|
194
204
|
}
|
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.40.
|
|
4
|
+
"version": "1.40.2-beta.1274.0",
|
|
5
5
|
"author": "OneReach.ai",
|
|
6
6
|
"main": "./dist/index.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -17,6 +17,5 @@
|
|
|
17
17
|
"@types/node": "^18.11.10",
|
|
18
18
|
"ts-morph": "^17.0.1",
|
|
19
19
|
"ts-node": "^10.9.1"
|
|
20
|
-
}
|
|
21
|
-
"gitHead": "8d9c134b0d5324045b095f8a6f4cbad04c0884d4"
|
|
20
|
+
}
|
|
22
21
|
}
|