@corsair-dev/hubspot 0.1.2 → 0.1.4

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.
@@ -6,159 +6,53 @@ export declare const ContactsEndpoints: {
6
6
  associations?: string[] | undefined;
7
7
  archived?: boolean | undefined;
8
8
  idProperty?: string | undefined;
9
- }) => Promise<import("zod").objectOutputType<{
10
- id: import("zod").ZodString;
11
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
12
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
13
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
14
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
15
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
16
- results: import("zod").ZodArray<import("zod").ZodObject<{
17
- id: import("zod").ZodString;
18
- type: import("zod").ZodOptional<import("zod").ZodString>;
19
- }, "strip", import("zod").ZodTypeAny, {
20
- id: string;
21
- type?: string | undefined;
22
- }, {
23
- id: string;
24
- type?: string | undefined;
25
- }>, "many">;
26
- }, "strip", import("zod").ZodTypeAny, {
27
- results: {
28
- id: string;
29
- type?: string | undefined;
30
- }[];
31
- }, {
9
+ }) => Promise<{
10
+ [x: string]: unknown;
11
+ id: string;
12
+ properties?: Record<string, string> | undefined;
13
+ createdAt?: Date | null | undefined;
14
+ updatedAt?: Date | null | undefined;
15
+ archived?: boolean | undefined;
16
+ associations?: Record<string, string[] | {
32
17
  results: {
33
18
  id: string;
34
19
  type?: string | undefined;
35
20
  }[];
36
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
37
- }, import("zod").ZodTypeAny, "passthrough">>;
21
+ }> | undefined;
22
+ }>;
38
23
  getMany: (ctx: import("..").HubSpotContext, args: {
24
+ limit?: number | undefined;
25
+ after?: string | undefined;
39
26
  properties?: string[] | undefined;
40
27
  propertiesWithHistory?: string[] | undefined;
41
28
  associations?: string[] | undefined;
42
29
  archived?: boolean | undefined;
43
- limit?: number | undefined;
44
- after?: string | undefined;
45
- }) => Promise<import("zod").objectOutputType<{
46
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
47
- id: import("zod").ZodString;
48
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
49
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
50
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
51
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
52
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
53
- results: import("zod").ZodArray<import("zod").ZodObject<{
54
- id: import("zod").ZodString;
55
- type: import("zod").ZodOptional<import("zod").ZodString>;
56
- }, "strip", import("zod").ZodTypeAny, {
57
- id: string;
58
- type?: string | undefined;
59
- }, {
60
- id: string;
61
- type?: string | undefined;
62
- }>, "many">;
63
- }, "strip", import("zod").ZodTypeAny, {
64
- results: {
65
- id: string;
66
- type?: string | undefined;
67
- }[];
68
- }, {
69
- results: {
70
- id: string;
71
- type?: string | undefined;
72
- }[];
73
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
74
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
75
- id: import("zod").ZodString;
76
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
77
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
78
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
79
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
80
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
81
- results: import("zod").ZodArray<import("zod").ZodObject<{
82
- id: import("zod").ZodString;
83
- type: import("zod").ZodOptional<import("zod").ZodString>;
84
- }, "strip", import("zod").ZodTypeAny, {
85
- id: string;
86
- type?: string | undefined;
87
- }, {
88
- id: string;
89
- type?: string | undefined;
90
- }>, "many">;
91
- }, "strip", import("zod").ZodTypeAny, {
92
- results: {
93
- id: string;
94
- type?: string | undefined;
95
- }[];
96
- }, {
97
- results: {
98
- id: string;
99
- type?: string | undefined;
100
- }[];
101
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
102
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
103
- id: import("zod").ZodString;
104
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
105
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
106
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
107
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
108
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
109
- results: import("zod").ZodArray<import("zod").ZodObject<{
110
- id: import("zod").ZodString;
111
- type: import("zod").ZodOptional<import("zod").ZodString>;
112
- }, "strip", import("zod").ZodTypeAny, {
113
- id: string;
114
- type?: string | undefined;
115
- }, {
116
- id: string;
117
- type?: string | undefined;
118
- }>, "many">;
119
- }, "strip", import("zod").ZodTypeAny, {
120
- results: {
121
- id: string;
122
- type?: string | undefined;
123
- }[];
124
- }, {
30
+ }) => Promise<{
31
+ [x: string]: unknown;
32
+ total?: number | undefined;
33
+ results?: {
34
+ [x: string]: unknown;
35
+ id: string;
36
+ properties?: Record<string, string> | undefined;
37
+ createdAt?: Date | null | undefined;
38
+ updatedAt?: Date | null | undefined;
39
+ archived?: boolean | undefined;
40
+ associations?: Record<string, string[] | {
125
41
  results: {
126
42
  id: string;
127
43
  type?: string | undefined;
128
44
  }[];
129
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
130
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
131
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
132
- next: import("zod").ZodOptional<import("zod").ZodObject<{
133
- after: import("zod").ZodString;
134
- }, "strip", import("zod").ZodTypeAny, {
135
- after: string;
136
- }, {
137
- after: string;
138
- }>>;
139
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
140
- before: import("zod").ZodString;
141
- }, "strip", import("zod").ZodTypeAny, {
142
- before: string;
143
- }, {
144
- before: string;
145
- }>>;
146
- }, "strip", import("zod").ZodTypeAny, {
147
- next?: {
148
- after: string;
149
- } | undefined;
150
- prev?: {
151
- before: string;
152
- } | undefined;
153
- }, {
45
+ }> | undefined;
46
+ }[] | undefined;
47
+ paging?: {
154
48
  next?: {
155
49
  after: string;
156
50
  } | undefined;
157
51
  prev?: {
158
52
  before: string;
159
53
  } | undefined;
160
- }>>;
161
- }, import("zod").ZodTypeAny, "passthrough">>;
54
+ } | undefined;
55
+ }>;
162
56
  createOrUpdate: (ctx: import("..").HubSpotContext, args: {
163
57
  properties?: Record<string, string> | undefined;
164
58
  associations?: {
@@ -170,412 +64,127 @@ export declare const ContactsEndpoints: {
170
64
  associationTypeId: number;
171
65
  }[];
172
66
  }[] | undefined;
173
- }) => Promise<import("zod").objectOutputType<{
174
- id: import("zod").ZodString;
175
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
176
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
177
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
178
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
179
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
180
- results: import("zod").ZodArray<import("zod").ZodObject<{
181
- id: import("zod").ZodString;
182
- type: import("zod").ZodOptional<import("zod").ZodString>;
183
- }, "strip", import("zod").ZodTypeAny, {
184
- id: string;
185
- type?: string | undefined;
186
- }, {
187
- id: string;
188
- type?: string | undefined;
189
- }>, "many">;
190
- }, "strip", import("zod").ZodTypeAny, {
191
- results: {
192
- id: string;
193
- type?: string | undefined;
194
- }[];
195
- }, {
67
+ }) => Promise<{
68
+ [x: string]: unknown;
69
+ id: string;
70
+ properties?: Record<string, string> | undefined;
71
+ createdAt?: Date | null | undefined;
72
+ updatedAt?: Date | null | undefined;
73
+ archived?: boolean | undefined;
74
+ associations?: Record<string, string[] | {
196
75
  results: {
197
76
  id: string;
198
77
  type?: string | undefined;
199
78
  }[];
200
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
201
- }, import("zod").ZodTypeAny, "passthrough">>;
79
+ }> | undefined;
80
+ }>;
202
81
  delete: (ctx: import("..").HubSpotContext, args: {
203
82
  contactId: string;
204
83
  }) => Promise<void>;
