@dcupl/cli 0.0.5 → 0.0.6

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 (37) hide show
  1. package/dist/index.js +23 -13
  2. package/dist/index.js.map +1 -1
  3. package/files/common/.vscode/settings.json +18 -0
  4. package/files/demo/bookstore_01/dcupl/bookstore_local.ldp.json +16 -4
  5. package/files/demo/bookstore_01/dcupl/{api → data}/author.csv +0 -0
  6. package/files/demo/{bookstore_02/dcupl/api → bookstore_01/dcupl/data}/book.csv +10059 -10059
  7. package/files/demo/bookstore_01/dcupl/{api → data}/book_language.json +0 -0
  8. package/files/demo/bookstore_01/dcupl/data/publisher.csv +2265 -0
  9. package/files/demo/bookstore_01/dcupl/models/author.dcupl.json +16 -0
  10. package/files/demo/bookstore_01/dcupl/models/book.dcupl.json +31 -0
  11. package/files/demo/bookstore_01/dcupl/models/book_language.dcupl.json +9 -0
  12. package/files/demo/bookstore_01/dcupl/models/publisher.dcupl.json +9 -0
  13. package/files/demo/bookstore_02/dcupl/bookstore_local.ldp.json +53 -5
  14. package/files/demo/bookstore_02/dcupl/data/address.csv +1001 -0
  15. package/files/demo/bookstore_02/dcupl/{api → data}/author.csv +0 -0
  16. package/files/demo/{bookstore_01/dcupl/api → bookstore_02/dcupl/data}/book.csv +10059 -10059
  17. package/files/demo/bookstore_02/dcupl/{api → data}/book_language.json +0 -1
  18. package/files/demo/bookstore_02/dcupl/data/country.csv +233 -0
  19. package/files/demo/bookstore_02/dcupl/data/cust_order.csv +4001 -0
  20. package/files/demo/bookstore_02/dcupl/data/customer.csv +2001 -0
  21. package/files/demo/bookstore_02/dcupl/data/publisher.csv +2265 -0
  22. package/files/demo/bookstore_02/dcupl/model/adv_address.dcupl.json +20 -0
  23. package/files/demo/bookstore_02/dcupl/model/adv_country.dcupl.json +7 -0
  24. package/files/demo/bookstore_02/dcupl/model/adv_cust_order.dcupl.json +21 -0
  25. package/files/demo/bookstore_02/dcupl/model/adv_customer.dcupl.json +35 -0
  26. package/files/demo/bookstore_02/dcupl/model/author.dcupl.json +19 -0
  27. package/files/demo/bookstore_02/dcupl/model/book.dcupl.json +73 -0
  28. package/files/demo/bookstore_02/dcupl/model/book_language.dcupl.json +9 -0
  29. package/files/demo/bookstore_02/dcupl/model/publisher.dcupl.json +10 -0
  30. package/files/demo/bookstore_02/package.json +1 -1
  31. package/package.json +2 -2
  32. package/files/demo/bookstore_01/dcupl/api/publisher.csv +0 -26
  33. package/files/demo/bookstore_01/dcupl/bookstore.dcupl.json +0 -56
  34. package/files/demo/bookstore_01/dcupl/bookstore_github.ldp.json +0 -26
  35. package/files/demo/bookstore_02/dcupl/api/publisher.csv +0 -26
  36. package/files/demo/bookstore_02/dcupl/bookstore.dcupl.json +0 -62
  37. package/files/demo/bookstore_02/dcupl/bookstore_github.ldp.json +0 -26
@@ -0,0 +1,16 @@
1
+ {
2
+ "key": "author",
3
+ "fields": [
4
+ {
5
+ "key": "book_ids",
6
+ "model": "book",
7
+ "type": "multiValued"
8
+ }
9
+ ],
10
+ "properties": [
11
+ {
12
+ "key": "author_name",
13
+ "datatype": "string"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "key": "book",
3
+ "fields": [
4
+ {
5
+ "key": "publisher_id",
6
+ "model": "publisher",
7
+ "type": "singleValued"
8
+ },
9
+ {
10
+ "key": "author",
11
+ "model": "author",
12
+ "type": "multiValued",
13
+ "resolve":
14
+ {
15
+ "model":"author",
16
+ "field":"book_ids"
17
+ }
18
+ }
19
+ ],
20
+ "properties": [
21
+ {
22
+ "key": "title",
23
+ "datatype": "string",
24
+ "filter": true
25
+ },
26
+ {
27
+ "key": "language_code",
28
+ "datatype": "string"
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "key": "book_language",
3
+ "properties": [
4
+ {
5
+ "key": "language_name",
6
+ "datatype": "string"
7
+ }
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "key": "publisher",
3
+ "properties": [
4
+ {
5
+ "key": "publisher_name",
6
+ "datatype": "string"
7
+ }
8
+ ]
9
+ }
@@ -1,25 +1,73 @@
1
1
  [
2
2
  {
3
- "url": "http://localhost:8083/bookstore.dcupl.json",
3
+ "url": "http://localhost:8083/model/book.dcupl.json",
4
+ "type":"model"
5
+ },
6
+ {
7
+ "url": "http://localhost:8083/model/book_language.dcupl.json",
8
+ "type":"model"
9
+ },
10
+ {
11
+ "url": "http://localhost:8083/model/author.dcupl.json",
12
+ "type":"model"
13
+ },
14
+ {
15
+ "url": "http://localhost:8083/model/publisher.dcupl.json",
16
+ "type":"model"
17
+ },
18
+ {
19
+ "url": "http://localhost:8083/model/adv_address.dcupl.json",
20
+ "type":"model"
21
+ },
22
+ {
23
+ "url": "http://localhost:8083/model/adv_country.dcupl.json",
24
+ "type":"model"
25
+ },
26
+ {
27
+ "url": "http://localhost:8083/model/adv_cust_order.dcupl.json",
28
+ "type":"model"
29
+ },
30
+ {
31
+ "url": "http://localhost:8083/model/adv_customer.dcupl.json",
4
32
  "type":"model"
5
33
  },
6
34
  {
7
- "url": "http://localhost:8083/api/author.csv",
35
+ "url": "http://localhost:8083/data/author.csv",
8
36
  "type":"data",
9
37
  "model": "author"
10
38
  },
11
39
  {
12
- "url": "http://localhost:8083/api/book.csv",
40
+ "url": "http://localhost:8083/data/book.csv",
13
41
  "type":"data",
14
42
  "model": "book"
15
43
  },
16
44
  {
17
- "url": "http://localhost:8083/api/publisher.csv",
45
+ "url": "http://localhost:8083/data/publisher.csv",
18
46
  "type":"data",
19
47
  "model": "publisher"
20
48
  },
21
49
  {
22
- "url": "http://localhost:8083/api/book_language.json",
50
+ "url": "http://localhost:8083/data/customer.csv",
51
+ "type":"data",
52
+ "model": "customer"
53
+ },
54
+ {
55
+ "url": "http://localhost:8083/data/country.csv",
56
+ "type":"data",
57
+ "model": "country"
58
+ },
59
+ {
60
+ "url": "http://localhost:8083/data/address.csv",
61
+ "type":"data",
62
+ "model": "address"
63
+ },
64
+ {
65
+ "url": "http://localhost:8083/data/cust_order.csv",
66
+ "type":"data",
67
+ "model": "cust_order"
68
+ },
69
+ {
70
+ "url": "http://localhost:8083/data/book_language.json",
23
71
  "type":"data",
24
72
  "model": "book_language"
25
73
  }