retold-data-service 2.0.6 → 2.0.8

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/Dockerfile_Service +50 -0
  2. package/debug/Harness.js +81 -2
  3. package/package.json +15 -7
  4. package/source/Retold-Data-Service.js +44 -13
  5. package/test/RetoldDataService_tests.js +6 -1
  6. package/test/model/MeadowModel-Extended.json +2567 -0
  7. package/test/model/{Model.json → MeadowModel.json} +42 -19
  8. package/{debug/model/generated_documentation → test/model/doc}/Dictionary.md +1 -1
  9. package/{debug/model/generated_documentation → test/model/doc}/Model-Author.md +5 -5
  10. package/{debug/model/generated_documentation → test/model/doc}/Model-Book.md +6 -6
  11. package/{debug/model/generated_documentation → test/model/doc}/Model-BookAuthorJoin.md +4 -4
  12. package/{debug/model/generated_documentation → test/model/doc}/Model-BookPrice.md +6 -6
  13. package/{debug/model/generated_documentation → test/model/doc}/Model-Review.md +7 -7
  14. package/{debug/model/generated_documentation → test/model/doc}/ModelChangeTracking.md +1 -1
  15. package/{debug/model/generated_diagram/Stricture_Output.dot → test/model/doc/diagrams/Relationships.dot} +1 -1
  16. package/test/model/doc/diagrams/RelationshipsFull.dot +13 -0
  17. package/test/model/doc/diagrams/RelationshipsFull.png +0 -0
  18. package/test/model/meadow/MeadowSchemaAuthor.json +431 -0
  19. package/test/model/meadow/MeadowSchemaBook.json +527 -0
  20. package/test/model/meadow/MeadowSchemaBookAuthorJoin.json +335 -0
  21. package/test/model/meadow/MeadowSchemaBookPrice.json +511 -0
  22. package/test/model/meadow/MeadowSchemaReview.json +463 -0
  23. package/{debug/model/sql_create/BookStore-CreateDatabase.mysql.sql → test/model/mysql_create/MeadowModel-CreateMySQLDatabase.mysql.sql} +6 -6
  24. package/debug/bookstore-configuration.json +0 -30
  25. package/debug/model/Model-Extended.json +0 -915
  26. package/debug/model/Model.json +0 -280
  27. package/debug/model/bookstore-api-endpoint-exercises.paw +0 -0
  28. package/debug/model/ddl/BookStore.ddl +0 -66
  29. package/debug/model/generated_diagram/README.md +0 -1
  30. package/debug/model/generated_documentation/README.md +0 -1
  31. package/debug/model/manual_scripts/DropTables.sql +0 -5
  32. package/debug/model/manual_scripts/MySQL-Laden-Entry.sh +0 -17
  33. package/debug/model/manual_scripts/MySQL-Security.sql +0 -5
  34. package/debug/model/manual_scripts/README.md +0 -2
  35. package/debug/model/manual_scripts/my.cnf +0 -4
  36. package/debug/model/meadow/Model-MeadowSchema-Author.json +0 -220
  37. package/debug/model/meadow/Model-MeadowSchema-Book.json +0 -268
  38. package/debug/model/meadow/Model-MeadowSchema-BookAuthorJoin.json +0 -172
  39. package/debug/model/meadow/Model-MeadowSchema-BookPrice.json +0 -260
  40. package/debug/model/meadow/Model-MeadowSchema-Review.json +0 -236
  41. package/debug/model/meadow/README.md +0 -1
  42. package/debug/model/sql_create/BookStore-CreateAndPopulateTables.sql +0 -194
  43. package/debug/model/sql_create/README.md +0 -1
  44. package/test/model/Model-Extended.json +0 -915
  45. package/test/model/meadow/Model-MeadowSchema-Author.json +0 -220
  46. package/test/model/meadow/Model-MeadowSchema-Book.json +0 -268
  47. package/test/model/meadow/Model-MeadowSchema-BookAuthorJoin.json +0 -172
  48. package/test/model/meadow/Model-MeadowSchema-BookPrice.json +0 -260
  49. package/test/model/meadow/Model-MeadowSchema-Review.json +0 -236
  50. /package/{debug/model/Model-PICT.json → test/model/MeadowModel-PICT.json} +0 -0
  51. /package/{debug/model/generated_diagram/Stricture_Output.png → test/model/doc/diagrams/Relationships.png} +0 -0
