fairspec-extension 0.2.3 → 0.4.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/README.md +1 -1
- package/build/index.d.ts +7 -7
- package/build/models/dataset.d.ts +14 -14
- package/build/models/dataset.js +4 -4
- package/models/dataset.ts +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -1712,19 +1712,19 @@ export declare const Dataset: z.ZodIntersection<z.ZodObject<{
|
|
|
1712
1712
|
unstable_customMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1713
1713
|
}, z.core.$strip>>>;
|
|
1714
1714
|
}, z.core.$strip>, z.ZodObject<{
|
|
1715
|
-
$schema: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/profiles/0.
|
|
1715
|
+
$schema: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/profiles/0.4.0/dataset.json">;
|
|
1716
1716
|
resources: z.ZodTuple<[z.ZodUnion<readonly [z.ZodObject<{
|
|
1717
1717
|
name: z.ZodLiteral<"table1">;
|
|
1718
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
1718
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json">;
|
|
1719
1719
|
}, z.core.$strip>, z.ZodObject<{
|
|
1720
1720
|
name: z.ZodLiteral<"table2">;
|
|
1721
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
1721
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json">;
|
|
1722
1722
|
}, z.core.$strip>]>], z.ZodUnion<readonly [z.ZodObject<{
|
|
1723
1723
|
name: z.ZodLiteral<"table1">;
|
|
1724
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
1724
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json">;
|
|
1725
1725
|
}, z.core.$strip>, z.ZodObject<{
|
|
1726
1726
|
name: z.ZodLiteral<"table2">;
|
|
1727
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
1727
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json">;
|
|
1728
1728
|
}, z.core.$strip>]>>;
|
|
1729
1729
|
}, z.core.$strip>>;
|
|
1730
1730
|
export declare const Resource: z.ZodIntersection<z.ZodObject<{
|
|
@@ -2890,10 +2890,10 @@ export declare const Resource: z.ZodIntersection<z.ZodObject<{
|
|
|
2890
2890
|
unstable_customMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2891
2891
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
2892
2892
|
name: z.ZodLiteral<"table1">;
|
|
2893
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
2893
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json">;
|
|
2894
2894
|
}, z.core.$strip>, z.ZodObject<{
|
|
2895
2895
|
name: z.ZodLiteral<"table2">;
|
|
2896
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
2896
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json">;
|
|
2897
2897
|
}, z.core.$strip>]>>;
|
|
2898
2898
|
export type Dataset = z.infer<typeof Dataset>;
|
|
2899
2899
|
export type Resource = z.infer<typeof Resource>;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const Table1Resource: z.ZodObject<{
|
|
3
3
|
name: z.ZodLiteral<"table1">;
|
|
4
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
4
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json">;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export declare const Table2Resource: z.ZodObject<{
|
|
7
7
|
name: z.ZodLiteral<"table2">;
|
|
8
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
8
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json">;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
export declare const Resource: z.ZodUnion<readonly [z.ZodObject<{
|
|
11
11
|
name: z.ZodLiteral<"table1">;
|
|
12
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
12
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json">;
|
|
13
13
|
}, z.core.$strip>, z.ZodObject<{
|
|
14
14
|
name: z.ZodLiteral<"table2">;
|
|
15
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
15
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json">;
|
|
16
16
|
}, z.core.$strip>]>;
|
|
17
17
|
export declare const Dataset: z.ZodObject<{
|
|
18
|
-
$schema: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/profiles/0.
|
|
18
|
+
$schema: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/profiles/0.4.0/dataset.json">;
|
|
19
19
|
resources: z.ZodTuple<[z.ZodUnion<readonly [z.ZodObject<{
|
|
20
20
|
name: z.ZodLiteral<"table1">;
|
|
21
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
21
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json">;
|
|
22
22
|
}, z.core.$strip>, z.ZodObject<{
|
|
23
23
|
name: z.ZodLiteral<"table2">;
|
|
24
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
24
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json">;
|
|
25
25
|
}, z.core.$strip>]>], z.ZodUnion<readonly [z.ZodObject<{
|
|
26
26
|
name: z.ZodLiteral<"table1">;
|
|
27
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
27
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json">;
|
|
28
28
|
}, z.core.$strip>, z.ZodObject<{
|
|
29
29
|
name: z.ZodLiteral<"table2">;
|
|
30
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
30
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json">;
|
|
31
31
|
}, z.core.$strip>]>>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export declare const FairspecExtensionProfile: z.ZodObject<{
|
|
34
|
-
$schema: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/profiles/0.
|
|
34
|
+
$schema: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/profiles/0.4.0/dataset.json">;
|
|
35
35
|
resources: z.ZodTuple<[z.ZodUnion<readonly [z.ZodObject<{
|
|
36
36
|
name: z.ZodLiteral<"table1">;
|
|
37
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
37
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json">;
|
|
38
38
|
}, z.core.$strip>, z.ZodObject<{
|
|
39
39
|
name: z.ZodLiteral<"table2">;
|
|
40
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
40
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json">;
|
|
41
41
|
}, z.core.$strip>]>], z.ZodUnion<readonly [z.ZodObject<{
|
|
42
42
|
name: z.ZodLiteral<"table1">;
|
|
43
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
43
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json">;
|
|
44
44
|
}, z.core.$strip>, z.ZodObject<{
|
|
45
45
|
name: z.ZodLiteral<"table2">;
|
|
46
|
-
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
46
|
+
Table: z.ZodLiteral<"https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json">;
|
|
47
47
|
}, z.core.$strip>]>>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
49
|
export type Table1Resource = z.infer<typeof Table1Resource>;
|
package/build/models/dataset.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export const Table1Resource = z.object({
|
|
4
4
|
name: z.literal("table1"),
|
|
5
|
-
Table: z.literal("https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
5
|
+
Table: z.literal("https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json")
|
|
6
6
|
});
|
|
7
7
|
export const Table2Resource = z.object({
|
|
8
8
|
name: z.literal("table2"),
|
|
9
|
-
Table: z.literal("https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
9
|
+
Table: z.literal("https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json")
|
|
10
10
|
});
|
|
11
11
|
export const Resource = z.union([Table1Resource, Table2Resource]);
|
|
12
12
|
export const Dataset = z.object({
|
|
13
|
-
$schema: z.literal("https://fairspec.github.io/fairspec-extension/profiles/0.
|
|
13
|
+
$schema: z.literal("https://fairspec.github.io/fairspec-extension/profiles/0.4.0/dataset.json"),
|
|
14
14
|
resources: z.tuple([Resource]).rest(Resource)
|
|
15
15
|
});
|
|
16
16
|
export const FairspecExtensionProfile = D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Sk7XG5cbmV4cG9ydCBjb25zdCBGYWlyc3BlY0V4dGVuc2lvblByb2ZpbGUgPSBEYXRhc2V0O1xuZXhwb3J0IHR5cGUgVGFibGUxUmVzb3VyY2UgPSB6LmluZmVyPHR5cGVvZiBUYWJsZTFSZXNvdXJjZT5cbmV4cG9ydCB0eXBlIFRhYmxlMlJlc291cmNlID0gei5pbmZlcjx0eXBlb2YgVGFibGUyUmVzb3VyY2U+XG5leHBvcnQgdHlwZSBSZXNvdXJjZSA9IHouaW5mZXI8dHlwZW9mIFJlc291cmNlPlxuZXhwb3J0IHR5cGUgRGF0YXNldCA9IHouaW5mZXI8dHlwZW9mIERhdGFzZXQ+XG5leHBvcnQgdHlwZSBGYWlyc3BlY0V4dGVuc2lvblByb2ZpbGUgPSB6LmluZmVyPHR5cGVvZiBGYWlyc3BlY0V4dGVuc2lvblByb2ZpbGU+XG4iXX0=
|
package/models/dataset.ts
CHANGED
|
@@ -3,18 +3,18 @@ import { z } from "zod";
|
|
|
3
3
|
|
|
4
4
|
export const Table1Resource = z.object({
|
|
5
5
|
name: z.literal("table1"),
|
|
6
|
-
Table: z.literal("https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
6
|
+
Table: z.literal("https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table1.json")
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
export const Table2Resource = z.object({
|
|
10
10
|
name: z.literal("table2"),
|
|
11
|
-
Table: z.literal("https://fairspec.github.io/fairspec-extension/schemas/0.
|
|
11
|
+
Table: z.literal("https://fairspec.github.io/fairspec-extension/schemas/0.4.0/table2.json")
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
export const Resource = z.union([Table1Resource, Table2Resource]);
|
|
15
15
|
|
|
16
16
|
export const Dataset = z.object({
|
|
17
|
-
$schema: z.literal("https://fairspec.github.io/fairspec-extension/profiles/0.
|
|
17
|
+
$schema: z.literal("https://fairspec.github.io/fairspec-extension/profiles/0.4.0/dataset.json"),
|
|
18
18
|
resources: z.tuple([Resource]).rest(Resource)
|
|
19
19
|
});
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fairspec-extension",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"slug": "fairspec-extension",
|
|
6
6
|
"title": "Fairspec Extension",
|
|
7
|
-
"description": "Fairspec Extension is a
|
|
7
|
+
"description": "Fairspec Extension is a repository template for rapid Fairspec extension development",
|
|
8
8
|
"repository": "https://github.com/fairspec/fairspec-extension",
|
|
9
9
|
"homepage": "https://fairspec.github.io/fairspec-extension",
|
|
10
10
|
"author": "Evgeny Karev",
|