meadow 1.1.1 → 2.0.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.
Files changed (86) hide show
  1. package/.config/code-server/config.yaml +4 -0
  2. package/.config/configstore/update-notifier-npm-check-updates.json +4 -0
  3. package/.config/configstore/update-notifier-npm.json +4 -0
  4. package/.config/luxury-extras/.vscode/launch.json +46 -0
  5. package/.config/luxury-extras/Dockerfile +32 -0
  6. package/.config/luxury-extras/MySQL/Dockerfile +51 -0
  7. package/.config/luxury-extras/MySQL/MySQL-Laden-Entry.sh +17 -0
  8. package/.config/luxury-extras/MySQL/MySQL-Security.sql +5 -0
  9. package/.config/luxury-extras/model/ddl/BookStore.ddl +66 -0
  10. package/.config/luxury-extras/model/documentation/Dictionary.md +18 -0
  11. package/.config/luxury-extras/model/documentation/Model-Author.md +20 -0
  12. package/.config/luxury-extras/model/documentation/Model-Book.md +26 -0
  13. package/.config/luxury-extras/model/documentation/Model-BookAuthorJoin.md +14 -0
  14. package/.config/luxury-extras/model/documentation/Model-BookPrice.md +25 -0
  15. package/.config/luxury-extras/model/documentation/Model-Review.md +22 -0
  16. package/.config/luxury-extras/model/documentation/ModelChangeTracking.md +17 -0
  17. package/.config/luxury-extras/model/documentation/README.md +1 -0
  18. package/.config/luxury-extras/model/documentation/diagram/README.md +1 -0
  19. package/.config/luxury-extras/model/documentation/diagram/Stricture_Output.dot +13 -0
  20. package/.config/luxury-extras/model/documentation/diagram/Stricture_Output.png +0 -0
  21. package/.config/luxury-extras/model/generated_diagram/README.md +1 -0
  22. package/.config/luxury-extras/model/generated_diagram/Stricture_Output.dot +13 -0
  23. package/.config/luxury-extras/model/generated_diagram/Stricture_Output.png +0 -0
  24. package/.config/luxury-extras/model/generated_documentation/Dictionary.md +18 -0
  25. package/.config/luxury-extras/model/generated_documentation/Model-Author.md +20 -0
  26. package/.config/luxury-extras/model/generated_documentation/Model-Book.md +26 -0
  27. package/.config/luxury-extras/model/generated_documentation/Model-BookAuthorJoin.md +14 -0
  28. package/.config/luxury-extras/model/generated_documentation/Model-BookPrice.md +25 -0
  29. package/.config/luxury-extras/model/generated_documentation/Model-Review.md +22 -0
  30. package/.config/luxury-extras/model/generated_documentation/ModelChangeTracking.md +17 -0
  31. package/.config/luxury-extras/model/generated_documentation/README.md +1 -0
  32. package/.config/luxury-extras/model/json_schema/BookStore-Extended.json +915 -0
  33. package/.config/luxury-extras/model/json_schema/BookStore-PICT.json +1 -0
  34. package/.config/luxury-extras/model/json_schema/BookStore.json +280 -0
  35. package/.config/luxury-extras/model/json_schema/README.md +1 -0
  36. package/.config/luxury-extras/model/json_schema_entities/BookStore-MeadowSchema-Author.json +220 -0
  37. package/.config/luxury-extras/model/json_schema_entities/BookStore-MeadowSchema-Book.json +268 -0
  38. package/.config/luxury-extras/model/json_schema_entities/BookStore-MeadowSchema-BookAuthorJoin.json +172 -0
  39. package/.config/luxury-extras/model/json_schema_entities/BookStore-MeadowSchema-BookPrice.json +260 -0
  40. package/.config/luxury-extras/model/json_schema_entities/BookStore-MeadowSchema-Review.json +236 -0
  41. package/.config/luxury-extras/model/json_schema_entities/README.md +1 -0
  42. package/.config/luxury-extras/model/json_schema_model/BookStore-Extended.json +915 -0
  43. package/.config/luxury-extras/model/json_schema_model/BookStore-PICT.json +1 -0
  44. package/.config/luxury-extras/model/json_schema_model/BookStore.json +280 -0
  45. package/.config/luxury-extras/model/json_schema_model/README.md +1 -0
  46. package/.config/luxury-extras/model/manual_scripts/DropTables.sql +5 -0
  47. package/.config/luxury-extras/model/manual_scripts/README.md +2 -0
  48. package/.config/luxury-extras/model/meadow_schema/BookStore-MeadowSchema-Author.json +220 -0
  49. package/.config/luxury-extras/model/meadow_schema/BookStore-MeadowSchema-Book.json +268 -0
  50. package/.config/luxury-extras/model/meadow_schema/BookStore-MeadowSchema-BookAuthorJoin.json +172 -0
  51. package/.config/luxury-extras/model/meadow_schema/BookStore-MeadowSchema-BookPrice.json +260 -0
  52. package/.config/luxury-extras/model/meadow_schema/BookStore-MeadowSchema-Review.json +236 -0
  53. package/.config/luxury-extras/model/meadow_schema/README.md +1 -0
  54. package/.config/luxury-extras/model/mysql_create/BookStore-CreateDatabase.mysql.sql +116 -0
  55. package/.config/luxury-extras/model/mysql_create/README.md +1 -0
  56. package/.config/luxury-extras/model/sql_create/BookStore-CreateDatabase.mysql.sql +116 -0
  57. package/.config/luxury-extras/model/sql_create/README.md +1 -0
  58. package/.vscode/launch.json +46 -0
  59. package/Dockerfile_LUXURYCode +65 -0
  60. package/README.md +19 -5
  61. package/debug/Harness.js +69 -84
  62. package/dist/meadow.js +1669 -0
  63. package/dist/meadow.min.js +65 -0
  64. package/dist/meadow.min.js.map +1 -0
  65. package/gulpfile.js +83 -0
  66. package/package.json +42 -20
  67. package/source/Meadow-Browser-Shim.js +14 -0
  68. package/source/{Meadow-PackageLoader.js → Meadow-PackageFileLoader.js} +3 -3
  69. package/source/Meadow-PackageObjectLoader.js +62 -0
  70. package/source/Meadow.js +21 -3
  71. package/source/behaviors/Meadow-Count.js +2 -2
  72. package/source/behaviors/Meadow-Create.js +3 -4
  73. package/source/behaviors/Meadow-Delete.js +2 -2
  74. package/source/behaviors/Meadow-Read.js +5 -4
  75. package/source/behaviors/Meadow-Reads.js +4 -3
  76. package/source/behaviors/Meadow-Undelete.js +42 -0
  77. package/source/behaviors/Meadow-Update.js +2 -2
  78. package/source/providers/Meadow-Provider-ALASQL.js +33 -0
  79. package/source/providers/Meadow-Provider-MeadowEndpoints.js +3 -4
  80. package/source/providers/Meadow-Provider-MySQL.js +40 -0
  81. package/source/providers/Meadow-Provider-None.js +8 -0
  82. package/test/Meadow-Provider-ALASQL.js +38 -14
  83. package/test/Meadow-Provider-MeadowEndpoints_tests.js +2 -819
  84. package/test/Meadow-Provider-MySQL_tests.js +49 -13
  85. package/test/Meadow-Provider-None_tests.js +19 -16
  86. package/test/Meadow_tests.js +59 -2