205
84
  getRecentlyCreated: (ctx: import("..").HubSpotContext, args: {
206
- after?: string | undefined;
207
85
  count?: number | undefined;
86
+ after?: string | undefined;
208
87
  since?: string | undefined;
209
- }) => Promise<import("zod").objectOutputType<{
210
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
211
- id: import("zod").ZodString;
212
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
213
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
214
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
215
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
216
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
217
- results: import("zod").ZodArray<import("zod").ZodObject<{
218
- id: import("zod").ZodString;
219
- type: import("zod").ZodOptional<import("zod").ZodString>;
220
- }, "strip", import("zod").ZodTypeAny, {
221
- id: string;
222
- type?: string | undefined;
223
- }, {
224
- id: string;
225
- type?: string | undefined;
226
- }>, "many">;
227
- }, "strip", import("zod").ZodTypeAny, {
228
- results: {
229
- id: string;
230
- type?: string | undefined;
231
- }[];
232
- }, {
233
- results: {
234
- id: string;
235
- type?: string | undefined;
236
- }[];
237
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
238
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
239
- id: import("zod").ZodString;
240
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
241
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
242
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
243
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
244
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
245
- results: import("zod").ZodArray<import("zod").ZodObject<{
246
- id: import("zod").ZodString;
247
- type: import("zod").ZodOptional<import("zod").ZodString>;
248
- }, "strip", import("zod").ZodTypeAny, {
249
- id: string;
250
- type?: string | undefined;
251
- }, {
252
- id: string;
253
- type?: string | undefined;
254
- }>, "many">;
255
- }, "strip", import("zod").ZodTypeAny, {
256
- results: {
257
- id: string;
258
- type?: string | undefined;
259
- }[];
260
- }, {
261
- results: {
262
- id: string;
263
- type?: string | undefined;
264
- }[];
265
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
266
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
267
- id: import("zod").ZodString;
268
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
269
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
270
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
271
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
272
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
273
- results: import("zod").ZodArray<import("zod").ZodObject<{
274
- id: import("zod").ZodString;
275
- type: import("zod").ZodOptional<import("zod").ZodString>;
276
- }, "strip", import("zod").ZodTypeAny, {
277
- id: string;
278
- type?: string | undefined;
279
- }, {
280
- id: string;
281
- type?: string | undefined;
282
- }>, "many">;
283
- }, "strip", import("zod").ZodTypeAny, {
284
- results: {
285
- id: string;
286
- type?: string | undefined;
287
- }[];
288
- }, {
88
+ }) => Promise<{
89
+ [x: string]: unknown;
90
+ total?: number | undefined;
91
+ results?: {
92
+ [x: string]: unknown;
93
+ id: string;
94
+ properties?: Record<string, string> | undefined;
95
+ createdAt?: Date | null | undefined;
96
+ updatedAt?: Date | null | undefined;
97
+ archived?: boolean | undefined;
98
+ associations?: Record<string, string[] | {
289
99
  results: {
290
100
  id: string;
291
101
  type?: string | undefined;
292
102
  }[];
293
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
294
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
295
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
296
- next: import("zod").ZodOptional<import("zod").ZodObject<{
297
- after: import("zod").ZodString;
298
- }, "strip", import("zod").ZodTypeAny, {
299
- after: string;
300
- }, {
301
- after: string;
302
- }>>;
303
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
304
- before: import("zod").ZodString;
305
- }, "strip", import("zod").ZodTypeAny, {
306
- before: string;
307
- }, {
308
- before: string;
309
- }>>;
310
- }, "strip", import("zod").ZodTypeAny, {
311
- next?: {
312
- after: string;
313
- } | undefined;
314
- prev?: {
315
- before: string;
316
- } | undefined;
317
- }, {
103
+ }> | undefined;
104
+ }[] | undefined;
105
+ paging?: {
318
106
  next?: {
319
107
  after: string;
320
108
  } | undefined;
321
109
  prev?: {
322
110
  before: string;
323
111
  } | undefined;
324
- }>>;
325
- }, import("zod").ZodTypeAny, "passthrough">>;
112
+ } | undefined;
113
+ }>;
326
114
  getRecentlyUpdated: (ctx: import("..").HubSpotContext, args: {
327
- after?: string | undefined;
328
115
  count?: number | undefined;
116
+ after?: string | undefined;
329
117
  since?: string | undefined;
330
- }) => Promise<import("zod").objectOutputType<{
331
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
332
- id: import("zod").ZodString;
333
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
334
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
335
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
336
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
337
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
338
- results: import("zod").ZodArray<import("zod").ZodObject<{
339
- id: import("zod").ZodString;
340
- type: import("zod").ZodOptional<import("zod").ZodString>;
341
- }, "strip", import("zod").ZodTypeAny, {
342
- id: string;
343
- type?: string | undefined;
344
- }, {
345
- id: string;
346
- type?: string | undefined;
347
- }>, "many">;
348
- }, "strip", import("zod").ZodTypeAny, {
349
- results: {
350
- id: string;
351
- type?: string | undefined;
352
- }[];
353
- }, {
354
- results: {
355
- id: string;
356
- type?: string | undefined;
357
- }[];
358
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
359
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
360
- id: import("zod").ZodString;
361
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
362
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
363
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
364
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
365
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
366
- results: import("zod").ZodArray<import("zod").ZodObject<{
367
- id: import("zod").ZodString;
368
- type: import("zod").ZodOptional<import("zod").ZodString>;
369
- }, "strip", import("zod").ZodTypeAny, {
370
- id: string;
371
- type?: string | undefined;
372
- }, {
373
- id: string;
374
- type?: string | undefined;
375
- }>, "many">;
376
- }, "strip", import("zod").ZodTypeAny, {
377
- results: {
378
- id: string;
379
- type?: string | undefined;
380
- }[];
381
- }, {
382
- results: {
383
- id: string;
384
- type?: string | undefined;
385
- }[];
386
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
387
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
388
- id: import("zod").ZodString;
389
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
390
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
391
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
392
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
393
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
394
- results: import("zod").ZodArray<import("zod").ZodObject<{
395
- id: import("zod").ZodString;
396
- type: import("zod").ZodOptional<import("zod").ZodString>;
397
- }, "strip", import("zod").ZodTypeAny, {
398
- id: string;
399
- type?: string | undefined;
400
- }, {
401
- id: string;
402
- type?: string | undefined;
403
- }>, "many">;
404
- }, "strip", import("zod").ZodTypeAny, {
405
- results: {
406
- id: string;
407
- type?: string | undefined;
408
- }[];
409
- }, {
118
+ }) => Promise<{
119
+ [x: string]: unknown;
120
+ total?: number | undefined;
121
+ results?: {
122
+ [x: string]: unknown;
123
+ id: string;
124
+ properties?: Record<string, string> | undefined;
125
+ createdAt?: Date | null | undefined;
126
+ updatedAt?: Date | null | undefined;
127
+ archived?: boolean | undefined;
128
+ associations?: Record<string, string[] | {
410
129
  results: {
411
130
  id: string;
412
131
  type?: string | undefined;
413
132
  }[];
414
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
415
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
416
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
417
- next: import("zod").ZodOptional<import("zod").ZodObject<{
418
- after: import("zod").ZodString;
419
- }, "strip", import("zod").ZodTypeAny, {
420
- after: string;
421
- }, {
422
- after: string;
423
- }>>;
424
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
425
- before: import("zod").ZodString;
426
- }, "strip", import("zod").ZodTypeAny, {
427
- before: string;
428
- }, {
429
- before: string;
430
- }>>;
431
- }, "strip", import("zod").ZodTypeAny, {
432
- next?: {
433
- after: string;
434
- } | undefined;
435
- prev?: {
436
- before: string;
437
- } | undefined;
438
- }, {
133
+ }> | undefined;
134
+ }[] | undefined;
135
+ paging?: {
439
136
  next?: {
440
137
  after: string;
441
138
  } | undefined;
442
139
  prev?: {
443
140
  before: string;
444
141
  } | undefined;
445
- }>>;
446
- }, import("zod").ZodTypeAny, "passthrough">>;
142
+ } | undefined;
143
+ }>;
447
144
  search: (ctx: import("..").HubSpotContext, args: {
448
145
  query?: string | undefined;
449
- properties?: string[] | undefined;
450
146
  limit?: number | undefined;
451
147
  after?: string | undefined;
452
- sorts?: string[] | undefined;
148
+ sorts?: {
149
+ propertyName: string;
150
+ direction: "ASCENDING" | "DESCENDING";
151
+ }[] | undefined;
152
+ properties?: string[] | undefined;
453
153
  filterGroups?: {
454
154
  filters: {
455
155
  operator: "BETWEEN" | "CONTAINS_TOKEN" | "EQ" | "GT" | "GTE" | "HAS_PROPERTY" | "IN" | "LT" | "LTE" | "NEQ" | "NOT_CONTAINS_TOKEN" | "NOT_HAS_PROPERTY" | "NOT_IN";
456
156
  propertyName: string;
157
+ highValue?: string | undefined;
457
158
  value?: string | undefined;
458
159
  values?: string[] | undefined;
459
- highValue?: string | undefined;
460
160
  }[];
461
161
  }[] | undefined;
462
- }) => Promise<import("zod").objectOutputType<{
463
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
464
- id: import("zod").ZodString;
465
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
466
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
467
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
468
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
469
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
470
- results: import("zod").ZodArray<import("zod").ZodObject<{
471
- id: import("zod").ZodString;
472
- type: import("zod").ZodOptional<import("zod").ZodString>;
473
- }, "strip", import("zod").ZodTypeAny, {
474
- id: string;
475
- type?: string | undefined;
476
- }, {
477
- id: string;
478
- type?: string | undefined;
479
- }>, "many">;
480
- }, "strip", import("zod").ZodTypeAny, {
481
- results: {
482
- id: string;
483
- type?: string | undefined;
484
- }[];
485
- }, {
486
- results: {
487
- id: string;
488
- type?: string | undefined;
489
- }[];
490
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
491
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
492
- id: import("zod").ZodString;
493
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
494
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
495
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
496
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
497
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
498
- results: import("zod").ZodArray<import("zod").ZodObject<{
499
- id: import("zod").ZodString;
500
- type: import("zod").ZodOptional<import("zod").ZodString>;
501
- }, "strip", import("zod").ZodTypeAny, {
502
- id: string;
503
- type?: string | undefined;
504
- }, {
505
- id: string;
506
- type?: string | undefined;
507
- }>, "many">;
508
- }, "strip", import("zod").ZodTypeAny, {
509
- results: {
510
- id: string;
511
- type?: string | undefined;
512
- }[];
513
- }, {
514
- results: {
515
- id: string;
516
- type?: string | undefined;
517
- }[];
518
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
519
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
520
- id: import("zod").ZodString;
521
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
522
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
523
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
524
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
525
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
526
- results: import("zod").ZodArray<import("zod").ZodObject<{
527
- id: import("zod").ZodString;
528
- type: import("zod").ZodOptional<import("zod").ZodString>;
529
- }, "strip", import("zod").ZodTypeAny, {
530
- id: string;
531
- type?: string | undefined;
532
- }, {
533
- id: string;
534
- type?: string | undefined;
535
- }>, "many">;
536
- }, "strip", import("zod").ZodTypeAny, {
537
- results: {
538
- id: string;
539
- type?: string | undefined;
540
- }[];
541
- }, {
162
+ }) => Promise<{
163
+ [x: string]: unknown;
164
+ total?: number | undefined;
165
+ results?: {
166
+ [x: string]: unknown;
167
+ id: string;
168
+ properties?: Record<string, string> | undefined;
169
+ createdAt?: Date | null | undefined;
170
+ updatedAt?: Date | null | undefined;
171
+ archived?: boolean | undefined;
172
+ associations?: Record<string, string[] | {
542
173
  results: {
543
174
  id: string;
544
175
  type?: string | undefined;
545
176
  }[];
546
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
547
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
548
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
549
- next: import("zod").ZodOptional<import("zod").ZodObject<{
550
- after: import("zod").ZodString;
551
- }, "strip", import("zod").ZodTypeAny, {
552
- after: string;
553
- }, {
554
- after: string;
555
- }>>;
556
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
557
- before: import("zod").ZodString;
558
- }, "strip", import("zod").ZodTypeAny, {
559
- before: string;
560
- }, {
561
- before: string;
562
- }>>;
563
- }, "strip", import("zod").ZodTypeAny, {
564
- next?: {
565
- after: string;
566
- } | undefined;
567
- prev?: {
568
- before: string;
569
- } | undefined;
570
- }, {
177
+ }> | undefined;
178
+ }[] | undefined;
179
+ paging?: {
571
180
  next?: {
572
181
  after: string;
573
182
  } | undefined;
574
183
  prev?: {
575
184
  before: string;
576
185
  } | undefined;
577
- }>>;
578
- }, import("zod").ZodTypeAny, "passthrough">>;
186
+ } | undefined;
187
+ }>;
579
188
  };
