retold-data-service 2.0.7 → 2.0.9

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 (54) hide show
  1. package/.vscode/settings.json +33 -14
  2. package/debug/Harness.js +81 -2
  3. package/package.json +4 -2
  4. package/source/Retold-Data-Service.js +58 -18
  5. package/test/model/{json/MeadowModel-Extended.json → MeadowModel-Extended.json} +969 -5
  6. package/{debug/model/generated_documentation → test/model/doc}/Dictionary.md +1 -1
  7. package/{debug/model/generated_documentation → test/model/doc}/Model-Author.md +5 -5
  8. package/{debug/model/generated_documentation → test/model/doc}/Model-Book.md +6 -6
  9. package/{debug/model/generated_documentation → test/model/doc}/Model-BookAuthorJoin.md +4 -4
  10. package/{debug/model/generated_documentation → test/model/doc}/Model-BookPrice.md +6 -6
  11. package/{debug/model/generated_documentation → test/model/doc}/Model-Review.md +7 -7
  12. package/{debug/model/generated_documentation → test/model/doc}/ModelChangeTracking.md +1 -1
  13. package/{debug/model/generated_diagram/Stricture_Output.dot → test/model/doc/diagrams/Relationships.dot} +1 -1
  14. package/test/model/doc/diagrams/RelationshipsFull.dot +13 -0
  15. package/test/model/doc/diagrams/RelationshipsFull.png +0 -0
  16. package/test/model/meadow/MeadowSchemaAuthor.json +431 -0
  17. package/test/model/meadow/MeadowSchemaBook.json +527 -0
  18. package/test/model/meadow/MeadowSchemaBookAuthorJoin.json +335 -0
  19. package/test/model/meadow/MeadowSchemaBookPrice.json +511 -0
  20. package/test/model/meadow/MeadowSchemaReview.json +463 -0
  21. package/{debug/model/sql_create/BookStore-CreateDatabase.mysql.sql → test/model/mysql_create/MeadowModel-CreateMySQLDatabase.mysql.sql} +6 -6
  22. package/debug/bookstore-configuration.json +0 -26
  23. package/debug/model/Model-Extended.json +0 -915
  24. package/debug/model/Model-PICT.json +0 -1
  25. package/debug/model/Model.json +0 -280
  26. package/debug/model/bookstore-api-endpoint-exercises.paw +0 -0
  27. package/debug/model/ddl/BookStore.ddl +0 -66
  28. package/debug/model/generated_diagram/README.md +0 -1
  29. package/debug/model/generated_documentation/README.md +0 -1
  30. package/debug/model/manual_scripts/DropTables.sql +0 -5
  31. package/debug/model/manual_scripts/MySQL-Laden-Entry-ServicesOnly.sh +0 -28
  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/Model.ddl +0 -66
  46. package/test/model/Model.json +0 -280
  47. package/test/model/meadow/Model-MeadowSchema-Author.json +0 -220
  48. package/test/model/meadow/Model-MeadowSchema-Book.json +0 -268
  49. package/test/model/meadow/Model-MeadowSchema-BookAuthorJoin.json +0 -172
  50. package/test/model/meadow/Model-MeadowSchema-BookPrice.json +0 -260
  51. package/test/model/meadow/Model-MeadowSchema-Review.json +0 -236
  52. /package/test/model/{json/MeadowModel-PICT.json → MeadowModel-PICT.json} +0 -0
  53. /package/test/model/{json/MeadowModel.json → MeadowModel.json} +0 -0
  54. /package/{debug/model/generated_diagram/Stricture_Output.png → test/model/doc/diagrams/Relationships.png} +0 -0
