@plaidev/karte-action-sdk 1.1.133 → 1.1.134-27960664.0e89c978

Sign up to get free protection for your applications and to get access to all the features.
@@ -1171,7 +1171,7 @@ declare function collection(config: CollectionConfig): {
1171
1171
  type ActionTableRowRequestConfig = {
1172
1172
  resolver: "action-table-row";
1173
1173
  name: string;
1174
- default: {
1174
+ query: {
1175
1175
  table_name: string;
1176
1176
  key: string;
1177
1177
  default_value?: ActionTableResult;
@@ -1181,7 +1181,7 @@ type ActionTableRowRequestConfig = {
1181
1181
  type ActionTableRowsRequestConfig = {
1182
1182
  resolver: "action-table-rows";
1183
1183
  name: string;
1184
- default: {
1184
+ query: {
1185
1185
  table_name: string;
1186
1186
  key: Array<string>;
1187
1187
  default_value?: Array<ActionTableResult>;
@@ -1191,7 +1191,7 @@ type ActionTableRowsRequestConfig = {
1191
1191
  type ActionTableQueryRequestConfig = {
1192
1192
  resolver: "action-table-query";
1193
1193
  name: string;
1194
- default: {
1194
+ query: {
1195
1195
  table_name: string;
1196
1196
  query_name: string;
1197
1197
  params?: ActionTableQueryParams;
@@ -2692,7 +2692,7 @@ declare namespace widget {
2692
2692
  type ActionTableRowRequestConfig = {
2693
2693
  resolver: "action-table-row";
2694
2694
  name: string;
2695
- default: {
2695
+ query: {
2696
2696
  table_name: string;
2697
2697
  key: string;
2698
2698
  default_value?: ActionTableResult;
@@ -2702,7 +2702,7 @@ declare namespace widget {
2702
2702
  type ActionTableRowsRequestConfig = {
2703
2703
  resolver: "action-table-rows";
2704
2704
  name: string;
2705
- default: {
2705
+ query: {
2706
2706
  table_name: string;
2707
2707
  key: Array<string>;
2708
2708
  default_value?: Array<ActionTableResult>;
@@ -2712,7 +2712,7 @@ declare namespace widget {
2712
2712
  type ActionTableQueryRequestConfig = {
2713
2713
  resolver: "action-table-query";
2714
2714
  name: string;
2715
- default: {
2715
+ query: {
2716
2716
  table_name: string;
2717
2717
  query_name: string;
2718
2718
  params?: ActionTableQueryParams;
@@ -1550,13 +1550,13 @@ function request(url, data, cb) {
1550
1550
  });
1551
1551
  }
1552
1552
  const loadActionTableRow = async (config, api_key, endpoint) => {
1553
- return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.default.table_name }).get(config.default.key, (err, data) => (err ? reject(err) : resolve(data))));
1553
+ return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.query.table_name }).get(config.query.key, (err, data) => (err ? reject(err) : resolve(data))));
1554
1554
  };
1555
1555
  const loadActionTableRows = async (config, api_key, endpoint) => {
1556
- return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.default.table_name }).get(config.default.key, (err, data) => (err ? reject(err) : resolve(data))));
1556
+ return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.query.table_name }).get(config.query.key, (err, data) => (err ? reject(err) : resolve(data))));
1557
1557
  };
1558
1558
  const loadActionTableQuery = async (config, api_key, endpoint) => {
1559
- return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.default.table_name }).getByQuery(config.default.query_name, config.default.params, null, (err, data) => (err ? reject(err) : resolve(data))));
1559
+ return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.query.table_name }).getByQuery(config.query.query_name, config.query.params, null, (err, data) => (err ? reject(err) : resolve(data))));
1560
1560
  };
1561
1561
  const loadActionTable = async (config, api_key, endpoint) => {
1562
1562
  console.log('[debug] loadActionTable', isPreview(), api_key, endpoint, JSON.stringify(config));
@@ -1171,7 +1171,7 @@ declare function collection(config: CollectionConfig): {
1171
1171
  type ActionTableRowRequestConfig = {
1172
1172
  resolver: "action-table-row";
1173
1173
  name: string;
1174
- default: {
1174
+ query: {
1175
1175
  table_name: string;
1176
1176
  key: string;
1177
1177
  default_value?: ActionTableResult;
@@ -1181,7 +1181,7 @@ type ActionTableRowRequestConfig = {
1181
1181
  type ActionTableRowsRequestConfig = {
1182
1182
  resolver: "action-table-rows";
1183
1183
  name: string;
1184
- default: {
1184
+ query: {
1185
1185
  table_name: string;
1186
1186
  key: Array<string>;
1187
1187
  default_value?: Array<ActionTableResult>;
@@ -1191,7 +1191,7 @@ type ActionTableRowsRequestConfig = {
1191
1191
  type ActionTableQueryRequestConfig = {
1192
1192
  resolver: "action-table-query";
1193
1193
  name: string;
1194
- default: {
1194
+ query: {
1195
1195
  table_name: string;
1196
1196
  query_name: string;
1197
1197
  params?: ActionTableQueryParams;
@@ -2692,7 +2692,7 @@ declare namespace widget {
2692
2692
  type ActionTableRowRequestConfig = {
2693
2693
  resolver: "action-table-row";
2694
2694
  name: string;
2695
- default: {
2695
+ query: {
2696
2696
  table_name: string;
2697
2697
  key: string;
2698
2698
  default_value?: ActionTableResult;
@@ -2702,7 +2702,7 @@ declare namespace widget {
2702
2702
  type ActionTableRowsRequestConfig = {
2703
2703
  resolver: "action-table-rows";
2704
2704
  name: string;
2705
- default: {
2705
+ query: {
2706
2706
  table_name: string;
2707
2707
  key: Array<string>;
2708
2708
  default_value?: Array<ActionTableResult>;
@@ -2712,7 +2712,7 @@ declare namespace widget {
2712
2712
  type ActionTableQueryRequestConfig = {
2713
2713
  resolver: "action-table-query";
2714
2714
  name: string;
2715
- default: {
2715
+ query: {
2716
2716
  table_name: string;
2717
2717
  query_name: string;
2718
2718
  params?: ActionTableQueryParams;
package/dist/index.es.js CHANGED
@@ -1620,13 +1620,13 @@ function request(url, data, cb) {
1620
1620
  });
1621
1621
  }
1622
1622
  const loadActionTableRow = async (config, api_key, endpoint) => {
1623
- return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.default.table_name }).get(config.default.key, (err, data) => (err ? reject(err) : resolve(data))));
1623
+ return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.query.table_name }).get(config.query.key, (err, data) => (err ? reject(err) : resolve(data))));
1624
1624
  };
1625
1625
  const loadActionTableRows = async (config, api_key, endpoint) => {
1626
- return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.default.table_name }).get(config.default.key, (err, data) => (err ? reject(err) : resolve(data))));
1626
+ return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.query.table_name }).get(config.query.key, (err, data) => (err ? reject(err) : resolve(data))));
1627
1627
  };
1628
1628
  const loadActionTableQuery = async (config, api_key, endpoint) => {
1629
- return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.default.table_name }).getByQuery(config.default.query_name, config.default.params, null, (err, data) => (err ? reject(err) : resolve(data))));
1629
+ return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.query.table_name }).getByQuery(config.query.query_name, config.query.params, null, (err, data) => (err ? reject(err) : resolve(data))));
1630
1630
  };
1631
1631
  const loadActionTable = async (config, api_key, endpoint) => {
1632
1632
  console.log('[debug] loadActionTable', isPreview(), api_key, endpoint, JSON.stringify(config));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.133",
3
+ "version": "1.1.134-27960664.0e89c978",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",