@plaidev/karte-action-sdk 1.1.209-28223230.0a8e06d1 → 1.1.209-28225816.f4be3caa

Sign up to get free protection for your applications and to get access to all the features.
@@ -245,7 +245,7 @@ type ActionTableRowsRequestConfig = VariableQuery & {
245
245
  resolver: "action-table-rows";
246
246
  query: {
247
247
  table_name: string;
248
- key: Array<string>;
248
+ keys: Array<string>;
249
249
  default_value?: Array<ActionTableResult>;
250
250
  };
251
251
  preview_value?: Array<ActionTableResult>;
@@ -1712,7 +1712,7 @@ declare namespace widget {
1712
1712
  resolver: "action-table-rows";
1713
1713
  query: {
1714
1714
  table_name: string;
1715
- key: Array<string>;
1715
+ keys: Array<string>;
1716
1716
  default_value?: Array<ActionTableResult>;
1717
1717
  };
1718
1718
  preview_value?: Array<ActionTableResult>;
@@ -1387,14 +1387,14 @@ const loadActionTableRow = async (config, data, api_key, endpoint) => new Promis
1387
1387
  });
1388
1388
  /** @internal */
1389
1389
  const loadActionTableRows = async (config, data, api_key, endpoint) => new Promise((resolve, reject) => {
1390
- if (config.query.key == null) {
1390
+ if (config.query.keys == null) {
1391
1391
  console.warn('key is not defined.');
1392
1392
  return reject('key is not defined.');
1393
1393
  }
1394
1394
  const defaultValue = config.query.default_value ?? null;
1395
1395
  const keys = [];
1396
1396
  let hasError = false;
1397
- const originalKeys = Array.isArray(config.query.key) ? config.query.key : [config.query.key];
1397
+ const originalKeys = Array.isArray(config.query.keys) ? config.query.keys : [config.query.keys];
1398
1398
  originalKeys.forEach(key => {
1399
1399
  const d = data[key];
1400
1400
  if (d == null || d === '') {
@@ -245,7 +245,7 @@ type ActionTableRowsRequestConfig = VariableQuery & {
245
245
  resolver: "action-table-rows";
246
246
  query: {
247
247
  table_name: string;
248
- key: Array<string>;
248
+ keys: Array<string>;
249
249
  default_value?: Array<ActionTableResult>;
250
250
  };
251
251
  preview_value?: Array<ActionTableResult>;
@@ -1712,7 +1712,7 @@ declare namespace widget {
1712
1712
  resolver: "action-table-rows";
1713
1713
  query: {
1714
1714
  table_name: string;
1715
- key: Array<string>;
1715
+ keys: Array<string>;
1716
1716
  default_value?: Array<ActionTableResult>;
1717
1717
  };
1718
1718
  preview_value?: Array<ActionTableResult>;
package/dist/index.es.js CHANGED
@@ -1410,14 +1410,14 @@ const loadActionTableRow = async (config, data, api_key, endpoint) => new Promis
1410
1410
  });
1411
1411
  /** @internal */
1412
1412
  const loadActionTableRows = async (config, data, api_key, endpoint) => new Promise((resolve, reject) => {
1413
- if (config.query.key == null) {
1413
+ if (config.query.keys == null) {
1414
1414
  console.warn('key is not defined.');
1415
1415
  return reject('key is not defined.');
1416
1416
  }
1417
1417
  const defaultValue = config.query.default_value ?? null;
1418
1418
  const keys = [];
1419
1419
  let hasError = false;
1420
- const originalKeys = Array.isArray(config.query.key) ? config.query.key : [config.query.key];
1420
+ const originalKeys = Array.isArray(config.query.keys) ? config.query.keys : [config.query.keys];
1421
1421
  originalKeys.forEach(key => {
1422
1422
  const d = data[key];
1423
1423
  if (d == null || d === '') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.209-28223230.0a8e06d1",
3
+ "version": "1.1.209-28225816.f4be3caa",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",