@@ -0,0 +1,527 @@
1
+ {
2
+ "Scope": "Book",
3
+ "DefaultIdentifier": "IDBook",
4
+ "Domain": "Default",
5
+ "Schema": [
6
+ {
7
+ "Column": "IDBook",
8
+ "Type": "AutoIdentity",
9
+ "Size": "Default"
10
+ },
11
+ {
12
+ "Column": "GUIDBook",
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": "Title",
53
+ "Type": "String",
54
+ "Size": "200"
55
+ },
56
+ {
57
+ "Column": "Type",
58
+ "Type": "String",
59
+ "Size": "32"
60
+ },
61
+ {
62
+ "Column": "Genre",
63
+ "Type": "String",
64
+ "Size": "128"
65
+ },
66
+ {
67
+ "Column": "ISBN",
68
+ "Type": "String",
69
+ "Size": "64"
70
+ },
71
+ {
72
+ "Column": "Language",
73
+ "Type": "String",
74
+ "Size": "12"
75
+ },
76
+ {
77
+ "Column": "ImageURL",
78
+ "Type": "String",
79
+ "Size": "254"
80
+ },
81
+ {
82
+ "Column": "PublicationYear",
83
+ "Type": "Integer",
84
+ "Size": "int"
85
+ }
86
+ ],
87
+ "DefaultObject": {
88
+ "IDBook": 0,
89
+ "GUIDBook": "0x0000000000000000",
90
+ "CreateDate": null,
91
+ "CreatingIDUser": 0,
92
+ "UpdateDate": null,
93
+ "UpdatingIDUser": 0,
94
+ "Deleted": false,
95
+ "DeleteDate": null,
96
+ "DeletingIDUser": 0,
97
+ "Title": "",
98
+ "Type": "",
99
+ "Genre": "",
100
+ "ISBN": "",
101
+ "Language": "",
102
+ "ImageURL": "",
103
+ "PublicationYear": 0
104
+ },
105
+ "JsonSchema": {
106
+ "title": "Book",
107
+ "type": "object",
108
+ "properties": {
109
+ "IDBook": {
110
+ "type": "integer",
111
+ "size": "Default"
112
+ },
113
+ "GUIDBook": {
114
+ "type": "string",
115
+ "size": "36"
116
+ },
117
+ "CreateDate": {
118
+ "type": "string",
119
+ "size": "Default"
120
+ },
121
+ "CreatingIDUser": {
122
+ "type": "integer",
123
+ "size": "int"
124
+ },
125
+ "UpdateDate": {
126
+ "type": "string",
127
+ "size": "Default"
128
+ },
129
+ "UpdatingIDUser": {
130
+ "type": "integer",
131
+ "size": "int"
132
+ },
133
+ "Deleted": {
134
+ "type": "boolean",
135
+ "size": "Default"
136
+ },
137
+ "DeleteDate": {
138
+ "type": "string",
139
+ "size": "Default"
140
+ },
141
+ "DeletingIDUser": {
142
+ "type": "integer",
143
+ "size": "int"
144
+ },
145
+ "Title": {
146
+ "type": "string",
147
+ "size": "200"
148
+ },
149
+ "Type": {
150
+ "type": "string",
151
+ "size": "32"
152
+ },
153
+ "Genre": {
154
+ "type": "string",
155
+ "size": "128"
156
+ },
157
+ "ISBN": {
158
+ "type": "string",
159
+ "size": "64"
160
+ },
161
+ "Language": {
162
+ "type": "string",
163
+ "size": "12"
164
+ },
165
+ "ImageURL": {
166
+ "type": "string",
167
+ "size": "254"
168
+ },
169
+ "PublicationYear": {
170
+ "type": "integer",
171
+ "size": "int"
172
+ }
173
+ },
174
+ "required": [
175
+ "IDBook"
176
+ ],
177
+ "MeadowSchema": {
178
+ "Scope": "Book",
179
+ "DefaultIdentifier": "IDBook",
180
+ "Domain": "Default",
181
+ "Schema": [
182
+ {
183
+ "Column": "IDBook",
184
+ "Type": "AutoIdentity",
185
+ "Size": "Default"
186
+ },
187
+ {
188
+ "Column": "GUIDBook",
189
+ "Type": "AutoGUID",
190
+ "Size": "36"
191
+ },
192
+ {
193
+ "Column": "CreateDate",
194
+ "Type": "CreateDate",
195
+ "Size": "Default"
196
+ },
197
+ {
198
+ "Column": "CreatingIDUser",
199
+ "Type": "CreateIDUser",
200
+ "Size": "int"
201
+ },
202
+ {
203
+ "Column": "UpdateDate",
204
+ "Type": "UpdateDate",
205
+ "Size": "Default"
206
+ },
207
+ {
208
+ "Column": "UpdatingIDUser",
209
+ "Type": "UpdateIDUser",
210
+ "Size": "int"
211
+ },
212
+ {
213
+ "Column": "Deleted",
214
+ "Type": "Deleted",
215
+ "Size": "Default"
216
+ },
217
+ {
218
+ "Column": "DeleteDate",
219
+ "Type": "DeleteDate",
220
+ "Size": "Default"
221
+ },
222
+ {
223
+ "Column": "DeletingIDUser",
224
+ "Type": "DeleteIDUser",
225
+ "Size": "int"
226
+ },
227
+ {
228
+ "Column": "Title",
229
+ "Type": "String",
230
+ "Size": "200"
231
+ },
232
+ {
233
+ "Column": "Type",
234
+ "Type": "String",
235
+ "Size": "32"
236
+ },
237
+ {
238
+ "Column": "Genre",
239
+ "Type": "String",
240
+ "Size": "128"
241
+ },
242
+ {
243
+ "Column": "ISBN",
244
+ "Type": "String",
245
+ "Size": "64"
246
+ },
247
+ {
248
+ "Column": "Language",
249
+ "Type": "String",
250
+ "Size": "12"
251
+ },
252
+ {
253
+ "Column": "ImageURL",
254
+ "Type": "String",
255
+ "Size": "254"
256
+ },
257
+ {
258
+ "Column": "PublicationYear",
259
+ "Type": "Integer",
260
+ "Size": "int"
261
+ }
262
+ ],
263
+ "DefaultObject": {
264
+ "IDBook": 0,
265
+ "GUIDBook": "0x0000000000000000",
266
+ "CreateDate": null,
267
+ "CreatingIDUser": 0,
268
+ "UpdateDate": null,
269
+ "UpdatingIDUser": 0,
270
+ "Deleted": false,
271
+ "DeleteDate": null,
272
+ "DeletingIDUser": 0,
273
+ "Title": "",
274
+ "Type": "",
275
+ "Genre": "",
276
+ "ISBN": "",
277
+ "Language": "",
278
+ "ImageURL": "",
279
+ "PublicationYear": 0
280
+ },
281
+ "Authorization": {
282
+ "__DefaultAPISecurity": {
283
+ "Create": "Deny",
284
+ "Read": "Deny",
285
+ "Reads": "Deny",
286
+ "ReadsBy": "Deny",
287
+ "ReadMax": "Deny",
288
+ "ReadSelectList": "Deny",
289
+ "Update": "Deny",
290
+ "Delete": "Deny",
291
+ "Count": "Deny",
292
+ "CountBy": "Deny",
293
+ "Schema": "Deny",
294
+ "Validate": "Deny",
295
+ "New": "Deny"
296
+ },
297
+ "Unauthenticated": {
298
+ "Create": "Deny",
299
+ "Read": "Deny",
300
+ "Reads": "Deny",
301
+ "ReadsBy": "Deny",
302
+ "ReadMax": "Deny",
303
+ "ReadSelectList": "Deny",
304
+ "Update": "Deny",
305
+ "Delete": "Deny",
306
+ "Count": "Deny",
307
+ "CountBy": "Deny",
308
+ "Schema": "Deny",
309
+ "Validate": "Deny",
310
+ "New": "Deny"
311
+ },
312
+ "Readonly": {
313
+ "Create": "Deny",
314
+ "Read": "Allow",
315
+ "Reads": "Allow",
316
+ "ReadsBy": "Allow",
317
+ "ReadMax": "Allow",
318
+ "ReadSelectList": "Allow",
319
+ "Update": "Deny",
320
+ "Delete": "Deny",
321
+ "Count": "Allow",
322
+ "CountBy": "Allow",
323
+ "Schema": "Allow",
324
+ "Validate": "Allow",
325
+ "New": "Deny"
326
+ },
327
+ "User": {
328
+ "Create": "Allow",
329
+ "Read": "MyCustomer",
330
+ "Reads": "MyCustomer",
331
+ "ReadsBy": "MyCustomer",
332
+ "ReadMax": "MyCustomer",
333
+ "ReadSelectList": "MyCustomer",
334
+ "Update": "Mine",
335
+ "Delete": "Mine",
336
+ "Count": "MyCustomer",
337
+ "CountBy": "MyCustomer",
338
+ "Schema": "MyCustomer",
339
+ "Validate": "MyCustomer",
340
+ "New": "MyCustomer"
341
+ },
342
+ "Manager": {
343
+ "Create": "Allow",
344
+ "Read": "MyCustomer",
345
+ "Reads": "MyCustomer",
346
+ "ReadsBy": "MyCustomer",
347
+ "ReadMax": "MyCustomer",
348
+ "ReadSelectList": "MyCustomer",
349
+ "Update": "Mine",
350
+ "Delete": "Mine",
351
+ "Count": "MyCustomer",
352
+ "CountBy": "MyCustomer",
353
+ "Schema": "MyCustomer",
354
+ "Validate": "MyCustomer",
355
+ "New": "MyCustomer"
356
+ },
357
+ "Director": {
358
+ "Create": "Allow",
359
+ "Read": "MyCustomer",
360
+ "Reads": "MyCustomer",
361
+ "ReadsBy": "MyCustomer",
362
+ "ReadMax": "MyCustomer",
363
+ "ReadSelectList": "MyCustomer",
364
+ "Update": "MyCustomer",
365
+ "Delete": "MyCustomer",
366
+ "Count": "MyCustomer",
367
+ "CountBy": "MyCustomer",
368
+ "Schema": "MyCustomer",
369
+ "Validate": "MyCustomer",
370
+ "New": "MyCustomer"
371
+ },
372
+ "Executive": {
373
+ "Create": "Allow",
374
+ "Read": "MyCustomer",
375
+ "Reads": "MyCustomer",
376
+ "ReadsBy": "MyCustomer",
377
+ "ReadMax": "MyCustomer",
378
+ "ReadSelectList": "MyCustomer",
379
+ "Update": "MyCustomer",
380
+ "Delete": "MyCustomer",
381
+ "Count": "MyCustomer",
382
+ "CountBy": "MyCustomer",
383
+ "Schema": "MyCustomer",
384
+ "Validate": "MyCustomer",
385
+ "New": "MyCustomer"
386
+ },
387
+ "Administrator": {
388
+ "Create": "Allow",
389
+ "Read": "Allow",
390
+ "Reads": "Allow",
391
+ "ReadsBy": "Allow",
392
+ "ReadMax": "Allow",
393
+ "ReadSelectList": "Allow",
394
+ "Update": "Allow",
395
+ "Delete": "Allow",
396
+ "Count": "Allow",
397
+ "CountBy": "Allow",
398
+ "Schema": "Allow",
399
+ "Validate": "Allow",
400
+ "New": "Allow"
401
+ }
402
+ }
403
+ }
404
+ },
405
+ "Authorization": {
406
+ "__DefaultAPISecurity": {
407
+ "Create": "Deny",
408
+ "Read": "Deny",
409
+ "Reads": "Deny",
410
+ "ReadsBy": "Deny",
411
+ "ReadMax": "Deny",
412
+ "ReadSelectList": "Deny",
413
+ "Update": "Deny",
414
+ "Delete": "Deny",
415
+ "Count": "Deny",
416
+ "CountBy": "Deny",
417
+ "Schema": "Deny",
418
+ "Validate": "Deny",
419
+ "New": "Deny"
420
+ },
421
+ "Unauthenticated": {
422
+ "Create": "Deny",
423
+ "Read": "Deny",
424
+ "Reads": "Deny",
425
+ "ReadsBy": "Deny",
426
+ "ReadMax": "Deny",
427
+ "ReadSelectList": "Deny",
428
+ "Update": "Deny",
429
+ "Delete": "Deny",
430
+ "Count": "Deny",
431
+ "CountBy": "Deny",
432
+ "Schema": "Deny",
433
+ "Validate": "Deny",
434
+ "New": "Deny"
435
+ },
436
+ "Readonly": {
437
+ "Create": "Deny",
438
+ "Read": "Allow",
439
+ "Reads": "Allow",
440
+ "ReadsBy": "Allow",
441
+ "ReadMax": "Allow",
442
+ "ReadSelectList": "Allow",
443
+ "Update": "Deny",
444
+ "Delete": "Deny",
445
+ "Count": "Allow",
446
+ "CountBy": "Allow",
447
+ "Schema": "Allow",
448
+ "Validate": "Allow",
449
+ "New": "Deny"
450
+ },
451
+ "User": {
452
+ "Create": "Allow",
453
+ "Read": "MyCustomer",
454
+ "Reads": "MyCustomer",
455
+ "ReadsBy": "MyCustomer",
456
+ "ReadMax": "MyCustomer",
457
+ "ReadSelectList": "MyCustomer",
458
+ "Update": "Mine",
459
+ "Delete": "Mine",
460
+ "Count": "MyCustomer",
461
+ "CountBy": "MyCustomer",
462
+ "Schema": "MyCustomer",
463
+ "Validate": "MyCustomer",
464
+ "New": "MyCustomer"
465
+ },
466
+ "Manager": {
467
+ "Create": "Allow",
468
+ "Read": "MyCustomer",
469
+ "Reads": "MyCustomer",
470
+ "ReadsBy": "MyCustomer",
471
+ "ReadMax": "MyCustomer",
472
+ "ReadSelectList": "MyCustomer",
473
+ "Update": "Mine",
474
+ "Delete": "Mine",
475
+ "Count": "MyCustomer",
476
+ "CountBy": "MyCustomer",
477
+ "Schema": "MyCustomer",
478
+ "Validate": "MyCustomer",
479
+ "New": "MyCustomer"
480
+ },
481
+ "Director": {
482
+ "Create": "Allow",
483
+ "Read": "MyCustomer",
484
+ "Reads": "MyCustomer",
485
+ "ReadsBy": "MyCustomer",
486
+ "ReadMax": "MyCustomer",
487
+ "ReadSelectList": "MyCustomer",
488
+ "Update": "MyCustomer",
489
+ "Delete": "MyCustomer",
490
+ "Count": "MyCustomer",
491
+ "CountBy": "MyCustomer",
492
+ "Schema": "MyCustomer",
493
+ "Validate": "MyCustomer",
494
+ "New": "MyCustomer"
495
+ },
496
+ "Executive": {
497
+ "Create": "Allow",
498
+ "Read": "MyCustomer",
499
+ "Reads": "MyCustomer",
500
+ "ReadsBy": "MyCustomer",
501
+ "ReadMax": "MyCustomer",
502
+ "ReadSelectList": "MyCustomer",
503
+ "Update": "MyCustomer",
504
+ "Delete": "MyCustomer",
505
+ "Count": "MyCustomer",
506
+ "CountBy": "MyCustomer",
507
+ "Schema": "MyCustomer",
508
+ "Validate": "MyCustomer",
509
+ "New": "MyCustomer"
510
+ },
511
+ "Administrator": {
512
+ "Create": "Allow",
513
+ "Read": "Allow",
514
+ "Reads": "Allow",
515
+ "ReadsBy": "Allow",
516
+ "ReadMax": "Allow",
517
+ "ReadSelectList": "Allow",
518
+ "Update": "Allow",
519
+ "Delete": "Allow",
520
+ "Count": "Allow",
521
+ "CountBy": "Allow",
522
+ "Schema": "Allow",
523
+ "Validate": "Allow",
524
+ "New": "Allow"
525
+ }
526
+ }
527
+ }