580
189
  export declare const CompaniesEndpoints: {
581
190
  get: (ctx: import("..").HubSpotContext, args: {
@@ -585,159 +194,53 @@ export declare const CompaniesEndpoints: {
585
194
  associations?: string[] | undefined;
586
195
  archived?: boolean | undefined;
587
196
  idProperty?: string | undefined;
588
- }) => Promise<import("zod").objectOutputType<{
589
- id: import("zod").ZodString;
590
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
591
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
592
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
593
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
594
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
595
- results: import("zod").ZodArray<import("zod").ZodObject<{
596
- id: import("zod").ZodString;
597
- type: import("zod").ZodOptional<import("zod").ZodString>;
598
- }, "strip", import("zod").ZodTypeAny, {
599
- id: string;
600
- type?: string | undefined;
601
- }, {
602
- id: string;
603
- type?: string | undefined;
604
- }>, "many">;
605
- }, "strip", import("zod").ZodTypeAny, {
606
- results: {
607
- id: string;
608
- type?: string | undefined;
609
- }[];
610
- }, {
197
+ }) => Promise<{
198
+ [x: string]: unknown;
199
+ id: string;
200
+ properties?: Record<string, string> | undefined;
201
+ createdAt?: Date | null | undefined;
202
+ updatedAt?: Date | null | undefined;
203
+ archived?: boolean | undefined;
204
+ associations?: Record<string, string[] | {
611
205
  results: {
612
206
  id: string;
613
207
  type?: string | undefined;
614
208
  }[];
615
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
616
- }, import("zod").ZodTypeAny, "passthrough">>;
209
+ }> | undefined;
210
+ }>;
617
211
  getMany: (ctx: import("..").HubSpotContext, args: {
212
+ limit?: number | undefined;
213
+ after?: string | undefined;
618
214
  properties?: string[] | undefined;
619
215
  propertiesWithHistory?: string[] | undefined;
620
216
  associations?: string[] | undefined;
621
217
  archived?: boolean | undefined;
622
- limit?: number | undefined;
623
- after?: string | undefined;
624
- }) => Promise<import("zod").objectOutputType<{
625
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
626
- id: import("zod").ZodString;
627
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
628
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
629
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
630
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
631
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
632
- results: import("zod").ZodArray<import("zod").ZodObject<{
633
- id: import("zod").ZodString;
634
- type: import("zod").ZodOptional<import("zod").ZodString>;
635
- }, "strip", import("zod").ZodTypeAny, {
636
- id: string;
637
- type?: string | undefined;
638
- }, {
639
- id: string;
640
- type?: string | undefined;
641
- }>, "many">;
642
- }, "strip", import("zod").ZodTypeAny, {
643
- results: {
644
- id: string;
645
- type?: string | undefined;
646
- }[];
647
- }, {
648
- results: {
649
- id: string;
650
- type?: string | undefined;
651
- }[];
652
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
653
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
654
- id: import("zod").ZodString;
655
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
656
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
657
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
658
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
659
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
660
- results: import("zod").ZodArray<import("zod").ZodObject<{
661
- id: import("zod").ZodString;
662
- type: import("zod").ZodOptional<import("zod").ZodString>;
663
- }, "strip", import("zod").ZodTypeAny, {
664
- id: string;
665
- type?: string | undefined;
666
- }, {
667
- id: string;
668
- type?: string | undefined;
669
- }>, "many">;
670
- }, "strip", import("zod").ZodTypeAny, {
218
+ }) => Promise<{
219
+ [x: string]: unknown;
220
+ total?: number | undefined;
221
+ results?: {
222
+ [x: string]: unknown;
223
+ id: string;
224
+ properties?: Record<string, string> | undefined;
225
+ createdAt?: Date | null | undefined;
226
+ updatedAt?: Date | null | undefined;
227
+ archived?: boolean | undefined;
228
+ associations?: Record<string, string[] | {
671
229
  results: {
672
230
  id: string;
673
231
  type?: string | undefined;
674
232
  }[];
675
- }, {
676
- results: {
677
- id: string;
678
- type?: string | undefined;
679
- }[];
680
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
681
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
682
- id: import("zod").ZodString;
683
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
684
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
685
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
686
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
687
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
688
- results: import("zod").ZodArray<import("zod").ZodObject<{
689
- id: import("zod").ZodString;
690
- type: import("zod").ZodOptional<import("zod").ZodString>;
691
- }, "strip", import("zod").ZodTypeAny, {
692
- id: string;
693
- type?: string | undefined;
694
- }, {
695
- id: string;
696
- type?: string | undefined;
697
- }>, "many">;
698
- }, "strip", import("zod").ZodTypeAny, {
699
- results: {
700
- id: string;
701
- type?: string | undefined;
702
- }[];
703
- }, {
704
- results: {
705
- id: string;
706
- type?: string | undefined;
707
- }[];
708
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
709
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
710
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
711
- next: import("zod").ZodOptional<import("zod").ZodObject<{
712
- after: import("zod").ZodString;
713
- }, "strip", import("zod").ZodTypeAny, {
714
- after: string;
715
- }, {
716
- after: string;
717
- }>>;
718
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
719
- before: import("zod").ZodString;
720
- }, "strip", import("zod").ZodTypeAny, {
721
- before: string;
722
- }, {
723
- before: string;
724
- }>>;
725
- }, "strip", import("zod").ZodTypeAny, {
726
- next?: {
727
- after: string;
728
- } | undefined;
729
- prev?: {
730
- before: string;
731
- } | undefined;
732
- }, {
233
+ }> | undefined;
234
+ }[] | undefined;
235
+ paging?: {
733
236
  next?: {
734
237
  after: string;
735
238
  } | undefined;
736
239
  prev?: {
737
240
  before: string;
738
241
  } | undefined;
739
- }>>;
740
- }, import("zod").ZodTypeAny, "passthrough">>;
242
+ } | undefined;
243
+ }>;
741
244
  create: (ctx: import("..").HubSpotContext, args: {
742
245
  properties?: Record<string, string> | undefined;
743
246
  associations?: {
@@ -749,402 +252,129 @@ export declare const CompaniesEndpoints: {
749
252
  associationTypeId: number;
750
253
  }[];
751
254
  }[] | undefined;
752
- }) => Promise<import("zod").objectOutputType<{
753
- id: import("zod").ZodString;
754
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
755
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
756
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
757
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
758
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
759
- results: import("zod").ZodArray<import("zod").ZodObject<{
760
- id: import("zod").ZodString;
761
- type: import("zod").ZodOptional<import("zod").ZodString>;
762
- }, "strip", import("zod").ZodTypeAny, {
763
- id: string;
764
- type?: string | undefined;
765
- }, {
766
- id: string;
767
- type?: string | undefined;
768
- }>, "many">;
769
- }, "strip", import("zod").ZodTypeAny, {
770
- results: {
771
- id: string;
772
- type?: string | undefined;
773
- }[];
774
- }, {
255
+ }) => Promise<{
256
+ [x: string]: unknown;
257
+ id: string;
258
+ properties?: Record<string, string> | undefined;
259
+ createdAt?: Date | null | undefined;
260
+ updatedAt?: Date | null | undefined;
261
+ archived?: boolean | undefined;
262
+ associations?: Record<string, string[] | {
775
263
  results: {
776
264
  id: string;
777
265
  type?: string | undefined;
778
266
  }[];
779
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
780
- }, import("zod").ZodTypeAny, "passthrough">>;
267
+ }> | undefined;
268
+ }>;
781
269
  update: (ctx: import("..").HubSpotContext, args: {
782
270
  companyId: string;
783
271
  properties?: Record<string, string> | undefined;
784
- }) => Promise<import("zod").objectOutputType<{
785
- id: import("zod").ZodString;
786
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
787
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
788
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
789
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
790
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
791
- results: import("zod").ZodArray<import("zod").ZodObject<{
792
- id: import("zod").ZodString;
793
- type: import("zod").ZodOptional<import("zod").ZodString>;
794
- }, "strip", import("zod").ZodTypeAny, {
795
- id: string;
796
- type?: string | undefined;
797
- }, {
798
- id: string;
799
- type?: string | undefined;
800
- }>, "many">;
801
- }, "strip", import("zod").ZodTypeAny, {
802
- results: {
803
- id: string;
804
- type?: string | undefined;
805
- }[];
806
- }, {
272
+ }) => Promise<{
273
+ [x: string]: unknown;
274
+ id: string;
275
+ properties?: Record<string, string> | undefined;
276
+ createdAt?: Date | null | undefined;
277
+ updatedAt?: Date | null | undefined;
278
+ archived?: boolean | undefined;
279
+ associations?: Record<string, string[] | {
807
280
  results: {
808
281
  id: string;
809
282
  type?: string | undefined;
810
283
  }[];
811
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
812
- }, import("zod").ZodTypeAny, "passthrough">>;
284
+ }> | undefined;
285
+ }>;
813
286
  delete: (ctx: import("..").HubSpotContext, args: {
814
287
  companyId: string;
815
288
  }) => Promise<void>;
