@cumulus/message 10.1.2 → 11.1.1
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/Collections.d.ts +3 -0
- package/Collections.d.ts.map +1 -1
- package/Collections.js +7 -5
- package/Collections.js.map +1 -1
- package/Executions.d.ts +19 -4
- package/Executions.d.ts.map +1 -1
- package/Executions.js +51 -3
- package/Executions.js.map +1 -1
- package/Granules.d.ts +76 -10
- package/Granules.d.ts.map +1 -1
- package/Granules.js +141 -2
- package/Granules.js.map +1 -1
- package/PDRs.d.ts +18 -12
- package/PDRs.d.ts.map +1 -1
- package/PDRs.js +73 -4
- package/PDRs.js.map +1 -1
- package/README.md +132 -28
- package/package.json +7 -7
- package/src/Collections.ts +4 -1
- package/src/Executions.ts +77 -7
- package/src/Granules.ts +218 -3
- package/src/PDRs.ts +99 -13
- package/src/types.ts +5 -0
- package/src/utils.ts +17 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/types.d.ts +4 -0
- package/types.d.ts.map +1 -1
- package/utils.d.ts +8 -0
- package/utils.d.ts.map +1 -0
- package/utils.js +26 -0
- package/utils.js.map +1 -0
package/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Message } from '@cumulus/types';
|
|
2
|
+
import { GranuleTemporalInfo, MessageGranule } from '@cumulus/types/api/granules';
|
|
2
3
|
export interface WorkflowMessageTemplateCumulusMeta {
|
|
3
4
|
queueExecutionLimits: Message.QueueExecutionLimits;
|
|
4
5
|
}
|
|
@@ -10,4 +11,7 @@ export interface Workflow {
|
|
|
10
11
|
arn: string;
|
|
11
12
|
name: string;
|
|
12
13
|
}
|
|
14
|
+
export interface CmrUtilsClass {
|
|
15
|
+
getGranuleTemporalInfo(granule: MessageGranule): Promise<GranuleTemporalInfo | {}>;
|
|
16
|
+
}
|
|
13
17
|
//# sourceMappingURL=types.d.ts.map
|
package/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElF,MAAM,WAAW,kCAAkC;IACjD,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAA;CACnD;AAID,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,kCAAkC,CAAA;IAChD,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,aAAa;IAC5B,sBAAsB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,GAAG,EAAE,CAAC,CAAA;CACnF"}
|
package/utils.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ensures that the exception is returned as an object
|
|
3
|
+
*
|
|
4
|
+
* @param {Object|undefined} exception - the exception
|
|
5
|
+
* @returns {string} an stringified exception
|
|
6
|
+
*/
|
|
7
|
+
export declare const parseException: (exception: Object | undefined) => object;
|
|
8
|
+
//# sourceMappingURL=utils.d.ts.map
|
package/utils.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["src/utils.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,cAAe,MAAM,GAAG,SAAS,WAO3D,CAAC"}
|
package/utils.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.parseException = void 0;
|
|
7
|
+
const isNil_1 = __importDefault(require("lodash/isNil"));
|
|
8
|
+
const isObject_1 = __importDefault(require("lodash/isObject"));
|
|
9
|
+
/**
|
|
10
|
+
* Ensures that the exception is returned as an object
|
|
11
|
+
*
|
|
12
|
+
* @param {Object|undefined} exception - the exception
|
|
13
|
+
* @returns {string} an stringified exception
|
|
14
|
+
*/
|
|
15
|
+
const parseException = (exception) => {
|
|
16
|
+
if ((0, isNil_1.default)(exception))
|
|
17
|
+
return {};
|
|
18
|
+
if ((0, isObject_1.default)(exception))
|
|
19
|
+
return exception;
|
|
20
|
+
return {
|
|
21
|
+
Error: 'Unknown Error',
|
|
22
|
+
Cause: exception,
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
exports.parseException = parseException;
|
|
26
|
+
//# sourceMappingURL=utils.js.map
|
package/utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,yDAAiC;AACjC,+DAAuC;AAEvC;;;;;GAKG;AACI,MAAM,cAAc,GAAG,CAAC,SAA6B,EAAE,EAAE;IAC9D,IAAI,IAAA,eAAK,EAAC,SAAS,CAAC;QAAE,OAAO,EAAE,CAAC;IAChC,IAAI,IAAA,kBAAQ,EAAC,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IAC1C,OAAO;QACL,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,SAAS;KACjB,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,cAAc,kBAOzB"}
|