@cumulus/api-client 21.1.0 → 21.3.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.
package/.nycrc.json CHANGED
@@ -5,4 +5,4 @@
5
5
  "functions": 91.0,
6
6
  "branches": 28,
7
7
  "lines": 95.0
8
- }
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/api-client",
3
- "version": "21.1.0",
3
+ "version": "21.3.0",
4
4
  "description": "API client for working with the Cumulus archive API",
5
5
  "keywords": [
6
6
  "GIBS",
@@ -8,7 +8,7 @@
8
8
  "NASA"
9
9
  ],
10
10
  "engines": {
11
- "node": ">=20.12.2"
11
+ "node": ">=22.21.1"
12
12
  },
13
13
  "publishConfig": {
14
14
  "access": "public"
@@ -42,12 +42,12 @@
42
42
  "license": "Apache-2.0",
43
43
  "dependencies": {
44
44
  "@aws-sdk/client-lambda": "^3.621.0",
45
- "@cumulus/aws-client": "21.1.0",
46
- "@cumulus/logger": "21.1.0",
45
+ "@cumulus/aws-client": "21.3.0",
46
+ "@cumulus/logger": "21.3.0",
47
47
  "p-retry": "^2.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@cumulus/types": "21.1.0"
50
+ "@cumulus/types": "21.3.0"
51
51
  },
52
- "gitHead": "5d443a04647ed537903c85b48992d08ce3c3cd1d"
52
+ "gitHead": "9dd4a7d4b888ea713efa87d6086a762262d46dd2"
53
53
  }
package/src/workflows.ts CHANGED
@@ -39,9 +39,13 @@ export const getWorkflow = async (params: {
39
39
  */
40
40
  export const getWorkflows = async (params: {
41
41
  prefix: string,
42
+ query?: {
43
+ fields?: string[],
44
+ [key: string]: string | string[] | undefined
45
+ },
42
46
  callback?: InvokeApiFunction
43
47
  }): Promise<ApiGatewayLambdaHttpProxyResponse> => {
44
- const { prefix, callback = invokeApi } = params;
48
+ const { prefix, query, callback = invokeApi } = params;
45
49
 
46
50
  return await callback({
47
51
  prefix: prefix,
@@ -49,6 +53,7 @@ export const getWorkflows = async (params: {
49
53
  httpMethod: 'GET',
50
54
  resource: '/{proxy+}',
51
55
  path: '/workflows',
56
+ queryStringParameters: query,
52
57
  },
53
58
  });
54
59
  };