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