@nightsquawktech/gohighlevel-mcp-server 0.1.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/COMMERCIAL.md +35 -0
- package/LICENSE +661 -0
- package/README.md +172 -0
- package/dist/constants.d.ts +14 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +14 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/calendars.d.ts +185 -0
- package/dist/schemas/calendars.d.ts.map +1 -0
- package/dist/schemas/calendars.js +74 -0
- package/dist/schemas/calendars.js.map +1 -0
- package/dist/schemas/common.d.ts +10 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +33 -0
- package/dist/schemas/common.js.map +1 -0
- package/dist/schemas/contacts.d.ts +401 -0
- package/dist/schemas/contacts.d.ts.map +1 -0
- package/dist/schemas/contacts.js +132 -0
- package/dist/schemas/contacts.js.map +1 -0
- package/dist/schemas/conversations.d.ts +89 -0
- package/dist/schemas/conversations.d.ts.map +1 -0
- package/dist/schemas/conversations.js +39 -0
- package/dist/schemas/conversations.js.map +1 -0
- package/dist/schemas/custom-fields.d.ts +360 -0
- package/dist/schemas/custom-fields.d.ts.map +1 -0
- package/dist/schemas/custom-fields.js +154 -0
- package/dist/schemas/custom-fields.js.map +1 -0
- package/dist/schemas/custom-values.d.ts +87 -0
- package/dist/schemas/custom-values.d.ts.map +1 -0
- package/dist/schemas/custom-values.js +43 -0
- package/dist/schemas/custom-values.js.map +1 -0
- package/dist/schemas/locations.d.ts +30 -0
- package/dist/schemas/locations.d.ts.map +1 -0
- package/dist/schemas/locations.js +17 -0
- package/dist/schemas/locations.js.map +1 -0
- package/dist/schemas/opportunities.d.ts +196 -0
- package/dist/schemas/opportunities.d.ts.map +1 -0
- package/dist/schemas/opportunities.js +83 -0
- package/dist/schemas/opportunities.js.map +1 -0
- package/dist/schemas/tags.d.ts +81 -0
- package/dist/schemas/tags.d.ts.map +1 -0
- package/dist/schemas/tags.js +41 -0
- package/dist/schemas/tags.js.map +1 -0
- package/dist/services/config.d.ts +3 -0
- package/dist/services/config.d.ts.map +1 -0
- package/dist/services/config.js +26 -0
- package/dist/services/config.js.map +1 -0
- package/dist/services/errors.d.ts +2 -0
- package/dist/services/errors.d.ts.map +1 -0
- package/dist/services/errors.js +47 -0
- package/dist/services/errors.js.map +1 -0
- package/dist/services/gohighlevel-client.d.ts +13 -0
- package/dist/services/gohighlevel-client.d.ts.map +1 -0
- package/dist/services/gohighlevel-client.js +42 -0
- package/dist/services/gohighlevel-client.js.map +1 -0
- package/dist/tools/calendars.d.ts +4 -0
- package/dist/tools/calendars.d.ts.map +1 -0
- package/dist/tools/calendars.js +163 -0
- package/dist/tools/calendars.js.map +1 -0
- package/dist/tools/contacts.d.ts +4 -0
- package/dist/tools/contacts.d.ts.map +1 -0
- package/dist/tools/contacts.js +492 -0
- package/dist/tools/contacts.js.map +1 -0
- package/dist/tools/conversations.d.ts +4 -0
- package/dist/tools/conversations.d.ts.map +1 -0
- package/dist/tools/conversations.js +76 -0
- package/dist/tools/conversations.js.map +1 -0
- package/dist/tools/custom-fields.d.ts +4 -0
- package/dist/tools/custom-fields.d.ts.map +1 -0
- package/dist/tools/custom-fields.js +337 -0
- package/dist/tools/custom-fields.js.map +1 -0
- package/dist/tools/custom-values.d.ts +4 -0
- package/dist/tools/custom-values.d.ts.map +1 -0
- package/dist/tools/custom-values.js +121 -0
- package/dist/tools/custom-values.js.map +1 -0
- package/dist/tools/format.d.ts +9 -0
- package/dist/tools/format.d.ts.map +1 -0
- package/dist/tools/format.js +49 -0
- package/dist/tools/format.js.map +1 -0
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +19 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/locations.d.ts +4 -0
- package/dist/tools/locations.d.ts.map +1 -0
- package/dist/tools/locations.js +43 -0
- package/dist/tools/locations.js.map +1 -0
- package/dist/tools/opportunities.d.ts +4 -0
- package/dist/tools/opportunities.d.ts.map +1 -0
- package/dist/tools/opportunities.js +182 -0
- package/dist/tools/opportunities.js.map +1 -0
- package/dist/tools/read-tools.d.ts +22 -0
- package/dist/tools/read-tools.d.ts.map +1 -0
- package/dist/tools/read-tools.js +68 -0
- package/dist/tools/read-tools.js.map +1 -0
- package/dist/tools/tags.d.ts +4 -0
- package/dist/tools/tags.d.ts.map +1 -0
- package/dist/tools/tags.js +113 -0
- package/dist/tools/tags.js.map +1 -0
- package/dist/types.d.ts +28 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/schemas/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEtI,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,CAAC;IACN,WAAW,EAAE,gBAAgB;IAC7B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7C,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,YAAY;IACpB,eAAe,EAAE,oBAAoB;IACrC,WAAW,E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AK,EAAE,WAAW;IAClB,eAAe,EAAE,oBAAoB;CACtC,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CustomFieldDataTypeSchema: z.ZodEnum<["TEXT", "LARGE_TEXT", "NUMERICAL", "PHONE", "MONETORY", "CHECKBOX", "SINGLE_OPTIONS", "MULTIPLE_OPTIONS", "FLOAT", "TEXTBOX_LIST", "DATE", "TEXTAREA", "RADIO", "FILE_UPLOAD", "SIGNATURE"]>;
|
|
3
|
+
export declare const CustomFieldModelSchema: z.ZodOptional<z.ZodEnum<["contact", "opportunity"]>>;
|
|
4
|
+
export declare const ListCustomFieldsSchema: z.ZodObject<{
|
|
5
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
9
|
+
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
offset: number;
|
|
11
|
+
limit: number;
|
|
12
|
+
response_format: "markdown" | "json";
|
|
13
|
+
location_id?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
offset?: number | undefined;
|
|
16
|
+
location_id?: string | undefined;
|
|
17
|
+
limit?: number | undefined;
|
|
18
|
+
response_format?: "markdown" | "json" | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const GetCustomFieldSchema: z.ZodObject<{
|
|
21
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
22
|
+
field_id: z.ZodString;
|
|
23
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
response_format: "markdown" | "json";
|
|
26
|
+
field_id: string;
|
|
27
|
+
location_id?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
field_id: string;
|
|
30
|
+
location_id?: string | undefined;
|
|
31
|
+
response_format?: "markdown" | "json" | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const CreateCustomFieldSchema: z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
dataType: z.ZodEnum<["TEXT", "LARGE_TEXT", "NUMERICAL", "PHONE", "MONETORY", "CHECKBOX", "SINGLE_OPTIONS", "MULTIPLE_OPTIONS", "FLOAT", "TEXTBOX_LIST", "DATE", "TEXTAREA", "RADIO", "FILE_UPLOAD", "SIGNATURE"]>;
|
|
36
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
37
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
38
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
model: z.ZodOptional<z.ZodEnum<["contact", "opportunity"]>>;
|
|
40
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
41
|
+
acceptedFormat: z.ZodOptional<z.ZodString>;
|
|
42
|
+
isMultipleFile: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
maxNumberOfFiles: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
textBoxListOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
45
|
+
label: z.ZodString;
|
|
46
|
+
prefillValue: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, "strict", z.ZodTypeAny, {
|
|
48
|
+
label: string;
|
|
49
|
+
prefillValue?: string | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
label: string;
|
|
52
|
+
prefillValue?: string | undefined;
|
|
53
|
+
}>, "many">>;
|
|
54
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, "strict", z.ZodTypeAny, {
|
|
56
|
+
response_format: "markdown" | "json";
|
|
57
|
+
name: string;
|
|
58
|
+
dataType: "TEXT" | "LARGE_TEXT" | "NUMERICAL" | "PHONE" | "MONETORY" | "CHECKBOX" | "SINGLE_OPTIONS" | "MULTIPLE_OPTIONS" | "FLOAT" | "TEXTBOX_LIST" | "DATE" | "TEXTAREA" | "RADIO" | "FILE_UPLOAD" | "SIGNATURE";
|
|
59
|
+
options?: string[] | undefined;
|
|
60
|
+
location_id?: string | undefined;
|
|
61
|
+
placeholder?: string | undefined;
|
|
62
|
+
position?: number | undefined;
|
|
63
|
+
model?: "contact" | "opportunity" | undefined;
|
|
64
|
+
acceptedFormat?: string | undefined;
|
|
65
|
+
isMultipleFile?: boolean | undefined;
|
|
66
|
+
maxNumberOfFiles?: number | undefined;
|
|
67
|
+
textBoxListOptions?: {
|
|
68
|
+
label: string;
|
|
69
|
+
prefillValue?: string | undefined;
|
|
70
|
+
}[] | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
name: string;
|
|
73
|
+
dataType: "TEXT" | "LARGE_TEXT" | "NUMERICAL" | "PHONE" | "MONETORY" | "CHECKBOX" | "SINGLE_OPTIONS" | "MULTIPLE_OPTIONS" | "FLOAT" | "TEXTBOX_LIST" | "DATE" | "TEXTAREA" | "RADIO" | "FILE_UPLOAD" | "SIGNATURE";
|
|
74
|
+
options?: string[] | undefined;
|
|
75
|
+
location_id?: string | undefined;
|
|
76
|
+
response_format?: "markdown" | "json" | undefined;
|
|
77
|
+
placeholder?: string | undefined;
|
|
78
|
+
position?: number | undefined;
|
|
79
|
+
model?: "contact" | "opportunity" | undefined;
|
|
80
|
+
acceptedFormat?: string | undefined;
|
|
81
|
+
isMultipleFile?: boolean | undefined;
|
|
82
|
+
maxNumberOfFiles?: number | undefined;
|
|
83
|
+
textBoxListOptions?: {
|
|
84
|
+
label: string;
|
|
85
|
+
prefillValue?: string | undefined;
|
|
86
|
+
}[] | undefined;
|
|
87
|
+
}>;
|
|
88
|
+
export declare const UpdateCustomFieldSchema: z.ZodObject<{
|
|
89
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
90
|
+
name: z.ZodOptional<z.ZodString>;
|
|
91
|
+
dataType: z.ZodOptional<z.ZodEnum<["TEXT", "LARGE_TEXT", "NUMERICAL", "PHONE", "MONETORY", "CHECKBOX", "SINGLE_OPTIONS", "MULTIPLE_OPTIONS", "FLOAT", "TEXTBOX_LIST", "DATE", "TEXTAREA", "RADIO", "FILE_UPLOAD", "SIGNATURE"]>>;
|
|
92
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
93
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
model: z.ZodOptional<z.ZodEnum<["contact", "opportunity"]>>;
|
|
95
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
96
|
+
acceptedFormat: z.ZodOptional<z.ZodString>;
|
|
97
|
+
isMultipleFile: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
maxNumberOfFiles: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
textBoxListOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
+
label: z.ZodString;
|
|
101
|
+
prefillValue: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, "strict", z.ZodTypeAny, {
|
|
103
|
+
label: string;
|
|
104
|
+
prefillValue?: string | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
label: string;
|
|
107
|
+
prefillValue?: string | undefined;
|
|
108
|
+
}>, "many">>;
|
|
109
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
110
|
+
field_id: z.ZodString;
|
|
111
|
+
}, "strict", z.ZodTypeAny, {
|
|
112
|
+
response_format: "markdown" | "json";
|
|
113
|
+
field_id: string;
|
|
114
|
+
options?: string[] | undefined;
|
|
115
|
+
location_id?: string | undefined;
|
|
116
|
+
name?: string | undefined;
|
|
117
|
+
dataType?: "TEXT" | "LARGE_TEXT" | "NUMERICAL" | "PHONE" | "MONETORY" | "CHECKBOX" | "SINGLE_OPTIONS" | "MULTIPLE_OPTIONS" | "FLOAT" | "TEXTBOX_LIST" | "DATE" | "TEXTAREA" | "RADIO" | "FILE_UPLOAD" | "SIGNATURE" | undefined;
|
|
118
|
+
placeholder?: string | undefined;
|
|
119
|
+
position?: number | undefined;
|
|
120
|
+
model?: "contact" | "opportunity" | undefined;
|
|
121
|
+
acceptedFormat?: string | undefined;
|
|
122
|
+
isMultipleFile?: boolean | undefined;
|
|
123
|
+
maxNumberOfFiles?: number | undefined;
|
|
124
|
+
textBoxListOptions?: {
|
|
125
|
+
label: string;
|
|
126
|
+
prefillValue?: string | undefined;
|
|
127
|
+
}[] | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
field_id: string;
|
|
130
|
+
options?: string[] | undefined;
|
|
131
|
+
location_id?: string | undefined;
|
|
132
|
+
response_format?: "markdown" | "json" | undefined;
|
|
133
|
+
name?: string | undefined;
|
|
134
|
+
dataType?: "TEXT" | "LARGE_TEXT" | "NUMERICAL" | "PHONE" | "MONETORY" | "CHECKBOX" | "SINGLE_OPTIONS" | "MULTIPLE_OPTIONS" | "FLOAT" | "TEXTBOX_LIST" | "DATE" | "TEXTAREA" | "RADIO" | "FILE_UPLOAD" | "SIGNATURE" | undefined;
|
|
135
|
+
placeholder?: string | undefined;
|
|
136
|
+
position?: number | undefined;
|
|
137
|
+
model?: "contact" | "opportunity" | undefined;
|
|
138
|
+
acceptedFormat?: string | undefined;
|
|
139
|
+
isMultipleFile?: boolean | undefined;
|
|
140
|
+
maxNumberOfFiles?: number | undefined;
|
|
141
|
+
textBoxListOptions?: {
|
|
142
|
+
label: string;
|
|
143
|
+
prefillValue?: string | undefined;
|
|
144
|
+
}[] | undefined;
|
|
145
|
+
}>;
|
|
146
|
+
export declare const DeleteCustomFieldSchema: z.ZodObject<{
|
|
147
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
148
|
+
field_id: z.ZodString;
|
|
149
|
+
confirm: z.ZodBoolean;
|
|
150
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
151
|
+
}, "strict", z.ZodTypeAny, {
|
|
152
|
+
response_format: "markdown" | "json";
|
|
153
|
+
confirm: boolean;
|
|
154
|
+
field_id: string;
|
|
155
|
+
location_id?: string | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
confirm: boolean;
|
|
158
|
+
field_id: string;
|
|
159
|
+
location_id?: string | undefined;
|
|
160
|
+
response_format?: "markdown" | "json" | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
export declare const ListCustomFieldsV2Schema: z.ZodObject<{
|
|
163
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
164
|
+
objectKey: z.ZodString;
|
|
165
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
166
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
167
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
168
|
+
}, "strict", z.ZodTypeAny, {
|
|
169
|
+
offset: number;
|
|
170
|
+
limit: number;
|
|
171
|
+
response_format: "markdown" | "json";
|
|
172
|
+
objectKey: string;
|
|
173
|
+
location_id?: string | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
objectKey: string;
|
|
176
|
+
offset?: number | undefined;
|
|
177
|
+
location_id?: string | undefined;
|
|
178
|
+
limit?: number | undefined;
|
|
179
|
+
response_format?: "markdown" | "json" | undefined;
|
|
180
|
+
}>;
|
|
181
|
+
export declare const GetCustomFieldV2Schema: z.ZodObject<{
|
|
182
|
+
id: z.ZodString;
|
|
183
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
184
|
+
}, "strict", z.ZodTypeAny, {
|
|
185
|
+
response_format: "markdown" | "json";
|
|
186
|
+
id: string;
|
|
187
|
+
}, {
|
|
188
|
+
id: string;
|
|
189
|
+
response_format?: "markdown" | "json" | undefined;
|
|
190
|
+
}>;
|
|
191
|
+
export declare const CreateCustomFieldV2Schema: z.ZodObject<{
|
|
192
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
193
|
+
name: z.ZodString;
|
|
194
|
+
objectKey: z.ZodString;
|
|
195
|
+
dataType: z.ZodEnum<["TEXT", "LARGE_TEXT", "NUMERICAL", "PHONE", "MONETORY", "CHECKBOX", "SINGLE_OPTIONS", "MULTIPLE_OPTIONS", "FLOAT", "TEXTBOX_LIST", "DATE", "TEXTAREA", "RADIO", "FILE_UPLOAD", "SIGNATURE"]>;
|
|
196
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
197
|
+
description: z.ZodOptional<z.ZodString>;
|
|
198
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
199
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
200
|
+
showInForms: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
+
options: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
202
|
+
acceptedFormats: z.ZodOptional<z.ZodString>;
|
|
203
|
+
allowCustomOption: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
+
maxFileLimit: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
206
|
+
}, "strict", z.ZodTypeAny, {
|
|
207
|
+
response_format: "markdown" | "json";
|
|
208
|
+
name: string;
|
|
209
|
+
dataType: "TEXT" | "LARGE_TEXT" | "NUMERICAL" | "PHONE" | "MONETORY" | "CHECKBOX" | "SINGLE_OPTIONS" | "MULTIPLE_OPTIONS" | "FLOAT" | "TEXTBOX_LIST" | "DATE" | "TEXTAREA" | "RADIO" | "FILE_UPLOAD" | "SIGNATURE";
|
|
210
|
+
objectKey: string;
|
|
211
|
+
options?: Record<string, unknown>[] | undefined;
|
|
212
|
+
locationId?: string | undefined;
|
|
213
|
+
extra?: Record<string, unknown> | undefined;
|
|
214
|
+
description?: string | undefined;
|
|
215
|
+
placeholder?: string | undefined;
|
|
216
|
+
parentId?: string | undefined;
|
|
217
|
+
showInForms?: boolean | undefined;
|
|
218
|
+
acceptedFormats?: string | undefined;
|
|
219
|
+
allowCustomOption?: boolean | undefined;
|
|
220
|
+
maxFileLimit?: number | undefined;
|
|
221
|
+
}, {
|
|
222
|
+
name: string;
|
|
223
|
+
dataType: "TEXT" | "LARGE_TEXT" | "NUMERICAL" | "PHONE" | "MONETORY" | "CHECKBOX" | "SINGLE_OPTIONS" | "MULTIPLE_OPTIONS" | "FLOAT" | "TEXTBOX_LIST" | "DATE" | "TEXTAREA" | "RADIO" | "FILE_UPLOAD" | "SIGNATURE";
|
|
224
|
+
objectKey: string;
|
|
225
|
+
options?: Record<string, unknown>[] | undefined;
|
|
226
|
+
response_format?: "markdown" | "json" | undefined;
|
|
227
|
+
locationId?: string | undefined;
|
|
228
|
+
extra?: Record<string, unknown> | undefined;
|
|
229
|
+
description?: string | undefined;
|
|
230
|
+
placeholder?: string | undefined;
|
|
231
|
+
parentId?: string | undefined;
|
|
232
|
+
showInForms?: boolean | undefined;
|
|
233
|
+
acceptedFormats?: string | undefined;
|
|
234
|
+
allowCustomOption?: boolean | undefined;
|
|
235
|
+
maxFileLimit?: number | undefined;
|
|
236
|
+
}>;
|
|
237
|
+
export declare const UpdateCustomFieldV2Schema: z.ZodObject<{
|
|
238
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
239
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
240
|
+
name: z.ZodOptional<z.ZodString>;
|
|
241
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
242
|
+
dataType: z.ZodOptional<z.ZodEnum<["TEXT", "LARGE_TEXT", "NUMERICAL", "PHONE", "MONETORY", "CHECKBOX", "SINGLE_OPTIONS", "MULTIPLE_OPTIONS", "FLOAT", "TEXTBOX_LIST", "DATE", "TEXTAREA", "RADIO", "FILE_UPLOAD", "SIGNATURE"]>>;
|
|
243
|
+
description: z.ZodOptional<z.ZodString>;
|
|
244
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
245
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
246
|
+
showInForms: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
options: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
248
|
+
acceptedFormats: z.ZodOptional<z.ZodString>;
|
|
249
|
+
allowCustomOption: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
+
maxFileLimit: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
252
|
+
id: z.ZodString;
|
|
253
|
+
}, "strict", z.ZodTypeAny, {
|
|
254
|
+
response_format: "markdown" | "json";
|
|
255
|
+
id: string;
|
|
256
|
+
options?: Record<string, unknown>[] | undefined;
|
|
257
|
+
locationId?: string | undefined;
|
|
258
|
+
extra?: Record<string, unknown> | undefined;
|
|
259
|
+
description?: string | undefined;
|
|
260
|
+
name?: string | undefined;
|
|
261
|
+
dataType?: "TEXT" | "LARGE_TEXT" | "NUMERICAL" | "PHONE" | "MONETORY" | "CHECKBOX" | "SINGLE_OPTIONS" | "MULTIPLE_OPTIONS" | "FLOAT" | "TEXTBOX_LIST" | "DATE" | "TEXTAREA" | "RADIO" | "FILE_UPLOAD" | "SIGNATURE" | undefined;
|
|
262
|
+
placeholder?: string | undefined;
|
|
263
|
+
objectKey?: string | undefined;
|
|
264
|
+
parentId?: string | undefined;
|
|
265
|
+
showInForms?: boolean | undefined;
|
|
266
|
+
acceptedFormats?: string | undefined;
|
|
267
|
+
allowCustomOption?: boolean | undefined;
|
|
268
|
+
maxFileLimit?: number | undefined;
|
|
269
|
+
}, {
|
|
270
|
+
id: string;
|
|
271
|
+
options?: Record<string, unknown>[] | undefined;
|
|
272
|
+
response_format?: "markdown" | "json" | undefined;
|
|
273
|
+
locationId?: string | undefined;
|
|
274
|
+
extra?: Record<string, unknown> | undefined;
|
|
275
|
+
description?: string | undefined;
|
|
276
|
+
name?: string | undefined;
|
|
277
|
+
dataType?: "TEXT" | "LARGE_TEXT" | "NUMERICAL" | "PHONE" | "MONETORY" | "CHECKBOX" | "SINGLE_OPTIONS" | "MULTIPLE_OPTIONS" | "FLOAT" | "TEXTBOX_LIST" | "DATE" | "TEXTAREA" | "RADIO" | "FILE_UPLOAD" | "SIGNATURE" | undefined;
|
|
278
|
+
placeholder?: string | undefined;
|
|
279
|
+
objectKey?: string | undefined;
|
|
280
|
+
parentId?: string | undefined;
|
|
281
|
+
showInForms?: boolean | undefined;
|
|
282
|
+
acceptedFormats?: string | undefined;
|
|
283
|
+
allowCustomOption?: boolean | undefined;
|
|
284
|
+
maxFileLimit?: number | undefined;
|
|
285
|
+
}>;
|
|
286
|
+
export declare const DeleteCustomFieldV2Schema: z.ZodObject<{
|
|
287
|
+
id: z.ZodString;
|
|
288
|
+
confirm: z.ZodBoolean;
|
|
289
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
290
|
+
}, "strict", z.ZodTypeAny, {
|
|
291
|
+
response_format: "markdown" | "json";
|
|
292
|
+
confirm: boolean;
|
|
293
|
+
id: string;
|
|
294
|
+
}, {
|
|
295
|
+
confirm: boolean;
|
|
296
|
+
id: string;
|
|
297
|
+
response_format?: "markdown" | "json" | undefined;
|
|
298
|
+
}>;
|
|
299
|
+
export declare const CreateCustomFieldFolderSchema: z.ZodObject<{
|
|
300
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
301
|
+
objectKey: z.ZodString;
|
|
302
|
+
name: z.ZodString;
|
|
303
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
304
|
+
extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
305
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
306
|
+
}, "strict", z.ZodTypeAny, {
|
|
307
|
+
response_format: "markdown" | "json";
|
|
308
|
+
name: string;
|
|
309
|
+
objectKey: string;
|
|
310
|
+
location_id?: string | undefined;
|
|
311
|
+
extra?: Record<string, unknown> | undefined;
|
|
312
|
+
parentId?: string | undefined;
|
|
313
|
+
}, {
|
|
314
|
+
name: string;
|
|
315
|
+
objectKey: string;
|
|
316
|
+
location_id?: string | undefined;
|
|
317
|
+
response_format?: "markdown" | "json" | undefined;
|
|
318
|
+
extra?: Record<string, unknown> | undefined;
|
|
319
|
+
parentId?: string | undefined;
|
|
320
|
+
}>;
|
|
321
|
+
export declare const UpdateCustomFieldFolderSchema: z.ZodObject<{
|
|
322
|
+
folder_id: z.ZodString;
|
|
323
|
+
name: z.ZodString;
|
|
324
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
325
|
+
}, "strict", z.ZodTypeAny, {
|
|
326
|
+
response_format: "markdown" | "json";
|
|
327
|
+
name: string;
|
|
328
|
+
folder_id: string;
|
|
329
|
+
}, {
|
|
330
|
+
name: string;
|
|
331
|
+
folder_id: string;
|
|
332
|
+
response_format?: "markdown" | "json" | undefined;
|
|
333
|
+
}>;
|
|
334
|
+
export declare const DeleteCustomFieldFolderSchema: z.ZodObject<{
|
|
335
|
+
folder_id: z.ZodString;
|
|
336
|
+
confirm: z.ZodBoolean;
|
|
337
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
338
|
+
}, "strict", z.ZodTypeAny, {
|
|
339
|
+
response_format: "markdown" | "json";
|
|
340
|
+
confirm: boolean;
|
|
341
|
+
folder_id: string;
|
|
342
|
+
}, {
|
|
343
|
+
confirm: boolean;
|
|
344
|
+
folder_id: string;
|
|
345
|
+
response_format?: "markdown" | "json" | undefined;
|
|
346
|
+
}>;
|
|
347
|
+
export type ListCustomFieldsInput = z.infer<typeof ListCustomFieldsSchema>;
|
|
348
|
+
export type GetCustomFieldInput = z.infer<typeof GetCustomFieldSchema>;
|
|
349
|
+
export type CreateCustomFieldInput = z.infer<typeof CreateCustomFieldSchema>;
|
|
350
|
+
export type UpdateCustomFieldInput = z.infer<typeof UpdateCustomFieldSchema>;
|
|
351
|
+
export type DeleteCustomFieldInput = z.infer<typeof DeleteCustomFieldSchema>;
|
|
352
|
+
export type ListCustomFieldsV2Input = z.infer<typeof ListCustomFieldsV2Schema>;
|
|
353
|
+
export type GetCustomFieldV2Input = z.infer<typeof GetCustomFieldV2Schema>;
|
|
354
|
+
export type CreateCustomFieldV2Input = z.infer<typeof CreateCustomFieldV2Schema>;
|
|
355
|
+
export type UpdateCustomFieldV2Input = z.infer<typeof UpdateCustomFieldV2Schema>;
|
|
356
|
+
export type DeleteCustomFieldV2Input = z.infer<typeof DeleteCustomFieldV2Schema>;
|
|
357
|
+
export type CreateCustomFieldFolderInput = z.infer<typeof CreateCustomFieldFolderSchema>;
|
|
358
|
+
export type UpdateCustomFieldFolderInput = z.infer<typeof UpdateCustomFieldFolderSchema>;
|
|
359
|
+
export type DeleteCustomFieldFolderInput = z.infer<typeof DeleteCustomFieldFolderSchema>;
|
|
360
|
+
//# sourceMappingURL=custom-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-fields.d.ts","sourceRoot":"","sources":["../../src/schemas/custom-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,yBAAyB,yMAgBpC,CAAC;AAEH,eAAO,MAAM,sBAAsB,sDAAgD,CAAC;AAkBpF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAOxB,CAAC;AAEZ,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAMtB,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQzB,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOzB,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAOzB,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;EAQ1B,CAAC;AAEZ,eAAO,MAAM,sBAAsB;;;;;;;;;EAKxB,CAAC;A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AAO,yBAAyB,CAAC,CAAC;AACjF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACzF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACzF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ConfirmSchema, ExtraSchema, IdSchema, LimitSchema, LocationIdSchema, OffsetSchema, ResponseFormatSchema } from "./common.js";
|
|
3
|
+
export const CustomFieldDataTypeSchema = z.enum([
|
|
4
|
+
"TEXT",
|
|
5
|
+
"LARGE_TEXT",
|
|
6
|
+
"NUMERICAL",
|
|
7
|
+
"PHONE",
|
|
8
|
+
"MONETORY",
|
|
9
|
+
"CHECKBOX",
|
|
10
|
+
"SINGLE_OPTIONS",
|
|
11
|
+
"MULTIPLE_OPTIONS",
|
|
12
|
+
"FLOAT",
|
|
13
|
+
"TEXTBOX_LIST",
|
|
14
|
+
"DATE",
|
|
15
|
+
"TEXTAREA",
|
|
16
|
+
"RADIO",
|
|
17
|
+
"FILE_UPLOAD",
|
|
18
|
+
"SIGNATURE"
|
|
19
|
+
]);
|
|
20
|
+
export const CustomFieldModelSchema = z.enum(["contact", "opportunity"]).optional();
|
|
21
|
+
const CustomFieldBodyShape = {
|
|
22
|
+
name: z.string().min(1).optional().describe("Custom field display name."),
|
|
23
|
+
dataType: CustomFieldDataTypeSchema.optional().describe("GoHighLevel custom field type. Note the documented MONETORY spelling."),
|
|
24
|
+
placeholder: z.string().min(1).optional(),
|
|
25
|
+
position: z.number().int().min(0).optional(),
|
|
26
|
+
model: CustomFieldModelSchema,
|
|
27
|
+
options: z.array(z.string().min(1)).optional(),
|
|
28
|
+
acceptedFormat: z.string().min(1).optional(),
|
|
29
|
+
isMultipleFile: z.boolean().optional(),
|
|
30
|
+
maxNumberOfFiles: z.number().int().positive().optional(),
|
|
31
|
+
textBoxListOptions: z.array(z.object({
|
|
32
|
+
label: z.string().min(1),
|
|
33
|
+
prefillValue: z.string().optional()
|
|
34
|
+
}).strict()).optional()
|
|
35
|
+
};
|
|
36
|
+
export const ListCustomFieldsSchema = z
|
|
37
|
+
.object({
|
|
38
|
+
location_id: LocationIdSchema,
|
|
39
|
+
limit: LimitSchema,
|
|
40
|
+
offset: OffsetSchema,
|
|
41
|
+
response_format: ResponseFormatSchema
|
|
42
|
+
})
|
|
43
|
+
.strict();
|
|
44
|
+
export const GetCustomFieldSchema = z
|
|
45
|
+
.object({
|
|
46
|
+
location_id: LocationIdSchema,
|
|
47
|
+
field_id: IdSchema.describe("Custom field ID."),
|
|
48
|
+
response_format: ResponseFormatSchema
|
|
49
|
+
})
|
|
50
|
+
.strict();
|
|
51
|
+
export const CreateCustomFieldSchema = z
|
|
52
|
+
.object({
|
|
53
|
+
location_id: LocationIdSchema,
|
|
54
|
+
...CustomFieldBodyShape,
|
|
55
|
+
name: z.string().min(1).describe("Custom field display name."),
|
|
56
|
+
dataType: CustomFieldDataTypeSchema.describe("GoHighLevel custom field type. Note the documented MONETORY spelling."),
|
|
57
|
+
response_format: ResponseFormatSchema
|
|
58
|
+
})
|
|
59
|
+
.strict();
|
|
60
|
+
export const UpdateCustomFieldSchema = z
|
|
61
|
+
.object({
|
|
62
|
+
location_id: LocationIdSchema,
|
|
63
|
+
field_id: IdSchema.describe("Custom field ID."),
|
|
64
|
+
...CustomFieldBodyShape,
|
|
65
|
+
response_format: ResponseFormatSchema
|
|
66
|
+
})
|
|
67
|
+
.strict();
|
|
68
|
+
export const DeleteCustomFieldSchema = z
|
|
69
|
+
.object({
|
|
70
|
+
location_id: LocationIdSchema,
|
|
71
|
+
field_id: IdSchema.describe("Custom field ID."),
|
|
72
|
+
confirm: ConfirmSchema,
|
|
73
|
+
response_format: ResponseFormatSchema
|
|
74
|
+
})
|
|
75
|
+
.strict();
|
|
76
|
+
export const ListCustomFieldsV2Schema = z
|
|
77
|
+
.object({
|
|
78
|
+
location_id: LocationIdSchema,
|
|
79
|
+
objectKey: z.string().min(1).describe("Object key, for example custom_objects.pet or business."),
|
|
80
|
+
limit: LimitSchema,
|
|
81
|
+
offset: OffsetSchema,
|
|
82
|
+
response_format: ResponseFormatSchema
|
|
83
|
+
})
|
|
84
|
+
.strict();
|
|
85
|
+
export const GetCustomFieldV2Schema = z
|
|
86
|
+
.object({
|
|
87
|
+
id: IdSchema.describe("Custom Fields V2 field or folder ID."),
|
|
88
|
+
response_format: ResponseFormatSchema
|
|
89
|
+
})
|
|
90
|
+
.strict();
|
|
91
|
+
const CustomFieldV2BodyShape = {
|
|
92
|
+
locationId: z.string().min(1).optional().describe("Optional explicit location ID. Defaults to GHL_LOCATION_ID."),
|
|
93
|
+
name: z.string().min(1).optional(),
|
|
94
|
+
objectKey: z.string().min(1).optional(),
|
|
95
|
+
dataType: CustomFieldDataTypeSchema.optional(),
|
|
96
|
+
description: z.string().min(1).optional(),
|
|
97
|
+
placeholder: z.string().min(1).optional(),
|
|
98
|
+
parentId: z.string().min(1).optional(),
|
|
99
|
+
showInForms: z.boolean().optional(),
|
|
100
|
+
options: z.array(z.record(z.unknown())).optional(),
|
|
101
|
+
acceptedFormats: z.string().min(1).optional(),
|
|
102
|
+
allowCustomOption: z.boolean().optional(),
|
|
103
|
+
maxFileLimit: z.number().int().positive().optional(),
|
|
104
|
+
extra: ExtraSchema
|
|
105
|
+
};
|
|
106
|
+
export const CreateCustomFieldV2Schema = z
|
|
107
|
+
.object({
|
|
108
|
+
...CustomFieldV2BodyShape,
|
|
109
|
+
locationId: z.string().min(1).optional().describe("Optional explicit location ID. Defaults to GHL_LOCATION_ID."),
|
|
110
|
+
name: z.string().min(1).describe("Custom field name."),
|
|
111
|
+
objectKey: z.string().min(1).describe("Object key, for example custom_objects.pet or business."),
|
|
112
|
+
dataType: CustomFieldDataTypeSchema.describe("GoHighLevel custom field type."),
|
|
113
|
+
response_format: ResponseFormatSchema
|
|
114
|
+
})
|
|
115
|
+
.strict();
|
|
116
|
+
export const UpdateCustomFieldV2Schema = z
|
|
117
|
+
.object({
|
|
118
|
+
id: IdSchema.describe("Custom Fields V2 field ID."),
|
|
119
|
+
...CustomFieldV2BodyShape,
|
|
120
|
+
response_format: ResponseFormatSchema
|
|
121
|
+
})
|
|
122
|
+
.strict();
|
|
123
|
+
export const DeleteCustomFieldV2Schema = z
|
|
124
|
+
.object({
|
|
125
|
+
id: IdSchema.describe("Custom Fields V2 field ID."),
|
|
126
|
+
confirm: ConfirmSchema,
|
|
127
|
+
response_format: ResponseFormatSchema
|
|
128
|
+
})
|
|
129
|
+
.strict();
|
|
130
|
+
export const CreateCustomFieldFolderSchema = z
|
|
131
|
+
.object({
|
|
132
|
+
location_id: LocationIdSchema,
|
|
133
|
+
objectKey: z.string().min(1).describe("Object key for the folder."),
|
|
134
|
+
name: z.string().min(1).describe("Folder name."),
|
|
135
|
+
parentId: z.string().min(1).optional(),
|
|
136
|
+
extra: ExtraSchema,
|
|
137
|
+
response_format: ResponseFormatSchema
|
|
138
|
+
})
|
|
139
|
+
.strict();
|
|
140
|
+
export const UpdateCustomFieldFolderSchema = z
|
|
141
|
+
.object({
|
|
142
|
+
folder_id: IdSchema.describe("Custom field folder ID."),
|
|
143
|
+
name: z.string().min(1).describe("New folder name."),
|
|
144
|
+
response_format: ResponseFormatSchema
|
|
145
|
+
})
|
|
146
|
+
.strict();
|
|
147
|
+
export const DeleteCustomFieldFolderSchema = z
|
|
148
|
+
.object({
|
|
149
|
+
folder_id: IdSchema.describe("Custom field folder ID."),
|
|
150
|
+
confirm: ConfirmSchema,
|
|
151
|
+
response_format: ResponseFormatSchema
|
|
152
|
+
})
|
|
153
|
+
.strict();
|
|
154
|
+
//# sourceMappingURL=custom-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-fields.js","sourceRoot":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AG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACpD,eAAe,EAAE,oBAAoB;CACtC,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACvD,OAAO,EAAE,aAAa;IACtB,eAAe,EAAE,oBAAoB;CACtC,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ListCustomValuesSchema: z.ZodObject<{
|
|
3
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
7
|
+
}, "strict", z.ZodTypeAny, {
|
|
8
|
+
offset: number;
|
|
9
|
+
limit: number;
|
|
10
|
+
response_format: "markdown" | "json";
|
|
11
|
+
location_id?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
offset?: number | undefined;
|
|
14
|
+
location_id?: string | undefined;
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
response_format?: "markdown" | "json" | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const GetCustomValueSchema: z.ZodObject<{
|
|
19
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
custom_value_id: z.ZodString;
|
|
21
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
22
|
+
}, "strict", z.ZodTypeAny, {
|
|
23
|
+
response_format: "markdown" | "json";
|
|
24
|
+
custom_value_id: string;
|
|
25
|
+
location_id?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
custom_value_id: string;
|
|
28
|
+
location_id?: string | undefined;
|
|
29
|
+
response_format?: "markdown" | "json" | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const CreateCustomValueSchema: z.ZodObject<{
|
|
32
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
value: z.ZodString;
|
|
35
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
36
|
+
}, "strict", z.ZodTypeAny, {
|
|
37
|
+
value: string;
|
|
38
|
+
response_format: "markdown" | "json";
|
|
39
|
+
name: string;
|
|
40
|
+
location_id?: string | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
value: string;
|
|
43
|
+
name: string;
|
|
44
|
+
location_id?: string | undefined;
|
|
45
|
+
response_format?: "markdown" | "json" | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const UpdateCustomValueSchema: z.ZodObject<{
|
|
48
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
49
|
+
custom_value_id: z.ZodString;
|
|
50
|
+
name: z.ZodOptional<z.ZodString>;
|
|
51
|
+
value: z.ZodOptional<z.ZodString>;
|
|
52
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
53
|
+
}, "strict", z.ZodTypeAny, {
|
|
54
|
+
response_format: "markdown" | "json";
|
|
55
|
+
custom_value_id: string;
|
|
56
|
+
value?: string | undefined;
|
|
57
|
+
location_id?: string | undefined;
|
|
58
|
+
name?: string | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
custom_value_id: string;
|
|
61
|
+
value?: string | undefined;
|
|
62
|
+
location_id?: string | undefined;
|
|
63
|
+
response_format?: "markdown" | "json" | undefined;
|
|
64
|
+
name?: string | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
export declare const DeleteCustomValueSchema: z.ZodObject<{
|
|
67
|
+
location_id: z.ZodOptional<z.ZodString>;
|
|
68
|
+
custom_value_id: z.ZodString;
|
|
69
|
+
confirm: z.ZodBoolean;
|
|
70
|
+
response_format: z.ZodDefault<z.ZodEnum<["markdown", "json"]>>;
|
|
71
|
+
}, "strict", z.ZodTypeAny, {
|
|
72
|
+
response_format: "markdown" | "json";
|
|
73
|
+
confirm: boolean;
|
|
74
|
+
custom_value_id: string;
|
|
75
|
+
location_id?: string | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
confirm: boolean;
|
|
78
|
+
custom_value_id: string;
|
|
79
|
+
location_id?: string | undefined;
|
|
80
|
+
response_format?: "markdown" | "json" | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
export type ListCustomValuesInput = z.infer<typeof ListCustomValuesSchema>;
|
|
83
|
+
export type GetCustomValueInput = z.infer<typeof GetCustomValueSchema>;
|
|
84
|
+
export type CreateCustomValueInput = z.infer<typeof CreateCustomValueSchema>;
|
|
85
|
+
export type UpdateCustomValueInput = z.infer<typeof UpdateCustomValueSchema>;
|
|
86
|
+
export type DeleteCustomValueInput = z.infer<typeof DeleteCustomValueSchema>;
|
|
87
|
+
//# sourceMappingURL=custom-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-values.d.ts","sourceRoot":"","sources":["../../src/schemas/custom-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAOxB,CAAC;AAEZ,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAMtB,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAOzB,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;EAQzB,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAOzB,CAAC;AAEZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACvE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC7E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC7E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|