816
289
  getRecentlyCreated: (ctx: import("..").HubSpotContext, args: {
817
- after?: string | undefined;
818
290
  count?: number | undefined;
291
+ after?: string | undefined;
819
292
  since?: string | undefined;
820
- }) => Promise<import("zod").objectOutputType<{
821
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
822
- id: import("zod").ZodString;
823
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
824
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
825
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
826
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
827
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
828
- results: import("zod").ZodArray<import("zod").ZodObject<{
829
- id: import("zod").ZodString;
830
- type: import("zod").ZodOptional<import("zod").ZodString>;
831
- }, "strip", import("zod").ZodTypeAny, {
832
- id: string;
833
- type?: string | undefined;
834
- }, {
835
- id: string;
836
- type?: string | undefined;
837
- }>, "many">;
838
- }, "strip", import("zod").ZodTypeAny, {
839
- results: {
840
- id: string;
841
- type?: string | undefined;
842
- }[];
843
- }, {
844
- results: {
845
- id: string;
846
- type?: string | undefined;
847
- }[];
848
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
849
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
850
- id: import("zod").ZodString;
851
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
852
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
853
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
854
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
855
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
856
- results: import("zod").ZodArray<import("zod").ZodObject<{
857
- id: import("zod").ZodString;
858
- type: import("zod").ZodOptional<import("zod").ZodString>;
859
- }, "strip", import("zod").ZodTypeAny, {
860
- id: string;
861
- type?: string | undefined;
862
- }, {
863
- id: string;
864
- type?: string | undefined;
865
- }>, "many">;
866
- }, "strip", import("zod").ZodTypeAny, {
867
- results: {
868
- id: string;
869
- type?: string | undefined;
870
- }[];
871
- }, {
872
- results: {
873
- id: string;
874
- type?: string | undefined;
875
- }[];
876
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
877
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
878
- id: import("zod").ZodString;
879
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
880
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
881
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
882
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
883
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
884
- results: import("zod").ZodArray<import("zod").ZodObject<{
885
- id: import("zod").ZodString;
886
- type: import("zod").ZodOptional<import("zod").ZodString>;
887
- }, "strip", import("zod").ZodTypeAny, {
888
- id: string;
889
- type?: string | undefined;
890
- }, {
891
- id: string;
892
- type?: string | undefined;
893
- }>, "many">;
894
- }, "strip", import("zod").ZodTypeAny, {
895
- results: {
896
- id: string;
897
- type?: string | undefined;
898
- }[];
899
- }, {
293
+ }) => Promise<{
294
+ [x: string]: unknown;
295
+ total?: number | undefined;
296
+ results?: {
297
+ [x: string]: unknown;
298
+ id: string;
299
+ properties?: Record<string, string> | undefined;
300
+ createdAt?: Date | null | undefined;
301
+ updatedAt?: Date | null | undefined;
302
+ archived?: boolean | undefined;
303
+ associations?: Record<string, string[] | {
900
304
  results: {
901
305
  id: string;
902
306
  type?: string | undefined;
903
307
  }[];
904
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
905
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
906
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
907
- next: import("zod").ZodOptional<import("zod").ZodObject<{
908
- after: import("zod").ZodString;
909
- }, "strip", import("zod").ZodTypeAny, {
910
- after: string;
911
- }, {
912
- after: string;
913
- }>>;
914
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
915
- before: import("zod").ZodString;
916
- }, "strip", import("zod").ZodTypeAny, {
917
- before: string;
918
- }, {
919
- before: string;
920
- }>>;
921
- }, "strip", import("zod").ZodTypeAny, {
922
- next?: {
923
- after: string;
924
- } | undefined;
925
- prev?: {
926
- before: string;
927
- } | undefined;
928
- }, {
308
+ }> | undefined;
309
+ }[] | undefined;
310
+ paging?: {
929
311
  next?: {
930
312
  after: string;
931
313
  } | undefined;
932
314
  prev?: {
933
315
  before: string;
934
316
  } | undefined;
935
- }>>;
936
- }, import("zod").ZodTypeAny, "passthrough">>;
317
+ } | undefined;
318
+ }>;
937
319
  getRecentlyUpdated: (ctx: import("..").HubSpotContext, args: {
938
- after?: string | undefined;
939
320
  count?: number | undefined;
321
+ after?: string | undefined;
940
322
  since?: string | undefined;
941
- }) => Promise<import("zod").objectOutputType<{
942
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
943
- id: import("zod").ZodString;
944
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
945
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
946
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
947
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
948
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
949
- results: import("zod").ZodArray<import("zod").ZodObject<{
950
- id: import("zod").ZodString;
951
- type: import("zod").ZodOptional<import("zod").ZodString>;
952
- }, "strip", import("zod").ZodTypeAny, {
953
- id: string;
954
- type?: string | undefined;
955
- }, {
956
- id: string;
957
- type?: string | undefined;
958
- }>, "many">;
959
- }, "strip", import("zod").ZodTypeAny, {
960
- results: {
961
- id: string;
962
- type?: string | undefined;
963
- }[];
964
- }, {
965
- results: {
966
- id: string;
967
- type?: string | undefined;
968
- }[];
969
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
970
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
971
- id: import("zod").ZodString;
972
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
973
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
974
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
975
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
976
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
977
- results: import("zod").ZodArray<import("zod").ZodObject<{
978
- id: import("zod").ZodString;
979
- type: import("zod").ZodOptional<import("zod").ZodString>;
980
- }, "strip", import("zod").ZodTypeAny, {
981
- id: string;
982
- type?: string | undefined;
983
- }, {
984
- id: string;
985
- type?: string | undefined;
986
- }>, "many">;
987
- }, "strip", import("zod").ZodTypeAny, {
988
- results: {
989
- id: string;
990
- type?: string | undefined;
991
- }[];
992
- }, {
993
- results: {
994
- id: string;
995
- type?: string | undefined;
996
- }[];
997
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
998
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
999
- id: import("zod").ZodString;
1000
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1001
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1002
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1003
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1004
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1005
- results: import("zod").ZodArray<import("zod").ZodObject<{
1006
- id: import("zod").ZodString;
1007
- type: import("zod").ZodOptional<import("zod").ZodString>;
1008
- }, "strip", import("zod").ZodTypeAny, {
1009
- id: string;
1010
- type?: string | undefined;
1011
- }, {
1012
- id: string;
1013
- type?: string | undefined;
1014
- }>, "many">;
1015
- }, "strip", import("zod").ZodTypeAny, {
1016
- results: {
1017
- id: string;
1018
- type?: string | undefined;
1019
- }[];
1020
- }, {
323
+ }) => Promise<{
324
+ [x: string]: unknown;
325
+ total?: number | undefined;
326
+ results?: {
327
+ [x: string]: unknown;
328
+ id: string;
329
+ properties?: Record<string, string> | undefined;
330
+ createdAt?: Date | null | undefined;
331
+ updatedAt?: Date | null | undefined;
332
+ archived?: boolean | undefined;
333
+ associations?: Record<string, string[] | {
1021
334
  results: {
1022
335
  id: string;
1023
336
  type?: string | undefined;
1024
337
  }[];
1025
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1026
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1027
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
1028
- next: import("zod").ZodOptional<import("zod").ZodObject<{
1029
- after: import("zod").ZodString;
1030
- }, "strip", import("zod").ZodTypeAny, {
1031
- after: string;
1032
- }, {
1033
- after: string;
1034
- }>>;
1035
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
1036
- before: import("zod").ZodString;
1037
- }, "strip", import("zod").ZodTypeAny, {
1038
- before: string;
1039
- }, {
1040
- before: string;
1041
- }>>;
1042
- }, "strip", import("zod").ZodTypeAny, {
1043
- next?: {
1044
- after: string;
1045
- } | undefined;
1046
- prev?: {
1047
- before: string;
1048
- } | undefined;
1049
- }, {
338
+ }> | undefined;
339
+ }[] | undefined;
340
+ paging?: {
1050
341
  next?: {
1051
342
  after: string;
1052
343
  } | undefined;
1053
344
  prev?: {
1054
345
  before: string;
1055
346
  } | undefined;
1056
- }>>;
1057
- }, import("zod").ZodTypeAny, "passthrough">>;
347
+ } | undefined;
348
+ }>;
1058
349
  searchByDomain: (ctx: import("..").HubSpotContext, args: {
1059
350
  domain: string;
1060
351
  properties?: string[] | undefined;
1061
- }) => Promise<import("zod").objectOutputType<{
1062
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1063
- id: import("zod").ZodString;
1064
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1065
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1066
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1067
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1068
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1069
- results: import("zod").ZodArray<import("zod").ZodObject<{
1070
- id: import("zod").ZodString;
1071
- type: import("zod").ZodOptional<import("zod").ZodString>;
1072
- }, "strip", import("zod").ZodTypeAny, {
1073
- id: string;
1074
- type?: string | undefined;
1075
- }, {
1076
- id: string;
1077
- type?: string | undefined;
1078
- }>, "many">;
1079
- }, "strip", import("zod").ZodTypeAny, {
1080
- results: {
1081
- id: string;
1082
- type?: string | undefined;
1083
- }[];
1084
- }, {
1085
- results: {
1086
- id: string;
1087
- type?: string | undefined;
1088
- }[];
1089
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1090
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1091
- id: import("zod").ZodString;
1092
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1093
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1094
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1095
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1096
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1097
- results: import("zod").ZodArray<import("zod").ZodObject<{
1098
- id: import("zod").ZodString;
1099
- type: import("zod").ZodOptional<import("zod").ZodString>;
1100
- }, "strip", import("zod").ZodTypeAny, {
1101
- id: string;
1102
- type?: string | undefined;
1103
- }, {
1104
- id: string;
1105
- type?: string | undefined;
1106
- }>, "many">;
1107
- }, "strip", import("zod").ZodTypeAny, {
1108
- results: {
1109
- id: string;
1110
- type?: string | undefined;
1111
- }[];
1112
- }, {
1113
- results: {
1114
- id: string;
1115
- type?: string | undefined;
1116
- }[];
1117
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1118
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1119
- id: import("zod").ZodString;
1120
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1121
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1122
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1123
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1124
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1125
- results: import("zod").ZodArray<import("zod").ZodObject<{
1126
- id: import("zod").ZodString;
1127
- type: import("zod").ZodOptional<import("zod").ZodString>;
1128
- }, "strip", import("zod").ZodTypeAny, {
1129
- id: string;
1130
- type?: string | undefined;
1131
- }, {
1132
- id: string;
1133
- type?: string | undefined;
1134
- }>, "many">;
1135
- }, "strip", import("zod").ZodTypeAny, {
1136
- results: {
1137
- id: string;
1138
- type?: string | undefined;
1139
- }[];
1140
- }, {
352
+ }) => Promise<{
353
+ [x: string]: unknown;
354
+ total?: number | undefined;
355
+ results?: {
356
+ [x: string]: unknown;
357
+ id: string;
358
+ properties?: Record<string, string> | undefined;
359
+ createdAt?: Date | null | undefined;
360
+ updatedAt?: Date | null | undefined;
361
+ archived?: boolean | undefined;
362
+ associations?: Record<string, string[] | {
1141
363
  results: {
1142
364
  id: string;
1143
365
  type?: string | undefined;
1144
366
  }[];
1145
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1146
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1147
- }, import("zod").ZodTypeAny, "passthrough">>;
367
+ }> | undefined;
368
+ }[] | undefined;
369
+ paging?: {
370
+ next?: {
371
+ after: string;
372
+ } | undefined;
373
+ prev?: {
374
+ before: string;
375
+ } | undefined;
376
+ } | undefined;
377
+ }>;
1148
378
  };
