@cumulus/types 10.1.1 → 11.1.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.
@@ -24,7 +24,7 @@ export interface PartialCollectionRecord {
24
24
  reportToEms?: boolean,
25
25
  sampleFileName?: string,
26
26
  tags?: string[],
27
- meta?: Object,
27
+ meta?: object,
28
28
  url_path?: string,
29
29
  version?: string,
30
30
  createdAt?: number,
@@ -3,7 +3,7 @@ export type ExecutionRecordStatus = 'completed' | 'failed' | 'running' | 'unknow
3
3
  export type ExecutionProcessingTimes = {
4
4
  processingStartDateTime: string
5
5
  processingEndDateTime: string
6
- } | {};
6
+ };
7
7
 
8
8
  export interface ExecutionRecord {
9
9
  arn: string,
package/api/files.d.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  export interface ApiFile {
2
- granuleId: string
3
2
  bucket?: string
4
- key?: string
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
- checksumType?: string
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: string
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: string
33
- timestamp?: string
34
- updatedAt: string
36
+ createdAt: number
37
+ timestamp?: number
38
+ updatedAt: number
35
39
  duration?: number
36
- productVolume?: number
40
+ productVolume?: string
37
41
  timeToPreprocess?: number
38
42
  timeToArchive?: number
39
- files?: import('./files').ApiFile[]
40
- } & GranuleTemporalInfo & import('./executions').ExecutionProcessingTimes;
43
+ files?: Omit<import('./files').ApiFile, 'granuleId'>[]
44
+ } & OptionalGranuleTemporalInfo & OptionalGranuleProcessingInfo;
package/api/pdrs.d.ts CHANGED
@@ -22,3 +22,7 @@ export interface ApiPdr {
22
22
  duration?: number,
23
23
  updatedAt?: number,
24
24
  }
25
+
26
+ export interface ApiPdrRecord extends ApiPdr {
27
+ updatedAt: number
28
+ }
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/migration.d.ts CHANGED
@@ -44,7 +44,8 @@ export interface MigrationLoggingParams {
44
44
 
45
45
  export type ParallelScanMigrationParams = MigrationLoggingParams & DynamoDbParallelScanParams;
46
46
 
47
- export type GranuleMigrationParams = ParallelScanMigrationParams & GranuleDynamoDbSearchParams;
47
+ export type GranuleMigrationParams = ParallelScanMigrationParams &
48
+ GranuleDynamoDbSearchParams & { migrateAndOverwrite?: string, migrateOnlyFiles?: string };
48
49
 
49
50
  type DataMigration2AllowedMigrations = 'granules' | 'executions' | 'pdrs';
50
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/types",
3
- "version": "10.1.1",
3
+ "version": "11.1.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": "b34bda5035263c74c8341b25abfb033226a27387"
25
+ "gitHead": "a846e319e143684ebc408e35f8b51cc1a7195391"
26
26
  }