@cumulus/types 10.1.2 → 11.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.
- package/api/collections.d.ts +1 -1
- package/api/executions.d.ts +1 -1
- package/api/files.d.ts +6 -5
- package/api/granules.d.ts +12 -8
- package/api/pdrs.d.ts +4 -0
- package/api/rules.d.ts +7 -6
- package/package.json +2 -2
package/api/collections.d.ts
CHANGED
package/api/executions.d.ts
CHANGED
package/api/files.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
export interface ApiFile {
|
|
2
|
-
granuleId: string
|
|
3
2
|
bucket?: string
|
|
4
|
-
|
|
3
|
+
checksum?: string
|
|
4
|
+
checksumType?: string
|
|
5
|
+
createdAt: Date
|
|
5
6
|
fileName?: string
|
|
6
7
|
filename?: string
|
|
8
|
+
granuleId: string
|
|
9
|
+
key?: string
|
|
7
10
|
name?: string
|
|
8
11
|
path?: string
|
|
9
12
|
size?: number
|
|
10
13
|
source?: string
|
|
11
|
-
|
|
12
|
-
checksum?: string
|
|
13
|
-
createdAt: Date
|
|
14
|
+
type?: string
|
|
14
15
|
updatedAt: Date
|
|
15
16
|
}
|
package/api/granules.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type GranuleTemporalInfo = {
|
|
|
7
7
|
endingDateTime: string
|
|
8
8
|
productionDateTime: string
|
|
9
9
|
lastUpdateDateTime: string
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
|
|
12
12
|
export interface MessageGranule {
|
|
13
13
|
granuleId: string
|
|
@@ -17,24 +17,28 @@ export interface MessageGranule {
|
|
|
17
17
|
sync_granule_duration?: number
|
|
18
18
|
post_to_cmr_duration?: number
|
|
19
19
|
files?: import('./files').ApiFile[]
|
|
20
|
+
createdAt?: number
|
|
20
21
|
}
|
|
21
22
|
|
|
23
|
+
type OptionalGranuleTemporalInfo = GranuleTemporalInfo | {};
|
|
24
|
+
type OptionalGranuleProcessingInfo = import('./executions').ExecutionProcessingTimes | {};
|
|
25
|
+
|
|
22
26
|
export type ApiGranule = {
|
|
23
27
|
granuleId: string
|
|
24
28
|
collectionId: string
|
|
25
29
|
status: GranuleStatus
|
|
26
|
-
execution
|
|
30
|
+
execution?: string
|
|
27
31
|
cmrLink?: string
|
|
28
32
|
published?: boolean
|
|
29
33
|
pdrName?: string
|
|
30
34
|
provider?: string
|
|
31
35
|
error?: Object
|
|
32
|
-
createdAt:
|
|
33
|
-
timestamp?:
|
|
34
|
-
updatedAt:
|
|
36
|
+
createdAt: number
|
|
37
|
+
timestamp?: number
|
|
38
|
+
updatedAt: number
|
|
35
39
|
duration?: number
|
|
36
|
-
productVolume?:
|
|
40
|
+
productVolume?: string
|
|
37
41
|
timeToPreprocess?: number
|
|
38
42
|
timeToArchive?: number
|
|
39
|
-
files?: import('./files').ApiFile[]
|
|
40
|
-
} &
|
|
43
|
+
files?: Omit<import('./files').ApiFile, 'granuleId'>[]
|
|
44
|
+
} & OptionalGranuleTemporalInfo & OptionalGranuleProcessingInfo;
|
package/api/pdrs.d.ts
CHANGED
package/api/rules.d.ts
CHANGED
|
@@ -9,6 +9,12 @@ export interface Rule {
|
|
|
9
9
|
value?: string,
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export interface RuleMeta {
|
|
13
|
+
retries?: number,
|
|
14
|
+
visibility?: number,
|
|
15
|
+
[key: string]: unknown
|
|
16
|
+
}
|
|
17
|
+
|
|
12
18
|
export interface PartialRuleRecord {
|
|
13
19
|
name?: string,
|
|
14
20
|
rule?: Rule,
|
|
@@ -18,14 +24,9 @@ export interface PartialRuleRecord {
|
|
|
18
24
|
name: string,
|
|
19
25
|
version: string
|
|
20
26
|
},
|
|
21
|
-
meta?:
|
|
22
|
-
retries?: number,
|
|
23
|
-
visibility?: number,
|
|
24
|
-
[key: string]: unknown
|
|
25
|
-
},
|
|
27
|
+
meta?: RuleMeta,
|
|
26
28
|
payload?: unknown,
|
|
27
29
|
provider?: string,
|
|
28
|
-
queueName?: string,
|
|
29
30
|
executionNamePrefix?: string,
|
|
30
31
|
queueUrl?: string,
|
|
31
32
|
tags?: string[],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "TypeScript definitions for working with Cumulus data structures",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"GIBS",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
},
|
|
23
23
|
"author": "Cumulus Authors",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "e922ad12fd94affa6cd60a97a184a465a756c50b"
|
|
26
26
|
}
|