1149
379
  export declare const DealsEndpoints: {
1150
380
  get: (ctx: import("..").HubSpotContext, args: {
@@ -1154,159 +384,53 @@ export declare const DealsEndpoints: {
1154
384
  associations?: string[] | undefined;
1155
385
  archived?: boolean | undefined;
1156
386
  idProperty?: string | undefined;
1157
- }) => Promise<import("zod").objectOutputType<{
1158
- id: import("zod").ZodString;
1159
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1160
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1161
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1162
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1163
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1164
- results: import("zod").ZodArray<import("zod").ZodObject<{
1165
- id: import("zod").ZodString;
1166
- type: import("zod").ZodOptional<import("zod").ZodString>;
1167
- }, "strip", import("zod").ZodTypeAny, {
1168
- id: string;
1169
- type?: string | undefined;
1170
- }, {
1171
- id: string;
1172
- type?: string | undefined;
1173
- }>, "many">;
1174
- }, "strip", import("zod").ZodTypeAny, {
1175
- results: {
1176
- id: string;
1177
- type?: string | undefined;
1178
- }[];
1179
- }, {
387
+ }) => Promise<{
388
+ [x: string]: unknown;
389
+ id: string;
390
+ properties?: Record<string, string> | undefined;
391
+ createdAt?: Date | null | undefined;
392
+ updatedAt?: Date | null | undefined;
393
+ archived?: boolean | undefined;
394
+ associations?: Record<string, string[] | {
1180
395
  results: {
1181
396
  id: string;
1182
397
  type?: string | undefined;
1183
398
  }[];
1184
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1185
- }, import("zod").ZodTypeAny, "passthrough">>;
399
+ }> | undefined;
400
+ }>;
1186
401
  getMany: (ctx: import("..").HubSpotContext, args: {
402
+ limit?: number | undefined;
403
+ after?: string | undefined;
1187
404
  properties?: string[] | undefined;
1188
405
  propertiesWithHistory?: string[] | undefined;
1189
406
  associations?: string[] | undefined;
1190
407
  archived?: boolean | undefined;
1191
- limit?: number | undefined;
1192
- after?: string | undefined;
1193
- }) => Promise<import("zod").objectOutputType<{
1194
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1195
- id: import("zod").ZodString;
1196
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1197
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1198
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1199
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1200
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1201
- results: import("zod").ZodArray<import("zod").ZodObject<{
1202
- id: import("zod").ZodString;
1203
- type: import("zod").ZodOptional<import("zod").ZodString>;
1204
- }, "strip", import("zod").ZodTypeAny, {
1205
- id: string;
1206
- type?: string | undefined;
1207
- }, {
1208
- id: string;
1209
- type?: string | undefined;
1210
- }>, "many">;
1211
- }, "strip", import("zod").ZodTypeAny, {
1212
- results: {
1213
- id: string;
1214
- type?: string | undefined;
1215
- }[];
1216
- }, {
1217
- results: {
1218
- id: string;
1219
- type?: string | undefined;
1220
- }[];
1221
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1222
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1223
- id: import("zod").ZodString;
1224
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1225
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1226
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1227
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1228
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1229
- results: import("zod").ZodArray<import("zod").ZodObject<{
1230
- id: import("zod").ZodString;
1231
- type: import("zod").ZodOptional<import("zod").ZodString>;
1232
- }, "strip", import("zod").ZodTypeAny, {
1233
- id: string;
1234
- type?: string | undefined;
1235
- }, {
1236
- id: string;
1237
- type?: string | undefined;
1238
- }>, "many">;
1239
- }, "strip", import("zod").ZodTypeAny, {
1240
- results: {
1241
- id: string;
1242
- type?: string | undefined;
1243
- }[];
1244
- }, {
1245
- results: {
1246
- id: string;
1247
- type?: string | undefined;
1248
- }[];
1249
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1250
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1251
- id: import("zod").ZodString;
1252
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1253
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1254
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1255
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1256
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1257
- results: import("zod").ZodArray<import("zod").ZodObject<{
1258
- id: import("zod").ZodString;
1259
- type: import("zod").ZodOptional<import("zod").ZodString>;
1260
- }, "strip", import("zod").ZodTypeAny, {
1261
- id: string;
1262
- type?: string | undefined;
1263
- }, {
1264
- id: string;
1265
- type?: string | undefined;
1266
- }>, "many">;
1267
- }, "strip", import("zod").ZodTypeAny, {
1268
- results: {
1269
- id: string;
1270
- type?: string | undefined;
1271
- }[];
1272
- }, {
408
+ }) => Promise<{
409
+ [x: string]: unknown;
410
+ total?: number | undefined;
411
+ results?: {
412
+ [x: string]: unknown;
413
+ id: string;
414
+ properties?: Record<string, string> | undefined;
415
+ createdAt?: Date | null | undefined;
416
+ updatedAt?: Date | null | undefined;
417
+ archived?: boolean | undefined;
418
+ associations?: Record<string, string[] | {
1273
419
  results: {
1274
420
  id: string;
1275
421
  type?: string | undefined;
1276
422
  }[];
1277
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1278
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1279
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
1280
- next: import("zod").ZodOptional<import("zod").ZodObject<{
1281
- after: import("zod").ZodString;
1282
- }, "strip", import("zod").ZodTypeAny, {
1283
- after: string;
1284
- }, {
1285
- after: string;
1286
- }>>;
1287
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
1288
- before: import("zod").ZodString;
1289
- }, "strip", import("zod").ZodTypeAny, {
1290
- before: string;
1291
- }, {
1292
- before: string;
1293
- }>>;
1294
- }, "strip", import("zod").ZodTypeAny, {
1295
- next?: {
1296
- after: string;
1297
- } | undefined;
1298
- prev?: {
1299
- before: string;
1300
- } | undefined;
1301
- }, {
423
+ }> | undefined;
424
+ }[] | undefined;
425
+ paging?: {
1302
426
  next?: {
1303
427
  after: string;
1304
428
  } | undefined;
1305
429
  prev?: {
1306
430
  before: string;
1307
431
  } | undefined;
1308
- }>>;
1309
- }, import("zod").ZodTypeAny, "passthrough">>;
432
+ } | undefined;
433
+ }>;
1310
434
  create: (ctx: import("..").HubSpotContext, args: {
1311
435
  properties?: Record<string, string> | undefined;
1312
436
  associations?: {
@@ -1318,444 +442,144 @@ export declare const DealsEndpoints: {
1318
442
  associationTypeId: number;
1319
443
  }[];
1320
444
  }[] | undefined;
1321
- }) => Promise<import("zod").objectOutputType<{
1322
- id: import("zod").ZodString;
1323
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1324
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1325
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1326
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1327
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1328
- results: import("zod").ZodArray<import("zod").ZodObject<{
1329
- id: import("zod").ZodString;
1330
- type: import("zod").ZodOptional<import("zod").ZodString>;
1331
- }, "strip", import("zod").ZodTypeAny, {
1332
- id: string;
1333
- type?: string | undefined;
1334
- }, {
1335
- id: string;
1336
- type?: string | undefined;
1337
- }>, "many">;
1338
- }, "strip", import("zod").ZodTypeAny, {
1339
- results: {
1340
- id: string;
1341
- type?: string | undefined;
1342
- }[];
1343
- }, {
445
+ }) => Promise<{
446
+ [x: string]: unknown;
447
+ id: string;
448
+ properties?: Record<string, string> | undefined;
449
+ createdAt?: Date | null | undefined;
450
+ updatedAt?: Date | null | undefined;
451
+ archived?: boolean | undefined;
452
+ associations?: Record<string, string[] | {
1344
453
  results: {
1345
454
  id: string;
1346
455
  type?: string | undefined;
1347
456
  }[];
1348
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1349
- }, import("zod").ZodTypeAny, "passthrough">>;
457
+ }> | undefined;
458
+ }>;
1350
459
  update: (ctx: import("..").HubSpotContext, args: {
1351
460
  dealId: string;
1352
461
  properties?: Record<string, string> | undefined;
1353
- }) => Promise<import("zod").objectOutputType<{
1354
- id: import("zod").ZodString;
1355
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1356
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1357
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1358
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1359
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1360
- results: import("zod").ZodArray<import("zod").ZodObject<{
1361
- id: import("zod").ZodString;
1362
- type: import("zod").ZodOptional<import("zod").ZodString>;
1363
- }, "strip", import("zod").ZodTypeAny, {
1364
- id: string;
1365
- type?: string | undefined;
1366
- }, {
1367
- id: string;
1368
- type?: string | undefined;
1369
- }>, "many">;
1370
- }, "strip", import("zod").ZodTypeAny, {
1371
- results: {
1372
- id: string;
1373
- type?: string | undefined;
1374
- }[];
1375
- }, {
462
+ }) => Promise<{
463
+ [x: string]: unknown;
464
+ id: string;
465
+ properties?: Record<string, string> | undefined;
466
+ createdAt?: Date | null | undefined;
467
+ updatedAt?: Date | null | undefined;
468
+ archived?: boolean | undefined;
469
+ associations?: Record<string, string[] | {
1376
470
  results: {
1377
471
  id: string;
1378
472
  type?: string | undefined;
1379
473
  }[];
1380
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1381
- }, import("zod").ZodTypeAny, "passthrough">>;
474
+ }> | undefined;
475
+ }>;
1382
476
  delete: (ctx: import("..").HubSpotContext, args: {
1383
477
  dealId: string;
1384
478
  }) => Promise<void>;
