@rivascva/dt-idl 1.1.143 → 1.1.145
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/index.d.ts
CHANGED
|
@@ -961,7 +961,7 @@ interface components$2 {
|
|
|
961
961
|
/** @enum {string} */
|
|
962
962
|
OrderType: "BUY_MARKET" | "BUY_LIMIT" | "BUY_STOP" | "SELL_MARKET" | "SELL_LIMIT" | "SELL_STOP";
|
|
963
963
|
/** @enum {string} */
|
|
964
|
-
PortfolioHistoryTimeframe: "
|
|
964
|
+
PortfolioHistoryTimeframe: "MIN15" | "MIN30" | "HOUR1" | "HOUR4" | "DAY1";
|
|
965
965
|
/** @enum {string} */
|
|
966
966
|
OrderStatus: "PENDING" | "COMPLETED";
|
|
967
967
|
};
|
package/go/psql/utils.go
CHANGED
|
@@ -67,7 +67,7 @@ func GetSelectAllQueryWithLimitAndOrderBy(table string, limit uint, orderByColum
|
|
|
67
67
|
|
|
68
68
|
// GetSelectEveryNthRowQuery builds and returns the query and arguments to perform a select columns query that returns every nth row (includes the first row).
|
|
69
69
|
// Provide a where map to specify which rows to pre-select. A nil value will pre-select all rows.
|
|
70
|
-
func GetSelectEveryNthRowQuery(table string, columns []string, orderByColumn string, n
|
|
70
|
+
func GetSelectEveryNthRowQuery(table string, columns []string, orderByColumn string, n uint, where ...Where) (string, []any, error) {
|
|
71
71
|
subquery := sq.Select("*", fmt.Sprintf("row_number() OVER (ORDER BY %s) AS row_num", orderByColumn)).From(table)
|
|
72
72
|
for _, mp := range where {
|
|
73
73
|
subquery = subquery.Where(mp)
|
package/package.json
CHANGED
|
@@ -281,7 +281,7 @@ export interface components {
|
|
|
281
281
|
/** @enum {string} */
|
|
282
282
|
OrderType: "BUY_MARKET" | "BUY_LIMIT" | "BUY_STOP" | "SELL_MARKET" | "SELL_LIMIT" | "SELL_STOP";
|
|
283
283
|
/** @enum {string} */
|
|
284
|
-
PortfolioHistoryTimeframe: "
|
|
284
|
+
PortfolioHistoryTimeframe: "MIN15" | "MIN30" | "HOUR1" | "HOUR4" | "DAY1";
|
|
285
285
|
/** @enum {string} */
|
|
286
286
|
OrderStatus: "PENDING" | "COMPLETED";
|
|
287
287
|
};
|