@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.
- package/dist/hydrate/index.es.d.ts +6 -6
- package/dist/hydrate/index.es.js +3 -3
- package/dist/index.es.d.ts +6 -6
- package/dist/index.es.js +3 -3
- package/package.json +1 -1
@@ -1171,7 +1171,7 @@ declare function collection(config: CollectionConfig): {
|
|
1171
1171
|
type ActionTableRowRequestConfig = {
|
1172
1172
|
resolver: "action-table-row";
|
1173
1173
|
name: string;
|
1174
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
2715
|
+
query: {
|
2716
2716
|
table_name: string;
|
2717
2717
|
query_name: string;
|
2718
2718
|
params?: ActionTableQueryParams;
|
package/dist/hydrate/index.es.js
CHANGED
@@ -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.
|
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.
|
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.
|
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));
|
package/dist/index.es.d.ts
CHANGED
@@ -1171,7 +1171,7 @@ declare function collection(config: CollectionConfig): {
|
|
1171
1171
|
type ActionTableRowRequestConfig = {
|
1172
1172
|
resolver: "action-table-row";
|
1173
1173
|
name: string;
|
1174
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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.
|
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.
|
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.
|
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));
|