1385
479
  getRecentlyCreated: (ctx: import("..").HubSpotContext, args: {
1386
- after?: string | undefined;
1387
480
  count?: number | undefined;
481
+ after?: string | undefined;
1388
482
  since?: string | undefined;
1389
- }) => Promise<import("zod").objectOutputType<{
1390
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1391
- id: import("zod").ZodString;
1392
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1393
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1394
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1395
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1396
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1397
- results: import("zod").ZodArray<import("zod").ZodObject<{
1398
- id: import("zod").ZodString;
1399
- type: import("zod").ZodOptional<import("zod").ZodString>;
1400
- }, "strip", import("zod").ZodTypeAny, {
1401
- id: string;
1402
- type?: string | undefined;
1403
- }, {
1404
- id: string;
1405
- type?: string | undefined;
1406
- }>, "many">;
1407
- }, "strip", import("zod").ZodTypeAny, {
1408
- results: {
1409
- id: string;
1410
- type?: string | undefined;
1411
- }[];
1412
- }, {
1413
- results: {
1414
- id: string;
1415
- type?: string | undefined;
1416
- }[];
1417
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1418
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1419
- id: import("zod").ZodString;
1420
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1421
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1422
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1423
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1424
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1425
- results: import("zod").ZodArray<import("zod").ZodObject<{
1426
- id: import("zod").ZodString;
1427
- type: import("zod").ZodOptional<import("zod").ZodString>;
1428
- }, "strip", import("zod").ZodTypeAny, {
1429
- id: string;
1430
- type?: string | undefined;
1431
- }, {
1432
- id: string;
1433
- type?: string | undefined;
1434
- }>, "many">;
1435
- }, "strip", import("zod").ZodTypeAny, {
1436
- results: {
1437
- id: string;
1438
- type?: string | undefined;
1439
- }[];
1440
- }, {
1441
- results: {
1442
- id: string;
1443
- type?: string | undefined;
1444
- }[];
1445
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1446
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1447
- id: import("zod").ZodString;
1448
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1449
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1450
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1451
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1452
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1453
- results: import("zod").ZodArray<import("zod").ZodObject<{
1454
- id: import("zod").ZodString;
1455
- type: import("zod").ZodOptional<import("zod").ZodString>;
1456
- }, "strip", import("zod").ZodTypeAny, {
1457
- id: string;
1458
- type?: string | undefined;
1459
- }, {
1460
- id: string;
1461
- type?: string | undefined;
1462
- }>, "many">;
1463
- }, "strip", import("zod").ZodTypeAny, {
1464
- results: {
1465
- id: string;
1466
- type?: string | undefined;
1467
- }[];
1468
- }, {
483
+ }) => Promise<{
484
+ [x: string]: unknown;
485
+ total?: number | undefined;
486
+ results?: {
487
+ [x: string]: unknown;
488
+ id: string;
489
+ properties?: Record<string, string> | undefined;
490
+ createdAt?: Date | null | undefined;
491
+ updatedAt?: Date | null | undefined;
492
+ archived?: boolean | undefined;
493
+ associations?: Record<string, string[] | {
1469
494
  results: {
1470
495
  id: string;
1471
496
  type?: string | undefined;
1472
497
  }[];
1473
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1474
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1475
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
1476
- next: import("zod").ZodOptional<import("zod").ZodObject<{
1477
- after: import("zod").ZodString;
1478
- }, "strip", import("zod").ZodTypeAny, {
1479
- after: string;
1480
- }, {
1481
- after: string;
1482
- }>>;
1483
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
1484
- before: import("zod").ZodString;
1485
- }, "strip", import("zod").ZodTypeAny, {
1486
- before: string;
1487
- }, {
1488
- before: string;
1489
- }>>;
1490
- }, "strip", import("zod").ZodTypeAny, {
1491
- next?: {
1492
- after: string;
1493
- } | undefined;
1494
- prev?: {
1495
- before: string;
1496
- } | undefined;
1497
- }, {
498
+ }> | undefined;
499
+ }[] | undefined;
500
+ paging?: {
1498
501
  next?: {
1499
502
  after: string;
1500
503
  } | undefined;
1501
504
  prev?: {
1502
505
  before: string;
1503
506
  } | undefined;
1504
- }>>;
1505
- }, import("zod").ZodTypeAny, "passthrough">>;
507
+ } | undefined;
508
+ }>;
1506
509
  getRecentlyUpdated: (ctx: import("..").HubSpotContext, args: {
1507
- after?: string | undefined;
1508
510
  count?: number | undefined;
511
+ after?: string | undefined;
1509
512
  since?: string | undefined;
1510
- }) => Promise<import("zod").objectOutputType<{
1511
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1512
- id: import("zod").ZodString;
1513
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1514
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1515
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1516
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1517
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1518
- results: import("zod").ZodArray<import("zod").ZodObject<{
1519
- id: import("zod").ZodString;
1520
- type: import("zod").ZodOptional<import("zod").ZodString>;
1521
- }, "strip", import("zod").ZodTypeAny, {
1522
- id: string;
1523
- type?: string | undefined;
1524
- }, {
1525
- id: string;
1526
- type?: string | undefined;
1527
- }>, "many">;
1528
- }, "strip", import("zod").ZodTypeAny, {
1529
- results: {
1530
- id: string;
1531
- type?: string | undefined;
1532
- }[];
1533
- }, {
1534
- results: {
1535
- id: string;
1536
- type?: string | undefined;
1537
- }[];
1538
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1539
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1540
- id: import("zod").ZodString;
1541
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1542
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1543
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1544
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1545
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1546
- results: import("zod").ZodArray<import("zod").ZodObject<{
1547
- id: import("zod").ZodString;
1548
- type: import("zod").ZodOptional<import("zod").ZodString>;
1549
- }, "strip", import("zod").ZodTypeAny, {
1550
- id: string;
1551
- type?: string | undefined;
1552
- }, {
1553
- id: string;
1554
- type?: string | undefined;
1555
- }>, "many">;
1556
- }, "strip", import("zod").ZodTypeAny, {
1557
- results: {
1558
- id: string;
1559
- type?: string | undefined;
1560
- }[];
1561
- }, {
1562
- results: {
1563
- id: string;
1564
- type?: string | undefined;
1565
- }[];
1566
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1567
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1568
- id: import("zod").ZodString;
1569
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1570
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1571
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1572
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1573
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1574
- results: import("zod").ZodArray<import("zod").ZodObject<{
1575
- id: import("zod").ZodString;
1576
- type: import("zod").ZodOptional<import("zod").ZodString>;
1577
- }, "strip", import("zod").ZodTypeAny, {
1578
- id: string;
1579
- type?: string | undefined;
1580
- }, {
1581
- id: string;
1582
- type?: string | undefined;
1583
- }>, "many">;
1584
- }, "strip", import("zod").ZodTypeAny, {
1585
- results: {
1586
- id: string;
1587
- type?: string | undefined;
1588
- }[];
1589
- }, {
513
+ }) => Promise<{
514
+ [x: string]: unknown;
515
+ total?: number | undefined;
516
+ results?: {
517
+ [x: string]: unknown;
518
+ id: string;
519
+ properties?: Record<string, string> | undefined;
520
+ createdAt?: Date | null | undefined;
521
+ updatedAt?: Date | null | undefined;
522
+ archived?: boolean | undefined;
523
+ associations?: Record<string, string[] | {
1590
524
  results: {
1591
525
  id: string;
1592
526
  type?: string | undefined;
1593
527
  }[];
1594
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1595
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1596
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
1597
- next: import("zod").ZodOptional<import("zod").ZodObject<{
1598
- after: import("zod").ZodString;
1599
- }, "strip", import("zod").ZodTypeAny, {
1600
- after: string;
1601
- }, {
1602
- after: string;
1603
- }>>;
1604
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
1605
- before: import("zod").ZodString;
1606
- }, "strip", import("zod").ZodTypeAny, {
1607
- before: string;
1608
- }, {
1609
- before: string;
1610
- }>>;
1611
- }, "strip", import("zod").ZodTypeAny, {
1612
- next?: {
1613
- after: string;
1614
- } | undefined;
1615
- prev?: {
1616
- before: string;
1617
- } | undefined;
1618
- }, {
1619
- next?: {
1620
- after: string;
1621
- } | undefined;
1622
- prev?: {
1623
- before: string;
1624
- } | undefined;
1625
- }>>;
1626
- }, import("zod").ZodTypeAny, "passthrough">>;
1627
- search: (ctx: import("..").HubSpotContext, args: {
1628
- query?: string | undefined;
1629
- properties?: string[] | undefined;
1630
- limit?: number | undefined;
1631
- after?: string | undefined;
1632
- sorts?: string[] | undefined;
1633
- filterGroups?: {
1634
- filters: {
1635
- operator: "BETWEEN" | "CONTAINS_TOKEN" | "EQ" | "GT" | "GTE" | "HAS_PROPERTY" | "IN" | "LT" | "LTE" | "NEQ" | "NOT_CONTAINS_TOKEN" | "NOT_HAS_PROPERTY" | "NOT_IN";
1636
- propertyName: string;
1637
- value?: string | undefined;
1638
- values?: string[] | undefined;
1639
- highValue?: string | undefined;
1640
- }[];
528
+ }> | undefined;
1641
529
  }[] | undefined;
1642
- }) => Promise<import("zod").objectOutputType<{
1643
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1644
- id: import("zod").ZodString;
1645
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1646
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1647
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1648
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1649
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1650
- results: import("zod").ZodArray<import("zod").ZodObject<{
1651
- id: import("zod").ZodString;
1652
- type: import("zod").ZodOptional<import("zod").ZodString>;
1653
- }, "strip", import("zod").ZodTypeAny, {
1654
- id: string;
1655
- type?: string | undefined;
1656
- }, {
1657
- id: string;
1658
- type?: string | undefined;
1659
- }>, "many">;
1660
- }, "strip", import("zod").ZodTypeAny, {
1661
- results: {
1662
- id: string;
1663
- type?: string | undefined;
1664
- }[];
1665
- }, {
1666
- results: {
1667
- id: string;
1668
- type?: string | undefined;
1669
- }[];
1670
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1671
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1672
- id: import("zod").ZodString;
1673
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1674
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1675
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1676
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1677
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1678
- results: import("zod").ZodArray<import("zod").ZodObject<{
1679
- id: import("zod").ZodString;
1680
- type: import("zod").ZodOptional<import("zod").ZodString>;
1681
- }, "strip", import("zod").ZodTypeAny, {
1682
- id: string;
1683
- type?: string | undefined;
1684
- }, {
1685
- id: string;
1686
- type?: string | undefined;
1687
- }>, "many">;
1688
- }, "strip", import("zod").ZodTypeAny, {
1689
- results: {
1690
- id: string;
1691
- type?: string | undefined;
1692
- }[];
1693
- }, {
1694
- results: {
1695
- id: string;
1696
- type?: string | undefined;
1697
- }[];
1698
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1699
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1700
- id: import("zod").ZodString;
1701
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1702
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1703
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1704
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1705
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1706
- results: import("zod").ZodArray<import("zod").ZodObject<{
1707
- id: import("zod").ZodString;
1708
- type: import("zod").ZodOptional<import("zod").ZodString>;
1709
- }, "strip", import("zod").ZodTypeAny, {
1710
- id: string;
1711
- type?: string | undefined;
1712
- }, {
1713
- id: string;
1714
- type?: string | undefined;
1715
- }>, "many">;
1716
- }, "strip", import("zod").ZodTypeAny, {
1717
- results: {
1718
- id: string;
1719
- type?: string | undefined;
1720
- }[];
1721
- }, {
1722
- results: {
1723
- id: string;
1724
- type?: string | undefined;
1725
- }[];
1726
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1727
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1728
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
1729
- next: import("zod").ZodOptional<import("zod").ZodObject<{
1730
- after: import("zod").ZodString;
1731
- }, "strip", import("zod").ZodTypeAny, {
1732
- after: string;
1733
- }, {
1734
- after: string;
1735
- }>>;
1736
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
1737
- before: import("zod").ZodString;
1738
- }, "strip", import("zod").ZodTypeAny, {
1739
- before: string;
1740
- }, {
1741
- before: string;
1742
- }>>;
1743
- }, "strip", import("zod").ZodTypeAny, {
530
+ paging?: {
1744
531
  next?: {
1745
532
  after: string;
1746
533
  } | undefined;
1747
534
  prev?: {
1748
535
  before: string;
1749
536
  } | undefined;
1750
- }, {
537
+ } | undefined;
538
+ }>;
539
+ search: (ctx: import("..").HubSpotContext, args: {
540
+ query?: string | undefined;
541
+ limit?: number | undefined;
542
+ after?: string | undefined;
543
+ sorts?: {
544
+ propertyName: string;
545
+ direction: "ASCENDING" | "DESCENDING";
546
+ }[] | undefined;
547
+ properties?: string[] | undefined;
548
+ filterGroups?: {
549
+ filters: {
550
+ operator: "BETWEEN" | "CONTAINS_TOKEN" | "EQ" | "GT" | "GTE" | "HAS_PROPERTY" | "IN" | "LT" | "LTE" | "NEQ" | "NOT_CONTAINS_TOKEN" | "NOT_HAS_PROPERTY" | "NOT_IN";
551
+ propertyName: string;
552
+ highValue?: string | undefined;
553
+ value?: string | undefined;
554
+ values?: string[] | undefined;
555
+ }[];
556
+ }[] | undefined;
557
+ }) => Promise<{
558
+ [x: string]: unknown;
559
+ total?: number | undefined;
560
+ results?: {
561
+ [x: string]: unknown;
562
+ id: string;
563
+ properties?: Record<string, string> | undefined;
564
+ createdAt?: Date | null | undefined;
565
+ updatedAt?: Date | null | undefined;
566
+ archived?: boolean | undefined;
567
+ associations?: Record<string, string[] | {
568
+ results: {
569
+ id: string;
570
+ type?: string | undefined;
571
+ }[];
572
+ }> | undefined;
573
+ }[] | undefined;
574
+ paging?: {
1751
575
  next?: {
1752
576
  after: string;
1753
577
  } | undefined;
1754
578
  prev?: {
1755
579
  before: string;
1756
580
  } | undefined;
1757
- }>>;
1758
- }, import("zod").ZodTypeAny, "passthrough">>;
581
+ } | undefined;
582
+ }>;
1759
583
  };
