@plaidev/karte-action-sdk 1.1.209-28223230.0a8e06d1 → 1.1.209-28225816.f4be3caa
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/hydrate/index.es.d.ts +2 -2
- package/dist/hydrate/index.es.js +2 -2
- package/dist/index.es.d.ts +2 -2
- package/dist/index.es.js +2 -2
- package/package.json +1 -1
@@ -245,7 +245,7 @@ type ActionTableRowsRequestConfig = VariableQuery & {
|
|
245
245
|
resolver: "action-table-rows";
|
246
246
|
query: {
|
247
247
|
table_name: string;
|
248
|
-
|
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
|
-
|
1715
|
+
keys: Array<string>;
|
1716
1716
|
default_value?: Array<ActionTableResult>;
|
1717
1717
|
};
|
1718
1718
|
preview_value?: Array<ActionTableResult>;
|
package/dist/hydrate/index.es.js
CHANGED
@@ -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.
|
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.
|
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 === '') {
|
package/dist/index.es.d.ts
CHANGED
@@ -245,7 +245,7 @@ type ActionTableRowsRequestConfig = VariableQuery & {
|
|
245
245
|
resolver: "action-table-rows";
|
246
246
|
query: {
|
247
247
|
table_name: string;
|
248
|
-
|
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
|
-
|
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.
|
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.
|
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 === '') {
|