@squadbase/connectors 0.0.5 → 0.0.6
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/index.js +16 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1150,10 +1150,10 @@ var bigquerySetup = new ConnectorSetup({
|
|
|
1150
1150
|
|
|
1151
1151
|
#### \u30B9\u30C6\u30C3\u30D71: \u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u9078\u629E
|
|
1152
1152
|
1. \`${listProjectsToolName}\` \u3092\u547C\u3073\u51FA\u3057\u3066\u3001\u30B5\u30FC\u30D3\u30B9\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u30A2\u30AF\u30BB\u30B9\u53EF\u80FD\u306AGCP\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u4E00\u89A7\u3092\u53D6\u5F97\u3059\u308B
|
|
1153
|
-
2. \`updateConnectionParameters\` \u3092\u547C\u3073\u51FA\
|
|
1153
|
+
2. \`updateConnectionParameters\` \u3092\u547C\u3073\u51FA\u3059:
|
|
1154
1154
|
- \`parameterSlug\`: \`"project-id"\`
|
|
1155
1155
|
- \`options\`: \u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u4E00\u89A7\u3002\u5404 option \u306E \`label\` \u306F \`\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D (id: \u30D7\u30ED\u30B8\u30A7\u30AF\u30C8ID)\` \u306E\u5F62\u5F0F\u3001\`value\` \u306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8ID
|
|
1156
|
-
3. \
|
|
1156
|
+
3. \u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E \`label\` \u304C\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u3057\u3066\u5C4A\u304F\u306E\u3067\u3001\u30B9\u30C6\u30C3\u30D72\u306B\u9032\u3080
|
|
1157
1157
|
|
|
1158
1158
|
#### \u30B9\u30C6\u30C3\u30D72: \u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u9078\u629E
|
|
1159
1159
|
1. \`SELECT schema_name FROM INFORMATION_SCHEMA.SCHEMATA\` \u3092\u5B9F\u884C\u3057\u3066\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u4E00\u89A7\u3092\u53D6\u5F97\u3059\u308B
|
|
@@ -1167,14 +1167,13 @@ var bigquerySetup = new ConnectorSetup({
|
|
|
1167
1167
|
- **\u30C6\u30FC\u30D6\u30EB\u304C2\u3064\u4EE5\u4E0A**: \`askUserQuestion\`\uFF08multiSelect: true\uFF09\u3067\u30E6\u30FC\u30B6\u30FC\u306B\u63D0\u793A\u3057\u3001\u4F7F\u7528\u3059\u308B\u30C6\u30FC\u30D6\u30EB\u3092\u9078\u629E\u3055\u305B\u308B\u3002description \u306B\u306F\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u540D\u3092\u8A18\u8F09\u3059\u308B
|
|
1168
1168
|
- **\u30C6\u30FC\u30D6\u30EB\u304C1\u3064\u3060\u3051**: askUserQuestion \u306F\u4F7F\u308F\u305A\u81EA\u52D5\u63A1\u7528
|
|
1169
1169
|
|
|
1170
|
-
#### \u30B9\u30C6\u30C3\u30D74: \
|
|
1171
|
-
5. \`updateConnectionContext\` \
|
|
1170
|
+
#### \u30B9\u30C6\u30C3\u30D74: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B8C\u4E86
|
|
1171
|
+
5. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
1172
1172
|
- \`dataset\`: \u9078\u629E\u3055\u308C\u305F\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u540D\uFF08\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09
|
|
1173
1173
|
- \`tables\`: \u9078\u629E\u3055\u308C\u305F\u30C6\u30FC\u30D6\u30EB\u540D\uFF08\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09
|
|
1174
1174
|
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
1175
1175
|
|
|
1176
1176
|
### \u91CD\u8981\u306A\u5236\u7D04
|
|
1177
|
-
- askUserQuestion \u306E options \u306B\u306F\u6700\u4F4E2\u4EF6\u5FC5\u8981\u30021\u4EF6\u3057\u304B\u306A\u3044\u5834\u5408\u306F askUserQuestion \u3092\u547C\u3070\u305A\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u306B\u9032\u3080\u3053\u3068
|
|
1178
1177
|
- **\u30C6\u30FC\u30D6\u30EB\u306E\u884C\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30AF\u30A8\u30EA\u306E\u307F\u3002\u305D\u308C\u4EE5\u5916\u306E\u30AF\u30A8\u30EA\u306F\u5B9F\u884C\u7981\u6B62
|
|
1179
1178
|
|
|
1180
1179
|
### \u5B9F\u884C\u65B9\u91DD
|
|
@@ -1188,10 +1187,10 @@ Follow these steps to set up the BigQuery connection.
|
|
|
1188
1187
|
|
|
1189
1188
|
#### Step 1: Project Selection
|
|
1190
1189
|
1. Call \`${listProjectsToolName}\` to get the list of GCP projects accessible with the service account credentials
|
|
1191
|
-
2. Call \`updateConnectionParameters
|
|
1190
|
+
2. Call \`updateConnectionParameters\`:
|
|
1192
1191
|
- \`parameterSlug\`: \`"project-id"\`
|
|
1193
1192
|
- \`options\`: The project list. Each option's \`label\` should be \`Project Name (id: project-id)\`, \`value\` should be the project ID
|
|
1194
|
-
3.
|
|
1193
|
+
3. The \`label\` of the user's selected project will arrive as a message. Proceed to Step 2
|
|
1195
1194
|
|
|
1196
1195
|
#### Step 2: Dataset Selection
|
|
1197
1196
|
1. Run \`SELECT schema_name FROM INFORMATION_SCHEMA.SCHEMATA\` to get the list of datasets
|
|
@@ -1205,14 +1204,13 @@ Follow these steps to set up the BigQuery connection.
|
|
|
1205
1204
|
- **2 or more tables**: Present them to the user via \`askUserQuestion\` (multiSelect: true) and let them select which tables to use. Include the dataset name in the description
|
|
1206
1205
|
- **Exactly 1 table**: Do NOT call askUserQuestion. Auto-select it
|
|
1207
1206
|
|
|
1208
|
-
#### Step 4:
|
|
1209
|
-
5. Call \`updateConnectionContext
|
|
1207
|
+
#### Step 4: Complete Setup
|
|
1208
|
+
5. Call \`updateConnectionContext\`:
|
|
1210
1209
|
- \`dataset\`: Selected dataset name(s) (comma-separated if multiple)
|
|
1211
1210
|
- \`tables\`: Selected table name(s) (comma-separated if multiple)
|
|
1212
1211
|
- \`note\`: Brief description of the setup
|
|
1213
1212
|
|
|
1214
1213
|
### Important Constraints
|
|
1215
|
-
- askUserQuestion options requires at least 2 items. If there is only 1 item, do NOT call askUserQuestion \u2014 proceed to the next step directly
|
|
1216
1214
|
- **Do NOT read table row data**. Only the metadata queries specified in the steps above are allowed. All other queries are forbidden
|
|
1217
1215
|
|
|
1218
1216
|
### Execution Policy
|
|
@@ -1457,10 +1455,10 @@ var bigquerySetup2 = new ConnectorSetup({
|
|
|
1457
1455
|
|
|
1458
1456
|
#### \u30B9\u30C6\u30C3\u30D71: \u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u9078\u629E
|
|
1459
1457
|
1. \`${listProjectsToolName2}\` \u3092\u547C\u3073\u51FA\u3057\u3066\u3001OAuth\u3067\u30A2\u30AF\u30BB\u30B9\u53EF\u80FD\u306AGCP\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u4E00\u89A7\u3092\u53D6\u5F97\u3059\u308B
|
|
1460
|
-
2. \`updateConnectionParameters\` \u3092\u547C\u3073\u51FA\
|
|
1458
|
+
2. \`updateConnectionParameters\` \u3092\u547C\u3073\u51FA\u3059:
|
|
1461
1459
|
- \`parameterSlug\`: \`"project-id"\`
|
|
1462
1460
|
- \`options\`: \u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u4E00\u89A7\u3002\u5404 option \u306E \`label\` \u306F \`\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D (id: \u30D7\u30ED\u30B8\u30A7\u30AF\u30C8ID)\` \u306E\u5F62\u5F0F\u3001\`value\` \u306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8ID
|
|
1463
|
-
3. \
|
|
1461
|
+
3. \u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E \`label\` \u304C\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u3057\u3066\u5C4A\u304F\u306E\u3067\u3001\u30B9\u30C6\u30C3\u30D72\u306B\u9032\u3080
|
|
1464
1462
|
|
|
1465
1463
|
#### \u30B9\u30C6\u30C3\u30D72: \u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u9078\u629E
|
|
1466
1464
|
1. \`SELECT schema_name FROM INFORMATION_SCHEMA.SCHEMATA\` \u3092\u5B9F\u884C\u3057\u3066\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u4E00\u89A7\u3092\u53D6\u5F97\u3059\u308B
|
|
@@ -1474,14 +1472,13 @@ var bigquerySetup2 = new ConnectorSetup({
|
|
|
1474
1472
|
- **\u30C6\u30FC\u30D6\u30EB\u304C2\u3064\u4EE5\u4E0A**: \`askUserQuestion\`\uFF08multiSelect: true\uFF09\u3067\u30E6\u30FC\u30B6\u30FC\u306B\u63D0\u793A\u3057\u3001\u4F7F\u7528\u3059\u308B\u30C6\u30FC\u30D6\u30EB\u3092\u9078\u629E\u3055\u305B\u308B\u3002description \u306B\u306F\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u540D\u3092\u8A18\u8F09\u3059\u308B
|
|
1475
1473
|
- **\u30C6\u30FC\u30D6\u30EB\u304C1\u3064\u3060\u3051**: askUserQuestion \u306F\u4F7F\u308F\u305A\u81EA\u52D5\u63A1\u7528
|
|
1476
1474
|
|
|
1477
|
-
#### \u30B9\u30C6\u30C3\u30D74: \
|
|
1478
|
-
5. \`updateConnectionContext\` \
|
|
1475
|
+
#### \u30B9\u30C6\u30C3\u30D74: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B8C\u4E86
|
|
1476
|
+
5. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
1479
1477
|
- \`dataset\`: \u9078\u629E\u3055\u308C\u305F\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u540D\uFF08\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09
|
|
1480
1478
|
- \`tables\`: \u9078\u629E\u3055\u308C\u305F\u30C6\u30FC\u30D6\u30EB\u540D\uFF08\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09
|
|
1481
1479
|
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
1482
1480
|
|
|
1483
1481
|
### \u91CD\u8981\u306A\u5236\u7D04
|
|
1484
|
-
- askUserQuestion \u306E options \u306B\u306F\u6700\u4F4E2\u4EF6\u5FC5\u8981\u30021\u4EF6\u3057\u304B\u306A\u3044\u5834\u5408\u306F askUserQuestion \u3092\u547C\u3070\u305A\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u306B\u9032\u3080\u3053\u3068
|
|
1485
1482
|
- **\u30C6\u30FC\u30D6\u30EB\u306E\u884C\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30AF\u30A8\u30EA\u306E\u307F\u3002\u305D\u308C\u4EE5\u5916\u306E\u30AF\u30A8\u30EA\u306F\u5B9F\u884C\u7981\u6B62
|
|
1486
1483
|
|
|
1487
1484
|
### \u5B9F\u884C\u65B9\u91DD
|
|
@@ -1495,10 +1492,10 @@ Follow these steps to set up the BigQuery connection.
|
|
|
1495
1492
|
|
|
1496
1493
|
#### Step 1: Project Selection
|
|
1497
1494
|
1. Call \`${listProjectsToolName2}\` to get the list of GCP projects accessible with the OAuth credentials
|
|
1498
|
-
2. Call \`updateConnectionParameters
|
|
1495
|
+
2. Call \`updateConnectionParameters\`:
|
|
1499
1496
|
- \`parameterSlug\`: \`"project-id"\`
|
|
1500
1497
|
- \`options\`: The project list. Each option's \`label\` should be \`Project Name (id: project-id)\`, \`value\` should be the project ID
|
|
1501
|
-
3.
|
|
1498
|
+
3. The \`label\` of the user's selected project will arrive as a message. Proceed to Step 2
|
|
1502
1499
|
|
|
1503
1500
|
#### Step 2: Dataset Selection
|
|
1504
1501
|
1. Run \`SELECT schema_name FROM INFORMATION_SCHEMA.SCHEMATA\` to get the list of datasets
|
|
@@ -1512,14 +1509,13 @@ Follow these steps to set up the BigQuery connection.
|
|
|
1512
1509
|
- **2 or more tables**: Present them to the user via \`askUserQuestion\` (multiSelect: true) and let them select which tables to use. Include the dataset name in the description
|
|
1513
1510
|
- **Exactly 1 table**: Do NOT call askUserQuestion. Auto-select it
|
|
1514
1511
|
|
|
1515
|
-
#### Step 4:
|
|
1516
|
-
5. Call \`updateConnectionContext
|
|
1512
|
+
#### Step 4: Complete Setup
|
|
1513
|
+
5. Call \`updateConnectionContext\`:
|
|
1517
1514
|
- \`dataset\`: Selected dataset name(s) (comma-separated if multiple)
|
|
1518
1515
|
- \`tables\`: Selected table name(s) (comma-separated if multiple)
|
|
1519
1516
|
- \`note\`: Brief description of the setup
|
|
1520
1517
|
|
|
1521
1518
|
### Important Constraints
|
|
1522
|
-
- askUserQuestion options requires at least 2 items. If there is only 1 item, do NOT call askUserQuestion \u2014 proceed to the next step directly
|
|
1523
1519
|
- **Do NOT read table row data**. Only the metadata queries specified in the steps above are allowed. All other queries are forbidden
|
|
1524
1520
|
|
|
1525
1521
|
### Execution Policy
|