@cumulus/db 10.0.0-beta.0 → 10.0.0
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.
|
@@ -10,11 +10,11 @@ declare class ExecutionPgModel extends BasePgModel<PostgresExecution, PostgresEx
|
|
|
10
10
|
* @param {Knex | Knex.Transaction} knexOrTrx -
|
|
11
11
|
* DB client or transaction
|
|
12
12
|
* @param {Array<number>} executionCumulusIds -
|
|
13
|
-
* single execution cumulus_id or array of
|
|
13
|
+
* single execution cumulus_id or array of execution cumulus_ids
|
|
14
14
|
* @param {Object} [params] - Optional object with addition params for query
|
|
15
15
|
* @param {number} [params.limit] - number of records to be returned
|
|
16
16
|
* @param {number} [params.offset] - record offset
|
|
17
|
-
* @returns {Promise<Array<number>>} An array of
|
|
17
|
+
* @returns {Promise<Array<number>>} An array of executions
|
|
18
18
|
*/
|
|
19
19
|
searchByCumulusIds(knexOrTrx: Knex | Knex.Transaction, executionCumulusIds: Array<number> | number, params: {
|
|
20
20
|
limit: number;
|
package/dist/models/execution.js
CHANGED
|
@@ -35,11 +35,11 @@ class ExecutionPgModel extends base_1.BasePgModel {
|
|
|
35
35
|
* @param {Knex | Knex.Transaction} knexOrTrx -
|
|
36
36
|
* DB client or transaction
|
|
37
37
|
* @param {Array<number>} executionCumulusIds -
|
|
38
|
-
* single execution cumulus_id or array of
|
|
38
|
+
* single execution cumulus_id or array of execution cumulus_ids
|
|
39
39
|
* @param {Object} [params] - Optional object with addition params for query
|
|
40
40
|
* @param {number} [params.limit] - number of records to be returned
|
|
41
41
|
* @param {number} [params.offset] - record offset
|
|
42
|
-
* @returns {Promise<Array<number>>} An array of
|
|
42
|
+
* @returns {Promise<Array<number>>} An array of executions
|
|
43
43
|
*/
|
|
44
44
|
async searchByCumulusIds(knexOrTrx, executionCumulusIds, params) {
|
|
45
45
|
const { limit, offset, ...sortQueries } = params || {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/db",
|
|
3
|
-
"version": "10.0.0
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Utilities for working with the Cumulus DB",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"node": ">=12.18.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cumulus/aws-client": "10.0.0
|
|
33
|
-
"@cumulus/common": "10.0.0
|
|
34
|
-
"@cumulus/errors": "10.0.0
|
|
35
|
-
"@cumulus/logger": "10.0.0
|
|
36
|
-
"@cumulus/message": "10.0.0
|
|
37
|
-
"@cumulus/types": "10.0.0
|
|
32
|
+
"@cumulus/aws-client": "10.0.0",
|
|
33
|
+
"@cumulus/common": "10.0.0",
|
|
34
|
+
"@cumulus/errors": "10.0.0",
|
|
35
|
+
"@cumulus/logger": "10.0.0",
|
|
36
|
+
"@cumulus/message": "10.0.0",
|
|
37
|
+
"@cumulus/types": "10.0.0",
|
|
38
38
|
"crypto-random-string": "^3.2.0",
|
|
39
39
|
"is-valid-hostname": "0.0.1",
|
|
40
|
-
"knex": "0.95.
|
|
40
|
+
"knex": "0.95.15",
|
|
41
41
|
"lodash": "^4.17.20",
|
|
42
42
|
"pg": "^8.3.0",
|
|
43
43
|
"snake-camel": "^1.0.6",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/uuid": "^8.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "7c6d2d1cd79b57d6943bbc3d898d0cf975b543b1"
|
|
50
50
|
}
|