meadow-endpoints 3.0.6 → 4.0.2
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.
- package/{Dockerfile → Dockerfile_LUXURYCode} +43 -1
- package/README.md +48 -14
- package/debug/Animal.json +62 -0
- package/debug/Harness-Configuration.json +31 -0
- package/debug/Harness.js +7 -108
- package/debug/KillHarness.sh +10 -0
- package/dist/meadowendpoints.js +4402 -0
- package/dist/meadowendpoints.min.js +92 -0
- package/dist/meadowendpoints.min.js.map +1 -0
- package/gulpfile.js +83 -0
- package/package.json +29 -16
- package/source/Meadow-Endpoints-Browser-Shim.js +14 -0
- package/source/Meadow-Endpoints.js +176 -562
- package/source/controller/Meadow-Endpoints-Controller-Base.js +161 -0
- package/source/controller/components/Meadow-Endpoints-Controller-BehaviorInjection.js +125 -0
- package/source/controller/components/Meadow-Endpoints-Controller-Error-StatusCodes.txt +189 -0
- package/source/controller/components/Meadow-Endpoints-Controller-Error.js +118 -0
- package/source/controller/components/Meadow-Endpoints-Controller-Log.js +103 -0
- package/source/controller/utility/Meadow-Endpoints-Filter-Parser.js +225 -0
- package/source/controller/utility/Meadow-Endpoints-Session-Marshaler.js +48 -0
- package/source/controller/utility/Meadow-Endpoints-Stream-RecordArray.js +66 -0
- package/source/endpoints/count/Meadow-Endpoint-Count.js +49 -0
- package/source/endpoints/count/Meadow-Endpoint-CountBy.js +40 -0
- package/source/endpoints/create/Meadow-Endpoint-BulkCreate.js +53 -0
- package/source/endpoints/create/Meadow-Endpoint-Create.js +58 -0
- package/source/endpoints/create/Meadow-Operation-Create.js +83 -0
- package/source/endpoints/delete/Meadow-Endpoint-Delete.js +93 -0
- package/source/endpoints/delete/Meadow-Endpoint-Undelete.js +108 -0
- package/source/endpoints/read/Meadow-Endpoint-Read.js +72 -0
- package/source/endpoints/read/Meadow-Endpoint-ReadDistinctList.js +92 -0
- package/source/endpoints/read/Meadow-Endpoint-ReadLiteList.js +85 -0
- package/source/endpoints/read/Meadow-Endpoint-ReadMax.js +55 -0
- package/source/endpoints/read/Meadow-Endpoint-ReadSelectList.js +89 -0
- package/source/endpoints/read/Meadow-Endpoint-Reads.js +75 -0
- package/source/endpoints/read/Meadow-Endpoint-ReadsBy.js +100 -0
- package/source/{crud → endpoints/read}/Meadow-Marshal-DistinctList.js +4 -13
- package/source/{crud → endpoints/read}/Meadow-Marshal-LiteList.js +5 -14
- package/source/endpoints/schema/Meadow-Endpoint-New.js +36 -0
- package/source/endpoints/schema/Meadow-Endpoint-Schema.js +36 -0
- package/source/endpoints/schema/Meadow-Endpoint-Validate.js +41 -0
- package/source/endpoints/update/Meadow-Endpoint-BulkUpdate.js +50 -0
- package/source/endpoints/update/Meadow-Endpoint-Update.js +58 -0
- package/source/endpoints/update/Meadow-Operation-Update.js +115 -0
- package/source/endpoints/upsert/Meadow-Endpoint-BulkUpsert.js +52 -0
- package/source/endpoints/upsert/Meadow-Endpoint-Upsert.js +57 -0
- package/source/endpoints/upsert/Meadow-Operation-Upsert.js +137 -0
- package/test/MeadowEndpoints_basic_tests.js +50 -2375
- package/test_support/bookstore-api-endpoint-exercises.paw +0 -0
- package/test_support/bookstore-configuration.json +28 -0
- package/test_support/bookstore-import-books-run.js +1 -0
- package/test_support/bookstore-import-books.js +215 -0
- package/test_support/bookstore-serve-meadow-endpoint-apis-IPC.js +138 -0
- package/test_support/bookstore-serve-meadow-endpoint-apis-run.js +6 -0
- package/test_support/bookstore-serve-meadow-endpoint-apis.js +129 -0
- package/test_support/data/books.csv +10001 -0
- package/test_support/model/ddl/BookStore.ddl +66 -0
- package/test_support/model/generated_diagram/README.md +1 -0
- package/test_support/model/generated_diagram/Stricture_Output.dot +13 -0
- package/test_support/model/generated_diagram/Stricture_Output.png +0 -0
- package/test_support/model/generated_documentation/Dictionary.md +18 -0
- package/test_support/model/generated_documentation/Model-Author.md +20 -0
- package/test_support/model/generated_documentation/Model-Book.md +26 -0
- package/test_support/model/generated_documentation/Model-BookAuthorJoin.md +14 -0
- package/test_support/model/generated_documentation/Model-BookPrice.md +25 -0
- package/test_support/model/generated_documentation/Model-Review.md +22 -0
- package/test_support/model/generated_documentation/ModelChangeTracking.md +17 -0
- package/test_support/model/generated_documentation/README.md +1 -0
- package/test_support/model/manual_scripts/DropTables.sql +5 -0
- package/test_support/model/manual_scripts/README.md +2 -0
- package/test_support/model/sql_create/BookStore-CreateDatabase.mysql.sql +116 -0
- package/test_support/model/sql_create/README.md +1 -0
- package/test_support/test_old/Tests.js +3243 -0
- package/test_support/test_old/untitled.js +88 -0
- package/source/Meadow-Authenticator.js +0 -31
- package/source/Meadow-Authorizers.js +0 -214
- package/source/Meadow-BehaviorModifications.js +0 -170
- package/source/Meadow-CommonServices.js +0 -206
- package/source/Meadow-MarshallSessionData.js +0 -64
- package/source/Restify-RouteParser.js +0 -114
- package/source/authorizers/Meadow-Authorizer-Allow.js +0 -17
- package/source/authorizers/Meadow-Authorizer-Deny.js +0 -17
- package/source/authorizers/Meadow-Authorizer-Mine.js +0 -47
- package/source/authorizers/Meadow-Authorizer-MyCustomer.js +0 -48
- package/source/crud/Meadow-Endpoint-BulkCreate.js +0 -67
- package/source/crud/Meadow-Endpoint-BulkUpdate.js +0 -74
- package/source/crud/Meadow-Endpoint-BulkUpsert.js +0 -76
- package/source/crud/Meadow-Endpoint-Count.js +0 -93
- package/source/crud/Meadow-Endpoint-CountBy.js +0 -101
- package/source/crud/Meadow-Endpoint-Create.js +0 -77
- package/source/crud/Meadow-Endpoint-Delete.js +0 -139
- package/source/crud/Meadow-Endpoint-Read.js +0 -109
- package/source/crud/Meadow-Endpoint-ReadDistinctList.js +0 -146
- package/source/crud/Meadow-Endpoint-ReadLiteList.js +0 -139
- package/source/crud/Meadow-Endpoint-ReadMax.js +0 -86
- package/source/crud/Meadow-Endpoint-ReadSelectList.js +0 -145
- package/source/crud/Meadow-Endpoint-Reads.js +0 -129
- package/source/crud/Meadow-Endpoint-ReadsBy.js +0 -155
- package/source/crud/Meadow-Endpoint-Update.js +0 -80
- package/source/crud/Meadow-Endpoint-Upsert.js +0 -78
- package/source/crud/Meadow-Operation-Create.js +0 -105
- package/source/crud/Meadow-Operation-Update.js +0 -145
- package/source/crud/Meadow-Operation-Upsert.js +0 -106
- package/source/crud/Meadow-StreamRecordArray.js +0 -45
- package/source/schema/Meadow-Endpoint-New.js +0 -37
- package/source/schema/Meadow-Endpoint-Schema.js +0 -37
- package/source/schema/Meadow-Endpoint-Validate.js +0 -43
- package/test/Animal.json +0 -140
- package/test/MeadowEndpoints_disabledAuth_tests.js +0 -1325
- package/test/MeadowEndpoints_trustedSession_tests.js +0 -1731
- package/test/load/artillery-low.yml +0 -10
- package/test/load/cloud9setup.sh +0 -25
- package/test/load/package.json +0 -19
- package/test/load/test-schema-initializedatabase.sql +0 -29
- package/test/load/test-schema.json +0 -119
- package/test/load/test-server.js +0 -157
- package/test/scripts/InitializeDatabase-C9.sql +0 -7
- /package/{test/schemas → test_support/model}/json_schema/BookStore-Extended.json +0 -0
- /package/{test/schemas → test_support/model}/json_schema/BookStore-PICT.json +0 -0
- /package/{test/schemas → test_support/model}/json_schema/BookStore.json +0 -0
- /package/{test/schemas → test_support/model}/json_schema/README.md +0 -0
- /package/{test/schemas → test_support/model}/meadow_schema/BookStore-MeadowSchema-Author.json +0 -0
- /package/{test/schemas → test_support/model}/meadow_schema/BookStore-MeadowSchema-Book.json +0 -0
- /package/{test/schemas → test_support/model}/meadow_schema/BookStore-MeadowSchema-BookAuthorJoin.json +0 -0
- /package/{test/schemas → test_support/model}/meadow_schema/BookStore-MeadowSchema-BookPrice.json +0 -0
- /package/{test/schemas → test_support/model}/meadow_schema/BookStore-MeadowSchema-Review.json +0 -0
- /package/{test/schemas → test_support/model}/meadow_schema/README.md +0 -0
package/test/Animal.json
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Scope": "FableTest",
|
|
3
|
-
|
|
4
|
-
"DefaultIdentifier": "IDAnimal",
|
|
5
|
-
|
|
6
|
-
"Schema": [
|
|
7
|
-
{ "Column": "IDAnimal", "Type":"AutoIdentity" },
|
|
8
|
-
{ "Column": "GUIDAnimal", "Type":"AutoGUID" },
|
|
9
|
-
{ "Column": "CreateDate", "Type":"CreateDate" },
|
|
10
|
-
{ "Column": "CreatingIDUser", "Type":"CreateIDUser" },
|
|
11
|
-
{ "Column": "UpdateDate", "Type":"UpdateDate" },
|
|
12
|
-
{ "Column": "UpdatingIDUser", "Type":"UpdateIDUser" },
|
|
13
|
-
{ "Column": "Deleted", "Type":"Deleted" },
|
|
14
|
-
{ "Column": "DeletingIDUser", "Type":"DeleteIDUser" },
|
|
15
|
-
{ "Column": "DeleteDate", "Type":"DeleteDate" },
|
|
16
|
-
{ "Column": "Name", "Type":"String" },
|
|
17
|
-
{ "Column": "Type", "Type":"String" },
|
|
18
|
-
{ "Column": "IDCustomer", "Type":"Number" }
|
|
19
|
-
],
|
|
20
|
-
|
|
21
|
-
"DefaultObject": {
|
|
22
|
-
"IDAnimal": null,
|
|
23
|
-
"GUIDAnimal": "",
|
|
24
|
-
|
|
25
|
-
"CreateDate": false,
|
|
26
|
-
"CreatingIDUser": 0,
|
|
27
|
-
"UpdateDate": false,
|
|
28
|
-
"UpdatingIDUser": 0,
|
|
29
|
-
"Deleted": 0,
|
|
30
|
-
"DeleteDate": false,
|
|
31
|
-
"DeletingIDUser": 0,
|
|
32
|
-
|
|
33
|
-
"Name": "Unknown",
|
|
34
|
-
"Type": "Unclassified",
|
|
35
|
-
"IDCustomer": 0
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
"JsonSchema": {
|
|
39
|
-
"title": "Animal",
|
|
40
|
-
"description": "A creature that lives in a meadow.",
|
|
41
|
-
"type": "object",
|
|
42
|
-
"properties": {
|
|
43
|
-
"IDAnimal": {
|
|
44
|
-
"description": "The unique identifier for an animal",
|
|
45
|
-
"type": "integer"
|
|
46
|
-
},
|
|
47
|
-
"Name": {
|
|
48
|
-
"description": "The animal's name",
|
|
49
|
-
"type": "string"
|
|
50
|
-
},
|
|
51
|
-
"Type": {
|
|
52
|
-
"description": "The type of the animal",
|
|
53
|
-
"type": "string"
|
|
54
|
-
},
|
|
55
|
-
"IDCustomer": {
|
|
56
|
-
"description": "The customer ID of the record",
|
|
57
|
-
"type": "number"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"required": ["IDAnimal", "Name", "CreatingIDUser"]
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
"Authorization": {
|
|
64
|
-
"__DefaultAPISecurity": {
|
|
65
|
-
"Create": "Deny",
|
|
66
|
-
"Read": "Deny",
|
|
67
|
-
"Reads": "Deny",
|
|
68
|
-
"ReadsBy": "Deny",
|
|
69
|
-
"ReadMax": "Deny",
|
|
70
|
-
"ReadSelectList": "Deny",
|
|
71
|
-
"Update": "Deny",
|
|
72
|
-
"Delete": "Deny",
|
|
73
|
-
"Count": "Deny",
|
|
74
|
-
"CountBy": "Deny",
|
|
75
|
-
"Schema": "Deny",
|
|
76
|
-
"Validate": "Deny",
|
|
77
|
-
"New": "Deny"
|
|
78
|
-
},
|
|
79
|
-
"Unauthenticated": {
|
|
80
|
-
"Create": "Deny",
|
|
81
|
-
"Read": "Allow",
|
|
82
|
-
"Reads": "Allow",
|
|
83
|
-
"ReadsBy": "Allow",
|
|
84
|
-
"ReadMax": "Allow",
|
|
85
|
-
"ReadSelectList": "Allow",
|
|
86
|
-
"Update": "Allow",
|
|
87
|
-
"Delete": "Allow",
|
|
88
|
-
"Count": "Allow",
|
|
89
|
-
"CountBy": "Allow",
|
|
90
|
-
"Schema": "Allow",
|
|
91
|
-
"Validate": "Allow",
|
|
92
|
-
"New": "Allow"
|
|
93
|
-
},
|
|
94
|
-
"Readonly": {
|
|
95
|
-
"Create": "Deny",
|
|
96
|
-
"Read": "Allow",
|
|
97
|
-
"Reads": "Allow",
|
|
98
|
-
"ReadsBy": "Allow",
|
|
99
|
-
"ReadMax": "Allow",
|
|
100
|
-
"ReadSelectList": "Allow",
|
|
101
|
-
"Update": "Deny",
|
|
102
|
-
"Delete": "Deny",
|
|
103
|
-
"Count": "Allow",
|
|
104
|
-
"CountBy": "Allow",
|
|
105
|
-
"Schema": "Allow",
|
|
106
|
-
"Validate": "Allow",
|
|
107
|
-
"New": "Deny"
|
|
108
|
-
},
|
|
109
|
-
"User": {
|
|
110
|
-
"Create": "Allow",
|
|
111
|
-
"Read": "Allow",
|
|
112
|
-
"Reads": "Allow",
|
|
113
|
-
"ReadsBy": "Allow",
|
|
114
|
-
"ReadMax": "Allow",
|
|
115
|
-
"ReadSelectList": "Allow",
|
|
116
|
-
"Update": "Allow",
|
|
117
|
-
"Delete": "Allow",
|
|
118
|
-
"Count": "Allow",
|
|
119
|
-
"CountBy": "Allow",
|
|
120
|
-
"Schema": "Allow",
|
|
121
|
-
"Validate": "Allow",
|
|
122
|
-
"New": "Allow"
|
|
123
|
-
},
|
|
124
|
-
"Manager": {
|
|
125
|
-
"Create": "Allow",
|
|
126
|
-
"Read": "Allow",
|
|
127
|
-
"Reads": "Allow",
|
|
128
|
-
"ReadsBy": "Allow",
|
|
129
|
-
"ReadMax": "Allow",
|
|
130
|
-
"ReadSelectList": "Allow",
|
|
131
|
-
"Update": "Allow",
|
|
132
|
-
"Delete": "Allow",
|
|
133
|
-
"Count": "Allow",
|
|
134
|
-
"CountBy": "Allow",
|
|
135
|
-
"Schema": "Allow",
|
|
136
|
-
"Validate": "Allow",
|
|
137
|
-
"New": "Allow"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|