@dcupl/cli 0.0.27 → 0.0.28

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 (51) hide show
  1. package/dist/functions/files/files-copy.d.ts +1 -1
  2. package/dist/functions/files/files-list-versions.d.ts +1 -1
  3. package/dist/functions/files/files-pull.d.ts +1 -1
  4. package/dist/functions/files/files-push.d.ts +1 -1
  5. package/dist/functions/generate/projects/generate-project.js +12 -7
  6. package/dist/functions/generate/projects/generate-project.js.map +1 -1
  7. package/dist/functions/generate/types/generate.helper.js +2 -0
  8. package/dist/functions/generate/types/generate.helper.js.map +1 -1
  9. package/dist/functions/helper/config.helper.d.ts +2 -2
  10. package/dist/functions/serve/app.controller.js.map +1 -1
  11. package/dist/functions/serve/app.module.js.map +1 -1
  12. package/dist/functions/serve/app.service.js.map +1 -1
  13. package/dist/functions/serve/main.d.ts +1 -1
  14. package/dist/functions/serve/main.js +13 -2
  15. package/dist/functions/serve/main.js.map +1 -1
  16. package/dist/functions/start-dcupl/start-dcupl.d.ts +6 -0
  17. package/dist/functions/start-dcupl/start-dcupl.js +51 -0
  18. package/dist/functions/start-dcupl/start-dcupl.js.map +1 -0
  19. package/dist/index.js +12 -3
  20. package/dist/index.js.map +1 -1
  21. package/files/starters/starter_01/dcupl/dcupl.lc.json +2 -8
  22. package/package.json +4 -2
  23. package/files/demo/bookstore_01/dcupl/data/author.csv +0 -9126
  24. package/files/demo/bookstore_01/dcupl/data/book.csv +0 -10059
  25. package/files/demo/bookstore_01/dcupl/data/book_language.json +0 -32
  26. package/files/demo/bookstore_01/dcupl/data/publisher.csv +0 -2265
  27. package/files/demo/bookstore_01/dcupl/dcupl.lc.json +0 -81
  28. package/files/demo/bookstore_01/dcupl/models/author.dcupl.json +0 -16
  29. package/files/demo/bookstore_01/dcupl/models/book.dcupl.json +0 -31
  30. package/files/demo/bookstore_01/dcupl/models/book_language.dcupl.json +0 -9
  31. package/files/demo/bookstore_01/dcupl/models/publisher.dcupl.json +0 -9
  32. package/files/demo/bookstore_01/dcupl.config.json +0 -10
  33. package/files/demo/bookstore_01/package.json +0 -14
  34. package/files/demo/bookstore_02/dcupl/bookstore_local.ldp.json +0 -74
  35. package/files/demo/bookstore_02/dcupl/data/address.csv +0 -1001
  36. package/files/demo/bookstore_02/dcupl/data/author.csv +0 -9126
  37. package/files/demo/bookstore_02/dcupl/data/book.csv +0 -10059
  38. package/files/demo/bookstore_02/dcupl/data/book_language.json +0 -30
  39. package/files/demo/bookstore_02/dcupl/data/country.csv +0 -233
  40. package/files/demo/bookstore_02/dcupl/data/cust_order.csv +0 -4001
  41. package/files/demo/bookstore_02/dcupl/data/customer.csv +0 -2001
  42. package/files/demo/bookstore_02/dcupl/data/publisher.csv +0 -2265
  43. package/files/demo/bookstore_02/dcupl/model/adv_address.dcupl.json +0 -20
  44. package/files/demo/bookstore_02/dcupl/model/adv_country.dcupl.json +0 -7
  45. package/files/demo/bookstore_02/dcupl/model/adv_cust_order.dcupl.json +0 -21
  46. package/files/demo/bookstore_02/dcupl/model/adv_customer.dcupl.json +0 -35
  47. package/files/demo/bookstore_02/dcupl/model/author.dcupl.json +0 -19
  48. package/files/demo/bookstore_02/dcupl/model/book.dcupl.json +0 -73
  49. package/files/demo/bookstore_02/dcupl/model/book_language.dcupl.json +0 -9
  50. package/files/demo/bookstore_02/dcupl/model/publisher.dcupl.json +0 -10
  51. package/files/demo/bookstore_02/package.json +0 -14
