@cumulus/types 13.4.0 → 14.0.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.
Files changed (2) hide show
  1. package/api/granules.d.ts +39 -13
  2. package/package.json +2 -2
package/api/granules.d.ts CHANGED
@@ -20,25 +20,51 @@ export interface MessageGranule {
20
20
  createdAt?: number
21
21
  }
22
22
 
23
- type OptionalGranuleTemporalInfo = GranuleTemporalInfo | {};
24
- type OptionalGranuleProcessingInfo = import('./executions').ExecutionProcessingTimes | {};
23
+ export type NullablePartialType<T> = {
24
+ [P in keyof T]?: T[P] | null;
25
+ };
25
26
 
26
- export type ApiGranule = {
27
+ type PartialGranuleTemporalInfo = NullablePartialType<GranuleTemporalInfo>;
28
+ type ParitalGranuleProcessingInfo = NullablePartialType<import('./executions').ExecutionProcessingTimes>;
29
+
30
+ export type ApiGranuleRecord = {
27
31
  granuleId: string
28
32
  collectionId: string
29
33
  status: GranuleStatus
30
- execution?: string
34
+ updatedAt: number
35
+ createdAt: number
31
36
  cmrLink?: string
32
- published?: boolean
37
+ duration?: number
38
+ error?: Object
39
+ execution?: string
40
+ files?: Omit<import('./files').ApiFile, 'granuleId'>[]
33
41
  pdrName?: string
42
+ productVolume?: string
34
43
  provider?: string
35
- error?: Object
36
- createdAt: number
44
+ published?: boolean
45
+ queryFields?: unknown
37
46
  timestamp?: number
38
- updatedAt: number
39
- duration?: number
40
- productVolume?: string
41
- timeToPreprocess?: number
42
47
  timeToArchive?: number
43
- files?: Omit<import('./files').ApiFile, 'granuleId'>[]
44
- } & OptionalGranuleTemporalInfo & OptionalGranuleProcessingInfo;
48
+ timeToPreprocess?: number
49
+ } & PartialGranuleTemporalInfo & ParitalGranuleProcessingInfo;
50
+
51
+ export type ApiGranule = {
52
+ granuleId: string
53
+ collectionId: string
54
+ status?: GranuleStatus
55
+ updatedAt?: number | null
56
+ cmrLink?: string | null
57
+ createdAt?: number | null
58
+ duration?: number | null
59
+ error?: Object | null
60
+ execution?: string | null
61
+ files?: Omit<import('./files').ApiFile, 'granuleId'>[] | null
62
+ pdrName?: string | null
63
+ productVolume?: string | null
64
+ provider?: string | null
65
+ published?: boolean | null
66
+ queryFields?: unknown | null
67
+ timestamp?: number | null
68
+ timeToArchive?: number | null
69
+ timeToPreprocess?: number | null
70
+ } & PartialGranuleTemporalInfo & ParitalGranuleProcessingInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/types",
3
- "version": "13.4.0",
3
+ "version": "14.0.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": "cd4377ccf97a1daba19775fb95f9f7fa0f2a29f3"
25
+ "gitHead": "bc0cd0857e007b64e4e8809f7de16a4aeb1e6840"
26
26
  }