@squadbase/connectors 0.1.2-dev.0 → 0.1.2-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-Q5TIPE53.js → chunk-HHVJKPCD.js} +207 -36
- package/dist/index.d.ts +291 -118
- package/dist/index.js +3018 -1274
- package/dist/sdk.d.ts +355 -169
- package/dist/sdk.js +431 -237
- package/package.json +1 -1
package/dist/sdk.d.ts
CHANGED
|
@@ -34,7 +34,26 @@ interface KintoneConnectorSdk {
|
|
|
34
34
|
* @param params - Resolved parameter values keyed by parameter slug
|
|
35
35
|
* ("base-url", "username", "password")
|
|
36
36
|
*/
|
|
37
|
-
declare function createClient$
|
|
37
|
+
declare function createClient$l(params: Record<string, string>): KintoneConnectorSdk;
|
|
38
|
+
|
|
39
|
+
interface KintoneApiTokenConnectorSdk {
|
|
40
|
+
/**
|
|
41
|
+
* Send an authenticated request to the kintone REST API.
|
|
42
|
+
* Interface matches `fetch` — only auth headers and base URL are added automatically.
|
|
43
|
+
*
|
|
44
|
+
* @param path - API path (e.g., "/k/v1/records.json?app=1")
|
|
45
|
+
* @param init - Standard RequestInit (same as fetch)
|
|
46
|
+
* @returns Standard Response (same as fetch)
|
|
47
|
+
*/
|
|
48
|
+
request(path: string, init?: RequestInit): Promise<Response>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Create a kintone client from resolved connection parameters.
|
|
52
|
+
*
|
|
53
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
54
|
+
* ("base-url", "api-token")
|
|
55
|
+
*/
|
|
56
|
+
declare function createClient$k(params: Record<string, string>): KintoneApiTokenConnectorSdk;
|
|
38
57
|
|
|
39
58
|
interface OpenAIConnectorSdk {
|
|
40
59
|
apiKey: string;
|
|
@@ -44,7 +63,7 @@ interface OpenAIConnectorSdk {
|
|
|
44
63
|
*
|
|
45
64
|
* @param params - Resolved parameter values keyed by parameter slug ("api-key")
|
|
46
65
|
*/
|
|
47
|
-
declare function createClient$
|
|
66
|
+
declare function createClient$j(params: Record<string, string>): OpenAIConnectorSdk;
|
|
48
67
|
|
|
49
68
|
/** Shape returned by the Airtable API for a single record. */
|
|
50
69
|
interface AirtableRecord {
|
|
@@ -131,7 +150,44 @@ interface AirtableConnectorSdk {
|
|
|
131
150
|
* @param params - Resolved parameter values keyed by parameter slug
|
|
132
151
|
* ("base-id", "api-key")
|
|
133
152
|
*/
|
|
134
|
-
declare function createClient$
|
|
153
|
+
declare function createClient$i(params: Record<string, string>): AirtableConnectorSdk;
|
|
154
|
+
|
|
155
|
+
interface GoogleAdsRow {
|
|
156
|
+
[key: string]: unknown;
|
|
157
|
+
}
|
|
158
|
+
interface GoogleAdsConnectorSdk {
|
|
159
|
+
/**
|
|
160
|
+
* Send an authenticated request to the Google Ads API v18.
|
|
161
|
+
*
|
|
162
|
+
* The placeholder `{customerId}` in the path is auto-replaced with the configured customer ID.
|
|
163
|
+
*
|
|
164
|
+
* @param path - API path (e.g., "customers/{customerId}/googleAds:searchStream")
|
|
165
|
+
* @param init - Standard RequestInit (same as fetch)
|
|
166
|
+
* @returns Standard Response (same as fetch)
|
|
167
|
+
*/
|
|
168
|
+
request(path: string, init?: RequestInit): Promise<Response>;
|
|
169
|
+
/**
|
|
170
|
+
* Execute a GAQL (Google Ads Query Language) query using searchStream.
|
|
171
|
+
*
|
|
172
|
+
* @param query - GAQL query string
|
|
173
|
+
* @param customerId - Override the default customer ID
|
|
174
|
+
* @returns Array of result rows
|
|
175
|
+
*
|
|
176
|
+
* @see https://developers.google.com/google-ads/api/docs/query/overview
|
|
177
|
+
*/
|
|
178
|
+
search(query: string, customerId?: string): Promise<GoogleAdsRow[]>;
|
|
179
|
+
/**
|
|
180
|
+
* List accessible customer accounts.
|
|
181
|
+
*/
|
|
182
|
+
listAccessibleCustomers(): Promise<string[]>;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Create a Google Ads client from resolved connection parameters.
|
|
186
|
+
*
|
|
187
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
188
|
+
* @param fetchFn - Optional fetch function (for OAuth proxy injection)
|
|
189
|
+
*/
|
|
190
|
+
declare function createClient$h(params: Record<string, string>, fetchFn?: typeof fetch): GoogleAdsConnectorSdk;
|
|
135
191
|
|
|
136
192
|
interface GoogleAnalyticsConnectorSdk {
|
|
137
193
|
/**
|
|
@@ -237,7 +293,181 @@ interface GoogleAnalyticsConnectorSdk {
|
|
|
237
293
|
* @param params - Resolved parameter values keyed by parameter slug
|
|
238
294
|
* ("service-account-key-json-base64", "property-id")
|
|
239
295
|
*/
|
|
240
|
-
declare function createClient$
|
|
296
|
+
declare function createClient$g(params: Record<string, string>): GoogleAnalyticsConnectorSdk;
|
|
297
|
+
|
|
298
|
+
interface GoogleAnalyticsOauthConnectorSdk {
|
|
299
|
+
/**
|
|
300
|
+
* Send an authenticated request to the Google Analytics Data API v1beta.
|
|
301
|
+
*
|
|
302
|
+
* Occurrences of `{propertyId}` in the path are auto-replaced with the configured property ID.
|
|
303
|
+
*
|
|
304
|
+
* @param path - API path (e.g., "properties/{propertyId}:runReport")
|
|
305
|
+
* @param init - Standard RequestInit (same as fetch)
|
|
306
|
+
* @returns Standard Response (same as fetch)
|
|
307
|
+
*/
|
|
308
|
+
request(path: string, init?: RequestInit): Promise<Response>;
|
|
309
|
+
/**
|
|
310
|
+
* Run a GA4 report.
|
|
311
|
+
*
|
|
312
|
+
* @see https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport
|
|
313
|
+
*/
|
|
314
|
+
runReport(request: {
|
|
315
|
+
dateRanges: {
|
|
316
|
+
startDate: string;
|
|
317
|
+
endDate: string;
|
|
318
|
+
}[];
|
|
319
|
+
dimensions?: {
|
|
320
|
+
name: string;
|
|
321
|
+
}[];
|
|
322
|
+
metrics: {
|
|
323
|
+
name: string;
|
|
324
|
+
}[];
|
|
325
|
+
limit?: number;
|
|
326
|
+
offset?: number;
|
|
327
|
+
dimensionFilter?: Record<string, unknown>;
|
|
328
|
+
metricFilter?: Record<string, unknown>;
|
|
329
|
+
orderBys?: Record<string, unknown>[];
|
|
330
|
+
}): Promise<{
|
|
331
|
+
rows: {
|
|
332
|
+
dimensionValues: {
|
|
333
|
+
value: string;
|
|
334
|
+
}[];
|
|
335
|
+
metricValues: {
|
|
336
|
+
value: string;
|
|
337
|
+
}[];
|
|
338
|
+
}[];
|
|
339
|
+
rowCount: number;
|
|
340
|
+
}>;
|
|
341
|
+
/**
|
|
342
|
+
* Get available dimensions and metrics for a property.
|
|
343
|
+
*
|
|
344
|
+
* @see https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/getMetadata
|
|
345
|
+
*/
|
|
346
|
+
getMetadata(): Promise<{
|
|
347
|
+
name: string;
|
|
348
|
+
dimensions: {
|
|
349
|
+
apiName: string;
|
|
350
|
+
uiName: string;
|
|
351
|
+
description: string;
|
|
352
|
+
[key: string]: unknown;
|
|
353
|
+
}[];
|
|
354
|
+
metrics: {
|
|
355
|
+
apiName: string;
|
|
356
|
+
uiName: string;
|
|
357
|
+
description: string;
|
|
358
|
+
type: string;
|
|
359
|
+
[key: string]: unknown;
|
|
360
|
+
}[];
|
|
361
|
+
}>;
|
|
362
|
+
/**
|
|
363
|
+
* Run a realtime report.
|
|
364
|
+
*
|
|
365
|
+
* @see https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runRealtimeReport
|
|
366
|
+
*/
|
|
367
|
+
runRealtimeReport(request: {
|
|
368
|
+
dimensions?: {
|
|
369
|
+
name: string;
|
|
370
|
+
}[];
|
|
371
|
+
metrics: {
|
|
372
|
+
name: string;
|
|
373
|
+
}[];
|
|
374
|
+
limit?: number;
|
|
375
|
+
dimensionFilter?: Record<string, unknown>;
|
|
376
|
+
metricFilter?: Record<string, unknown>;
|
|
377
|
+
minuteRanges?: {
|
|
378
|
+
startMinutesAgo?: number;
|
|
379
|
+
endMinutesAgo?: number;
|
|
380
|
+
name?: string;
|
|
381
|
+
}[];
|
|
382
|
+
}): Promise<{
|
|
383
|
+
rows: {
|
|
384
|
+
dimensionValues: {
|
|
385
|
+
value: string;
|
|
386
|
+
}[];
|
|
387
|
+
metricValues: {
|
|
388
|
+
value: string;
|
|
389
|
+
}[];
|
|
390
|
+
}[];
|
|
391
|
+
rowCount: number;
|
|
392
|
+
}>;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Create a Google Analytics client from resolved connection parameters.
|
|
396
|
+
*
|
|
397
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
398
|
+
* @param fetchFn - Optional fetch function (for OAuth proxy injection)
|
|
399
|
+
*/
|
|
400
|
+
declare function createClient$f(params: Record<string, string>, fetchFn?: typeof fetch): GoogleAnalyticsOauthConnectorSdk;
|
|
401
|
+
|
|
402
|
+
interface SpreadsheetProperties {
|
|
403
|
+
title: string;
|
|
404
|
+
locale?: string;
|
|
405
|
+
timeZone?: string;
|
|
406
|
+
}
|
|
407
|
+
interface SheetProperties {
|
|
408
|
+
sheetId: number;
|
|
409
|
+
title: string;
|
|
410
|
+
index: number;
|
|
411
|
+
sheetType?: string;
|
|
412
|
+
gridProperties?: {
|
|
413
|
+
rowCount: number;
|
|
414
|
+
columnCount: number;
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
interface SpreadsheetMetadata {
|
|
418
|
+
spreadsheetId: string;
|
|
419
|
+
properties: SpreadsheetProperties;
|
|
420
|
+
sheets: {
|
|
421
|
+
properties: SheetProperties;
|
|
422
|
+
}[];
|
|
423
|
+
}
|
|
424
|
+
interface ValueRange {
|
|
425
|
+
range: string;
|
|
426
|
+
majorDimension: string;
|
|
427
|
+
values: unknown[][];
|
|
428
|
+
}
|
|
429
|
+
interface BatchValueRange {
|
|
430
|
+
spreadsheetId: string;
|
|
431
|
+
valueRanges: ValueRange[];
|
|
432
|
+
}
|
|
433
|
+
interface GoogleSheetsConnectorSdk {
|
|
434
|
+
/**
|
|
435
|
+
* Send an authenticated request to the Google Sheets API v4.
|
|
436
|
+
*
|
|
437
|
+
* The placeholder `{spreadsheetId}` in the path is automatically replaced
|
|
438
|
+
* with the configured default Spreadsheet ID.
|
|
439
|
+
*
|
|
440
|
+
* @param path - API path (e.g., "/{spreadsheetId}/values/Sheet1!A1:D10")
|
|
441
|
+
* @param init - Standard RequestInit (same as fetch)
|
|
442
|
+
* @returns Standard Response (same as fetch)
|
|
443
|
+
*/
|
|
444
|
+
request(path: string, init?: RequestInit): Promise<Response>;
|
|
445
|
+
/**
|
|
446
|
+
* Get spreadsheet metadata including sheet names and properties.
|
|
447
|
+
*/
|
|
448
|
+
getSpreadsheet(spreadsheetId?: string): Promise<SpreadsheetMetadata>;
|
|
449
|
+
/**
|
|
450
|
+
* Get cell values for a given range (A1 notation).
|
|
451
|
+
*
|
|
452
|
+
* @param range - A1 notation range (e.g., "Sheet1!A1:D10")
|
|
453
|
+
* @param spreadsheetId - Override the default spreadsheet ID
|
|
454
|
+
*/
|
|
455
|
+
getValues(range: string, spreadsheetId?: string): Promise<ValueRange>;
|
|
456
|
+
/**
|
|
457
|
+
* Get cell values for multiple ranges in one request.
|
|
458
|
+
*
|
|
459
|
+
* @param ranges - Array of A1 notation ranges
|
|
460
|
+
* @param spreadsheetId - Override the default spreadsheet ID
|
|
461
|
+
*/
|
|
462
|
+
batchGetValues(ranges: string[], spreadsheetId?: string): Promise<BatchValueRange>;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Create a Google Sheets client from resolved connection parameters.
|
|
466
|
+
*
|
|
467
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
468
|
+
* @param fetchFn - Optional fetch function (for OAuth proxy injection)
|
|
469
|
+
*/
|
|
470
|
+
declare function createClient$e(params: Record<string, string>, fetchFn?: typeof fetch): GoogleSheetsConnectorSdk;
|
|
241
471
|
|
|
242
472
|
interface WixStoreConnectorSdk {
|
|
243
473
|
/**
|
|
@@ -328,7 +558,7 @@ interface WixStoreConnectorSdk {
|
|
|
328
558
|
* @param params - Resolved parameter values keyed by parameter slug
|
|
329
559
|
* ("account-id", "site-id", "api-key")
|
|
330
560
|
*/
|
|
331
|
-
declare function createClient$
|
|
561
|
+
declare function createClient$d(params: Record<string, string>): WixStoreConnectorSdk;
|
|
332
562
|
|
|
333
563
|
interface DbtConnectorSdk {
|
|
334
564
|
/**
|
|
@@ -384,217 +614,173 @@ interface DbtConnectorSdk {
|
|
|
384
614
|
* @param params - Resolved parameter values keyed by parameter slug
|
|
385
615
|
* ("host", "account-id", "prod-env-id", "token")
|
|
386
616
|
*/
|
|
387
|
-
declare function createClient$
|
|
617
|
+
declare function createClient$c(params: Record<string, string>): DbtConnectorSdk;
|
|
388
618
|
|
|
389
|
-
interface
|
|
390
|
-
|
|
391
|
-
locale?: string;
|
|
392
|
-
timeZone?: string;
|
|
393
|
-
}
|
|
394
|
-
interface SheetProperties {
|
|
395
|
-
sheetId: number;
|
|
396
|
-
title: string;
|
|
397
|
-
index: number;
|
|
398
|
-
sheetType?: string;
|
|
399
|
-
gridProperties?: {
|
|
400
|
-
rowCount: number;
|
|
401
|
-
columnCount: number;
|
|
402
|
-
};
|
|
403
|
-
}
|
|
404
|
-
interface SpreadsheetMetadata {
|
|
405
|
-
spreadsheetId: string;
|
|
406
|
-
properties: SpreadsheetProperties;
|
|
407
|
-
sheets: {
|
|
408
|
-
properties: SheetProperties;
|
|
409
|
-
}[];
|
|
410
|
-
}
|
|
411
|
-
interface ValueRange {
|
|
412
|
-
range: string;
|
|
413
|
-
majorDimension: string;
|
|
414
|
-
values: unknown[][];
|
|
619
|
+
interface GeminiConnectorSdk {
|
|
620
|
+
apiKey: string;
|
|
415
621
|
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
622
|
+
/**
|
|
623
|
+
* Create a Gemini client from resolved connection parameters.
|
|
624
|
+
*
|
|
625
|
+
* @param params - Resolved parameter values keyed by parameter slug ("api-key")
|
|
626
|
+
*/
|
|
627
|
+
declare function createClient$b(params: Record<string, string>): GeminiConnectorSdk;
|
|
628
|
+
|
|
629
|
+
interface AnthropicConnectorSdk {
|
|
630
|
+
apiKey: string;
|
|
419
631
|
}
|
|
420
|
-
|
|
632
|
+
/**
|
|
633
|
+
* Create an Anthropic client from resolved connection parameters.
|
|
634
|
+
*
|
|
635
|
+
* @param params - Resolved parameter values keyed by parameter slug ("api-key")
|
|
636
|
+
*/
|
|
637
|
+
declare function createClient$a(params: Record<string, string>): AnthropicConnectorSdk;
|
|
638
|
+
|
|
639
|
+
interface HubSpotConnectorSdk {
|
|
421
640
|
/**
|
|
422
|
-
* Send an authenticated request to the
|
|
423
|
-
*
|
|
424
|
-
* The placeholder `{spreadsheetId}` in the path is automatically replaced
|
|
425
|
-
* with the configured default Spreadsheet ID.
|
|
641
|
+
* Send an authenticated request to the HubSpot API.
|
|
426
642
|
*
|
|
427
|
-
* @param path - API path (e.g., "/
|
|
643
|
+
* @param path - API path (e.g., "/crm/v3/objects/contacts")
|
|
428
644
|
* @param init - Standard RequestInit (same as fetch)
|
|
429
645
|
* @returns Standard Response (same as fetch)
|
|
430
646
|
*/
|
|
431
647
|
request(path: string, init?: RequestInit): Promise<Response>;
|
|
432
|
-
/**
|
|
433
|
-
* Get spreadsheet metadata including sheet names and properties.
|
|
434
|
-
*/
|
|
435
|
-
getSpreadsheet(spreadsheetId?: string): Promise<SpreadsheetMetadata>;
|
|
436
|
-
/**
|
|
437
|
-
* Get cell values for a given range (A1 notation).
|
|
438
|
-
*
|
|
439
|
-
* @param range - A1 notation range (e.g., "Sheet1!A1:D10")
|
|
440
|
-
* @param spreadsheetId - Override the default spreadsheet ID
|
|
441
|
-
*/
|
|
442
|
-
getValues(range: string, spreadsheetId?: string): Promise<ValueRange>;
|
|
443
|
-
/**
|
|
444
|
-
* Get cell values for multiple ranges in one request.
|
|
445
|
-
*
|
|
446
|
-
* @param ranges - Array of A1 notation ranges
|
|
447
|
-
* @param spreadsheetId - Override the default spreadsheet ID
|
|
448
|
-
*/
|
|
449
|
-
batchGetValues(ranges: string[], spreadsheetId?: string): Promise<BatchValueRange>;
|
|
450
648
|
}
|
|
451
649
|
/**
|
|
452
|
-
* Create a
|
|
650
|
+
* Create a HubSpot client from resolved connection parameters.
|
|
453
651
|
*
|
|
454
652
|
* @param params - Resolved parameter values keyed by parameter slug
|
|
455
653
|
* @param fetchFn - Optional fetch function (for OAuth proxy injection)
|
|
456
654
|
*/
|
|
457
|
-
declare function createClient$
|
|
655
|
+
declare function createClient$9(_params: Record<string, string>, fetchFn?: typeof fetch): HubSpotConnectorSdk;
|
|
458
656
|
|
|
459
|
-
interface
|
|
657
|
+
interface StripeConnectorSdk {
|
|
460
658
|
/**
|
|
461
|
-
* Send an authenticated request to the
|
|
462
|
-
*
|
|
463
|
-
* Occurrences of `{propertyId}` in the path are auto-replaced with the configured property ID.
|
|
659
|
+
* Send an authenticated request to the Stripe API.
|
|
464
660
|
*
|
|
465
|
-
* @param path - API path (e.g., "
|
|
661
|
+
* @param path - API path (e.g., "/v1/charges", "/v1/customers")
|
|
466
662
|
* @param init - Standard RequestInit (same as fetch)
|
|
467
663
|
* @returns Standard Response (same as fetch)
|
|
468
664
|
*/
|
|
469
665
|
request(path: string, init?: RequestInit): Promise<Response>;
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* Create a Stripe client from resolved connection parameters.
|
|
669
|
+
*
|
|
670
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
671
|
+
* @param fetchFn - Optional fetch function (for OAuth proxy injection)
|
|
672
|
+
*/
|
|
673
|
+
declare function createClient$8(_params: Record<string, string>, fetchFn?: typeof fetch): StripeConnectorSdk;
|
|
674
|
+
|
|
675
|
+
interface AirtableOauthConnectorSdk {
|
|
470
676
|
/**
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
* @see https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport
|
|
474
|
-
*/
|
|
475
|
-
runReport(request: {
|
|
476
|
-
dateRanges: {
|
|
477
|
-
startDate: string;
|
|
478
|
-
endDate: string;
|
|
479
|
-
}[];
|
|
480
|
-
dimensions?: {
|
|
481
|
-
name: string;
|
|
482
|
-
}[];
|
|
483
|
-
metrics: {
|
|
484
|
-
name: string;
|
|
485
|
-
}[];
|
|
486
|
-
limit?: number;
|
|
487
|
-
offset?: number;
|
|
488
|
-
dimensionFilter?: Record<string, unknown>;
|
|
489
|
-
metricFilter?: Record<string, unknown>;
|
|
490
|
-
orderBys?: Record<string, unknown>[];
|
|
491
|
-
}): Promise<{
|
|
492
|
-
rows: {
|
|
493
|
-
dimensionValues: {
|
|
494
|
-
value: string;
|
|
495
|
-
}[];
|
|
496
|
-
metricValues: {
|
|
497
|
-
value: string;
|
|
498
|
-
}[];
|
|
499
|
-
}[];
|
|
500
|
-
rowCount: number;
|
|
501
|
-
}>;
|
|
502
|
-
/**
|
|
503
|
-
* Get available dimensions and metrics for a property.
|
|
677
|
+
* Send an authenticated request to the Airtable REST API.
|
|
504
678
|
*
|
|
505
|
-
*
|
|
506
|
-
|
|
507
|
-
getMetadata(): Promise<{
|
|
508
|
-
name: string;
|
|
509
|
-
dimensions: {
|
|
510
|
-
apiName: string;
|
|
511
|
-
uiName: string;
|
|
512
|
-
description: string;
|
|
513
|
-
[key: string]: unknown;
|
|
514
|
-
}[];
|
|
515
|
-
metrics: {
|
|
516
|
-
apiName: string;
|
|
517
|
-
uiName: string;
|
|
518
|
-
description: string;
|
|
519
|
-
type: string;
|
|
520
|
-
[key: string]: unknown;
|
|
521
|
-
}[];
|
|
522
|
-
}>;
|
|
523
|
-
/**
|
|
524
|
-
* Run a realtime report.
|
|
679
|
+
* The placeholder `{baseId}` in the path is automatically replaced with the
|
|
680
|
+
* configured Base ID if available.
|
|
525
681
|
*
|
|
526
|
-
* @
|
|
682
|
+
* @param path - API path (e.g., "/{baseId}/TableName", "/meta/bases/{baseId}/tables")
|
|
683
|
+
* @param init - Standard RequestInit (same as fetch)
|
|
684
|
+
* @returns Standard Response (same as fetch)
|
|
527
685
|
*/
|
|
528
|
-
|
|
529
|
-
dimensions?: {
|
|
530
|
-
name: string;
|
|
531
|
-
}[];
|
|
532
|
-
metrics: {
|
|
533
|
-
name: string;
|
|
534
|
-
}[];
|
|
535
|
-
limit?: number;
|
|
536
|
-
dimensionFilter?: Record<string, unknown>;
|
|
537
|
-
metricFilter?: Record<string, unknown>;
|
|
538
|
-
minuteRanges?: {
|
|
539
|
-
startMinutesAgo?: number;
|
|
540
|
-
endMinutesAgo?: number;
|
|
541
|
-
name?: string;
|
|
542
|
-
}[];
|
|
543
|
-
}): Promise<{
|
|
544
|
-
rows: {
|
|
545
|
-
dimensionValues: {
|
|
546
|
-
value: string;
|
|
547
|
-
}[];
|
|
548
|
-
metricValues: {
|
|
549
|
-
value: string;
|
|
550
|
-
}[];
|
|
551
|
-
}[];
|
|
552
|
-
rowCount: number;
|
|
553
|
-
}>;
|
|
686
|
+
request(path: string, init?: RequestInit): Promise<Response>;
|
|
554
687
|
}
|
|
555
688
|
/**
|
|
556
|
-
* Create
|
|
689
|
+
* Create an Airtable OAuth client from resolved connection parameters.
|
|
557
690
|
*
|
|
558
691
|
* @param params - Resolved parameter values keyed by parameter slug
|
|
559
692
|
* @param fetchFn - Optional fetch function (for OAuth proxy injection)
|
|
560
693
|
*/
|
|
561
|
-
declare function createClient$
|
|
694
|
+
declare function createClient$7(params: Record<string, string>, fetchFn?: typeof fetch): AirtableOauthConnectorSdk;
|
|
562
695
|
|
|
563
|
-
interface
|
|
564
|
-
|
|
696
|
+
interface AmplitudeConnectorSdk {
|
|
697
|
+
apiKey: string;
|
|
698
|
+
secretKey: string;
|
|
565
699
|
}
|
|
566
|
-
|
|
700
|
+
/**
|
|
701
|
+
* Create an Amplitude client from resolved connection parameters.
|
|
702
|
+
*
|
|
703
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
704
|
+
*/
|
|
705
|
+
declare function createClient$6(params: Record<string, string>): AmplitudeConnectorSdk;
|
|
706
|
+
|
|
707
|
+
interface AttioConnectorSdk {
|
|
708
|
+
apiKey: string;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Create an Attio client from resolved connection parameters.
|
|
712
|
+
*
|
|
713
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
714
|
+
*/
|
|
715
|
+
declare function createClient$5(params: Record<string, string>): AttioConnectorSdk;
|
|
716
|
+
|
|
717
|
+
interface ShopifyConnectorSdk {
|
|
718
|
+
accessToken: string;
|
|
719
|
+
storeDomain: string;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Create a Shopify client from resolved connection parameters.
|
|
723
|
+
*
|
|
724
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
725
|
+
*/
|
|
726
|
+
declare function createClient$4(params: Record<string, string>): ShopifyConnectorSdk;
|
|
727
|
+
|
|
728
|
+
interface SlackConnectorSdk {
|
|
729
|
+
botToken: string;
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Create a Slack client from resolved connection parameters.
|
|
733
|
+
*
|
|
734
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
735
|
+
*/
|
|
736
|
+
declare function createClient$3(params: Record<string, string>): SlackConnectorSdk;
|
|
737
|
+
|
|
738
|
+
interface ShopifyOauthConnectorSdk {
|
|
567
739
|
/**
|
|
568
|
-
* Send an authenticated request to the
|
|
740
|
+
* Send an authenticated request to the Shopify Admin API.
|
|
569
741
|
*
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
* @param path - API path (e.g., "customers/{customerId}/googleAds:searchStream")
|
|
742
|
+
* @param path - API path (e.g., "/admin/api/2024-10/products.json")
|
|
573
743
|
* @param init - Standard RequestInit (same as fetch)
|
|
574
744
|
* @returns Standard Response (same as fetch)
|
|
575
745
|
*/
|
|
576
746
|
request(path: string, init?: RequestInit): Promise<Response>;
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* Create a Shopify OAuth client from resolved connection parameters.
|
|
750
|
+
*
|
|
751
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
752
|
+
* @param fetchFn - Optional fetch function (for OAuth proxy injection)
|
|
753
|
+
*/
|
|
754
|
+
declare function createClient$2(_params: Record<string, string>, fetchFn?: typeof fetch): ShopifyOauthConnectorSdk;
|
|
755
|
+
|
|
756
|
+
interface MsTeamsConnectorSdk {
|
|
757
|
+
clientId: string;
|
|
758
|
+
clientSecret: string;
|
|
759
|
+
tenantId: string;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Create a Microsoft Teams client from resolved connection parameters.
|
|
763
|
+
*
|
|
764
|
+
* @param params - Resolved parameter values keyed by parameter slug
|
|
765
|
+
*/
|
|
766
|
+
declare function createClient$1(params: Record<string, string>): MsTeamsConnectorSdk;
|
|
767
|
+
|
|
768
|
+
interface MsTeamsOauthConnectorSdk {
|
|
577
769
|
/**
|
|
578
|
-
*
|
|
770
|
+
* Send an authenticated request to the Microsoft Graph API.
|
|
579
771
|
*
|
|
580
|
-
* @param
|
|
581
|
-
* @param
|
|
582
|
-
* @returns
|
|
583
|
-
*
|
|
584
|
-
* @see https://developers.google.com/google-ads/api/docs/query/overview
|
|
585
|
-
*/
|
|
586
|
-
search(query: string, customerId?: string): Promise<GoogleAdsRow[]>;
|
|
587
|
-
/**
|
|
588
|
-
* List accessible customer accounts.
|
|
772
|
+
* @param path - API path (e.g., "/v1.0/me/joinedTeams", "/v1.0/teams/{id}/channels")
|
|
773
|
+
* @param init - Standard RequestInit (same as fetch)
|
|
774
|
+
* @returns Standard Response (same as fetch)
|
|
589
775
|
*/
|
|
590
|
-
|
|
776
|
+
request(path: string, init?: RequestInit): Promise<Response>;
|
|
591
777
|
}
|
|
592
778
|
/**
|
|
593
|
-
* Create a
|
|
779
|
+
* Create a Microsoft Teams OAuth client from resolved connection parameters.
|
|
594
780
|
*
|
|
595
781
|
* @param params - Resolved parameter values keyed by parameter slug
|
|
596
782
|
* @param fetchFn - Optional fetch function (for OAuth proxy injection)
|
|
597
783
|
*/
|
|
598
|
-
declare function createClient(
|
|
784
|
+
declare function createClient(_params: Record<string, string>, fetchFn?: typeof fetch): MsTeamsOauthConnectorSdk;
|
|
599
785
|
|
|
600
|
-
export { type AirtableConnectorSdk, type DbtConnectorSdk, type GoogleAdsConnectorSdk, type GoogleAnalyticsConnectorSdk, type GoogleAnalyticsOauthConnectorSdk, type GoogleSheetsConnectorSdk, type KintoneConnectorSdk, type OpenAIConnectorSdk, type WixStoreConnectorSdk, createClient$
|
|
786
|
+
export { type AirtableConnectorSdk, type AirtableOauthConnectorSdk, type AmplitudeConnectorSdk, type AnthropicConnectorSdk, type AttioConnectorSdk, type DbtConnectorSdk, type GeminiConnectorSdk, type GoogleAdsConnectorSdk, type GoogleAnalyticsConnectorSdk, type GoogleAnalyticsOauthConnectorSdk, type GoogleSheetsConnectorSdk, type HubSpotConnectorSdk, type KintoneApiTokenConnectorSdk, type KintoneConnectorSdk, type MsTeamsConnectorSdk, type MsTeamsOauthConnectorSdk, type OpenAIConnectorSdk, type ShopifyConnectorSdk, type ShopifyOauthConnectorSdk, type SlackConnectorSdk, type StripeConnectorSdk, type WixStoreConnectorSdk, createClient$i as airtable, createClient$7 as airtableOauth, createClient$6 as amplitude, createClient$a as anthropic, createClient$5 as attio, createClient$c as dbt, createClient$b as gemini, createClient$h as googleAds, createClient$g as googleAnalytics, createClient$f as googleAnalyticsOauth, createClient$e as googleSheets, createClient$9 as hubspotOauth, createClient$l as kintone, createClient$k as kintoneApiToken, createClient$1 as msTeams, createClient as msTeamsOauth, createClient$j as openai, createClient$4 as shopify, createClient$2 as shopifyOauth, createClient$3 as slack, createClient$8 as stripeOauth, createClient$d as wixStore };
|