@cumulus/types 15.0.3 → 16.0.1-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.
@@ -1,6 +1,8 @@
1
1
  // eslint-disable-next-line import/extensions
2
2
  import { DuplicateHandling } from '..';
3
3
 
4
+ export type CollectionId = string;
5
+
4
6
  export interface CollectionFile {
5
7
  bucket: string,
6
8
  regex: string,
@@ -5,13 +5,15 @@ export type ExecutionProcessingTimes = {
5
5
  processingEndDateTime: string
6
6
  };
7
7
 
8
- export interface ExecutionRecord {
8
+ export interface ApiExecutionRecord {
9
9
  arn: string,
10
10
  createdAt: number,
11
- name: string
11
+ name: string,
12
12
  status: ExecutionRecordStatus,
13
+ updatedAt: number,
13
14
  asyncOperationId?: string,
14
15
  collectionId?: string,
16
+ cumulusVersion?: string,
15
17
  duration?: number,
16
18
  error?: object,
17
19
  execution?: string,
@@ -21,6 +23,24 @@ export interface ExecutionRecord {
21
23
  tasks?: object,
22
24
  timestamp?: number,
23
25
  type?: string,
24
- updatedAt: number,
25
- cumulusVersion?: string,
26
+ }
27
+
28
+ export interface ApiExecution {
29
+ arn: string,
30
+ name: string,
31
+ asyncOperationId?: string | null,
32
+ collectionId?: string | null,
33
+ createdAt?: number | null,
34
+ cumulusVersion?: string | null,
35
+ duration?: number | null,
36
+ error?: object | null,
37
+ execution?: string | null,
38
+ finalPayload?: object | null,
39
+ originalPayload?: object | null,
40
+ parentArn?: string | null,
41
+ tasks?: object | null,
42
+ timestamp?: number | null,
43
+ type?: string | null,
44
+ status?: ExecutionRecordStatus,
45
+ updatedAt?: number | null,
26
46
  }
package/api/rules.d.ts CHANGED
@@ -30,6 +30,7 @@ export interface PartialRuleRecord {
30
30
  executionNamePrefix?: string,
31
31
  queueUrl?: string,
32
32
  tags?: string[],
33
+ asyncOperationId?: string,
33
34
  }
34
35
 
35
36
  export interface NewRuleRecord extends PartialRuleRecord {
package/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  export type DuplicateHandling = 'error' | 'replace' | 'skip' | 'version';
2
2
 
3
- export * as Migration from './migration';
4
-
5
3
  export * as Message from './message';
6
4
 
7
5
  export * from './api/files';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/types",
3
- "version": "15.0.3",
3
+ "version": "16.0.1-alpha.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": "5fd5febe740ef96f365d1defc7b9f76ae64c9cc0"
25
+ "gitHead": "81e35723db79eada290954901e4974598f7c4295"
26
26
  }
package/migration.d.ts DELETED
@@ -1,58 +0,0 @@
1
- export interface MigrationResult {
2
- total_dynamo_db_records: number,
3
- skipped: number,
4
- migrated: number,
5
- failed: number,
6
- }
7
-
8
- export interface DataMigration1Summary {
9
- collections: MigrationResult,
10
- providers: MigrationResult,
11
- async_operations: MigrationResult,
12
- rules: MigrationResult,
13
- }
14
-
15
- export interface GranuleDynamoDbSearchParams {
16
- collectionId?: string
17
- granuleId?: string
18
- }
19
-
20
- export interface GranulesMigrationResult extends MigrationResult {
21
- filters?: GranuleDynamoDbSearchParams
22
- }
23
-
24
- export interface DataMigration2Summary {
25
- executions?: MigrationResult,
26
- granules?: GranulesMigrationResult,
27
- files?: MigrationResult,
28
- pdrs?: MigrationResult,
29
- }
30
-
31
- export interface MigrationSummary {
32
- MigrationSummary: DataMigration1Summary | DataMigration2Summary
33
- }
34
-
35
- export interface DynamoDbParallelScanParams {
36
- parallelScanSegments?: number
37
- parallelScanLimit?: number
38
- writeConcurrency?: number
39
- }
40
-
41
- export interface MigrationLoggingParams {
42
- loggingInterval?: number
43
- }
44
-
45
- export type ParallelScanMigrationParams = MigrationLoggingParams & DynamoDbParallelScanParams;
46
-
47
- export type GranuleMigrationParams = ParallelScanMigrationParams &
48
- GranuleDynamoDbSearchParams & { migrateAndOverwrite?: string, migrateOnlyFiles?: string };
49
-
50
- type DataMigration2AllowedMigrations = 'granules' | 'executions' | 'pdrs';
51
-
52
- export interface DataMigration2HandlerEvent {
53
- env?: NodeJS.ProcessEnv
54
- executionMigrationParams?: ParallelScanMigrationParams
55
- granuleMigrationParams?: GranuleMigrationParams
56
- pdrMigrationParams?: ParallelScanMigrationParams
57
- migrationsList?: DataMigration2AllowedMigrations[]
58
- }