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
@@ -0,0 +1,431 @@
1
+ {
2
+ "Scope": "Author",
3
+ "DefaultIdentifier": "IDAuthor",
4
+ "Domain": "Default",
5
+ "Schema": [
6
+ {
7
+ "Column": "IDAuthor",
8
+ "Type": "AutoIdentity",
9
+ "Size": "Default"
10
+ },
11
+ {
12
+ "Column": "GUIDAuthor",
13
+ "Type": "AutoGUID",
14
+ "Size": "36"
15
+ },
16
+ {
17
+ "Column": "CreateDate",
18
+ "Type": "CreateDate",
19
+ "Size": "Default"
20
+ },
21
+ {
22
+ "Column": "CreatingIDUser",
23
+ "Type": "CreateIDUser",
24
+ "Size": "int"
25
+ },
26
+ {
27
+ "Column": "UpdateDate",
28
+ "Type": "UpdateDate",
29
+ "Size": "Default"
30
+ },
31
+ {
32
+ "Column": "UpdatingIDUser",
33
+ "Type": "UpdateIDUser",
34
+ "Size": "int"
35
+ },
36
+ {
37
+ "Column": "Deleted",
38
+ "Type": "Deleted",
39
+ "Size": "Default"
40
+ },
41
+ {
42
+ "Column": "DeleteDate",
43
+ "Type": "DeleteDate",
44
+ "Size": "Default"
45
+ },
46
+ {
47
+ "Column": "DeletingIDUser",
48
+ "Type": "DeleteIDUser",
49
+ "Size": "int"
50
+ },
51
+ {
52
+ "Column": "Name",
53
+ "Type": "String",
54
+ "Size": "200"
55
+ }
56
+ ],
57
+ "DefaultObject": {
58
+ "IDAuthor": 0,
59
+ "GUIDAuthor": "0x0000000000000000",
60
+ "CreateDate": null,
61
+ "CreatingIDUser": 0,
62
+ "UpdateDate": null,
63
+ "UpdatingIDUser": 0,
64
+ "Deleted": false,
65
+ "DeleteDate": null,
66
+ "DeletingIDUser": 0,
67
+ "Name": ""
68
+ },
69
+ "JsonSchema": {
70
+ "title": "Author",
71
+ "type": "object",
72
+ "properties": {
73
+ "IDAuthor": {
74
+ "type": "integer",
75
+ "size": "Default"
76
+ },
77
+ "GUIDAuthor": {
78
+ "type": "string",
79
+ "size": "36"
80
+ },
81
+ "CreateDate": {
82
+ "type": "string",
83
+ "size": "Default"
84
+ },
85
+ "CreatingIDUser": {
86
+ "type": "integer",
87
+ "size": "int"
88
+ },
89
+ "UpdateDate": {
90
+ "type": "string",
91
+ "size": "Default"
92
+ },
93
+ "UpdatingIDUser": {
94
+ "type": "integer",
95
+ "size": "int"
96
+ },
97
+ "Deleted": {
98
+ "type": "boolean",
99
+ "size": "Default"
100
+ },
101
+ "DeleteDate": {
102
+ "type": "string",
103
+ "size": "Default"
104
+ },
105
+ "DeletingIDUser": {
106
+ "type": "integer",
107
+ "size": "int"
108
+ },
109
+ "Name": {
110
+ "type": "string",
111
+ "size": "200"
112
+ }
113
+ },
114
+ "required": [
115
+ "IDAuthor"
116
+ ],
117
+ "MeadowSchema": {
118
+ "Scope": "Author",
119
+ "DefaultIdentifier": "IDAuthor",
120
+ "Domain": "Default",
121
+ "Schema": [
122
+ {
123
+ "Column": "IDAuthor",
124
+ "Type": "AutoIdentity",
125
+ "Size": "Default"
126
+ },
127
+ {
128
+ "Column": "GUIDAuthor",
129
+ "Type": "AutoGUID",
130
+ "Size": "36"
131
+ },
132
+ {
133
+ "Column": "CreateDate",
134
+ "Type": "CreateDate",
135
+ "Size": "Default"
136
+ },
137
+ {
138
+ "Column": "CreatingIDUser",
139
+ "Type": "CreateIDUser",
140
+ "Size": "int"
141
+ },
142
+ {
143
+ "Column": "UpdateDate",
144
+ "Type": "UpdateDate",
145
+ "Size": "Default"
146
+ },
147
+ {
148
+ "Column": "UpdatingIDUser",
149
+ "Type": "UpdateIDUser",
150
+ "Size": "int"
151
+ },
152
+ {
153
+ "Column": "Deleted",
154
+ "Type": "Deleted",
155
+ "Size": "Default"
156
+ },
157
+ {
158
+ "Column": "DeleteDate",
159
+ "Type": "DeleteDate",
160
+ "Size": "Default"
161
+ },
162
+ {
163
+ "Column": "DeletingIDUser",
164
+ "Type": "DeleteIDUser",
165
+ "Size": "int"
166
+ },
167
+ {
168
+ "Column": "Name",
169
+ "Type": "String",
170
+ "Size": "200"
171
+ }
172
+ ],
173
+ "DefaultObject": {
174
+ "IDAuthor": 0,
175
+ "GUIDAuthor": "0x0000000000000000",
176
+ "CreateDate": null,
177
+ "CreatingIDUser": 0,
178
+ "UpdateDate": null,
179
+ "UpdatingIDUser": 0,
180
+ "Deleted": false,
181
+ "DeleteDate": null,
182
+ "DeletingIDUser": 0,
183
+ "Name": ""
184
+ },
185
+ "Authorization": {
186
+ "__DefaultAPISecurity": {
187
+ "Create": "Deny",
188
+ "Read": "Deny",
189
+ "Reads": "Deny",
190
+ "ReadsBy": "Deny",
191
+ "ReadMax": "Deny",
192
+ "ReadSelectList": "Deny",
193
+ "Update": "Deny",
194
+ "Delete": "Deny",
195
+ "Count": "Deny",
196
+ "CountBy": "Deny",
197
+ "Schema": "Deny",
198
+ "Validate": "Deny",
199
+ "New": "Deny"
200
+ },
201
+ "Unauthenticated": {
202
+ "Create": "Deny",
203
+ "Read": "Deny",
204
+ "Reads": "Deny",
205
+ "ReadsBy": "Deny",
206
+ "ReadMax": "Deny",
207
+ "ReadSelectList": "Deny",
208
+ "Update": "Deny",
209
+ "Delete": "Deny",
210
+ "Count": "Deny",
211
+ "CountBy": "Deny",
212
+ "Schema": "Deny",
213
+ "Validate": "Deny",
214
+ "New": "Deny"
215
+ },
216
+ "Readonly": {
217
+ "Create": "Deny",
218
+ "Read": "Allow",
219
+ "Reads": "Allow",
220
+ "ReadsBy": "Allow",
221
+ "ReadMax": "Allow",
222
+ "ReadSelectList": "Allow",
223
+ "Update": "Deny",
224
+ "Delete": "Deny",
225
+ "Count": "Allow",
226
+ "CountBy": "Allow",
227
+ "Schema": "Allow",
228
+ "Validate": "Allow",
229
+ "New": "Deny"
230
+ },
231
+ "User": {
232
+ "Create": "Allow",
233
+ "Read": "MyCustomer",
234
+ "Reads": "MyCustomer",
235
+ "ReadsBy": "MyCustomer",
236
+ "ReadMax": "MyCustomer",
237
+ "ReadSelectList": "MyCustomer",
238
+ "Update": "Mine",
239
+ "Delete": "Mine",
240
+ "Count": "MyCustomer",
241
+ "CountBy": "MyCustomer",
242
+ "Schema": "MyCustomer",
243
+ "Validate": "MyCustomer",
244
+ "New": "MyCustomer"
245
+ },
246
+ "Manager": {
247
+ "Create": "Allow",
248
+ "Read": "MyCustomer",
249
+ "Reads": "MyCustomer",
250
+ "ReadsBy": "MyCustomer",
251
+ "ReadMax": "MyCustomer",
252
+ "ReadSelectList": "MyCustomer",
253
+ "Update": "Mine",
254
+ "Delete": "Mine",
255
+ "Count": "MyCustomer",
256
+ "CountBy": "MyCustomer",
257
+ "Schema": "MyCustomer",
258
+ "Validate": "MyCustomer",
259
+ "New": "MyCustomer"
260
+ },
261
+ "Director": {
262
+ "Create": "Allow",
263
+ "Read": "MyCustomer",
264
+ "Reads": "MyCustomer",
265
+ "ReadsBy": "MyCustomer",
266
+ "ReadMax": "MyCustomer",
267
+ "ReadSelectList": "MyCustomer",
268
+ "Update": "MyCustomer",
269
+ "Delete": "MyCustomer",
270
+ "Count": "MyCustomer",
271
+ "CountBy": "MyCustomer",
272
+ "Schema": "MyCustomer",
273
+ "Validate": "MyCustomer",
274
+ "New": "MyCustomer"
275
+ },
276
+ "Executive": {
277
+ "Create": "Allow",
278
+ "Read": "MyCustomer",
279
+ "Reads": "MyCustomer",
280
+ "ReadsBy": "MyCustomer",
281
+ "ReadMax": "MyCustomer",
282
+ "ReadSelectList": "MyCustomer",
283
+ "Update": "MyCustomer",
284
+ "Delete": "MyCustomer",
285
+ "Count": "MyCustomer",
286
+ "CountBy": "MyCustomer",
287
+ "Schema": "MyCustomer",
288
+ "Validate": "MyCustomer",
289
+ "New": "MyCustomer"
290
+ },
291
+ "Administrator": {
292
+ "Create": "Allow",
293
+ "Read": "Allow",
294
+ "Reads": "Allow",
295
+ "ReadsBy": "Allow",
296
+ "ReadMax": "Allow",
297
+ "ReadSelectList": "Allow",
298
+ "Update": "Allow",
299
+ "Delete": "Allow",
300
+ "Count": "Allow",
301
+ "CountBy": "Allow",
302
+ "Schema": "Allow",
303
+ "Validate": "Allow",
304
+ "New": "Allow"
305
+ }
306
+ }
307
+ }
308
+ },
309
+ "Authorization": {
310
+ "__DefaultAPISecurity": {
311
+ "Create": "Deny",
312
+ "Read": "Deny",
313
+ "Reads": "Deny",
314
+ "ReadsBy": "Deny",
315
+ "ReadMax": "Deny",
316
+ "ReadSelectList": "Deny",
317
+ "Update": "Deny",
318
+ "Delete": "Deny",
319
+ "Count": "Deny",
320
+ "CountBy": "Deny",
321
+ "Schema": "Deny",
322
+ "Validate": "Deny",
323
+ "New": "Deny"
324
+ },
325
+ "Unauthenticated": {
326
+ "Create": "Deny",
327
+ "Read": "Deny",
328
+ "Reads": "Deny",
329
+ "ReadsBy": "Deny",
330
+ "ReadMax": "Deny",
331
+ "ReadSelectList": "Deny",
332
+ "Update": "Deny",
333
+ "Delete": "Deny",
334
+ "Count": "Deny",
335
+ "CountBy": "Deny",
336
+ "Schema": "Deny",
337
+ "Validate": "Deny",
338
+ "New": "Deny"
339
+ },
340
+ "Readonly": {
341
+ "Create": "Deny",
342
+ "Read": "Allow",
343
+ "Reads": "Allow",
344
+ "ReadsBy": "Allow",
345
+ "ReadMax": "Allow",
346
+ "ReadSelectList": "Allow",
347
+ "Update": "Deny",
348
+ "Delete": "Deny",
349
+ "Count": "Allow",
350
+ "CountBy": "Allow",
351
+ "Schema": "Allow",
352
+ "Validate": "Allow",
353
+ "New": "Deny"
354
+ },
355
+ "User": {
356
+ "Create": "Allow",
357
+ "Read": "MyCustomer",
358
+ "Reads": "MyCustomer",
359
+ "ReadsBy": "MyCustomer",
360
+ "ReadMax": "MyCustomer",
361
+ "ReadSelectList": "MyCustomer",
362
+ "Update": "Mine",
363
+ "Delete": "Mine",
364
+ "Count": "MyCustomer",
365
+ "CountBy": "MyCustomer",
366
+ "Schema": "MyCustomer",
367
+ "Validate": "MyCustomer",
368
+ "New": "MyCustomer"
369
+ },
370
+ "Manager": {
371
+ "Create": "Allow",
372
+ "Read": "MyCustomer",
373
+ "Reads": "MyCustomer",
374
+ "ReadsBy": "MyCustomer",
375
+ "ReadMax": "MyCustomer",
376
+ "ReadSelectList": "MyCustomer",
377
+ "Update": "Mine",
378
+ "Delete": "Mine",
379
+ "Count": "MyCustomer",
380
+ "CountBy": "MyCustomer",
381
+ "Schema": "MyCustomer",
382
+ "Validate": "MyCustomer",
383
+ "New": "MyCustomer"
384
+ },
385
+ "Director": {
386
+ "Create": "Allow",
387
+ "Read": "MyCustomer",
388
+ "Reads": "MyCustomer",
389
+ "ReadsBy": "MyCustomer",
390
+ "ReadMax": "MyCustomer",
391
+ "ReadSelectList": "MyCustomer",
392
+ "Update": "MyCustomer",
393
+ "Delete": "MyCustomer",
394
+ "Count": "MyCustomer",
395
+ "CountBy": "MyCustomer",
396
+ "Schema": "MyCustomer",
397
+ "Validate": "MyCustomer",
398
+ "New": "MyCustomer"
399
+ },
400
+ "Executive": {
401
+ "Create": "Allow",
402
+ "Read": "MyCustomer",
403
+ "Reads": "MyCustomer",
404
+ "ReadsBy": "MyCustomer",
405
+ "ReadMax": "MyCustomer",
406
+ "ReadSelectList": "MyCustomer",
407
+ "Update": "MyCustomer",
408
+ "Delete": "MyCustomer",
409
+ "Count": "MyCustomer",
410
+ "CountBy": "MyCustomer",
411
+ "Schema": "MyCustomer",
412
+ "Validate": "MyCustomer",
413
+ "New": "MyCustomer"
414
+ },
415
+ "Administrator": {
416
+ "Create": "Allow",
417
+ "Read": "Allow",
418
+ "Reads": "Allow",
419
+ "ReadsBy": "Allow",
420
+ "ReadMax": "Allow",
421
+ "ReadSelectList": "Allow",
422
+ "Update": "Allow",
423
+ "Delete": "Allow",
424
+ "Count": "Allow",
425
+ "CountBy": "Allow",
426
+ "Schema": "Allow",
427
+ "Validate": "Allow",
428
+ "New": "Allow"
429
+ }
430
+ }
431
+ }