@@ -0,0 +1,236 @@
1
+ {
2
+ "Scope": "Review",
3
+ "DefaultIdentifier": "IDReviews",
4
+ "Domain": "Default",
5
+ "Schema": [
6
+ {
7
+ "Column": "IDReviews",
8
+ "Type": "AutoIdentity"
9
+ },
10
+ {
11
+ "Column": "GUIDReviews",
12
+ "Type": "AutoGUID"
13
+ },
14
+ {
15
+ "Column": "CreateDate",
16
+ "Type": "CreateDate"
17
+ },
18
+ {
19
+ "Column": "CreatingIDUser",
20
+ "Type": "CreateIDUser"
21
+ },
22
+ {
23
+ "Column": "UpdateDate",
24
+ "Type": "UpdateDate"
25
+ },
26
+ {
27
+ "Column": "UpdatingIDUser",
28
+ "Type": "UpdateIDUser"
29
+ },
30
+ {
31
+ "Column": "Deleted",
32
+ "Type": "Deleted"
33
+ },
34
+ {
35
+ "Column": "DeleteDate",
36
+ "Type": "DeleteDate"
37
+ },
38
+ {
39
+ "Column": "DeletingIDUser",
40
+ "Type": "DeleteIDUser"
41
+ },
42
+ {
43
+ "Column": "Text",
44
+ "Type": "String"
45
+ },
46
+ {
47
+ "Column": "Rating",
48
+ "Type": "Integer"
49
+ },
50
+ {
51
+ "Column": "IDBook",
52
+ "Type": "Integer"
53
+ }
54
+ ],
55
+ "DefaultObject": {
56
+ "IDReviews": 0,
57
+ "GUIDReviews": "0x0000000000000000",
58
+ "CreateDate": null,
59
+ "CreatingIDUser": 0,
60
+ "UpdateDate": null,
61
+ "UpdatingIDUser": 0,
62
+ "Deleted": false,
63
+ "DeleteDate": null,
64
+ "DeletingIDUser": 0,
65
+ "Text": "",
66
+ "Rating": 0,
67
+ "IDBook": 0
68
+ },
69
+ "JsonSchema": {
70
+ "title": "Review",
71
+ "type": "object",
72
+ "properties": {
73
+ "IDReviews": {
74
+ "type": "integer"
75
+ },
76
+ "GUIDReviews": {
77
+ "type": "string"
78
+ },
79
+ "CreateDate": {
80
+ "type": "string"
81
+ },
82
+ "CreatingIDUser": {
83
+ "type": "integer"
84
+ },
85
+ "UpdateDate": {
86
+ "type": "string"
87
+ },
88
+ "UpdatingIDUser": {
89
+ "type": "integer"
90
+ },
91
+ "Deleted": {
92
+ "type": "boolean"
93
+ },
94
+ "DeleteDate": {
95
+ "type": "string"
96
+ },
97
+ "DeletingIDUser": {
98
+ "type": "integer"
99
+ },
100
+ "Text": {
101
+ "type": "string"
102
+ },
103
+ "Rating": {
104
+ "type": "integer"
105
+ },
106
+ "IDBook": {
107
+ "type": "integer"
108
+ }
109
+ },
110
+ "required": [
111
+ "IDReviews"
112
+ ]
113
+ },
114
+ "Authorization": {
115
+ "__DefaultAPISecurity": {
116
+ "Create": "Deny",
117
+ "Read": "Deny",
118
+ "Reads": "Deny",
119
+ "ReadsBy": "Deny",
120
+ "ReadMax": "Deny",
121
+ "ReadSelectList": "Deny",
122
+ "Update": "Deny",
123
+ "Delete": "Deny",
124
+ "Count": "Deny",
125
+ "CountBy": "Deny",
126
+ "Schema": "Deny",
127
+ "Validate": "Deny",
128
+ "New": "Deny"
129
+ },
130
+ "Unauthenticated": {
131
+ "Create": "Deny",
132
+ "Read": "Deny",
133
+ "Reads": "Deny",
134
+ "ReadsBy": "Deny",
135
+ "ReadMax": "Deny",
136
+ "ReadSelectList": "Deny",
137
+ "Update": "Deny",
138
+ "Delete": "Deny",
139
+ "Count": "Deny",
140
+ "CountBy": "Deny",
141
+ "Schema": "Deny",
142
+ "Validate": "Deny",
143
+ "New": "Deny"
144
+ },
145
+ "Readonly": {
146
+ "Create": "Deny",
147
+ "Read": "Allow",
148
+ "Reads": "Allow",
149
+ "ReadsBy": "Allow",
150
+ "ReadMax": "Allow",
151
+ "ReadSelectList": "Allow",
152
+ "Update": "Deny",
153
+ "Delete": "Deny",
154
+ "Count": "Allow",
155
+ "CountBy": "Allow",
156
+ "Schema": "Allow",
157
+ "Validate": "Allow",
158
+ "New": "Deny"
159
+ },
160
+ "User": {
161
+ "Create": "Allow",
162
+ "Read": "MyCustomer",
163
+ "Reads": "MyCustomer",
164
+ "ReadsBy": "MyCustomer",
165
+ "ReadMax": "MyCustomer",
166
+ "ReadSelectList": "MyCustomer",
167
+ "Update": "Mine",
168
+ "Delete": "Mine",
169
+ "Count": "MyCustomer",
170
+ "CountBy": "MyCustomer",
171
+ "Schema": "MyCustomer",
172
+ "Validate": "MyCustomer",
173
+ "New": "MyCustomer"
174
+ },
175
+ "Manager": {
176
+ "Create": "Allow",
177
+ "Read": "MyCustomer",
178
+ "Reads": "MyCustomer",
179
+ "ReadsBy": "MyCustomer",
180
+ "ReadMax": "MyCustomer",
181
+ "ReadSelectList": "MyCustomer",
182
+ "Update": "Mine",
183
+ "Delete": "Mine",
184
+ "Count": "MyCustomer",
185
+ "CountBy": "MyCustomer",
186
+ "Schema": "MyCustomer",
187
+ "Validate": "MyCustomer",
188
+ "New": "MyCustomer"
189
+ },
190
+ "Director": {
191
+ "Create": "Allow",
192
+ "Read": "MyCustomer",
193
+ "Reads": "MyCustomer",
194
+ "ReadsBy": "MyCustomer",
195
+ "ReadMax": "MyCustomer",
196
+ "ReadSelectList": "MyCustomer",
197
+ "Update": "MyCustomer",
198
+ "Delete": "MyCustomer",
199
+ "Count": "MyCustomer",
200
+ "CountBy": "MyCustomer",
201
+ "Schema": "MyCustomer",
202
+ "Validate": "MyCustomer",
203
+ "New": "MyCustomer"
204
+ },
205
+ "Executive": {
206
+ "Create": "Allow",
207
+ "Read": "MyCustomer",
208
+ "Reads": "MyCustomer",
209
+ "ReadsBy": "MyCustomer",
210
+ "ReadMax": "MyCustomer",
211
+ "ReadSelectList": "MyCustomer",
212
+ "Update": "MyCustomer",
213
+ "Delete": "MyCustomer",
214
+ "Count": "MyCustomer",
215
+ "CountBy": "MyCustomer",
216
+ "Schema": "MyCustomer",
217
+ "Validate": "MyCustomer",
218
+ "New": "MyCustomer"
219
+ },
220
+ "Administrator": {
221
+ "Create": "Allow",
222
+ "Read": "Allow",
223
+ "Reads": "Allow",
224
+ "ReadsBy": "Allow",
225
+ "ReadMax": "Allow",
226
+ "ReadSelectList": "Allow",
227
+ "Update": "Allow",
228
+ "Delete": "Allow",
229
+ "Count": "Allow",
230
+ "CountBy": "Allow",
231
+ "Schema": "Allow",
232
+ "Validate": "Allow",
233
+ "New": "Allow"
234
+ }
235
+ }
236
+ }
@@ -0,0 +1 @@
1
+ This is where the meadow schema for each table of the data model will generate.