@cumulus/types
Advanced tools
Comparing version
@@ -27,3 +27,3 @@ // eslint-disable-next-line import/extensions | ||
tags?: string[], | ||
meta?: Object, | ||
meta?: object, | ||
url_path?: string, | ||
@@ -30,0 +30,0 @@ version?: string, |
@@ -6,3 +6,3 @@ export type ExecutionRecordStatus = 'completed' | 'failed' | 'running' | 'unknown'; | ||
processingEndDateTime: string | ||
} | {}; | ||
}; | ||
@@ -9,0 +9,0 @@ export interface ExecutionRecord { |
export interface ApiFile { | ||
granuleId: string | ||
bucket?: string | ||
key?: string | ||
checksum?: string | ||
checksumType?: string | ||
createdAt: Date | ||
fileName?: string | ||
filename?: string | ||
granuleId: string | ||
key?: string | ||
name?: string | ||
@@ -11,6 +14,4 @@ path?: string | ||
source?: string | ||
checksumType?: string | ||
checksum?: string | ||
createdAt: Date | ||
type?: string | ||
updatedAt: Date | ||
} |
@@ -10,3 +10,3 @@ export type GranuleId = string; | ||
lastUpdateDateTime: string | ||
} | {}; | ||
}; | ||
@@ -21,4 +21,8 @@ export interface MessageGranule { | ||
files?: import('./files').ApiFile[] | ||
createdAt?: number | ||
} | ||
type OptionalGranuleTemporalInfo = GranuleTemporalInfo | {}; | ||
type OptionalGranuleProcessingInfo = import('./executions').ExecutionProcessingTimes | {}; | ||
export type ApiGranule = { | ||
@@ -28,3 +32,3 @@ granuleId: string | ||
status: GranuleStatus | ||
execution: string | ||
execution?: string | ||
cmrLink?: string | ||
@@ -35,10 +39,10 @@ published?: boolean | ||
error?: Object | ||
createdAt: string | ||
timestamp?: string | ||
updatedAt: string | ||
createdAt: number | ||
timestamp?: number | ||
updatedAt: number | ||
duration?: number | ||
productVolume?: number | ||
productVolume?: string | ||
timeToPreprocess?: number | ||
timeToArchive?: number | ||
files?: import('./files').ApiFile[] | ||
} & GranuleTemporalInfo & import('./executions').ExecutionProcessingTimes; | ||
files?: Omit<import('./files').ApiFile, 'granuleId'>[] | ||
} & OptionalGranuleTemporalInfo & OptionalGranuleProcessingInfo; |
@@ -25,1 +25,5 @@ export type PdrStatus = 'running' | 'failed' | 'completed'; | ||
} | ||
export interface ApiPdrRecord extends ApiPdr { | ||
updatedAt: number | ||
} |
@@ -12,2 +12,8 @@ export type RuleType = 'kinesis' | 'onetime' | 'scheduled' | 'sns' | 'sqs'; | ||
export interface RuleMeta { | ||
retries?: number, | ||
visibility?: number, | ||
[key: string]: unknown | ||
} | ||
export interface PartialRuleRecord { | ||
@@ -22,10 +28,5 @@ name?: string, | ||
}, | ||
meta?: { | ||
retries?: number, | ||
visibility?: number, | ||
[key: string]: unknown | ||
}, | ||
meta?: RuleMeta, | ||
payload?: unknown, | ||
provider?: string, | ||
queueName?: string, | ||
executionNamePrefix?: string, | ||
@@ -32,0 +33,0 @@ queueUrl?: string, |
{ | ||
"name": "@cumulus/types", | ||
"version": "10.1.2", | ||
"version": "11.0.0", | ||
"description": "TypeScript definitions for working with Cumulus data structures", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"license": "Apache-2.0", | ||
"gitHead": "3b59753fa85064549b70ad8ed4a4ee213c5af313" | ||
"gitHead": "e922ad12fd94affa6cd60a97a184a465a756c50b" | ||
} |
19375
1.39%325
2.2%