fairspec-extension 0.1.0 → 0.1.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.
package/models/dataset.ts CHANGED
@@ -4,7 +4,7 @@ export type FairspecExtensionProfile = Dataset
4
4
  export type Resource = Table1Resource | Table2Resource
5
5
 
6
6
  export interface Dataset {
7
- $schema: "https://fairspec.github.io/profiles/0.1.0/dataset.json"
7
+ $schema: "https://fairspec.github.io/profiles/0.1.1/dataset.json"
8
8
  /**
9
9
  * @minItems 1
10
10
  */
@@ -15,12 +15,12 @@ export interface Dataset {
15
15
  */
16
16
  export interface Table1Resource {
17
17
  name: "table1"
18
- tableSchema: "https://fairspec.github.io/schemas/0.1.0/table1.json"
18
+ tableSchema: "https://fairspec.github.io/schemas/0.1.1/table1.json"
19
19
  }
20
20
  /**
21
21
  * Data items have to conform to the Table2 schema
22
22
  */
23
23
  export interface Table2Resource {
24
24
  name: "table2"
25
- tableSchema: "https://fairspec.github.io/schemas/0.1.0/table2.json"
25
+ tableSchema: "https://fairspec.github.io/schemas/0.1.1/table2.json"
26
26
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fairspec-extension",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "slug": "fairspec-extension",
6
6
  "title": "Fairspec Extension",
7
7
  "description": "Fairspec Extension is a Git repository template for rapid Fairspec extension development",
package/.user/example.ts DELETED
@@ -1,58 +0,0 @@
1
- import type { Car, Dealer, Package } from "./index.ts"
2
-
3
- // Create dealer information
4
- const dealer: Dealer = {
5
- title: "Premium Auto Sales",
6
- country: "United States",
7
- region: "California",
8
- city: "Los Angeles",
9
- address: "1234 Sunset Boulevard",
10
- postcode: "90028",
11
- phone: "+1-323-555-0100",
12
- email: "sales@premiumauto.com",
13
- url: "https://www.premiumauto.com",
14
- lat: 34.0983,
15
- lon: -118.3267,
16
- }
17
-
18
- // Create car listings
19
- const car: Car = {
20
- title: "2023 Tesla Model 3 Long Range",
21
- url: "https://www.premiumauto.com/cars/tesla-model-3-2023",
22
- price: 45990,
23
- currency: "USD",
24
- year: 2023,
25
- mileage: 12000,
26
- brand: "Tesla",
27
- model: "Model 3",
28
- version: "Long Range AWD",
29
- fuel: "electric",
30
- gearbox: "auto",
31
- category: "saloon",
32
- color: "white",
33
- door: "fourfive",
34
- power: 346,
35
- seats: 5,
36
- range: 358,
37
- battery: 75,
38
- }
39
-
40
- // Create the package
41
- const dataPackage: Package = {
42
- resources: [
43
- {
44
- name: "car",
45
- data: [car],
46
- schema:
47
- "https://raw.githubusercontent.com/datisthq/cardealerdp/v0.2.2/extension/schemas/car.json",
48
- },
49
- {
50
- name: "dealer",
51
- data: [dealer],
52
- schema:
53
- "https://raw.githubusercontent.com/datisthq/cardealerdp/v0.2.2/extension/schemas/dealer.json",
54
- },
55
- ],
56
- }
57
-
58
- console.log(dataPackage)
package/build/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type * as standard from "@dpkit/core";
2
- import type * as extension from "./profile.ts";
3
- export type Package = standard.Package & extension.Package;
4
- export type Resource = standard.Resource & extension.Resource;
5
- export type Schema = extension.Schema;
6
- export type Dialect = standard.Dialect;
7
- export type * from "./schemas/index.ts";
package/build/index.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgKiBhcyBzdGFuZGFyZCBmcm9tIFwiQGRwa2l0L2NvcmVcIlxuaW1wb3J0IHR5cGUgKiBhcyBleHRlbnNpb24gZnJvbSBcIi4vcHJvZmlsZS50c1wiXG5cbmV4cG9ydCB0eXBlIFBhY2thZ2UgPSBzdGFuZGFyZC5QYWNrYWdlICYgZXh0ZW5zaW9uLlBhY2thZ2VcbmV4cG9ydCB0eXBlIFJlc291cmNlID0gc3RhbmRhcmQuUmVzb3VyY2UgJiBleHRlbnNpb24uUmVzb3VyY2VcbmV4cG9ydCB0eXBlIFNjaGVtYSA9IGV4dGVuc2lvbi5TY2hlbWFcbmV4cG9ydCB0eXBlIERpYWxlY3QgPSBzdGFuZGFyZC5EaWFsZWN0XG5cbmV4cG9ydCB0eXBlICogZnJvbSBcIi4vc2NoZW1hcy9pbmRleC50c1wiXG4iXX0=
@@ -1,23 +0,0 @@
1
- /**
2
- * This file was automatically generated by json-schema-to-typescript.
3
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
- * and run json-schema-to-typescript to regenerate this file.
5
- */
6
- export type CarDealerDataPackageProfile = Package;
7
- export type Schema = "https://raw.githubusercontent.com/datisthq/cardealerdp/v0.1.0/schemas/car.json";
8
- export interface Package {
9
- dealer: Dealer;
10
- /**
11
- * @minItems 1
12
- * @maxItems 1
13
- */
14
- resources: [Resource];
15
- }
16
- export interface Dealer {
17
- title: string;
18
- url?: string;
19
- }
20
- export interface Resource {
21
- name: "car";
22
- schema: Schema;
23
- }
package/build/profile.js DELETED
@@ -1,8 +0,0 @@
1
- /* eslint-disable */
2
- /**
3
- * This file was automatically generated by json-schema-to-typescript.
4
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
- * and run json-schema-to-typescript to regenerate this file.
6
- */
7
- export {};
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3Byb2ZpbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0JBQW9CO0FBQ3BCOzs7O0dBSUciLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSAqL1xuLyoqXG4gKiBUaGlzIGZpbGUgd2FzIGF1dG9tYXRpY2FsbHkgZ2VuZXJhdGVkIGJ5IGpzb24tc2NoZW1hLXRvLXR5cGVzY3JpcHQuXG4gKiBETyBOT1QgTU9ESUZZIElUIEJZIEhBTkQuIEluc3RlYWQsIG1vZGlmeSB0aGUgc291cmNlIEpTT05TY2hlbWEgZmlsZSxcbiAqIGFuZCBydW4ganNvbi1zY2hlbWEtdG8tdHlwZXNjcmlwdCB0byByZWdlbmVyYXRlIHRoaXMgZmlsZS5cbiAqL1xuXG5leHBvcnQgdHlwZSBDYXJEZWFsZXJEYXRhUGFja2FnZVByb2ZpbGUgPSBQYWNrYWdlO1xuZXhwb3J0IHR5cGUgU2NoZW1hID0gXCJodHRwczovL3Jhdy5naXRodWJ1c2VyY29udGVudC5jb20vZGF0aXN0aHEvY2FyZGVhbGVyZHAvdjAuMS4wL3NjaGVtYXMvY2FyLmpzb25cIjtcblxuZXhwb3J0IGludGVyZmFjZSBQYWNrYWdlIHtcbiAgZGVhbGVyOiBEZWFsZXI7XG4gIC8qKlxuICAgKiBAbWluSXRlbXMgMVxuICAgKiBAbWF4SXRlbXMgMVxuICAgKi9cbiAgcmVzb3VyY2VzOiBbUmVzb3VyY2VdO1xufVxuZXhwb3J0IGludGVyZmFjZSBEZWFsZXIge1xuICB0aXRsZTogc3RyaW5nO1xuICB1cmw/OiBzdHJpbmc7XG59XG5leHBvcnQgaW50ZXJmYWNlIFJlc291cmNlIHtcbiAgbmFtZTogXCJjYXJcIjtcbiAgc2NoZW1hOiBTY2hlbWE7XG59XG4iXX0=
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was automatically generated by json-schema-to-typescript.
3
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
- * and run json-schema-to-typescript to regenerate this file.
5
- */
6
- export interface Car {
7
- name?: string;
8
- price?: number;
9
- }
@@ -1,8 +0,0 @@
1
- /* eslint-disable */
2
- /**
3
- * This file was automatically generated by json-schema-to-typescript.
4
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
- * and run json-schema-to-typescript to regenerate this file.
6
- */
7
- export {};
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc2NoZW1hcy9jYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0JBQW9CO0FBQ3BCOzs7O0dBSUciLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSAqL1xuLyoqXG4gKiBUaGlzIGZpbGUgd2FzIGF1dG9tYXRpY2FsbHkgZ2VuZXJhdGVkIGJ5IGpzb24tc2NoZW1hLXRvLXR5cGVzY3JpcHQuXG4gKiBETyBOT1QgTU9ESUZZIElUIEJZIEhBTkQuIEluc3RlYWQsIG1vZGlmeSB0aGUgc291cmNlIEpTT05TY2hlbWEgZmlsZSxcbiAqIGFuZCBydW4ganNvbi1zY2hlbWEtdG8tdHlwZXNjcmlwdCB0byByZWdlbmVyYXRlIHRoaXMgZmlsZS5cbiAqL1xuXG5leHBvcnQgaW50ZXJmYWNlIENhciB7XG4gIG5hbWU/OiBzdHJpbmc7XG4gIHByaWNlPzogbnVtYmVyO1xufVxuIl19
@@ -1 +0,0 @@
1
- export * from "./car.ts";
@@ -1,2 +0,0 @@
1
- export * from "./car.js";
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zY2hlbWFzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsVUFBVSxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY2FyLnRzXCIiXX0=