@cumulus/move-granules 9.8.0 → 10.0.1

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.
@@ -3,12 +3,40 @@
3
3
  "description": "Describes the output produced by the move-granules task",
4
4
  "type": "object",
5
5
  "properties": {
6
+ "granuleDuplicates": {
7
+ "type": "object",
8
+ "additionalProperties": {
9
+ "files": {
10
+ "type": "array",
11
+ "items": {
12
+ "type": "object",
13
+ "required": [
14
+ "bucket",
15
+ "key"
16
+ ],
17
+ "properties": {
18
+ "bucket": {
19
+ "description": "Bucket in-process file is being staged in in S3",
20
+ "type": "string"
21
+ },
22
+ "key": {
23
+ "description": "S3 Key for in-process file",
24
+ "type": "string"
25
+ }
26
+ }
27
+ }
28
+ }
29
+ }
30
+ },
6
31
  "granules": {
7
32
  "type": "array",
8
33
  "description": "Array of all granules",
9
34
  "items": {
10
35
  "type": "object",
11
- "required": ["granuleId", "files"],
36
+ "required": [
37
+ "granuleId",
38
+ "files"
39
+ ],
12
40
  "properties": {
13
41
  "granuleId": {
14
42
  "type": "string"
@@ -16,33 +44,44 @@
16
44
  "files": {
17
45
  "type": "array",
18
46
  "items": {
47
+ "additionalProperties": false,
19
48
  "type": "object",
20
- "required": ["name"],
49
+ "required": [
50
+ "bucket",
51
+ "key"
52
+ ],
21
53
  "properties": {
22
- "name": {
54
+ "bucket": {
55
+ "description": "Bucket where file is archived in S3",
23
56
  "type": "string"
24
57
  },
25
- "filename": {
26
- "type": "string",
27
- "description": "The s3 bucket/path URI (e.g. s3://{bucket}{object})"
58
+ "checksum": {
59
+ "description": "Checksum value for file",
60
+ "type": "string"
28
61
  },
29
- "filepath": {
30
- "type": "string",
31
- "description": "The S3 object key"
62
+ "checksumType": {
63
+ "description": "Type of checksum (e.g. md5, sha256, etc)",
64
+ "type": "string"
32
65
  },
33
- "type": {
66
+ "fileName": {
67
+ "description": "Name of file (e.g. file.txt)",
34
68
  "type": "string"
35
69
  },
36
- "bucket": {
70
+ "key": {
71
+ "description": "S3 Key for archived file",
37
72
  "type": "string"
38
73
  },
39
- "etag": {
40
- "description": "Entity tag for the current version of the file",
74
+ "size": {
75
+ "description": "Size of file (in bytes)",
76
+ "type": "number"
77
+ },
78
+ "source": {
79
+ "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)",
41
80
  "type": "string"
42
81
  },
43
- "duplicate_found": {
44
- "description": "whether a duplicate for this file was found",
45
- "type": "boolean"
82
+ "type": {
83
+ "description": "Type of file (e.g. data, metadata, browse)",
84
+ "type": "string"
46
85
  }
47
86
  }
48
87
  }
@@ -51,4 +90,4 @@
51
90
  }
52
91
  }
53
92
  }
54
- }
93
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "title": "MoveGranulesOutput",
3
+ "description": "Describes the output produced by the move-granules task",
4
+ "type": "object",
5
+ "properties": {
6
+ "granuleDuplicates": {
7
+ "type": "object",
8
+ "additionalProperties": {
9
+ "files": {
10
+ "type": "array",
11
+ "items": {
12
+ "type": "object",
13
+ "required": ["bucket", "key"],
14
+ "properties": {
15
+ "bucket": {
16
+ "description": "Bucket in-process file is being staged in in S3",
17
+ "type": "string"
18
+ },
19
+ "key": {
20
+ "description": "S3 Key for in-process file",
21
+ "type": "string"
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
27
+ },
28
+ "granules": {
29
+ "type": "array",
30
+ "description": "Array of all granules",
31
+ "items": {
32
+ "type": "object",
33
+ "required": ["granuleId", "files"],
34
+ "properties": {
35
+ "granuleId": {
36
+ "type": "string"
37
+ },
38
+ "files": "{{files}}"
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }