@squadbase/connectors 0.1.1 → 0.1.2-dev.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.
@@ -201,6 +201,54 @@ var parameters6 = {
201
201
  })
202
202
  };
203
203
 
204
+ // src/connectors/google-sheets-oauth/parameters.ts
205
+ var parameters7 = {
206
+ spreadsheetId: new ParameterDefinition({
207
+ slug: "spreadsheet-id",
208
+ name: "Default Spreadsheet ID",
209
+ description: "The ID of the default Google Spreadsheet. Can be found in the spreadsheet URL: https://docs.google.com/spreadsheets/d/{spreadsheetId}/edit",
210
+ envVarBaseKey: "GOOGLE_SHEETS_OAUTH_SPREADSHEET_ID",
211
+ type: "text",
212
+ secret: false,
213
+ required: false
214
+ })
215
+ };
216
+
217
+ // src/connectors/google-analytics-oauth/parameters.ts
218
+ var parameters8 = {
219
+ propertyId: new ParameterDefinition({
220
+ slug: "property-id",
221
+ name: "Google Analytics Property ID",
222
+ description: "The Google Analytics 4 property ID (e.g., 123456789). Can be found in GA4 Admin > Property Settings.",
223
+ envVarBaseKey: "GA_OAUTH_PROPERTY_ID",
224
+ type: "text",
225
+ secret: false,
226
+ required: false
227
+ })
228
+ };
229
+
230
+ // src/connectors/google-ads-oauth/parameters.ts
231
+ var parameters9 = {
232
+ customerId: new ParameterDefinition({
233
+ slug: "customer-id",
234
+ name: "Google Ads Customer ID",
235
+ description: "The Google Ads customer ID (e.g., 123-456-7890 or 1234567890). Can be found in the top-right corner of your Google Ads account.",
236
+ envVarBaseKey: "GOOGLE_ADS_OAUTH_CUSTOMER_ID",
237
+ type: "text",
238
+ secret: false,
239
+ required: false
240
+ }),
241
+ developerToken: new ParameterDefinition({
242
+ slug: "developer-token",
243
+ name: "Google Ads Developer Token",
244
+ description: "The developer token for accessing the Google Ads API. Required for all API requests.",
245
+ envVarBaseKey: "GOOGLE_ADS_DEVELOPER_TOKEN",
246
+ type: "text",
247
+ secret: true,
248
+ required: true
249
+ })
250
+ };
251
+
204
252
  export {
205
253
  ParameterDefinition,
206
254
  parameters,
@@ -208,5 +256,8 @@ export {
208
256
  parameters3,
209
257
  parameters4,
210
258
  parameters5,
211
- parameters6
259
+ parameters6,
260
+ parameters7,
261
+ parameters8,
262
+ parameters9
212
263
  };
package/dist/index.d.ts CHANGED
@@ -502,6 +502,102 @@ declare const connectors: {
502
502
  openai: ConnectorPlugin<{
503
503
  apiKey: ParameterDefinition;
504
504
  }, {}>;
505
+ googleSheetsOauth: ConnectorPlugin<{
506
+ spreadsheetId: ParameterDefinition;
507
+ }, {
508
+ request: ConnectorTool<{
509
+ connectionId: string;
510
+ method: "GET";
511
+ path: string;
512
+ toolUseIntent?: string | undefined;
513
+ queryParams?: Record<string, string> | undefined;
514
+ }, {
515
+ success: true;
516
+ status: number;
517
+ data: Record<string, unknown>;
518
+ } | {
519
+ success: false;
520
+ error: string;
521
+ }>;
522
+ }>;
523
+ googleAnalyticsOauth: ConnectorPlugin<{
524
+ propertyId: ParameterDefinition;
525
+ }, {
526
+ request: ConnectorTool<{
527
+ connectionId: string;
528
+ method: "GET" | "POST";
529
+ path: string;
530
+ toolUseIntent?: string | undefined;
531
+ body?: Record<string, unknown> | undefined;
532
+ }, {
533
+ success: true;
534
+ status: number;
535
+ data: Record<string, unknown>;
536
+ } | {
537
+ success: false;
538
+ error: string;
539
+ }>;
540
+ listAccounts: ConnectorTool<{
541
+ connectionId: string;
542
+ toolUseIntent?: string | undefined;
543
+ }, {
544
+ success: true;
545
+ accounts: {
546
+ name: string;
547
+ displayName: string;
548
+ }[];
549
+ } | {
550
+ success: false;
551
+ error: string;
552
+ }>;
553
+ listProperties: ConnectorTool<{
554
+ connectionId: string;
555
+ accountName: string;
556
+ toolUseIntent?: string | undefined;
557
+ }, {
558
+ success: true;
559
+ properties: {
560
+ name: string;
561
+ displayName: string;
562
+ propertyId: string;
563
+ }[];
564
+ } | {
565
+ success: false;
566
+ error: string;
567
+ }>;
568
+ }>;
569
+ googleAdsOauth: ConnectorPlugin<{
570
+ customerId: ParameterDefinition;
571
+ developerToken: ParameterDefinition;
572
+ }, {
573
+ request: ConnectorTool<{
574
+ connectionId: string;
575
+ method: "GET" | "POST";
576
+ path: string;
577
+ toolUseIntent?: string | undefined;
578
+ body?: Record<string, unknown> | undefined;
579
+ }, {
580
+ success: true;
581
+ status: number;
582
+ data: unknown;
583
+ } | {
584
+ success: false;
585
+ error: string;
586
+ }>;
587
+ listCustomers: ConnectorTool<{
588
+ connectionId: string;
589
+ toolUseIntent?: string | undefined;
590
+ }, {
591
+ success: true;
592
+ customers: {
593
+ customerId: string;
594
+ descriptiveName: string;
595
+ }[];
596
+ } | {
597
+ success: false;
598
+ error: string;
599
+ }>;
600
+ }>;
505
601
  };
506
602
 
507
603
  declare const snowflakeConnector: ConnectorPlugin<{
@@ -867,4 +963,103 @@ declare const openaiConnector: ConnectorPlugin<{
867
963
  apiKey: ParameterDefinition;
868
964
  }, {}>;
869
965
 
870
- export { AUTH_TYPES, type ConnectionCheckResult, ConnectorPlugin, ConnectorSetup, ConnectorTool, type ConnectorToolsConfig, ParameterDefinition, type ProxyPolicy, type ProxyPolicyRule, type ReleaseFlag, type SetupLanguage, airtableConnector, awsAthenaConnector, bigqueryConnector, bigqueryOauthConnector, connectors, databricksConnector, dbtConnector, googleAnalyticsConnector, kintoneConnector, mysqlConnector, openaiConnector, postgresqlConnector, redshiftConnector, snowflakeConnector, snowflakePatConnector, squadbaseDbConnector, wixStoreConnector };
966
+ declare const googleSheetsOauthConnector: ConnectorPlugin<{
967
+ spreadsheetId: ParameterDefinition;
968
+ }, {
969
+ request: ConnectorTool<{
970
+ connectionId: string;
971
+ method: "GET";
972
+ path: string;
973
+ toolUseIntent?: string | undefined;
974
+ queryParams?: Record<string, string> | undefined;
975
+ }, {
976
+ success: true;
977
+ status: number;
978
+ data: Record<string, unknown>;
979
+ } | {
980
+ success: false;
981
+ error: string;
982
+ }>;
983
+ }>;
984
+
985
+ declare const googleAnalyticsOauthConnector: ConnectorPlugin<{
986
+ propertyId: ParameterDefinition;
987
+ }, {
988
+ request: ConnectorTool<{
989
+ connectionId: string;
990
+ method: "GET" | "POST";
991
+ path: string;
992
+ toolUseIntent?: string | undefined;
993
+ body?: Record<string, unknown> | undefined;
994
+ }, {
995
+ success: true;
996
+ status: number;
997
+ data: Record<string, unknown>;
998
+ } | {
999
+ success: false;
1000
+ error: string;
1001
+ }>;
1002
+ listAccounts: ConnectorTool<{
1003
+ connectionId: string;
1004
+ toolUseIntent?: string | undefined;
1005
+ }, {
1006
+ success: true;
1007
+ accounts: {
1008
+ name: string;
1009
+ displayName: string;
1010
+ }[];
1011
+ } | {
1012
+ success: false;
1013
+ error: string;
1014
+ }>;
1015
+ listProperties: ConnectorTool<{
1016
+ connectionId: string;
1017
+ accountName: string;
1018
+ toolUseIntent?: string | undefined;
1019
+ }, {
1020
+ success: true;
1021
+ properties: {
1022
+ name: string;
1023
+ displayName: string;
1024
+ propertyId: string;
1025
+ }[];
1026
+ } | {
1027
+ success: false;
1028
+ error: string;
1029
+ }>;
1030
+ }>;
1031
+
1032
+ declare const googleAdsOauthConnector: ConnectorPlugin<{
1033
+ customerId: ParameterDefinition;
1034
+ developerToken: ParameterDefinition;
1035
+ }, {
1036
+ request: ConnectorTool<{
1037
+ connectionId: string;
1038
+ method: "GET" | "POST";
1039
+ path: string;
1040
+ toolUseIntent?: string | undefined;
1041
+ body?: Record<string, unknown> | undefined;
1042
+ }, {
1043
+ success: true;
1044
+ status: number;
1045
+ data: unknown;
1046
+ } | {
1047
+ success: false;
1048
+ error: string;
1049
+ }>;
1050
+ listCustomers: ConnectorTool<{
1051
+ connectionId: string;
1052
+ toolUseIntent?: string | undefined;
1053
+ }, {
1054
+ success: true;
1055
+ customers: {
1056
+ customerId: string;
1057
+ descriptiveName: string;
1058
+ }[];
1059
+ } | {
1060
+ success: false;
1061
+ error: string;
1062
+ }>;
1063
+ }>;
1064
+
1065
+ export { AUTH_TYPES, type ConnectionCheckResult, ConnectorPlugin, ConnectorSetup, ConnectorTool, type ConnectorToolsConfig, ParameterDefinition, type ProxyPolicy, type ProxyPolicyRule, type ReleaseFlag, type SetupLanguage, airtableConnector, awsAthenaConnector, bigqueryConnector, bigqueryOauthConnector, connectors, databricksConnector, dbtConnector, googleAdsOauthConnector, googleAnalyticsConnector, googleAnalyticsOauthConnector, googleSheetsOauthConnector, kintoneConnector, mysqlConnector, openaiConnector, postgresqlConnector, redshiftConnector, snowflakeConnector, snowflakePatConnector, squadbaseDbConnector, wixStoreConnector };