@squadbase/connectors 0.1.1 → 0.1.2-dev.1

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.
@@ -64,8 +64,30 @@ var parameters = {
64
64
  })
65
65
  };
66
66
 
67
- // src/connectors/google-analytics/parameters.ts
67
+ // src/connectors/google-ads-oauth/parameters.ts
68
68
  var parameters2 = {
69
+ customerId: new ParameterDefinition({
70
+ slug: "customer-id",
71
+ name: "Google Ads Customer ID",
72
+ 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.",
73
+ envVarBaseKey: "GOOGLE_ADS_OAUTH_CUSTOMER_ID",
74
+ type: "text",
75
+ secret: false,
76
+ required: false
77
+ }),
78
+ developerToken: new ParameterDefinition({
79
+ slug: "developer-token",
80
+ name: "Google Ads Developer Token",
81
+ description: "The developer token for accessing the Google Ads API. Required for all API requests.",
82
+ envVarBaseKey: "GOOGLE_ADS_DEVELOPER_TOKEN",
83
+ type: "text",
84
+ secret: true,
85
+ required: false
86
+ })
87
+ };
88
+
89
+ // src/connectors/google-analytics/parameters.ts
90
+ var parameters3 = {
69
91
  serviceAccountKeyJsonBase64: new ParameterDefinition({
70
92
  slug: "service-account-key-json-base64",
71
93
  name: "Google Cloud Service Account JSON",
@@ -86,8 +108,34 @@ var parameters2 = {
86
108
  })
87
109
  };
88
110
 
111
+ // src/connectors/google-analytics-oauth/parameters.ts
112
+ var parameters4 = {
113
+ propertyId: new ParameterDefinition({
114
+ slug: "property-id",
115
+ name: "Google Analytics Property ID",
116
+ description: "The Google Analytics 4 property ID (e.g., 123456789). Can be found in GA4 Admin > Property Settings.",
117
+ envVarBaseKey: "GA_OAUTH_PROPERTY_ID",
118
+ type: "text",
119
+ secret: false,
120
+ required: false
121
+ })
122
+ };
123
+
124
+ // src/connectors/google-sheets-oauth/parameters.ts
125
+ var parameters5 = {
126
+ spreadsheetId: new ParameterDefinition({
127
+ slug: "spreadsheet-id",
128
+ name: "Default Spreadsheet ID",
129
+ description: "The ID of the default Google Spreadsheet. Can be found in the spreadsheet URL: https://docs.google.com/spreadsheets/d/{spreadsheetId}/edit",
130
+ envVarBaseKey: "GOOGLE_SHEETS_OAUTH_SPREADSHEET_ID",
131
+ type: "text",
132
+ secret: false,
133
+ required: false
134
+ })
135
+ };
136
+
89
137
  // src/connectors/kintone/parameters.ts
90
- var parameters3 = {
138
+ var parameters6 = {
91
139
  baseUrl: new ParameterDefinition({
92
140
  slug: "base-url",
93
141
  name: "kintone Base URL",
@@ -118,7 +166,7 @@ var parameters3 = {
118
166
  };
119
167
 
120
168
  // src/connectors/wix-store/parameters.ts
121
- var parameters4 = {
169
+ var parameters7 = {
122
170
  accountId: new ParameterDefinition({
123
171
  slug: "account-id",
124
172
  name: "Account ID",
@@ -149,7 +197,7 @@ var parameters4 = {
149
197
  };
150
198
 
151
199
  // src/connectors/dbt/parameters.ts
152
- var parameters5 = {
200
+ var parameters8 = {
153
201
  host: new ParameterDefinition({
154
202
  slug: "host",
155
203
  name: "dbt Cloud Host",
@@ -189,7 +237,7 @@ var parameters5 = {
189
237
  };
190
238
 
191
239
  // src/connectors/openai/parameters.ts
192
- var parameters6 = {
240
+ var parameters9 = {
193
241
  apiKey: new ParameterDefinition({
194
242
  slug: "api-key",
195
243
  name: "OpenAI API Key",
@@ -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
@@ -404,6 +404,38 @@ declare const connectors: {
404
404
  error: string;
405
405
  }>;
406
406
  }>;
407
+ googleAdsOauth: ConnectorPlugin<{
408
+ customerId: ParameterDefinition;
409
+ developerToken: ParameterDefinition;
410
+ }, {
411
+ request: ConnectorTool<{
412
+ connectionId: string;
413
+ method: "GET" | "POST";
414
+ path: string;
415
+ toolUseIntent?: string | undefined;
416
+ body?: Record<string, unknown> | undefined;
417
+ }, {
418
+ success: true;
419
+ status: number;
420
+ data: unknown;
421
+ } | {
422
+ success: false;
423
+ error: string;
424
+ }>;
425
+ listCustomers: ConnectorTool<{
426
+ connectionId: string;
427
+ toolUseIntent?: string | undefined;
428
+ }, {
429
+ success: true;
430
+ customers: {
431
+ customerId: string;
432
+ descriptiveName: string;
433
+ }[];
434
+ } | {
435
+ success: false;
436
+ error: string;
437
+ }>;
438
+ }>;
407
439
  googleAnalytics: ConnectorPlugin<{
408
440
  serviceAccountKeyJsonBase64: ParameterDefinition;
409
441
  propertyId: ParameterDefinition;
@@ -423,6 +455,70 @@ declare const connectors: {
423
455
  error: string;
424
456
  }>;
425
457
  }>;
458
+ googleAnalyticsOauth: ConnectorPlugin<{
459
+ propertyId: ParameterDefinition;
460
+ }, {
461
+ request: ConnectorTool<{
462
+ connectionId: string;
463
+ method: "GET" | "POST";
464
+ path: string;
465
+ toolUseIntent?: string | undefined;
466
+ body?: Record<string, unknown> | undefined;
467
+ }, {
468
+ success: true;
469
+ status: number;
470
+ data: Record<string, unknown>;
471
+ } | {
472
+ success: false;
473
+ error: string;
474
+ }>;
475
+ listAccounts: ConnectorTool<{
476
+ connectionId: string;
477
+ toolUseIntent?: string | undefined;
478
+ }, {
479
+ success: true;
480
+ accounts: {
481
+ name: string;
482
+ displayName: string;
483
+ }[];
484
+ } | {
485
+ success: false;
486
+ error: string;
487
+ }>;
488
+ listProperties: ConnectorTool<{
489
+ connectionId: string;
490
+ accountName: string;
491
+ toolUseIntent?: string | undefined;
492
+ }, {
493
+ success: true;
494
+ properties: {
495
+ name: string;
496
+ displayName: string;
497
+ propertyId: string;
498
+ }[];
499
+ } | {
500
+ success: false;
501
+ error: string;
502
+ }>;
503
+ }>;
504
+ googleSheetsOauth: ConnectorPlugin<{
505
+ spreadsheetId: ParameterDefinition;
506
+ }, {
507
+ request: ConnectorTool<{
508
+ connectionId: string;
509
+ method: "GET";
510
+ path: string;
511
+ toolUseIntent?: string | undefined;
512
+ queryParams?: Record<string, string> | undefined;
513
+ }, {
514
+ success: true;
515
+ status: number;
516
+ data: Record<string, unknown>;
517
+ } | {
518
+ success: false;
519
+ error: string;
520
+ }>;
521
+ }>;
426
522
  airtable: ConnectorPlugin<{
427
523
  baseId: ParameterDefinition;
428
524
  apiKey: ParameterDefinition;
@@ -763,6 +859,39 @@ declare const airtableConnector: ConnectorPlugin<{
763
859
  }>;
764
860
  }>;
765
861
 
862
+ declare const googleAdsOauthConnector: ConnectorPlugin<{
863
+ customerId: ParameterDefinition;
864
+ developerToken: ParameterDefinition;
865
+ }, {
866
+ request: ConnectorTool<{
867
+ connectionId: string;
868
+ method: "GET" | "POST";
869
+ path: string;
870
+ toolUseIntent?: string | undefined;
871
+ body?: Record<string, unknown> | undefined;
872
+ }, {
873
+ success: true;
874
+ status: number;
875
+ data: unknown;
876
+ } | {
877
+ success: false;
878
+ error: string;
879
+ }>;
880
+ listCustomers: ConnectorTool<{
881
+ connectionId: string;
882
+ toolUseIntent?: string | undefined;
883
+ }, {
884
+ success: true;
885
+ customers: {
886
+ customerId: string;
887
+ descriptiveName: string;
888
+ }[];
889
+ } | {
890
+ success: false;
891
+ error: string;
892
+ }>;
893
+ }>;
894
+
766
895
  declare const googleAnalyticsConnector: ConnectorPlugin<{
767
896
  serviceAccountKeyJsonBase64: ParameterDefinition;
768
897
  propertyId: ParameterDefinition;
@@ -783,6 +912,72 @@ declare const googleAnalyticsConnector: ConnectorPlugin<{
783
912
  }>;
784
913
  }>;
785
914
 
915
+ declare const googleAnalyticsOauthConnector: ConnectorPlugin<{
916
+ propertyId: ParameterDefinition;
917
+ }, {
918
+ request: ConnectorTool<{
919
+ connectionId: string;
920
+ method: "GET" | "POST";
921
+ path: string;
922
+ toolUseIntent?: string | undefined;
923
+ body?: Record<string, unknown> | undefined;
924
+ }, {
925
+ success: true;
926
+ status: number;
927
+ data: Record<string, unknown>;
928
+ } | {
929
+ success: false;
930
+ error: string;
931
+ }>;
932
+ listAccounts: ConnectorTool<{
933
+ connectionId: string;
934
+ toolUseIntent?: string | undefined;
935
+ }, {
936
+ success: true;
937
+ accounts: {
938
+ name: string;
939
+ displayName: string;
940
+ }[];
941
+ } | {
942
+ success: false;
943
+ error: string;
944
+ }>;
945
+ listProperties: ConnectorTool<{
946
+ connectionId: string;
947
+ accountName: string;
948
+ toolUseIntent?: string | undefined;
949
+ }, {
950
+ success: true;
951
+ properties: {
952
+ name: string;
953
+ displayName: string;
954
+ propertyId: string;
955
+ }[];
956
+ } | {
957
+ success: false;
958
+ error: string;
959
+ }>;
960
+ }>;
961
+
962
+ declare const googleSheetsOauthConnector: ConnectorPlugin<{
963
+ spreadsheetId: ParameterDefinition;
964
+ }, {
965
+ request: ConnectorTool<{
966
+ connectionId: string;
967
+ method: "GET";
968
+ path: string;
969
+ toolUseIntent?: string | undefined;
970
+ queryParams?: Record<string, string> | undefined;
971
+ }, {
972
+ success: true;
973
+ status: number;
974
+ data: Record<string, unknown>;
975
+ } | {
976
+ success: false;
977
+ error: string;
978
+ }>;
979
+ }>;
980
+
786
981
  declare const kintoneConnector: ConnectorPlugin<{
787
982
  baseUrl: ParameterDefinition;
788
983
  username: ParameterDefinition;
@@ -867,4 +1062,4 @@ declare const openaiConnector: ConnectorPlugin<{
867
1062
  apiKey: ParameterDefinition;
868
1063
  }, {}>;
869
1064
 
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 };
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 };