@cumulus/es-client 19.0.0 → 19.2.0-alpha.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.
Files changed (2) hide show
  1. package/indexer.js +0 -43
  2. package/package.json +9 -9
package/indexer.js CHANGED
@@ -294,20 +294,6 @@ function indexReconciliationReport(esClient, payload, index = defaultIndexAlias,
294
294
  return genericRecordUpdate(esClient, payload.name, payload, index, type);
295
295
  }
296
296
 
297
- /**
298
- * Indexes the rule type on Elasticsearch
299
- *
300
- * @param {Object} esClient - Elasticsearch Connection object
301
- * @param {Object} payload - the Rule record
302
- * @param {string} index - Elasticsearch index alias (default defined in search.js)
303
- * @param {string} type - Elasticsearch type (default: rule)
304
- * @returns {Promise} Elasticsearch response
305
- */
306
-
307
- function indexRule(esClient, payload, index = defaultIndexAlias, type = 'rule') {
308
- return genericRecordUpdate(esClient, payload.name, payload, index, type);
309
- }
310
-
311
297
  /**
312
298
  * Indexes the granule type on Elasticsearch
313
299
  *
@@ -609,33 +595,6 @@ function deleteProvider({
609
595
  });
610
596
  }
611
597
 
612
- /**
613
- * Deletes the rule in Elasticsearch
614
- *
615
- * @param {Object} params
616
- * @param {Object} params.esClient - Elasticsearch Connection object
617
- * @param {string} params.name - the rule name
618
- * @param {string[]} [params.ignore] - Array of response codes to ignore
619
- * @param {string} params.index - Elasticsearch index alias (default defined in search.js)
620
- * @param {string} params.type - Elasticsearch type (default: rule)
621
- * @returns {Promise} Elasticsearch response
622
- */
623
- function deleteRule({
624
- esClient,
625
- name,
626
- ignore,
627
- index = defaultIndexAlias,
628
- type = 'rule',
629
- }) {
630
- return deleteRecord({
631
- esClient,
632
- id: name,
633
- index,
634
- type,
635
- ignore,
636
- });
637
- }
638
-
639
598
  /**
640
599
  * Deletes the PDR in Elasticsearch
641
600
  *
@@ -805,7 +764,6 @@ module.exports = {
805
764
  deleteProvider,
806
765
  deleteReconciliationReport,
807
766
  deleteRecord,
808
- deleteRule,
809
767
  executionInvalidNullFields,
810
768
  granuleInvalidNullFields,
811
769
  genericRecordUpdate,
@@ -816,7 +774,6 @@ module.exports = {
816
774
  indexPdr,
817
775
  indexProvider,
818
776
  indexReconciliationReport,
819
- indexRule,
820
777
  updateAsyncOperation,
821
778
  upsertExecution,
822
779
  upsertGranule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/es-client",
3
- "version": "19.0.0",
3
+ "version": "19.2.0-alpha.0",
4
4
  "description": "Utilities for working with Elasticsearch",
5
5
  "keywords": [
6
6
  "CUMULUS",
@@ -34,20 +34,20 @@
34
34
  "license": "Apache-2.0",
35
35
  "dependencies": {
36
36
  "@aws-sdk/credential-providers": "^3.621.0",
37
- "@cumulus/common": "19.0.0",
38
- "@cumulus/errors": "19.0.0",
39
- "@cumulus/logger": "19.0.0",
40
- "@cumulus/message": "19.0.0",
37
+ "@cumulus/common": "19.2.0-alpha.0",
38
+ "@cumulus/errors": "19.2.0-alpha.0",
39
+ "@cumulus/logger": "19.2.0-alpha.0",
40
+ "@cumulus/message": "19.2.0-alpha.0",
41
41
  "@elastic/elasticsearch": "^5.6.20",
42
42
  "aws4": "^1.12.0",
43
43
  "lodash": "~4.17.21",
44
- "moment": "2.29.4",
44
+ "moment": "^2.30.1",
45
45
  "p-limit": "^1.2.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@cumulus/aws-client": "19.0.0",
49
- "@cumulus/test-data": "19.0.0",
48
+ "@cumulus/aws-client": "19.2.0-alpha.0",
49
+ "@cumulus/test-data": "19.2.0-alpha.0",
50
50
  "p-each-series": "^2.1.0"
51
51
  },
52
- "gitHead": "3a619db6e6fa20846eb75802e89d5a065fd62fcc"
52
+ "gitHead": "533280b62564b6ce89fabcde5cbe653afb964205"
53
53
  }