@plaidev/karte-action-sdk 1.1.222 → 1.1.223

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.
@@ -192,25 +192,19 @@ type ActionTableQueryParams = {
192
192
  /**
193
193
  * アクションテーブルの設定情報
194
194
  *
195
- * @public
195
+ * @param api_key - API Key
196
+ * @param table - テーブル名
197
+ * @param endpoint - エンドポイント / 指定がない場合はデフォルトのエンドポイントを使用します。検証用途以外での通常利用では指定なしで大丈夫です。
196
198
  */
197
199
  type CollectionConfig = {
198
- /**
199
- * APIキー
200
- */
201
200
  api_key: string;
202
- /**
203
- * テーブル名
204
- */
205
201
  table: string;
206
- /**
207
- * エンドポイント
208
- */ endpoint?: string;
202
+ endpoint?: string;
209
203
  };
210
204
  /**
211
205
  * アクションテーブルを管理するメソッドを取得する
212
206
  *
213
- * @param config - 設定情報
207
+ * @param config - アクションテーブル設定情報
214
208
  *
215
209
  * @returns メソッドを返します
216
210
  *
@@ -1761,25 +1755,19 @@ declare namespace widget {
1761
1755
  /**
1762
1756
  * アクションテーブルの設定情報
1763
1757
  *
1764
- * @public
1758
+ * @param api_key - API Key
1759
+ * @param table - テーブル名
1760
+ * @param endpoint - エンドポイント / 指定がない場合はデフォルトのエンドポイントを使用します。検証用途以外での通常利用では指定なしで大丈夫です。
1765
1761
  */
1766
1762
  type CollectionConfig = {
1767
- /**
1768
- * APIキー
1769
- */
1770
1763
  api_key: string;
1771
- /**
1772
- * テーブル名
1773
- */
1774
1764
  table: string;
1775
- /**
1776
- * エンドポイント
1777
- */ endpoint?: string;
1765
+ endpoint?: string;
1778
1766
  };
1779
1767
  /**
1780
1768
  * アクションテーブルを管理するメソッドを取得する
1781
1769
  *
1782
- * @param config - 設定情報
1770
+ * @param config - アクションテーブル設定情報
1783
1771
  *
1784
1772
  * @returns メソッドを返します
1785
1773
  *
@@ -1338,7 +1338,7 @@ const DEFAULT_COLLECTION_ENDPOINT = typeof __FLYER_GEN_COLLECTION_API_ENDPOINT__
1338
1338
  /**
1339
1339
  * アクションテーブルを管理するメソッドを取得する
1340
1340
  *
1341
- * @param config - 設定情報
1341
+ * @param config - アクションテーブル設定情報
1342
1342
  *
1343
1343
  * @returns メソッドを返します
1344
1344
  *
@@ -1349,6 +1349,14 @@ function collection$1(config) {
1349
1349
  const api_key = config.api_key;
1350
1350
  const table = config.table;
1351
1351
  return {
1352
+ /**
1353
+ * キーを1つ、または複数指定して、対応するアクションテーブルの行を取得する
1354
+ *
1355
+ * @param key - 取得する行のキーを一つ、または複数配列で指定
1356
+ * @param cb - テーブルの行を取得した後に実行するcallback関数
1357
+ *
1358
+ * @public
1359
+ */
1352
1360
  get(key, cb) {
1353
1361
  if (Array.isArray(key)) {
1354
1362
  return request(`${endpoint}/getByKeys`, {
@@ -1358,15 +1366,25 @@ function collection$1(config) {
1358
1366
  }, cb);
1359
1367
  }
1360
1368
  else {
1361
- request(`${endpoint}/getByKey`, {
1369
+ return request(`${endpoint}/getByKey`, {
1362
1370
  api_key,
1363
1371
  name: table,
1364
1372
  key,
1365
1373
  }, cb);
1366
1374
  }
1367
1375
  },
1376
+ /**
1377
+ * クエリーを指定して、アクションテーブルから行を取得する
1378
+ * なお、クエリーは事前に管理画面で設定しておく必要があります。
1379
+ *
1380
+ * @param query_name - クエリー名
1381
+ * @param params - クエリーに指定するパラメーター。 `{key: value}` の形式で指定
1382
+ * @param cb - テーブルの行を取得した後に実行するcallback関数
1383
+ *
1384
+ * @public
1385
+ */
1368
1386
  getByQuery(query_name, params, options, cb) {
1369
- request(`${endpoint}/getByQuery`, {
1387
+ return request(`${endpoint}/getByQuery`, {
1370
1388
  api_key,
1371
1389
  name: table,
1372
1390
  query_name,
@@ -1374,6 +1392,7 @@ function collection$1(config) {
1374
1392
  options,
1375
1393
  }, cb);
1376
1394
  },
1395
+ /** @internal */
1377
1396
  set(key, value, cb) {
1378
1397
  request(`${endpoint}/set`, {
1379
1398
  api_key,
@@ -192,25 +192,19 @@ type ActionTableQueryParams = {
192
192
  /**
193
193
  * アクションテーブルの設定情報
194
194
  *
195
- * @public
195
+ * @param api_key - API Key
196
+ * @param table - テーブル名
197
+ * @param endpoint - エンドポイント / 指定がない場合はデフォルトのエンドポイントを使用します。検証用途以外での通常利用では指定なしで大丈夫です。
196
198
  */
197
199
  type CollectionConfig = {
198
- /**
199
- * APIキー
200
- */
201
200
  api_key: string;
202
- /**
203
- * テーブル名
204
- */
205
201
  table: string;
206
- /**
207
- * エンドポイント
208
- */ endpoint?: string;
202
+ endpoint?: string;
209
203
  };
210
204
  /**
211
205
  * アクションテーブルを管理するメソッドを取得する
212
206
  *
213
- * @param config - 設定情報
207
+ * @param config - アクションテーブル設定情報
214
208
  *
215
209
  * @returns メソッドを返します
216
210
  *
@@ -1761,25 +1755,19 @@ declare namespace widget {
1761
1755
  /**
1762
1756
  * アクションテーブルの設定情報
1763
1757
  *
1764
- * @public
1758
+ * @param api_key - API Key
1759
+ * @param table - テーブル名
1760
+ * @param endpoint - エンドポイント / 指定がない場合はデフォルトのエンドポイントを使用します。検証用途以外での通常利用では指定なしで大丈夫です。
1765
1761
  */
1766
1762
  type CollectionConfig = {
1767
- /**
1768
- * APIキー
1769
- */
1770
1763
  api_key: string;
1771
- /**
1772
- * テーブル名
1773
- */
1774
1764
  table: string;
1775
- /**
1776
- * エンドポイント
1777
- */ endpoint?: string;
1765
+ endpoint?: string;
1778
1766
  };
1779
1767
  /**
1780
1768
  * アクションテーブルを管理するメソッドを取得する
1781
1769
  *
1782
- * @param config - 設定情報
1770
+ * @param config - アクションテーブル設定情報
1783
1771
  *
1784
1772
  * @returns メソッドを返します
1785
1773
  *
package/dist/index.es.js CHANGED
@@ -1361,7 +1361,7 @@ const DEFAULT_COLLECTION_ENDPOINT = typeof __FLYER_GEN_COLLECTION_API_ENDPOINT__
1361
1361
  /**
1362
1362
  * アクションテーブルを管理するメソッドを取得する
1363
1363
  *
1364
- * @param config - 設定情報
1364
+ * @param config - アクションテーブル設定情報
1365
1365
  *
1366
1366
  * @returns メソッドを返します
1367
1367
  *
@@ -1372,6 +1372,14 @@ function collection$1(config) {
1372
1372
  const api_key = config.api_key;
1373
1373
  const table = config.table;
1374
1374
  return {
1375
+ /**
1376
+ * キーを1つ、または複数指定して、対応するアクションテーブルの行を取得する
1377
+ *
1378
+ * @param key - 取得する行のキーを一つ、または複数配列で指定
1379
+ * @param cb - テーブルの行を取得した後に実行するcallback関数
1380
+ *
1381
+ * @public
1382
+ */
1375
1383
  get(key, cb) {
1376
1384
  if (Array.isArray(key)) {
1377
1385
  return request(`${endpoint}/getByKeys`, {
@@ -1381,15 +1389,25 @@ function collection$1(config) {
1381
1389
  }, cb);
1382
1390
  }
1383
1391
  else {
1384
- request(`${endpoint}/getByKey`, {
1392
+ return request(`${endpoint}/getByKey`, {
1385
1393
  api_key,
1386
1394
  name: table,
1387
1395
  key,
1388
1396
  }, cb);
1389
1397
  }
1390
1398
  },
1399
+ /**
1400
+ * クエリーを指定して、アクションテーブルから行を取得する
1401
+ * なお、クエリーは事前に管理画面で設定しておく必要があります。
1402
+ *
1403
+ * @param query_name - クエリー名
1404
+ * @param params - クエリーに指定するパラメーター。 `{key: value}` の形式で指定
1405
+ * @param cb - テーブルの行を取得した後に実行するcallback関数
1406
+ *
1407
+ * @public
1408
+ */
1391
1409
  getByQuery(query_name, params, options, cb) {
1392
- request(`${endpoint}/getByQuery`, {
1410
+ return request(`${endpoint}/getByQuery`, {
1393
1411
  api_key,
1394
1412
  name: table,
1395
1413
  query_name,
@@ -1397,6 +1415,7 @@ function collection$1(config) {
1397
1415
  options,
1398
1416
  }, cb);
1399
1417
  },
1418
+ /** @internal */
1400
1419
  set(key, value, cb) {
1401
1420
  request(`${endpoint}/set`, {
1402
1421
  api_key,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.222",
3
+ "version": "1.1.223",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",
@@ -56,7 +56,6 @@
56
56
  "devDependencies": {
57
57
  "@microsoft/api-documenter": "7.19.28",
58
58
  "@microsoft/api-extractor": "7.33.8",
59
- "@plaidev/action-compiler": "workspace:*",
60
59
  "@rollup/plugin-alias": "^4.0.0",
61
60
  "@rollup/plugin-commonjs": "^23.0.1",
62
61
  "@rollup/plugin-json": "^5.0.0",
@@ -96,7 +95,14 @@
96
95
  "tsx": "^3.12.3",
97
96
  "typescript": "^4.7.4",
98
97
  "vitepress": "1.0.0-alpha.30",
99
- "vitest": "latest"
98
+ "vitest": "latest",
99
+ "@plaidev/action-compiler": "0.4.231"
100
+ },
101
+ "publishConfig": {
102
+ "access": "public"
103
+ },
104
+ "dependencies": {
105
+ "@rollup/plugin-image": "^3.0.2"
100
106
  },
101
107
  "scripts": {
102
108
  "dev": "tsx ./scripts/preview.ts",
@@ -125,11 +131,5 @@
125
131
  "test:update": "vitest -u",
126
132
  "coverage": "vitest run test --coverage",
127
133
  "icons:update": "tsx ./scripts/update-icons.ts && prettier -w ./src/icons.ts"
128
- },
129
- "publishConfig": {
130
- "access": "public"
131
- },
132
- "dependencies": {
133
- "@rollup/plugin-image": "^3.0.2"
134
134
  }
135
- }
135
+ }