@particle-academy/hubspot-js 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/README.md +206 -1
- package/art/fancified.svg +26 -0
- package/dist/chunk-FFT5OGGS.js +1086 -0
- package/dist/chunk-FFT5OGGS.js.map +1 -0
- package/dist/flow.cjs +1266 -12
- package/dist/flow.cjs.map +1 -1
- package/dist/flow.d.cts +18 -1
- package/dist/flow.d.ts +18 -1
- package/dist/flow.js +259 -4
- package/dist/flow.js.map +1 -1
- package/dist/index.cjs +1016 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +601 -1
- package/dist/index.d.ts +601 -1
- package/dist/index.js +1 -1
- package/package.json +4 -3
- package/dist/chunk-6HO2IP5Q.js +0 -104
- package/dist/chunk-6HO2IP5Q.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -81,6 +81,183 @@ declare const HUBSPOT: ServiceDescriptor;
|
|
|
81
81
|
|
|
82
82
|
declare const hubspotFaker: ConnectorFaker;
|
|
83
83
|
|
|
84
|
+
/**
|
|
85
|
+
* GENERATED FILE — do not edit.
|
|
86
|
+
*
|
|
87
|
+
* Emitted from provider/actions/company-create.json by weaver's generator.
|
|
88
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
89
|
+
* being rejected, because it works until it silently does not. Fix
|
|
90
|
+
* provider/actions/company-create.json (or weaver's template/) and regenerate:
|
|
91
|
+
*
|
|
92
|
+
* npm run provider -- hubspot
|
|
93
|
+
*/
|
|
94
|
+
/**
|
|
95
|
+
* Create a company in HubSpot.
|
|
96
|
+
*
|
|
97
|
+
* POST /crm/v3/objects/companies —
|
|
98
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/companies
|
|
99
|
+
*
|
|
100
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
101
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
102
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
103
|
+
*
|
|
104
|
+
* sideEffects: unsafe-to-replay.
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
declare const COMPANY_CREATE_OPERATION = "company_create";
|
|
108
|
+
type CompanyCreateOptions = {
|
|
109
|
+
/** The node's resolved config. Keys: properties. */
|
|
110
|
+
config: Record<string, unknown>;
|
|
111
|
+
credentials?: Record<string, string | undefined>;
|
|
112
|
+
mode?: RequestedMode;
|
|
113
|
+
connectionId?: string | null;
|
|
114
|
+
input?: unknown;
|
|
115
|
+
attempts?: number;
|
|
116
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
117
|
+
transport?: Transport;
|
|
118
|
+
};
|
|
119
|
+
declare function hubspotCompanyCreate(options: CompanyCreateOptions): Promise<ConnectorResult>;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* GENERATED FILE — do not edit.
|
|
123
|
+
*
|
|
124
|
+
* Emitted from provider/actions/company-get.json by weaver's generator.
|
|
125
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
126
|
+
* being rejected, because it works until it silently does not. Fix
|
|
127
|
+
* provider/actions/company-get.json (or weaver's template/) and regenerate:
|
|
128
|
+
*
|
|
129
|
+
* npm run provider -- hubspot
|
|
130
|
+
*/
|
|
131
|
+
/**
|
|
132
|
+
* Read one company, with its associations when asked.
|
|
133
|
+
*
|
|
134
|
+
* GET /crm/v3/objects/companies/{companyId} —
|
|
135
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/companies
|
|
136
|
+
*
|
|
137
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
138
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
139
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
declare const COMPANY_GET_OPERATION = "company_get";
|
|
143
|
+
type CompanyGetOptions = {
|
|
144
|
+
/** The node's resolved config. Keys: companyId, properties, associations. */
|
|
145
|
+
config: Record<string, unknown>;
|
|
146
|
+
credentials?: Record<string, string | undefined>;
|
|
147
|
+
mode?: RequestedMode;
|
|
148
|
+
connectionId?: string | null;
|
|
149
|
+
input?: unknown;
|
|
150
|
+
attempts?: number;
|
|
151
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
152
|
+
transport?: Transport;
|
|
153
|
+
};
|
|
154
|
+
declare function hubspotCompanyGet(options: CompanyGetOptions): Promise<ConnectorResult>;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* GENERATED FILE — do not edit.
|
|
158
|
+
*
|
|
159
|
+
* Emitted from provider/actions/company-list.json by weaver's generator.
|
|
160
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
161
|
+
* being rejected, because it works until it silently does not. Fix
|
|
162
|
+
* provider/actions/company-list.json (or weaver's template/) and regenerate:
|
|
163
|
+
*
|
|
164
|
+
* npm run provider -- hubspot
|
|
165
|
+
*/
|
|
166
|
+
/**
|
|
167
|
+
* Page through every company in the portal.
|
|
168
|
+
*
|
|
169
|
+
* GET /crm/v3/objects/companies —
|
|
170
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/companies
|
|
171
|
+
*
|
|
172
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
173
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
174
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
declare const COMPANY_LIST_OPERATION = "company_list";
|
|
178
|
+
type CompanyListOptions = {
|
|
179
|
+
/** The node's resolved config. Keys: limit, after, properties, associations. */
|
|
180
|
+
config: Record<string, unknown>;
|
|
181
|
+
credentials?: Record<string, string | undefined>;
|
|
182
|
+
mode?: RequestedMode;
|
|
183
|
+
connectionId?: string | null;
|
|
184
|
+
input?: unknown;
|
|
185
|
+
attempts?: number;
|
|
186
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
187
|
+
transport?: Transport;
|
|
188
|
+
};
|
|
189
|
+
declare function hubspotCompanyList(options: CompanyListOptions): Promise<ConnectorResult>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* GENERATED FILE — do not edit.
|
|
193
|
+
*
|
|
194
|
+
* Emitted from provider/actions/company-search.json by weaver's generator.
|
|
195
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
196
|
+
* being rejected, because it works until it silently does not. Fix
|
|
197
|
+
* provider/actions/company-search.json (or weaver's template/) and regenerate:
|
|
198
|
+
*
|
|
199
|
+
* npm run provider -- hubspot
|
|
200
|
+
*/
|
|
201
|
+
/**
|
|
202
|
+
* Find companies by property filters, sorts or a text query.
|
|
203
|
+
*
|
|
204
|
+
* POST /crm/v3/objects/companies/search —
|
|
205
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/companies
|
|
206
|
+
*
|
|
207
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
208
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
209
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
declare const COMPANY_SEARCH_OPERATION = "company_search";
|
|
213
|
+
type CompanySearchOptions = {
|
|
214
|
+
/** The node's resolved config. Keys: filterGroups, sorts, query, properties, limit, after. */
|
|
215
|
+
config: Record<string, unknown>;
|
|
216
|
+
credentials?: Record<string, string | undefined>;
|
|
217
|
+
mode?: RequestedMode;
|
|
218
|
+
connectionId?: string | null;
|
|
219
|
+
input?: unknown;
|
|
220
|
+
attempts?: number;
|
|
221
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
222
|
+
transport?: Transport;
|
|
223
|
+
};
|
|
224
|
+
declare function hubspotCompanySearch(options: CompanySearchOptions): Promise<ConnectorResult>;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* GENERATED FILE — do not edit.
|
|
228
|
+
*
|
|
229
|
+
* Emitted from provider/actions/company-update.json by weaver's generator.
|
|
230
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
231
|
+
* being rejected, because it works until it silently does not. Fix
|
|
232
|
+
* provider/actions/company-update.json (or weaver's template/) and regenerate:
|
|
233
|
+
*
|
|
234
|
+
* npm run provider -- hubspot
|
|
235
|
+
*/
|
|
236
|
+
/**
|
|
237
|
+
* Change properties on an existing company.
|
|
238
|
+
*
|
|
239
|
+
* PATCH /crm/v3/objects/companies/{companyId} —
|
|
240
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/companies
|
|
241
|
+
*
|
|
242
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
243
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
244
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
declare const COMPANY_UPDATE_OPERATION = "company_update";
|
|
248
|
+
type CompanyUpdateOptions = {
|
|
249
|
+
/** The node's resolved config. Keys: companyId, properties. */
|
|
250
|
+
config: Record<string, unknown>;
|
|
251
|
+
credentials?: Record<string, string | undefined>;
|
|
252
|
+
mode?: RequestedMode;
|
|
253
|
+
connectionId?: string | null;
|
|
254
|
+
input?: unknown;
|
|
255
|
+
attempts?: number;
|
|
256
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
257
|
+
transport?: Transport;
|
|
258
|
+
};
|
|
259
|
+
declare function hubspotCompanyUpdate(options: CompanyUpdateOptions): Promise<ConnectorResult>;
|
|
260
|
+
|
|
84
261
|
/**
|
|
85
262
|
* GENERATED FILE — do not edit.
|
|
86
263
|
*
|
|
@@ -118,4 +295,427 @@ type ContactCreateOptions = {
|
|
|
118
295
|
};
|
|
119
296
|
declare function hubspotContactCreate(options: ContactCreateOptions): Promise<ConnectorResult>;
|
|
120
297
|
|
|
121
|
-
|
|
298
|
+
/**
|
|
299
|
+
* GENERATED FILE — do not edit.
|
|
300
|
+
*
|
|
301
|
+
* Emitted from provider/actions/contact-get.json by weaver's generator.
|
|
302
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
303
|
+
* being rejected, because it works until it silently does not. Fix
|
|
304
|
+
* provider/actions/contact-get.json (or weaver's template/) and regenerate:
|
|
305
|
+
*
|
|
306
|
+
* npm run provider -- hubspot
|
|
307
|
+
*/
|
|
308
|
+
/**
|
|
309
|
+
* Read one contact, with its associations when asked.
|
|
310
|
+
*
|
|
311
|
+
* GET /crm/v3/objects/contacts/{contactId} —
|
|
312
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/contacts
|
|
313
|
+
*
|
|
314
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
315
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
316
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
317
|
+
*/
|
|
318
|
+
|
|
319
|
+
declare const CONTACT_GET_OPERATION = "contact_get";
|
|
320
|
+
type ContactGetOptions = {
|
|
321
|
+
/** The node's resolved config. Keys: contactId, properties, associations. */
|
|
322
|
+
config: Record<string, unknown>;
|
|
323
|
+
credentials?: Record<string, string | undefined>;
|
|
324
|
+
mode?: RequestedMode;
|
|
325
|
+
connectionId?: string | null;
|
|
326
|
+
input?: unknown;
|
|
327
|
+
attempts?: number;
|
|
328
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
329
|
+
transport?: Transport;
|
|
330
|
+
};
|
|
331
|
+
declare function hubspotContactGet(options: ContactGetOptions): Promise<ConnectorResult>;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* GENERATED FILE — do not edit.
|
|
335
|
+
*
|
|
336
|
+
* Emitted from provider/actions/contact-list.json by weaver's generator.
|
|
337
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
338
|
+
* being rejected, because it works until it silently does not. Fix
|
|
339
|
+
* provider/actions/contact-list.json (or weaver's template/) and regenerate:
|
|
340
|
+
*
|
|
341
|
+
* npm run provider -- hubspot
|
|
342
|
+
*/
|
|
343
|
+
/**
|
|
344
|
+
* Page through every contact in the portal.
|
|
345
|
+
*
|
|
346
|
+
* GET /crm/v3/objects/contacts —
|
|
347
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/contacts
|
|
348
|
+
*
|
|
349
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
350
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
351
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
352
|
+
*/
|
|
353
|
+
|
|
354
|
+
declare const CONTACT_LIST_OPERATION = "contact_list";
|
|
355
|
+
type ContactListOptions = {
|
|
356
|
+
/** The node's resolved config. Keys: limit, after, properties, associations. */
|
|
357
|
+
config: Record<string, unknown>;
|
|
358
|
+
credentials?: Record<string, string | undefined>;
|
|
359
|
+
mode?: RequestedMode;
|
|
360
|
+
connectionId?: string | null;
|
|
361
|
+
input?: unknown;
|
|
362
|
+
attempts?: number;
|
|
363
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
364
|
+
transport?: Transport;
|
|
365
|
+
};
|
|
366
|
+
declare function hubspotContactList(options: ContactListOptions): Promise<ConnectorResult>;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* GENERATED FILE — do not edit.
|
|
370
|
+
*
|
|
371
|
+
* Emitted from provider/actions/contact-search.json by weaver's generator.
|
|
372
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
373
|
+
* being rejected, because it works until it silently does not. Fix
|
|
374
|
+
* provider/actions/contact-search.json (or weaver's template/) and regenerate:
|
|
375
|
+
*
|
|
376
|
+
* npm run provider -- hubspot
|
|
377
|
+
*/
|
|
378
|
+
/**
|
|
379
|
+
* Find contacts by property filters, sorts or a text query.
|
|
380
|
+
*
|
|
381
|
+
* POST /crm/v3/objects/contacts/search —
|
|
382
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/contacts
|
|
383
|
+
*
|
|
384
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
385
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
386
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
387
|
+
*/
|
|
388
|
+
|
|
389
|
+
declare const CONTACT_SEARCH_OPERATION = "contact_search";
|
|
390
|
+
type ContactSearchOptions = {
|
|
391
|
+
/** The node's resolved config. Keys: filterGroups, sorts, query, properties, limit, after. */
|
|
392
|
+
config: Record<string, unknown>;
|
|
393
|
+
credentials?: Record<string, string | undefined>;
|
|
394
|
+
mode?: RequestedMode;
|
|
395
|
+
connectionId?: string | null;
|
|
396
|
+
input?: unknown;
|
|
397
|
+
attempts?: number;
|
|
398
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
399
|
+
transport?: Transport;
|
|
400
|
+
};
|
|
401
|
+
declare function hubspotContactSearch(options: ContactSearchOptions): Promise<ConnectorResult>;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* GENERATED FILE — do not edit.
|
|
405
|
+
*
|
|
406
|
+
* Emitted from provider/actions/contact-update.json by weaver's generator.
|
|
407
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
408
|
+
* being rejected, because it works until it silently does not. Fix
|
|
409
|
+
* provider/actions/contact-update.json (or weaver's template/) and regenerate:
|
|
410
|
+
*
|
|
411
|
+
* npm run provider -- hubspot
|
|
412
|
+
*/
|
|
413
|
+
/**
|
|
414
|
+
* Change properties on an existing contact.
|
|
415
|
+
*
|
|
416
|
+
* PATCH /crm/v3/objects/contacts/{contactId} —
|
|
417
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/contacts
|
|
418
|
+
*
|
|
419
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
420
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
421
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
422
|
+
*/
|
|
423
|
+
|
|
424
|
+
declare const CONTACT_UPDATE_OPERATION = "contact_update";
|
|
425
|
+
type ContactUpdateOptions = {
|
|
426
|
+
/** The node's resolved config. Keys: contactId, properties. */
|
|
427
|
+
config: Record<string, unknown>;
|
|
428
|
+
credentials?: Record<string, string | undefined>;
|
|
429
|
+
mode?: RequestedMode;
|
|
430
|
+
connectionId?: string | null;
|
|
431
|
+
input?: unknown;
|
|
432
|
+
attempts?: number;
|
|
433
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
434
|
+
transport?: Transport;
|
|
435
|
+
};
|
|
436
|
+
declare function hubspotContactUpdate(options: ContactUpdateOptions): Promise<ConnectorResult>;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* GENERATED FILE — do not edit.
|
|
440
|
+
*
|
|
441
|
+
* Emitted from provider/actions/deal-create.json by weaver's generator.
|
|
442
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
443
|
+
* being rejected, because it works until it silently does not. Fix
|
|
444
|
+
* provider/actions/deal-create.json (or weaver's template/) and regenerate:
|
|
445
|
+
*
|
|
446
|
+
* npm run provider -- hubspot
|
|
447
|
+
*/
|
|
448
|
+
/**
|
|
449
|
+
* Create a deal in HubSpot.
|
|
450
|
+
*
|
|
451
|
+
* POST /crm/v3/objects/deals —
|
|
452
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/deals
|
|
453
|
+
*
|
|
454
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
455
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
456
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
457
|
+
*
|
|
458
|
+
* sideEffects: unsafe-to-replay.
|
|
459
|
+
*/
|
|
460
|
+
|
|
461
|
+
declare const DEAL_CREATE_OPERATION = "deal_create";
|
|
462
|
+
type DealCreateOptions = {
|
|
463
|
+
/** The node's resolved config. Keys: properties. */
|
|
464
|
+
config: Record<string, unknown>;
|
|
465
|
+
credentials?: Record<string, string | undefined>;
|
|
466
|
+
mode?: RequestedMode;
|
|
467
|
+
connectionId?: string | null;
|
|
468
|
+
input?: unknown;
|
|
469
|
+
attempts?: number;
|
|
470
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
471
|
+
transport?: Transport;
|
|
472
|
+
};
|
|
473
|
+
declare function hubspotDealCreate(options: DealCreateOptions): Promise<ConnectorResult>;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* GENERATED FILE — do not edit.
|
|
477
|
+
*
|
|
478
|
+
* Emitted from provider/actions/deal-get.json by weaver's generator.
|
|
479
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
480
|
+
* being rejected, because it works until it silently does not. Fix
|
|
481
|
+
* provider/actions/deal-get.json (or weaver's template/) and regenerate:
|
|
482
|
+
*
|
|
483
|
+
* npm run provider -- hubspot
|
|
484
|
+
*/
|
|
485
|
+
/**
|
|
486
|
+
* Read one deal, with its associations when asked.
|
|
487
|
+
*
|
|
488
|
+
* GET /crm/v3/objects/deals/{dealId} —
|
|
489
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/deals
|
|
490
|
+
*
|
|
491
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
492
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
493
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
494
|
+
*/
|
|
495
|
+
|
|
496
|
+
declare const DEAL_GET_OPERATION = "deal_get";
|
|
497
|
+
type DealGetOptions = {
|
|
498
|
+
/** The node's resolved config. Keys: dealId, properties, associations. */
|
|
499
|
+
config: Record<string, unknown>;
|
|
500
|
+
credentials?: Record<string, string | undefined>;
|
|
501
|
+
mode?: RequestedMode;
|
|
502
|
+
connectionId?: string | null;
|
|
503
|
+
input?: unknown;
|
|
504
|
+
attempts?: number;
|
|
505
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
506
|
+
transport?: Transport;
|
|
507
|
+
};
|
|
508
|
+
declare function hubspotDealGet(options: DealGetOptions): Promise<ConnectorResult>;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* GENERATED FILE — do not edit.
|
|
512
|
+
*
|
|
513
|
+
* Emitted from provider/actions/deal-list.json by weaver's generator.
|
|
514
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
515
|
+
* being rejected, because it works until it silently does not. Fix
|
|
516
|
+
* provider/actions/deal-list.json (or weaver's template/) and regenerate:
|
|
517
|
+
*
|
|
518
|
+
* npm run provider -- hubspot
|
|
519
|
+
*/
|
|
520
|
+
/**
|
|
521
|
+
* Page through every deal in the portal.
|
|
522
|
+
*
|
|
523
|
+
* GET /crm/v3/objects/deals —
|
|
524
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/deals
|
|
525
|
+
*
|
|
526
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
527
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
528
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
529
|
+
*/
|
|
530
|
+
|
|
531
|
+
declare const DEAL_LIST_OPERATION = "deal_list";
|
|
532
|
+
type DealListOptions = {
|
|
533
|
+
/** The node's resolved config. Keys: limit, after, properties, associations. */
|
|
534
|
+
config: Record<string, unknown>;
|
|
535
|
+
credentials?: Record<string, string | undefined>;
|
|
536
|
+
mode?: RequestedMode;
|
|
537
|
+
connectionId?: string | null;
|
|
538
|
+
input?: unknown;
|
|
539
|
+
attempts?: number;
|
|
540
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
541
|
+
transport?: Transport;
|
|
542
|
+
};
|
|
543
|
+
declare function hubspotDealList(options: DealListOptions): Promise<ConnectorResult>;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* GENERATED FILE — do not edit.
|
|
547
|
+
*
|
|
548
|
+
* Emitted from provider/actions/deal-search.json by weaver's generator.
|
|
549
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
550
|
+
* being rejected, because it works until it silently does not. Fix
|
|
551
|
+
* provider/actions/deal-search.json (or weaver's template/) and regenerate:
|
|
552
|
+
*
|
|
553
|
+
* npm run provider -- hubspot
|
|
554
|
+
*/
|
|
555
|
+
/**
|
|
556
|
+
* Find deals by property filters, sorts or a text query.
|
|
557
|
+
*
|
|
558
|
+
* POST /crm/v3/objects/deals/search —
|
|
559
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/deals
|
|
560
|
+
*
|
|
561
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
562
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
563
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
564
|
+
*/
|
|
565
|
+
|
|
566
|
+
declare const DEAL_SEARCH_OPERATION = "deal_search";
|
|
567
|
+
type DealSearchOptions = {
|
|
568
|
+
/** The node's resolved config. Keys: filterGroups, sorts, query, properties, limit, after. */
|
|
569
|
+
config: Record<string, unknown>;
|
|
570
|
+
credentials?: Record<string, string | undefined>;
|
|
571
|
+
mode?: RequestedMode;
|
|
572
|
+
connectionId?: string | null;
|
|
573
|
+
input?: unknown;
|
|
574
|
+
attempts?: number;
|
|
575
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
576
|
+
transport?: Transport;
|
|
577
|
+
};
|
|
578
|
+
declare function hubspotDealSearch(options: DealSearchOptions): Promise<ConnectorResult>;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* GENERATED FILE — do not edit.
|
|
582
|
+
*
|
|
583
|
+
* Emitted from provider/actions/deal-update.json by weaver's generator.
|
|
584
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
585
|
+
* being rejected, because it works until it silently does not. Fix
|
|
586
|
+
* provider/actions/deal-update.json (or weaver's template/) and regenerate:
|
|
587
|
+
*
|
|
588
|
+
* npm run provider -- hubspot
|
|
589
|
+
*/
|
|
590
|
+
/**
|
|
591
|
+
* Change properties on an existing deal.
|
|
592
|
+
*
|
|
593
|
+
* PATCH /crm/v3/objects/deals/{dealId} —
|
|
594
|
+
* https://developers.hubspot.com/docs/reference/api/crm/objects/deals
|
|
595
|
+
*
|
|
596
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
597
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
598
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
599
|
+
*/
|
|
600
|
+
|
|
601
|
+
declare const DEAL_UPDATE_OPERATION = "deal_update";
|
|
602
|
+
type DealUpdateOptions = {
|
|
603
|
+
/** The node's resolved config. Keys: dealId, properties. */
|
|
604
|
+
config: Record<string, unknown>;
|
|
605
|
+
credentials?: Record<string, string | undefined>;
|
|
606
|
+
mode?: RequestedMode;
|
|
607
|
+
connectionId?: string | null;
|
|
608
|
+
input?: unknown;
|
|
609
|
+
attempts?: number;
|
|
610
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
611
|
+
transport?: Transport;
|
|
612
|
+
};
|
|
613
|
+
declare function hubspotDealUpdate(options: DealUpdateOptions): Promise<ConnectorResult>;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* GENERATED FILE — do not edit.
|
|
617
|
+
*
|
|
618
|
+
* Emitted from provider/actions/owner-list.json by weaver's generator.
|
|
619
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
620
|
+
* being rejected, because it works until it silently does not. Fix
|
|
621
|
+
* provider/actions/owner-list.json (or weaver's template/) and regenerate:
|
|
622
|
+
*
|
|
623
|
+
* npm run provider -- hubspot
|
|
624
|
+
*/
|
|
625
|
+
/**
|
|
626
|
+
* Page through the portal's owners: the users records can be assigned to.
|
|
627
|
+
*
|
|
628
|
+
* GET /crm/v3/owners —
|
|
629
|
+
* https://developers.hubspot.com/docs/reference/api/crm/owners
|
|
630
|
+
*
|
|
631
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
632
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
633
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
634
|
+
*/
|
|
635
|
+
|
|
636
|
+
declare const OWNER_LIST_OPERATION = "owner_list";
|
|
637
|
+
type OwnerListOptions = {
|
|
638
|
+
/** The node's resolved config. Keys: email, limit, after. */
|
|
639
|
+
config: Record<string, unknown>;
|
|
640
|
+
credentials?: Record<string, string | undefined>;
|
|
641
|
+
mode?: RequestedMode;
|
|
642
|
+
connectionId?: string | null;
|
|
643
|
+
input?: unknown;
|
|
644
|
+
attempts?: number;
|
|
645
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
646
|
+
transport?: Transport;
|
|
647
|
+
};
|
|
648
|
+
declare function hubspotOwnerList(options: OwnerListOptions): Promise<ConnectorResult>;
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* GENERATED FILE — do not edit.
|
|
652
|
+
*
|
|
653
|
+
* Emitted from provider/actions/pipeline-list.json by weaver's generator.
|
|
654
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
655
|
+
* being rejected, because it works until it silently does not. Fix
|
|
656
|
+
* provider/actions/pipeline-list.json (or weaver's template/) and regenerate:
|
|
657
|
+
*
|
|
658
|
+
* npm run provider -- hubspot
|
|
659
|
+
*/
|
|
660
|
+
/**
|
|
661
|
+
* Every deal pipeline in the portal, with its stages in order.
|
|
662
|
+
*
|
|
663
|
+
* GET /crm/v3/pipelines/deals —
|
|
664
|
+
* https://developers.hubspot.com/docs/reference/api/crm/pipelines
|
|
665
|
+
*
|
|
666
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
667
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
668
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
669
|
+
*/
|
|
670
|
+
|
|
671
|
+
declare const PIPELINE_LIST_OPERATION = "pipeline_list";
|
|
672
|
+
type PipelineListOptions = {
|
|
673
|
+
/** The node's resolved config. Keys: . */
|
|
674
|
+
config: Record<string, unknown>;
|
|
675
|
+
credentials?: Record<string, string | undefined>;
|
|
676
|
+
mode?: RequestedMode;
|
|
677
|
+
connectionId?: string | null;
|
|
678
|
+
input?: unknown;
|
|
679
|
+
attempts?: number;
|
|
680
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
681
|
+
transport?: Transport;
|
|
682
|
+
};
|
|
683
|
+
declare function hubspotPipelineList(options: PipelineListOptions): Promise<ConnectorResult>;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* GENERATED FILE — do not edit.
|
|
687
|
+
*
|
|
688
|
+
* Emitted from provider/actions/property-list.json by weaver's generator.
|
|
689
|
+
* A hand-edit here is destroyed by the next protocol sync, which is worse than
|
|
690
|
+
* being rejected, because it works until it silently does not. Fix
|
|
691
|
+
* provider/actions/property-list.json (or weaver's template/) and regenerate:
|
|
692
|
+
*
|
|
693
|
+
* npm run provider -- hubspot
|
|
694
|
+
*/
|
|
695
|
+
/**
|
|
696
|
+
* Every property defined on deals, contacts or companies: name, label, type
|
|
697
|
+
* and the options of an enumeration.
|
|
698
|
+
*
|
|
699
|
+
* GET /crm/v3/properties/{objectType} —
|
|
700
|
+
* https://developers.hubspot.com/docs/reference/api/crm/properties
|
|
701
|
+
*
|
|
702
|
+
* Notice what is NOT here: no key, no base URL, no mode check, no retry loop,
|
|
703
|
+
* no fake/real branch. This describes the request; callConnector resolves the
|
|
704
|
+
* connection, picks the estate, and either calls HubSpot or calls the faker.
|
|
705
|
+
*/
|
|
706
|
+
|
|
707
|
+
declare const PROPERTY_LIST_OPERATION = "property_list";
|
|
708
|
+
type PropertyListOptions = {
|
|
709
|
+
/** The node's resolved config. Keys: objectType. */
|
|
710
|
+
config: Record<string, unknown>;
|
|
711
|
+
credentials?: Record<string, string | undefined>;
|
|
712
|
+
mode?: RequestedMode;
|
|
713
|
+
connectionId?: string | null;
|
|
714
|
+
input?: unknown;
|
|
715
|
+
attempts?: number;
|
|
716
|
+
/** Override the transport. The only way to exercise this without a network. */
|
|
717
|
+
transport?: Transport;
|
|
718
|
+
};
|
|
719
|
+
declare function hubspotPropertyList(options: PropertyListOptions): Promise<ConnectorResult>;
|
|
720
|
+
|
|
721
|
+
export { COMPANY_CREATE_OPERATION, COMPANY_GET_OPERATION, COMPANY_LIST_OPERATION, COMPANY_SEARCH_OPERATION, COMPANY_UPDATE_OPERATION, CONNECTOR_API_VERSION, CONTACT_CREATE_OPERATION, CONTACT_GET_OPERATION, CONTACT_LIST_OPERATION, CONTACT_SEARCH_OPERATION, CONTACT_UPDATE_OPERATION, type CompanyCreateOptions, type CompanyGetOptions, type CompanyListOptions, type CompanySearchOptions, type CompanyUpdateOptions, type ContactCreateOptions, type ContactGetOptions, type ContactListOptions, type ContactSearchOptions, type ContactUpdateOptions, DEAL_CREATE_OPERATION, DEAL_GET_OPERATION, DEAL_LIST_OPERATION, DEAL_SEARCH_OPERATION, DEAL_UPDATE_OPERATION, type DealCreateOptions, type DealGetOptions, type DealListOptions, type DealSearchOptions, type DealUpdateOptions, HUBSPOT, HUBSPOT_BASE_URLS, HUBSPOT_REQUIRES, OWNER_LIST_OPERATION, type OwnerListOptions, PIPELINE_LIST_OPERATION, PROPERTY_LIST_OPERATION, type PipelineListOptions, type PropertyListOptions, hubspotAuthorize, hubspotCompanyCreate, hubspotCompanyGet, hubspotCompanyList, hubspotCompanySearch, hubspotCompanyUpdate, hubspotContactCreate, hubspotContactGet, hubspotContactList, hubspotContactSearch, hubspotContactUpdate, hubspotDealCreate, hubspotDealGet, hubspotDealList, hubspotDealSearch, hubspotDealUpdate, hubspotFaker, hubspotOwnerList, hubspotPipelineList, hubspotPropertyList };
|