@cumulus/types 15.0.2 → 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.
- package/api/collections.d.ts +2 -0
- package/api/executions.d.ts +24 -4
- package/api/rules.d.ts +1 -0
- package/index.d.ts +0 -2
- package/package.json +2 -2
- package/migration.d.ts +0 -58
package/api/collections.d.ts
CHANGED
package/api/executions.d.ts
CHANGED
|
@@ -5,13 +5,15 @@ export type ExecutionProcessingTimes = {
|
|
|
5
5
|
processingEndDateTime: string
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
export interface
|
|
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
|
-
|
|
25
|
-
|
|
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
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/types",
|
|
3
|
-
"version": "
|
|
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": "
|
|
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
|
-
}
|