@@ -1,81 +0,0 @@
1
- {
2
- "applications": [
3
- {
4
- "key": "localhost",
5
- "description": "My localhost preset",
6
- "variables": [
7
- {
8
- "key": "apiUrl",
9
- "value": "http://localhost:8083"
10
- }
11
- ]
12
- },
13
- {
14
- "key": "draft",
15
- "description": "My draft preset.",
16
- "environmentKeys": ["default"],
17
- "variables": [
18
- {
19
- "key": "apiUrl",
20
- "value": "https://cdn.dcupl.com/files/projects/${projectId}/draft"
21
- }
22
- ]
23
- },
24
- {
25
- "key": "published",
26
- "description": "My published preset.",
27
- "environmentKeys": ["default"],
28
- "variables": [
29
- {
30
- "key": "apiUrl",
31
- "value": "https://cdn.dcupl.com/files/projects/${projectId}/published"
32
- }
33
- ]
34
- }
35
- ],
36
- "environments": [
37
- {
38
- "key": "default",
39
- "description": "The default environment containing variables that are used in multiple presets.",
40
- "variables": [
41
- {
42
- "key": "projectId",
43
- "value": ""
44
- }
45
- ]
46
- }
47
- ],
48
- "resources": [
49
- {
50
- "url": "${apiUrl}/models/book.dcupl.json",
51
- "type": "model"
52
- },
53
- {
54
- "url": "${apiUrl}/models/book_language.dcupl.json",
55
- "type": "model"
56
- },
57
- {
58
- "url": "${apiUrl}/models/author.dcupl.json",
59
- "type": "model"
60
- },
61
- {
62
- "url": "${apiUrl}/models/publisher.dcupl.json",
63
- "type": "model"
64
- },
65
- {
66
- "url": "${apiUrl}/data/author.csv",
67
- "type": "data",
68
- "model": "author"
69
- },
70
- {
71
- "url": "${apiUrl}/data/book.csv",
72
- "type": "data",
73
- "model": "book"
74
- },
75
- {
76
- "url": "${apiUrl}/data/publisher.csv",
77
- "type": "data",
78
- "model": "publisher"
79
- }
80
- ]
81
- }
@@ -1,16 +0,0 @@
1
- {
2
- "key": "author",
3
- "references": [
4
- {
5
- "key": "book_ids",
6
- "model": "book",
7
- "type": "multiValued"
8
- }
9
- ],
10
- "properties": [
11
- {
12
- "key": "author_name",
13
- "type": "string"
14
- }
15
- ]
16
- }
@@ -1,31 +0,0 @@
1
- {
2
- "key": "book",
3
- "references": [
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
- "type": "string",
24
- "filter": true
25
- },
26
- {
27
- "key": "language_code",
28
- "type": "string"
29
- }
30
- ]
31
- }
@@ -1,9 +0,0 @@
1
- {
2
- "key": "book_language",
3
- "properties": [
4
- {
5
- "key": "language_name",
6
- "type": "string"
7
- }
8
- ]
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "key": "publisher",
3
- "properties": [
4
- {
5
- "key": "publisher_name",
6
- "type": "string"
7
- }
8
- ]
9
- }
@@ -1,10 +0,0 @@
1
- {
2
- "projectId": "",
3
- "loaderPath": "dcupl/dcupl.lc.json",
4
- "modelsBasePath": "dcupl/models",
5
- "baseFolder": "dcupl",
6
- "filesUpload": {
7
- "include": ["**/*.json", "**/*.csv"],
8
- "exclude": []
9
- }
10
- }
@@ -1,14 +0,0 @@
1
- {
2
- "name": "dcupl-starter",
3
- "version": "0.0.0",
4
- "description": "",
5
- "scripts": {
6
- "serve": "npx dcupl serve"
7
- },
8
- "repository": {},
9
- "author": "",
10
- "license": "MIT",
11
- "devDependencies": {
12
- "@dcupl/cli": "0.0.*"
13
- }
14
- }
@@ -1,74 +0,0 @@
1
- [
2
- {
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",
32
- "type":"model"
33
- },
34
- {
35
- "url": "http://localhost:8083/data/author.csv",
36
- "type":"data",
37
- "model": "author"
38
- },
39
- {
40
- "url": "http://localhost:8083/data/book.csv",
41
- "type":"data",
42
- "model": "book"
43
- },
44
- {
45
- "url": "http://localhost:8083/data/publisher.csv",
46
- "type":"data",
47
- "model": "publisher"
48
- },
49
- {
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",
71
- "type":"data",
72
- "model": "book_language"
73
- }
74
- ]