@@ -1,220 +0,0 @@
1
- {
2
- "Scope": "Author",
3
- "DefaultIdentifier": "IDAuthor",
4
- "Domain": "Default",
5
- "Schema": [
6
- {
7
- "Column": "IDAuthor",
8
- "Type": "AutoIdentity"
9
- },
10
- {
11
- "Column": "GUIDAuthor",
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": "Name",
44
- "Type": "String"
45
- }
46
- ],
47
- "DefaultObject": {
48
- "IDAuthor": 0,
49
- "GUIDAuthor": "0x0000000000000000",
50
- "CreateDate": null,
51
- "CreatingIDUser": 0,
52
- "UpdateDate": null,
53
- "UpdatingIDUser": 0,
54
- "Deleted": false,
55
- "DeleteDate": null,
56
- "DeletingIDUser": 0,
57
- "Name": ""
58
- },
59
- "JsonSchema": {
60
- "title": "Author",
61
- "type": "object",
62
- "properties": {
63
- "IDAuthor": {
64
- "type": "integer"
65
- },
66
- "GUIDAuthor": {
67
- "type": "string"
68
- },
69
- "CreateDate": {
70
- "type": "string"
71
- },
72
- "CreatingIDUser": {
73
- "type": "integer"
74
- },
75
- "UpdateDate": {
76
- "type": "string"
77
- },
78
- "UpdatingIDUser": {
79
- "type": "integer"
80
- },
81
- "Deleted": {
82
- "type": "boolean"
83
- },
84
- "DeleteDate": {
85
- "type": "string"
86
- },
87
- "DeletingIDUser": {
88
- "type": "integer"
89
- },
90
- "Name": {
91
- "type": "string"
92
- }
93
- },
94
- "required": [
95
- "IDAuthor"
96
- ]
97
- },
98
- "Authorization": {
99
- "__DefaultAPISecurity": {
100
- "Create": "Deny",
101
- "Read": "Deny",
102
- "Reads": "Deny",
103
- "ReadsBy": "Deny",
104
- "ReadMax": "Deny",
105
- "ReadSelectList": "Deny",
106
- "Update": "Deny",
107
- "Delete": "Deny",
108
- "Count": "Deny",
109
- "CountBy": "Deny",
110
- "Schema": "Deny",
111
- "Validate": "Deny",
112
- "New": "Deny"
113
- },
114
- "Unauthenticated": {
115
- "Create": "Deny",
116
- "Read": "Deny",
117
- "Reads": "Deny",
118
- "ReadsBy": "Deny",
119
- "ReadMax": "Deny",
120
- "ReadSelectList": "Deny",
121
- "Update": "Deny",
122
- "Delete": "Deny",
123
- "Count": "Deny",
124
- "CountBy": "Deny",
125
- "Schema": "Deny",
126
- "Validate": "Deny",
127
- "New": "Deny"
128
- },
129
- "Readonly": {
130
- "Create": "Deny",
131
- "Read": "Allow",
132
- "Reads": "Allow",
133
- "ReadsBy": "Allow",
134
- "ReadMax": "Allow",
135
- "ReadSelectList": "Allow",
136
- "Update": "Deny",
137
- "Delete": "Deny",
138
- "Count": "Allow",
139
- "CountBy": "Allow",
140
- "Schema": "Allow",
141
- "Validate": "Allow",
142
- "New": "Deny"
143
- },
144
- "User": {
145
- "Create": "Allow",
146
- "Read": "MyCustomer",
147
- "Reads": "MyCustomer",
148
- "ReadsBy": "MyCustomer",
149
- "ReadMax": "MyCustomer",
150
- "ReadSelectList": "MyCustomer",
151
- "Update": "Mine",
152
- "Delete": "Mine",
153
- "Count": "MyCustomer",
154
- "CountBy": "MyCustomer",
155
- "Schema": "MyCustomer",
156
- "Validate": "MyCustomer",
157
- "New": "MyCustomer"
158
- },
159
- "Manager": {
160
- "Create": "Allow",
161
- "Read": "MyCustomer",
162
- "Reads": "MyCustomer",
163
- "ReadsBy": "MyCustomer",
164
- "ReadMax": "MyCustomer",
165
- "ReadSelectList": "MyCustomer",
166
- "Update": "Mine",
167
- "Delete": "Mine",
168
- "Count": "MyCustomer",
169
- "CountBy": "MyCustomer",
170
- "Schema": "MyCustomer",
171
- "Validate": "MyCustomer",
172
- "New": "MyCustomer"
173
- },
174
- "Director": {
175
- "Create": "Allow",
176
- "Read": "MyCustomer",
177
- "Reads": "MyCustomer",
178
- "ReadsBy": "MyCustomer",
179
- "ReadMax": "MyCustomer",
180
- "ReadSelectList": "MyCustomer",
181
- "Update": "MyCustomer",
182
- "Delete": "MyCustomer",
183
- "Count": "MyCustomer",
184
- "CountBy": "MyCustomer",
185
- "Schema": "MyCustomer",
186
- "Validate": "MyCustomer",
187
- "New": "MyCustomer"
188
- },
189
- "Executive": {
190
- "Create": "Allow",
191
- "Read": "MyCustomer",
192
- "Reads": "MyCustomer",
193
- "ReadsBy": "MyCustomer",
194
- "ReadMax": "MyCustomer",
195
- "ReadSelectList": "MyCustomer",
196
- "Update": "MyCustomer",
197
- "Delete": "MyCustomer",
198
- "Count": "MyCustomer",
199
- "CountBy": "MyCustomer",
200
- "Schema": "MyCustomer",
201
- "Validate": "MyCustomer",
202
- "New": "MyCustomer"
203
- },
204
- "Administrator": {
205
- "Create": "Allow",
206
- "Read": "Allow",
207
- "Reads": "Allow",
208
- "ReadsBy": "Allow",
209
- "ReadMax": "Allow",
210
- "ReadSelectList": "Allow",
211
- "Update": "Allow",
212
- "Delete": "Allow",
213
- "Count": "Allow",
214
- "CountBy": "Allow",
215
- "Schema": "Allow",
216
- "Validate": "Allow",
217
- "New": "Allow"
218
- }
219
- }
220
- }
@@ -1,268 +0,0 @@
1
- {
2
- "Scope": "Book",
3
- "DefaultIdentifier": "IDBook",
4
- "Domain": "Default",
5
- "Schema": [
6
- {
7
- "Column": "IDBook",
8
- "Type": "AutoIdentity"
9
- },
10
- {
11
- "Column": "GUIDBook",
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": "Title",
44
- "Type": "String"
45
- },
46
- {
47
- "Column": "Type",
48
- "Type": "String"
49
- },
50
- {
51
- "Column": "Genre",
52
- "Type": "String"
53
- },
54
- {
55
- "Column": "ISBN",
56
- "Type": "String"
57
- },
58
- {
59
- "Column": "Language",
60
- "Type": "String"
61
- },
62
- {
63
- "Column": "ImageURL",
64
- "Type": "String"
65
- },
66
- {
67
- "Column": "PublicationYear",
68
- "Type": "Integer"
69
- }
70
- ],
71
- "DefaultObject": {
72
- "IDBook": 0,
73
- "GUIDBook": "0x0000000000000000",
74
- "CreateDate": null,
75
- "CreatingIDUser": 0,
76
- "UpdateDate": null,
77
- "UpdatingIDUser": 0,
78
- "Deleted": false,
79
- "DeleteDate": null,
80
- "DeletingIDUser": 0,
81
- "Title": "",
82
- "Type": "",
83
- "Genre": "",
84
- "ISBN": "",
85
- "Language": "",
86
- "ImageURL": "",
87
- "PublicationYear": 0
88
- },
89
- "JsonSchema": {
90
- "title": "Book",
91
- "type": "object",
92
- "properties": {
93
- "IDBook": {
94
- "type": "integer"
95
- },
96
- "GUIDBook": {
97
- "type": "string"
98
- },
99
- "CreateDate": {
100
- "type": "string"
101
- },
102
- "CreatingIDUser": {
103
- "type": "integer"
104
- },
105
- "UpdateDate": {
106
- "type": "string"
107
- },
108
- "UpdatingIDUser": {
109
- "type": "integer"
110
- },
111
- "Deleted": {
112
- "type": "boolean"
113
- },
114
- "DeleteDate": {
115
- "type": "string"
116
- },
117
- "DeletingIDUser": {
118
- "type": "integer"
119
- },
120
- "Title": {
121
- "type": "string"
122
- },
123
- "Type": {
124
- "type": "string"
125
- },
126
- "Genre": {
127
- "type": "string"
128
- },
129
- "ISBN": {
130
- "type": "string"
131
- },
132
- "Language": {
133
- "type": "string"
134
- },
135
- "ImageURL": {
136
- "type": "string"
137
- },
138
- "PublicationYear": {
139
- "type": "integer"
140
- }
141
- },
142
- "required": [
143
- "IDBook"
144
- ]
145
- },
146
- "Authorization": {
147
- "__DefaultAPISecurity": {
148
- "Create": "Deny",
149
- "Read": "Deny",
150
- "Reads": "Deny",
151
- "ReadsBy": "Deny",
152
- "ReadMax": "Deny",
153
- "ReadSelectList": "Deny",
154
- "Update": "Deny",
155
- "Delete": "Deny",
156
- "Count": "Deny",
157
- "CountBy": "Deny",
158
- "Schema": "Deny",
159
- "Validate": "Deny",
160
- "New": "Deny"
161
- },
162
- "Unauthenticated": {
163
- "Create": "Deny",
164
- "Read": "Deny",
165
- "Reads": "Deny",
166
- "ReadsBy": "Deny",
167
- "ReadMax": "Deny",
168
- "ReadSelectList": "Deny",
169
- "Update": "Deny",
170
- "Delete": "Deny",
171
- "Count": "Deny",
172
- "CountBy": "Deny",
173
- "Schema": "Deny",
174
- "Validate": "Deny",
175
- "New": "Deny"
176
- },
177
- "Readonly": {
178
- "Create": "Deny",
179
- "Read": "Allow",
180
- "Reads": "Allow",
181
- "ReadsBy": "Allow",
182
- "ReadMax": "Allow",
183
- "ReadSelectList": "Allow",
184
- "Update": "Deny",
185
- "Delete": "Deny",
186
- "Count": "Allow",
187
- "CountBy": "Allow",
188
- "Schema": "Allow",
189
- "Validate": "Allow",
190
- "New": "Deny"
191
- },
192
- "User": {
193
- "Create": "Allow",
194
- "Read": "MyCustomer",
195
- "Reads": "MyCustomer",
196
- "ReadsBy": "MyCustomer",
197
- "ReadMax": "MyCustomer",
198
- "ReadSelectList": "MyCustomer",
199
- "Update": "Mine",
200
- "Delete": "Mine",
201
- "Count": "MyCustomer",
202
- "CountBy": "MyCustomer",
203
- "Schema": "MyCustomer",
204
- "Validate": "MyCustomer",
205
- "New": "MyCustomer"
206
- },
207
- "Manager": {
208
- "Create": "Allow",
209
- "Read": "MyCustomer",
210
- "Reads": "MyCustomer",
211
- "ReadsBy": "MyCustomer",
212
- "ReadMax": "MyCustomer",
213
- "ReadSelectList": "MyCustomer",
214
- "Update": "Mine",
215
- "Delete": "Mine",
216
- "Count": "MyCustomer",
217
- "CountBy": "MyCustomer",
218
- "Schema": "MyCustomer",
219
- "Validate": "MyCustomer",
220
- "New": "MyCustomer"
221
- },
222
- "Director": {
223
- "Create": "Allow",
224
- "Read": "MyCustomer",
225
- "Reads": "MyCustomer",
226
- "ReadsBy": "MyCustomer",
227
- "ReadMax": "MyCustomer",
228
- "ReadSelectList": "MyCustomer",
229
- "Update": "MyCustomer",
230
- "Delete": "MyCustomer",
231
- "Count": "MyCustomer",
232
- "CountBy": "MyCustomer",
233
- "Schema": "MyCustomer",
234
- "Validate": "MyCustomer",
235
- "New": "MyCustomer"
236
- },
237
- "Executive": {
238
- "Create": "Allow",
239
- "Read": "MyCustomer",
240
- "Reads": "MyCustomer",
241
- "ReadsBy": "MyCustomer",
242
- "ReadMax": "MyCustomer",
243
- "ReadSelectList": "MyCustomer",
244
- "Update": "MyCustomer",
245
- "Delete": "MyCustomer",
246
- "Count": "MyCustomer",
247
- "CountBy": "MyCustomer",
248
- "Schema": "MyCustomer",
249
- "Validate": "MyCustomer",
250
- "New": "MyCustomer"
251
- },
252
- "Administrator": {
253
- "Create": "Allow",
254
- "Read": "Allow",
255
- "Reads": "Allow",
256
- "ReadsBy": "Allow",
257
- "ReadMax": "Allow",
258
- "ReadSelectList": "Allow",
259
- "Update": "Allow",
260
- "Delete": "Allow",
261
- "Count": "Allow",
262
- "CountBy": "Allow",
263
- "Schema": "Allow",
264
- "Validate": "Allow",
265
- "New": "Allow"
266
- }
267
- }
268
- }
@@ -1,172 +0,0 @@
1
- {
2
- "Scope": "BookAuthorJoin",
3
- "DefaultIdentifier": "IDBookAuthorJoin",
4
- "Domain": "Default",
5
- "Schema": [
6
- {
7
- "Column": "IDBookAuthorJoin",
8
- "Type": "AutoIdentity"
9
- },
10
- {
11
- "Column": "GUIDBookAuthorJoin",
12
- "Type": "AutoGUID"
13
- },
14
- {
15
- "Column": "IDBook",
16
- "Type": "Integer"
17
- },
18
- {
19
- "Column": "IDAuthor",
20
- "Type": "Integer"
21
- }
22
- ],
23
- "DefaultObject": {
24
- "IDBookAuthorJoin": 0,
25
- "GUIDBookAuthorJoin": "0x0000000000000000",
26
- "IDBook": 0,
27
- "IDAuthor": 0
28
- },
29
- "JsonSchema": {
30
- "title": "BookAuthorJoin",
31
- "type": "object",
32
- "properties": {
33
- "IDBookAuthorJoin": {
34
- "type": "integer"
35
- },
36
- "GUIDBookAuthorJoin": {
37
- "type": "string"
38
- },
39
- "IDBook": {
40
- "type": "integer"
41
- },
42
- "IDAuthor": {
43
- "type": "integer"
44
- }
45
- },
46
- "required": [
47
- "IDBookAuthorJoin"
48
- ]
49
- },
50
- "Authorization": {
51
- "__DefaultAPISecurity": {
52
- "Create": "Deny",
53
- "Read": "Deny",
54
- "Reads": "Deny",
55
- "ReadsBy": "Deny",
56
- "ReadMax": "Deny",
57
- "ReadSelectList": "Deny",
58
- "Update": "Deny",
59
- "Delete": "Deny",
60
- "Count": "Deny",
61
- "CountBy": "Deny",
62
- "Schema": "Deny",
63
- "Validate": "Deny",
64
- "New": "Deny"
65
- },
66
- "Unauthenticated": {
67
- "Create": "Deny",
68
- "Read": "Deny",
69
- "Reads": "Deny",
70
- "ReadsBy": "Deny",
71
- "ReadMax": "Deny",
72
- "ReadSelectList": "Deny",
73
- "Update": "Deny",
74
- "Delete": "Deny",
75
- "Count": "Deny",
76
- "CountBy": "Deny",
77
- "Schema": "Deny",
78
- "Validate": "Deny",
79
- "New": "Deny"
80
- },
81
- "Readonly": {
82
- "Create": "Deny",
83
- "Read": "Allow",
84
- "Reads": "Allow",
85
- "ReadsBy": "Allow",
86
- "ReadMax": "Allow",
87
- "ReadSelectList": "Allow",
88
- "Update": "Deny",
89
- "Delete": "Deny",
90
- "Count": "Allow",
91
- "CountBy": "Allow",
92
- "Schema": "Allow",
93
- "Validate": "Allow",
94
- "New": "Deny"
95
- },
96
- "User": {
97
- "Create": "Allow",
98
- "Read": "MyCustomer",
99
- "Reads": "MyCustomer",
100
- "ReadsBy": "MyCustomer",
101
- "ReadMax": "MyCustomer",
102
- "ReadSelectList": "MyCustomer",
103
- "Update": "Mine",
104
- "Delete": "Mine",
105
- "Count": "MyCustomer",
106
- "CountBy": "MyCustomer",
107
- "Schema": "MyCustomer",
108
- "Validate": "MyCustomer",
109
- "New": "MyCustomer"
110
- },
111
- "Manager": {
112
- "Create": "Allow",
113
- "Read": "MyCustomer",
114
- "Reads": "MyCustomer",
115
- "ReadsBy": "MyCustomer",
116
- "ReadMax": "MyCustomer",
117
- "ReadSelectList": "MyCustomer",
118
- "Update": "Mine",
119
- "Delete": "Mine",
120
- "Count": "MyCustomer",
121
- "CountBy": "MyCustomer",
122
- "Schema": "MyCustomer",
123
- "Validate": "MyCustomer",
124
- "New": "MyCustomer"
125
- },
126
- "Director": {
127
- "Create": "Allow",
128
- "Read": "MyCustomer",
129
- "Reads": "MyCustomer",
130
- "ReadsBy": "MyCustomer",
131
- "ReadMax": "MyCustomer",
132
- "ReadSelectList": "MyCustomer",
133
- "Update": "MyCustomer",
134
- "Delete": "MyCustomer",
135
- "Count": "MyCustomer",
136
- "CountBy": "MyCustomer",
137
- "Schema": "MyCustomer",
138
- "Validate": "MyCustomer",
139
- "New": "MyCustomer"
140
- },
141
- "Executive": {
142
- "Create": "Allow",
143
- "Read": "MyCustomer",
144
- "Reads": "MyCustomer",
145
- "ReadsBy": "MyCustomer",
146
- "ReadMax": "MyCustomer",
147
- "ReadSelectList": "MyCustomer",
148
- "Update": "MyCustomer",
149
- "Delete": "MyCustomer",
150
- "Count": "MyCustomer",
151
- "CountBy": "MyCustomer",
152
- "Schema": "MyCustomer",
153
- "Validate": "MyCustomer",
154
- "New": "MyCustomer"
155
- },
156
- "Administrator": {
157
- "Create": "Allow",
158
- "Read": "Allow",
159
- "Reads": "Allow",
160
- "ReadsBy": "Allow",
161
- "ReadMax": "Allow",
162
- "ReadSelectList": "Allow",
163
- "Update": "Allow",
164
- "Delete": "Allow",
165
- "Count": "Allow",
166
- "CountBy": "Allow",
167
- "Schema": "Allow",
168
- "Validate": "Allow",
169
- "New": "Allow"
170
- }
171
- }
172
- }