1760
584
  export declare const TicketsEndpoints: {
1761
585
  get: (ctx: import("..").HubSpotContext, args: {
@@ -1765,159 +589,52 @@ export declare const TicketsEndpoints: {
1765
589
  associations?: string[] | undefined;
1766
590
  archived?: boolean | undefined;
1767
591
  idProperty?: string | undefined;
1768
- }) => Promise<import("zod").objectOutputType<{
1769
- id: import("zod").ZodString;
1770
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1771
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1772
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1773
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1774
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1775
- results: import("zod").ZodArray<import("zod").ZodObject<{
1776
- id: import("zod").ZodString;
1777
- type: import("zod").ZodOptional<import("zod").ZodString>;
1778
- }, "strip", import("zod").ZodTypeAny, {
1779
- id: string;
1780
- type?: string | undefined;
1781
- }, {
1782
- id: string;
1783
- type?: string | undefined;
1784
- }>, "many">;
1785
- }, "strip", import("zod").ZodTypeAny, {
1786
- results: {
1787
- id: string;
1788
- type?: string | undefined;
1789
- }[];
1790
- }, {
592
+ }) => Promise<{
593
+ [x: string]: unknown;
594
+ id: string;
595
+ properties?: Record<string, string> | undefined;
596
+ createdAt?: Date | null | undefined;
597
+ updatedAt?: Date | null | undefined;
598
+ archived?: boolean | undefined;
599
+ associations?: Record<string, string[] | {
1791
600
  results: {
1792
601
  id: string;
1793
602
  type?: string | undefined;
1794
603
  }[];
1795
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1796
- }, import("zod").ZodTypeAny, "passthrough">>;
604
+ }> | undefined;
605
+ }>;
1797
606
  getMany: (ctx: import("..").HubSpotContext, args: {
607
+ limit?: number | undefined;
608
+ after?: string | undefined;
1798
609
  properties?: string[] | undefined;
1799
610
  propertiesWithHistory?: string[] | undefined;
1800
611
  associations?: string[] | undefined;
1801
612
  archived?: boolean | undefined;
1802
- limit?: number | undefined;
1803
- after?: string | undefined;
1804
- }) => Promise<import("zod").objectOutputType<{
1805
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1806
- id: import("zod").ZodString;
1807
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1808
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1809
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1810
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1811
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1812
- results: import("zod").ZodArray<import("zod").ZodObject<{
1813
- id: import("zod").ZodString;
1814
- type: import("zod").ZodOptional<import("zod").ZodString>;
1815
- }, "strip", import("zod").ZodTypeAny, {
1816
- id: string;
1817
- type?: string | undefined;
1818
- }, {
1819
- id: string;
1820
- type?: string | undefined;
1821
- }>, "many">;
1822
- }, "strip", import("zod").ZodTypeAny, {
1823
- results: {
1824
- id: string;
1825
- type?: string | undefined;
1826
- }[];
1827
- }, {
1828
- results: {
1829
- id: string;
1830
- type?: string | undefined;
1831
- }[];
1832
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1833
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1834
- id: import("zod").ZodString;
1835
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1836
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1837
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1838
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1839
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1840
- results: import("zod").ZodArray<import("zod").ZodObject<{
1841
- id: import("zod").ZodString;
1842
- type: import("zod").ZodOptional<import("zod").ZodString>;
1843
- }, "strip", import("zod").ZodTypeAny, {
1844
- id: string;
1845
- type?: string | undefined;
1846
- }, {
1847
- id: string;
1848
- type?: string | undefined;
1849
- }>, "many">;
1850
- }, "strip", import("zod").ZodTypeAny, {
1851
- results: {
1852
- id: string;
1853
- type?: string | undefined;
1854
- }[];
1855
- }, {
1856
- results: {
1857
- id: string;
1858
- type?: string | undefined;
1859
- }[];
1860
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1861
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1862
- id: import("zod").ZodString;
1863
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1864
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1865
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1866
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1867
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1868
- results: import("zod").ZodArray<import("zod").ZodObject<{
1869
- id: import("zod").ZodString;
1870
- type: import("zod").ZodOptional<import("zod").ZodString>;
1871
- }, "strip", import("zod").ZodTypeAny, {
1872
- id: string;
1873
- type?: string | undefined;
1874
- }, {
1875
- id: string;
1876
- type?: string | undefined;
1877
- }>, "many">;
1878
- }, "strip", import("zod").ZodTypeAny, {
1879
- results: {
1880
- id: string;
1881
- type?: string | undefined;
1882
- }[];
1883
- }, {
613
+ }) => Promise<{
614
+ [x: string]: unknown;
615
+ results?: {
616
+ [x: string]: unknown;
617
+ id: string;
618
+ properties?: Record<string, string> | undefined;
619
+ createdAt?: Date | null | undefined;
620
+ updatedAt?: Date | null | undefined;
621
+ archived?: boolean | undefined;
622
+ associations?: Record<string, string[] | {
1884
623
  results: {
1885
624
  id: string;
1886
625
  type?: string | undefined;
1887
626
  }[];
1888
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1889
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1890
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
1891
- next: import("zod").ZodOptional<import("zod").ZodObject<{
1892
- after: import("zod").ZodString;
1893
- }, "strip", import("zod").ZodTypeAny, {
1894
- after: string;
1895
- }, {
1896
- after: string;
1897
- }>>;
1898
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
1899
- before: import("zod").ZodString;
1900
- }, "strip", import("zod").ZodTypeAny, {
1901
- before: string;
1902
- }, {
1903
- before: string;
1904
- }>>;
1905
- }, "strip", import("zod").ZodTypeAny, {
1906
- next?: {
1907
- after: string;
1908
- } | undefined;
1909
- prev?: {
1910
- before: string;
1911
- } | undefined;
1912
- }, {
627
+ }> | undefined;
628
+ }[] | undefined;
629
+ paging?: {
1913
630
  next?: {
1914
631
  after: string;
1915
632
  } | undefined;
1916
633
  prev?: {
1917
634
  before: string;
1918
635
  } | undefined;
1919
- }>>;
1920
- }, import("zod").ZodTypeAny, "passthrough">>;
636
+ } | undefined;
637
+ }>;
1921
638
  create: (ctx: import("..").HubSpotContext, args: {
1922
639
  properties?: Record<string, string> | undefined;
1923
640
  associations?: {
@@ -1929,67 +646,37 @@ export declare const TicketsEndpoints: {
1929
646
  associationTypeId: number;
1930
647
  }[];
1931
648
  }[] | undefined;
1932
- }) => Promise<import("zod").objectOutputType<{
1933
- id: import("zod").ZodString;
1934
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1935
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1936
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1937
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1938
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1939
- results: import("zod").ZodArray<import("zod").ZodObject<{
1940
- id: import("zod").ZodString;
1941
- type: import("zod").ZodOptional<import("zod").ZodString>;
1942
- }, "strip", import("zod").ZodTypeAny, {
1943
- id: string;
1944
- type?: string | undefined;
1945
- }, {
1946
- id: string;
1947
- type?: string | undefined;
1948
- }>, "many">;
1949
- }, "strip", import("zod").ZodTypeAny, {
1950
- results: {
1951
- id: string;
1952
- type?: string | undefined;
1953
- }[];
1954
- }, {
649
+ }) => Promise<{
650
+ [x: string]: unknown;
651
+ id: string;
652
+ properties?: Record<string, string> | undefined;
653
+ createdAt?: Date | null | undefined;
654
+ updatedAt?: Date | null | undefined;
655
+ archived?: boolean | undefined;
656
+ associations?: Record<string, string[] | {
1955
657
  results: {
1956
658
  id: string;
1957
659
  type?: string | undefined;
1958
660
  }[];
1959
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1960
- }, import("zod").ZodTypeAny, "passthrough">>;
661
+ }> | undefined;
662
+ }>;
1961
663
  update: (ctx: import("..").HubSpotContext, args: {
1962
664
  ticketId: string;
1963
665
  properties?: Record<string, string> | undefined;
1964
- }) => Promise<import("zod").objectOutputType<{
1965
- id: import("zod").ZodString;
1966
- properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1967
- createdAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1968
- updatedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1969
- archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
1970
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
1971
- results: import("zod").ZodArray<import("zod").ZodObject<{
1972
- id: import("zod").ZodString;
1973
- type: import("zod").ZodOptional<import("zod").ZodString>;
1974
- }, "strip", import("zod").ZodTypeAny, {
1975
- id: string;
1976
- type?: string | undefined;
1977
- }, {
1978
- id: string;
1979
- type?: string | undefined;
1980
- }>, "many">;
1981
- }, "strip", import("zod").ZodTypeAny, {
1982
- results: {
1983
- id: string;
1984
- type?: string | undefined;
1985
- }[];
1986
- }, {
666
+ }) => Promise<{
667
+ [x: string]: unknown;
668
+ id: string;
669
+ properties?: Record<string, string> | undefined;
670
+ createdAt?: Date | null | undefined;
671
+ updatedAt?: Date | null | undefined;
672
+ archived?: boolean | undefined;
673
+ associations?: Record<string, string[] | {
1987
674
  results: {
1988
675
  id: string;
1989
676
  type?: string | undefined;
1990
677
  }[];
1991
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
1992
- }, import("zod").ZodTypeAny, "passthrough">>;
678
+ }> | undefined;
679
+ }>;
1993
680
  delete: (ctx: import("..").HubSpotContext, args: {
1994
681
  ticketId: string;
1995
682
  }) => Promise<void>;
