@constructor-io/constructorio-node 3.10.5 → 3.10.6
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/package.json +1 -1
- package/src/modules/tasks.js +6 -1
package/package.json
CHANGED
package/src/modules/tasks.js
CHANGED
|
@@ -49,6 +49,7 @@ class Tasks {
|
|
|
49
49
|
* @param {string} [parameters.startDate] - The start date of results to return - YYYY-MM-DD
|
|
50
50
|
* @param {string} [parameters.endDate] - The end date of results to return - YYYY-MM-DD
|
|
51
51
|
* @param {string} [parameters.status] - The status of tasks to return - 'QUEUED', 'IN_PROGRESS', 'DONE', 'FAILED', 'CANCELED'
|
|
52
|
+
* @param {string} [parameters.type] - The type of tasks to return - 'ingestion', 'user_data_request'
|
|
52
53
|
* @param {object} [networkParameters] - Parameters relevant to the network request
|
|
53
54
|
* @param {number} [networkParameters.timeout] - Request timeout (in milliseconds)
|
|
54
55
|
* @returns {Promise}
|
|
@@ -62,7 +63,7 @@ class Tasks {
|
|
|
62
63
|
const { signal } = controller;
|
|
63
64
|
|
|
64
65
|
if (parameters) {
|
|
65
|
-
const { num_results_per_page: numResultsPerPageOld, numResultsPerPage, page, startDate, endDate, status } = parameters;
|
|
66
|
+
const { num_results_per_page: numResultsPerPageOld, numResultsPerPage, page, startDate, endDate, status, type } = parameters;
|
|
66
67
|
|
|
67
68
|
// Pull number of results per page from parameters
|
|
68
69
|
if (numResultsPerPageOld || numResultsPerPage) {
|
|
@@ -85,6 +86,10 @@ class Tasks {
|
|
|
85
86
|
if (status) {
|
|
86
87
|
queryParams.status = status;
|
|
87
88
|
}
|
|
89
|
+
|
|
90
|
+
if (type) {
|
|
91
|
+
queryParams.type = type;
|
|
92
|
+
}
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
try {
|