@data-fair/lib-common-types 1.9.1 → 1.9.2

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.
@@ -55,7 +55,7 @@ export type CatalogDataset = {
55
55
  license?: string;
56
56
  frequency?: string;
57
57
  private?: boolean;
58
- resources?: CatalogResourceDataset;
58
+ resources?: CatalogResourceDataset[];
59
59
  }
60
60
  /**
61
61
  * The normalized resource format
@@ -1,7 +1,5 @@
1
1
  import type { Capability, Metadata, CatalogDataset, Publication } from './.type/index.js';
2
- export type { CatalogDataset } from './.type/index.js';
3
- export type { CatalogResourceDataset } from './.type/index.js';
4
- export type { Publication } from './.type/index.js';
2
+ export * from './.type/index.js';
5
3
  /** Utility type to check if a type T includes a type U */
6
4
  type Includes<T extends any[], U> = U extends T[number] ? true : false;
7
5
  /**
package/catalog/index.js CHANGED
@@ -1 +1 @@
1
- export {}
1
+ export * from './.type/index.js'
@@ -73,7 +73,10 @@ declare const _default: {
73
73
  type: string;
74
74
  };
75
75
  resources: {
76
- $ref: string;
76
+ type: string;
77
+ items: {
78
+ $ref: string;
79
+ };
77
80
  };
78
81
  };
79
82
  };
package/catalog/schema.js CHANGED
@@ -83,8 +83,11 @@ export default {
83
83
  type: 'boolean'
84
84
  },
85
85
  resources: {
86
- $ref: '#/$defs/catalogResourceDataset'
87
- },
86
+ type: 'array',
87
+ items: {
88
+ $ref: '#/$defs/catalogResourceDataset'
89
+ }
90
+ }
88
91
  },
89
92
  },
90
93
  catalogResourceDataset: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-common-types",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Shared schemas and built type definitions in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "scripts": {