@@ -1997,279 +684,66 @@ export declare const TicketsEndpoints: {
1997
684
  export declare const EngagementsEndpoints: {
1998
685
  get: (ctx: import("..").HubSpotContext, args: {
1999
686
  engagementId: string;
2000
- }) => Promise<import("zod").objectOutputType<{
2001
- id: import("zod").ZodString;
2002
- engagement: import("zod").ZodOptional<import("zod").ZodObject<{
2003
- id: import("zod").ZodOptional<import("zod").ZodNumber>;
2004
- portalId: import("zod").ZodOptional<import("zod").ZodNumber>;
2005
- active: import("zod").ZodOptional<import("zod").ZodBoolean>;
2006
- createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2007
- lastUpdated: import("zod").ZodOptional<import("zod").ZodNumber>;
2008
- createdBy: import("zod").ZodOptional<import("zod").ZodNumber>;
2009
- modifiedBy: import("zod").ZodOptional<import("zod").ZodNumber>;
2010
- ownerId: import("zod").ZodOptional<import("zod").ZodNumber>;
2011
- type: import("zod").ZodOptional<import("zod").ZodString>;
2012
- timestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
2013
- }, "strip", import("zod").ZodTypeAny, {
2014
- type?: string | undefined;
687
+ }) => Promise<{
688
+ [x: string]: unknown;
689
+ id: string;
690
+ engagement?: {
2015
691
  id?: number | undefined;
692
+ portalId?: number | undefined;
2016
693
  active?: boolean | undefined;
2017
- timestamp?: number | undefined;
2018
694
  createdAt?: number | undefined;
2019
- portalId?: number | undefined;
2020
695
  lastUpdated?: number | undefined;
2021
696
  createdBy?: number | undefined;
2022
697
  modifiedBy?: number | undefined;
2023
698
  ownerId?: number | undefined;
2024
- }, {
2025
699
  type?: string | undefined;
2026
- id?: number | undefined;
2027
- active?: boolean | undefined;
2028
700
  timestamp?: number | undefined;
2029
- createdAt?: number | undefined;
2030
- portalId?: number | undefined;
2031
- lastUpdated?: number | undefined;
2032
- createdBy?: number | undefined;
2033
- modifiedBy?: number | undefined;
2034
- ownerId?: number | undefined;
2035
- }>>;
2036
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
2037
- results: import("zod").ZodArray<import("zod").ZodObject<{
2038
- id: import("zod").ZodString;
2039
- type: import("zod").ZodOptional<import("zod").ZodString>;
2040
- }, "strip", import("zod").ZodTypeAny, {
2041
- id: string;
2042
- type?: string | undefined;
2043
- }, {
2044
- id: string;
2045
- type?: string | undefined;
2046
- }>, "many">;
2047
- }, "strip", import("zod").ZodTypeAny, {
2048
- results: {
2049
- id: string;
2050
- type?: string | undefined;
2051
- }[];
2052
- }, {
701
+ } | undefined;
702
+ associations?: Record<string, string[] | {
2053
703
  results: {
2054
704
  id: string;
2055
705
  type?: string | undefined;
2056
706
  }[];
2057
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
2058
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
2059
- }, import("zod").ZodTypeAny, "passthrough">>;
707
+ }> | undefined;
708
+ metadata?: Record<string, any> | undefined;
709
+ }>;
2060
710
  getMany: (ctx: import("..").HubSpotContext, args: {
2061
711
  limit?: number | undefined;
2062
712
  after?: string | undefined;
2063
- }) => Promise<import("zod").objectOutputType<{
2064
- results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2065
- id: import("zod").ZodString;
2066
- engagement: import("zod").ZodOptional<import("zod").ZodObject<{
2067
- id: import("zod").ZodOptional<import("zod").ZodNumber>;
2068
- portalId: import("zod").ZodOptional<import("zod").ZodNumber>;
2069
- active: import("zod").ZodOptional<import("zod").ZodBoolean>;
2070
- createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2071
- lastUpdated: import("zod").ZodOptional<import("zod").ZodNumber>;
2072
- createdBy: import("zod").ZodOptional<import("zod").ZodNumber>;
2073
- modifiedBy: import("zod").ZodOptional<import("zod").ZodNumber>;
2074
- ownerId: import("zod").ZodOptional<import("zod").ZodNumber>;
2075
- type: import("zod").ZodOptional<import("zod").ZodString>;
2076
- timestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
2077
- }, "strip", import("zod").ZodTypeAny, {
2078
- type?: string | undefined;
2079
- id?: number | undefined;
2080
- active?: boolean | undefined;
2081
- timestamp?: number | undefined;
2082
- createdAt?: number | undefined;
2083
- portalId?: number | undefined;
2084
- lastUpdated?: number | undefined;
2085
- createdBy?: number | undefined;
2086
- modifiedBy?: number | undefined;
2087
- ownerId?: number | undefined;
2088
- }, {
2089
- type?: string | undefined;
2090
- id?: number | undefined;
2091
- active?: boolean | undefined;
2092
- timestamp?: number | undefined;
2093
- createdAt?: number | undefined;
2094
- portalId?: number | undefined;
2095
- lastUpdated?: number | undefined;
2096
- createdBy?: number | undefined;
2097
- modifiedBy?: number | undefined;
2098
- ownerId?: number | undefined;
2099
- }>>;
2100
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
2101
- results: import("zod").ZodArray<import("zod").ZodObject<{
2102
- id: import("zod").ZodString;
2103
- type: import("zod").ZodOptional<import("zod").ZodString>;
2104
- }, "strip", import("zod").ZodTypeAny, {
2105
- id: string;
2106
- type?: string | undefined;
2107
- }, {
2108
- id: string;
2109
- type?: string | undefined;
2110
- }>, "many">;
2111
- }, "strip", import("zod").ZodTypeAny, {
2112
- results: {
2113
- id: string;
2114
- type?: string | undefined;
2115
- }[];
2116
- }, {
2117
- results: {
2118
- id: string;
2119
- type?: string | undefined;
2120
- }[];
2121
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
2122
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
2123
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2124
- id: import("zod").ZodString;
2125
- engagement: import("zod").ZodOptional<import("zod").ZodObject<{
2126
- id: import("zod").ZodOptional<import("zod").ZodNumber>;
2127
- portalId: import("zod").ZodOptional<import("zod").ZodNumber>;
2128
- active: import("zod").ZodOptional<import("zod").ZodBoolean>;
2129
- createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2130
- lastUpdated: import("zod").ZodOptional<import("zod").ZodNumber>;
2131
- createdBy: import("zod").ZodOptional<import("zod").ZodNumber>;
2132
- modifiedBy: import("zod").ZodOptional<import("zod").ZodNumber>;
2133
- ownerId: import("zod").ZodOptional<import("zod").ZodNumber>;
2134
- type: import("zod").ZodOptional<import("zod").ZodString>;
2135
- timestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
2136
- }, "strip", import("zod").ZodTypeAny, {
2137
- type?: string | undefined;
2138
- id?: number | undefined;
2139
- active?: boolean | undefined;
2140
- timestamp?: number | undefined;
2141
- createdAt?: number | undefined;
2142
- portalId?: number | undefined;
2143
- lastUpdated?: number | undefined;
2144
- createdBy?: number | undefined;
2145
- modifiedBy?: number | undefined;
2146
- ownerId?: number | undefined;
2147
- }, {
2148
- type?: string | undefined;
713
+ }) => Promise<{
714
+ [x: string]: unknown;
715
+ results?: {
716
+ [x: string]: unknown;
717
+ id: string;
718
+ engagement?: {
2149
719
  id?: number | undefined;
2150
- active?: boolean | undefined;
2151
- timestamp?: number | undefined;
2152
- createdAt?: number | undefined;
2153
720
  portalId?: number | undefined;
2154
- lastUpdated?: number | undefined;
2155
- createdBy?: number | undefined;
2156
- modifiedBy?: number | undefined;
2157
- ownerId?: number | undefined;
2158
- }>>;
2159
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
2160
- results: import("zod").ZodArray<import("zod").ZodObject<{
2161
- id: import("zod").ZodString;
2162
- type: import("zod").ZodOptional<import("zod").ZodString>;
2163
- }, "strip", import("zod").ZodTypeAny, {
2164
- id: string;
2165
- type?: string | undefined;
2166
- }, {
2167
- id: string;
2168
- type?: string | undefined;
2169
- }>, "many">;
2170
- }, "strip", import("zod").ZodTypeAny, {
2171
- results: {
2172
- id: string;
2173
- type?: string | undefined;
2174
- }[];
2175
- }, {
2176
- results: {
2177
- id: string;
2178
- type?: string | undefined;
2179
- }[];
2180
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
2181
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
2182
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2183
- id: import("zod").ZodString;
2184
- engagement: import("zod").ZodOptional<import("zod").ZodObject<{
2185
- id: import("zod").ZodOptional<import("zod").ZodNumber>;
2186
- portalId: import("zod").ZodOptional<import("zod").ZodNumber>;
2187
- active: import("zod").ZodOptional<import("zod").ZodBoolean>;
2188
- createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2189
- lastUpdated: import("zod").ZodOptional<import("zod").ZodNumber>;
2190
- createdBy: import("zod").ZodOptional<import("zod").ZodNumber>;
2191
- modifiedBy: import("zod").ZodOptional<import("zod").ZodNumber>;
2192
- ownerId: import("zod").ZodOptional<import("zod").ZodNumber>;
2193
- type: import("zod").ZodOptional<import("zod").ZodString>;
2194
- timestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
2195
- }, "strip", import("zod").ZodTypeAny, {
2196
- type?: string | undefined;
2197
- id?: number | undefined;
2198
721
  active?: boolean | undefined;
2199
- timestamp?: number | undefined;
2200
722
  createdAt?: number | undefined;
2201
- portalId?: number | undefined;
2202
723
  lastUpdated?: number | undefined;
2203
724
  createdBy?: number | undefined;
2204
725
  modifiedBy?: number | undefined;
2205
726
  ownerId?: number | undefined;
2206
- }, {
2207
727
  type?: string | undefined;
2208
- id?: number | undefined;
2209
- active?: boolean | undefined;
2210
728
  timestamp?: number | undefined;
2211
- createdAt?: number | undefined;
2212
- portalId?: number | undefined;
2213
- lastUpdated?: number | undefined;
2214
- createdBy?: number | undefined;
2215
- modifiedBy?: number | undefined;
2216
- ownerId?: number | undefined;
2217
- }>>;
2218
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
2219
- results: import("zod").ZodArray<import("zod").ZodObject<{
2220
- id: import("zod").ZodString;
2221
- type: import("zod").ZodOptional<import("zod").ZodString>;
2222
- }, "strip", import("zod").ZodTypeAny, {
2223
- id: string;
2224
- type?: string | undefined;
2225
- }, {
2226
- id: string;
2227
- type?: string | undefined;
2228
- }>, "many">;
2229
- }, "strip", import("zod").ZodTypeAny, {
2230
- results: {
2231
- id: string;
2232
- type?: string | undefined;
2233
- }[];
2234
- }, {
729
+ } | undefined;
730
+ associations?: Record<string, string[] | {
2235
731
  results: {
2236
732
  id: string;
2237
733
  type?: string | undefined;
2238
734
  }[];
2239
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
2240
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
2241
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
2242
- paging: import("zod").ZodOptional<import("zod").ZodObject<{
2243
- next: import("zod").ZodOptional<import("zod").ZodObject<{
2244
- after: import("zod").ZodString;
2245
- }, "strip", import("zod").ZodTypeAny, {
2246
- after: string;
2247
- }, {
2248
- after: string;
2249
- }>>;
2250
- prev: import("zod").ZodOptional<import("zod").ZodObject<{
2251
- before: import("zod").ZodString;
2252
- }, "strip", import("zod").ZodTypeAny, {
2253
- before: string;
2254
- }, {
2255
- before: string;
2256
- }>>;
2257
- }, "strip", import("zod").ZodTypeAny, {
2258
- next?: {
2259
- after: string;
2260
- } | undefined;
2261
- prev?: {
2262
- before: string;
2263
- } | undefined;
2264
- }, {
735
+ }> | undefined;
736
+ metadata?: Record<string, any> | undefined;
737
+ }[] | undefined;
738
+ paging?: {
2265
739
  next?: {
2266
740
  after: string;
2267
741
  } | undefined;
2268
742
  prev?: {
2269
743
  before: string;
2270
744
  } | undefined;
2271
- }>>;
2272
- }, import("zod").ZodTypeAny, "passthrough">>;
745
+ } | undefined;
746
+ }>;
2273
747
  create: (ctx: import("..").HubSpotContext, args: {
2274
748
  engagement: {
2275
749
  type: string;
@@ -2283,66 +757,29 @@ export declare const EngagementsEndpoints: {
2283
757
  ownerIds?: number[] | undefined;
2284
758
  } | undefined;
2285
759
  metadata?: Record<string, any> | undefined;
2286
- }) => Promise<import("zod").objectOutputType<{
2287
- id: import("zod").ZodString;
2288
- engagement: import("zod").ZodOptional<import("zod").ZodObject<{
2289
- id: import("zod").ZodOptional<import("zod").ZodNumber>;
2290
- portalId: import("zod").ZodOptional<import("zod").ZodNumber>;
2291
- active: import("zod").ZodOptional<import("zod").ZodBoolean>;
2292
- createdAt: import("zod").ZodOptional<import("zod").ZodNumber>;
2293
- lastUpdated: import("zod").ZodOptional<import("zod").ZodNumber>;
2294
- createdBy: import("zod").ZodOptional<import("zod").ZodNumber>;
2295
- modifiedBy: import("zod").ZodOptional<import("zod").ZodNumber>;
2296
- ownerId: import("zod").ZodOptional<import("zod").ZodNumber>;
2297
- type: import("zod").ZodOptional<import("zod").ZodString>;
2298
- timestamp: import("zod").ZodOptional<import("zod").ZodNumber>;
2299
- }, "strip", import("zod").ZodTypeAny, {
2300
- type?: string | undefined;
760
+ }) => Promise<{
761
+ [x: string]: unknown;
762
+ id: string;
763
+ engagement?: {
2301
764
  id?: number | undefined;
765
+ portalId?: number | undefined;
2302
766
  active?: boolean | undefined;
2303
- timestamp?: number | undefined;
2304
767
  createdAt?: number | undefined;
2305
- portalId?: number | undefined;
2306
768
  lastUpdated?: number | undefined;
2307
769
  createdBy?: number | undefined;
2308
770
  modifiedBy?: number | undefined;
2309
771
  ownerId?: number | undefined;
2310
- }, {
2311
772
  type?: string | undefined;
2312
- id?: number | undefined;
2313
- active?: boolean | undefined;
2314
773
  timestamp?: number | undefined;
2315
- createdAt?: number | undefined;
2316
- portalId?: number | undefined;
2317
- lastUpdated?: number | undefined;
2318
- createdBy?: number | undefined;
2319
- modifiedBy?: number | undefined;
2320
- ownerId?: number | undefined;
2321
- }>>;
2322
- associations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodObject<{
2323
- results: import("zod").ZodArray<import("zod").ZodObject<{
2324
- id: import("zod").ZodString;
2325
- type: import("zod").ZodOptional<import("zod").ZodString>;
2326
- }, "strip", import("zod").ZodTypeAny, {
2327
- id: string;
2328
- type?: string | undefined;
2329
- }, {
2330
- id: string;
2331
- type?: string | undefined;
2332
- }>, "many">;
2333
- }, "strip", import("zod").ZodTypeAny, {
2334
- results: {
2335
- id: string;
2336
- type?: string | undefined;
2337
- }[];
2338
- }, {
774
+ } | undefined;
775
+ associations?: Record<string, string[] | {
2339
776
  results: {
2340
777
  id: string;
2341
778
  type?: string | undefined;
2342
779
  }[];
2343
- }>, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
2344
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
2345
- }, import("zod").ZodTypeAny, "passthrough">>;
780
+ }> | undefined;
781
+ metadata?: Record<string, any> | undefined;
782
+ }>;
2346
783
  delete: (ctx: import("..").HubSpotContext, args: {
2347
784
  engagementId: string;
2348
785
  }) => Promise<void>;