@magda/typescript-common 1.1.0-arm64.0 → 1.1.0-rc.0

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 (252) hide show
  1. package/dist/AspectBuilder.d.ts +7 -0
  2. package/dist/AspectBuilder.js +3 -0
  3. package/dist/AspectBuilder.js.map +1 -0
  4. package/dist/AspectCreationFailure.d.ts +5 -0
  5. package/dist/AspectCreationFailure.js +10 -0
  6. package/dist/AspectCreationFailure.js.map +1 -0
  7. package/dist/AsyncPage.d.ts +18 -0
  8. package/dist/AsyncPage.js +140 -0
  9. package/dist/AsyncPage.js.map +1 -0
  10. package/dist/ConnectionResult.d.ts +16 -0
  11. package/dist/ConnectionResult.js +77 -0
  12. package/dist/ConnectionResult.js.map +1 -0
  13. package/dist/ConnectorRecordId.d.ts +15 -0
  14. package/dist/ConnectorRecordId.js +46 -0
  15. package/dist/ConnectorRecordId.js.map +1 -0
  16. package/dist/JsonConnector.d.ts +195 -0
  17. package/dist/JsonConnector.js +427 -0
  18. package/dist/JsonConnector.js.map +1 -0
  19. package/dist/JsonTransformer.d.ts +112 -0
  20. package/dist/JsonTransformer.js +225 -0
  21. package/dist/JsonTransformer.js.map +1 -0
  22. package/dist/OpaCompileResponseParser.d.ts +480 -0
  23. package/dist/OpaCompileResponseParser.js +1134 -0
  24. package/dist/OpaCompileResponseParser.js.map +1 -0
  25. package/dist/RecordCreationFailure.d.ts +7 -0
  26. package/dist/RecordCreationFailure.js +11 -0
  27. package/dist/RecordCreationFailure.js.map +1 -0
  28. package/dist/SimpleOpaSQLTranslator.d.ts +14 -0
  29. package/dist/SimpleOpaSQLTranslator.js +79 -0
  30. package/dist/SimpleOpaSQLTranslator.js.map +1 -0
  31. package/dist/addTrailingSlash.d.ts +1 -0
  32. package/dist/addTrailingSlash.js +15 -0
  33. package/dist/addTrailingSlash.js.map +1 -0
  34. package/dist/appendUrlSegments.d.ts +2 -0
  35. package/dist/appendUrlSegments.js +18 -0
  36. package/dist/appendUrlSegments.js.map +1 -0
  37. package/dist/authorization-api/AccessControlError.d.ts +4 -0
  38. package/dist/authorization-api/AccessControlError.js +13 -0
  39. package/dist/authorization-api/AccessControlError.js.map +1 -0
  40. package/dist/authorization-api/ApiClient.d.ts +141 -0
  41. package/dist/authorization-api/ApiClient.js +335 -0
  42. package/dist/authorization-api/ApiClient.js.map +1 -0
  43. package/dist/authorization-api/AuthError.d.ts +4 -0
  44. package/dist/authorization-api/AuthError.js +13 -0
  45. package/dist/authorization-api/AuthError.js.map +1 -0
  46. package/dist/authorization-api/GenericError.d.ts +9 -0
  47. package/dist/authorization-api/GenericError.js +17 -0
  48. package/dist/authorization-api/GenericError.js.map +1 -0
  49. package/dist/authorization-api/authMiddleware.d.ts +7 -0
  50. package/dist/authorization-api/authMiddleware.js +52 -0
  51. package/dist/authorization-api/authMiddleware.js.map +1 -0
  52. package/dist/authorization-api/model.d.ts +99 -0
  53. package/dist/authorization-api/model.js +3 -0
  54. package/dist/authorization-api/model.js.map +1 -0
  55. package/dist/coerceJson.d.ts +2 -0
  56. package/dist/coerceJson.js +13 -0
  57. package/dist/coerceJson.js.map +1 -0
  58. package/dist/createServiceError.d.ts +19 -0
  59. package/dist/createServiceError.js +45 -0
  60. package/dist/createServiceError.js.map +1 -0
  61. package/dist/delay.d.ts +2 -0
  62. package/dist/delay.js +9 -0
  63. package/dist/delay.js.map +1 -0
  64. package/dist/express/status.d.ts +30 -0
  65. package/dist/express/status.js +180 -0
  66. package/dist/express/status.js.map +1 -0
  67. package/dist/formatServiceError.d.ts +1 -0
  68. package/dist/formatServiceError.js +23 -0
  69. package/dist/formatServiceError.js.map +1 -0
  70. package/dist/generated/registry/api.d.ts +596 -0
  71. package/dist/generated/registry/api.js +2060 -0
  72. package/dist/generated/registry/api.js.map +1 -0
  73. package/dist/getAbsoluteUrl.d.ts +12 -0
  74. package/dist/getAbsoluteUrl.js +35 -0
  75. package/dist/getAbsoluteUrl.js.map +1 -0
  76. package/dist/getBasePathFromUrl.d.ts +10 -0
  77. package/dist/getBasePathFromUrl.js +27 -0
  78. package/dist/getBasePathFromUrl.js.map +1 -0
  79. package/dist/markdownToHtml.d.ts +3 -0
  80. package/dist/markdownToHtml.js +38 -0
  81. package/dist/markdownToHtml.js.map +1 -0
  82. package/dist/opa/OpaTypes.d.ts +41 -0
  83. package/dist/opa/OpaTypes.js +3 -0
  84. package/dist/opa/OpaTypes.js.map +1 -0
  85. package/dist/opa/getAuthDecision.d.ts +19 -0
  86. package/dist/opa/getAuthDecision.js +94 -0
  87. package/dist/opa/getAuthDecision.js.map +1 -0
  88. package/dist/opa/queryOpa.d.ts +1 -0
  89. package/dist/opa/queryOpa.js +41 -0
  90. package/dist/opa/queryOpa.js.map +1 -0
  91. package/dist/registry/AuthorizedRegistryClient.d.ts +29 -0
  92. package/dist/registry/AuthorizedRegistryClient.js +115 -0
  93. package/dist/registry/AuthorizedRegistryClient.js.map +1 -0
  94. package/dist/registry/RegistryClient.d.ts +36 -0
  95. package/dist/registry/RegistryClient.js +59 -0
  96. package/dist/registry/RegistryClient.js.map +1 -0
  97. package/dist/registry/TenantConsts.d.ts +31 -0
  98. package/dist/registry/TenantConsts.js +35 -0
  99. package/dist/registry/TenantConsts.js.map +1 -0
  100. package/dist/registry-manual/api.d.ts +9 -0
  101. package/dist/registry-manual/api.js +10 -0
  102. package/dist/registry-manual/api.js.map +1 -0
  103. package/dist/request.d.ts +3 -0
  104. package/dist/request.js +19 -0
  105. package/dist/request.js.map +1 -0
  106. package/dist/retry.d.ts +1 -0
  107. package/dist/retry.js +21 -0
  108. package/dist/retry.js.map +1 -0
  109. package/dist/retryBackoff.d.ts +1 -0
  110. package/dist/retryBackoff.js +21 -0
  111. package/dist/retryBackoff.js.map +1 -0
  112. package/dist/runLater.d.ts +1 -0
  113. package/dist/runLater.js +16 -0
  114. package/dist/runLater.js.map +1 -0
  115. package/dist/session/GetUserId.d.ts +5 -0
  116. package/dist/session/GetUserId.js +41 -0
  117. package/dist/session/GetUserId.js.map +1 -0
  118. package/dist/session/GetUserSession.d.ts +3 -0
  119. package/dist/session/GetUserSession.js +22 -0
  120. package/dist/session/GetUserSession.js.map +1 -0
  121. package/dist/session/addJwtSecretFromEnvVar.d.ts +14 -0
  122. package/dist/session/addJwtSecretFromEnvVar.js +23 -0
  123. package/dist/session/addJwtSecretFromEnvVar.js.map +1 -0
  124. package/dist/session/buildJwt.d.ts +1 -0
  125. package/dist/session/buildJwt.js +8 -0
  126. package/dist/session/buildJwt.js.map +1 -0
  127. package/dist/session/cookieUtils.d.ts +16 -0
  128. package/dist/session/cookieUtils.js +19 -0
  129. package/dist/session/cookieUtils.js.map +1 -0
  130. package/dist/session/destroySession.d.ts +10 -0
  131. package/dist/session/destroySession.js +44 -0
  132. package/dist/session/destroySession.js.map +1 -0
  133. package/dist/session/getSessionId.d.ts +2 -0
  134. package/dist/session/getSessionId.js +28 -0
  135. package/dist/session/getSessionId.js.map +1 -0
  136. package/dist/tenant-api/AuthorizedTenantClient.d.ts +25 -0
  137. package/dist/tenant-api/AuthorizedTenantClient.js +61 -0
  138. package/dist/tenant-api/AuthorizedTenantClient.js.map +1 -0
  139. package/dist/tenant-api/Tenant.d.ts +17 -0
  140. package/dist/tenant-api/Tenant.js +10 -0
  141. package/dist/tenant-api/Tenant.js.map +1 -0
  142. package/dist/test/JsonConnector.spec.d.ts +1 -0
  143. package/dist/test/JsonConnector.spec.js +352 -0
  144. package/dist/test/JsonConnector.spec.js.map +1 -0
  145. package/dist/test/JsonTransformer.spec.d.ts +1 -0
  146. package/dist/test/JsonTransformer.spec.js +98 -0
  147. package/dist/test/JsonTransformer.spec.js.map +1 -0
  148. package/dist/test/arbitraries.d.ts +98 -0
  149. package/dist/test/arbitraries.js +264 -0
  150. package/dist/test/arbitraries.js.map +1 -0
  151. package/dist/test/aspect-templates/organization-details.d.ts +4 -0
  152. package/dist/test/aspect-templates/organization-details.js +11 -0
  153. package/dist/test/aspect-templates/organization-details.js.map +1 -0
  154. package/dist/test/buildApiClient.spec.d.ts +1 -0
  155. package/dist/test/buildApiClient.spec.js +177 -0
  156. package/dist/test/buildApiClient.spec.js.map +1 -0
  157. package/dist/test/buildAuthorizedTenantClient.spec.d.ts +1 -0
  158. package/dist/test/buildAuthorizedTenantClient.spec.js +60 -0
  159. package/dist/test/buildAuthorizedTenantClient.spec.js.map +1 -0
  160. package/dist/test/connectors/MockExpressServer.d.ts +5 -0
  161. package/dist/test/connectors/MockExpressServer.js +28 -0
  162. package/dist/test/connectors/MockExpressServer.js.map +1 -0
  163. package/dist/test/connectors/MockRegistry.d.ts +7 -0
  164. package/dist/test/connectors/MockRegistry.js +93 -0
  165. package/dist/test/connectors/MockRegistry.js.map +1 -0
  166. package/dist/test/connectors/runConnectorTest.d.ts +5 -0
  167. package/dist/test/connectors/runConnectorTest.js +106 -0
  168. package/dist/test/connectors/runConnectorTest.js.map +1 -0
  169. package/dist/test/db/getTestDBConfig.d.ts +7 -0
  170. package/dist/test/db/getTestDBConfig.js +13 -0
  171. package/dist/test/db/getTestDBConfig.js.map +1 -0
  172. package/dist/test/db/runMigrationSql.d.ts +9 -0
  173. package/dist/test/db/runMigrationSql.js +82 -0
  174. package/dist/test/db/runMigrationSql.js.map +1 -0
  175. package/dist/test/express/status.spec.d.ts +1 -0
  176. package/dist/test/express/status.spec.js +160 -0
  177. package/dist/test/express/status.spec.js.map +1 -0
  178. package/dist/test/fakeArgv.d.ts +2 -0
  179. package/dist/test/fakeArgv.js +7 -0
  180. package/dist/test/fakeArgv.js.map +1 -0
  181. package/dist/test/getAuthDecision.spec.d.ts +1 -0
  182. package/dist/test/getAuthDecision.spec.js +22 -0
  183. package/dist/test/getAuthDecision.spec.js.map +1 -0
  184. package/dist/test/getBasePathFromUrl.spec.d.ts +1 -0
  185. package/dist/test/getBasePathFromUrl.spec.js +25 -0
  186. package/dist/test/getBasePathFromUrl.spec.js.map +1 -0
  187. package/dist/test/jsverify.d.ts +2 -0
  188. package/dist/test/jsverify.js +8 -0
  189. package/dist/test/jsverify.js.map +1 -0
  190. package/dist/test/mockAuthApiHost.d.ts +14 -0
  191. package/dist/test/mockAuthApiHost.js +174 -0
  192. package/dist/test/mockAuthApiHost.js.map +1 -0
  193. package/dist/test/mockAuthorization.d.ts +3 -0
  194. package/dist/test/mockAuthorization.js +24 -0
  195. package/dist/test/mockAuthorization.js.map +1 -0
  196. package/dist/test/mockTenantDataStore.d.ts +8 -0
  197. package/dist/test/mockTenantDataStore.js +41 -0
  198. package/dist/test/mockTenantDataStore.js.map +1 -0
  199. package/dist/test/mockUserDataStore.d.ts +11 -0
  200. package/dist/test/mockUserDataStore.js +56 -0
  201. package/dist/test/mockUserDataStore.js.map +1 -0
  202. package/dist/test/registry/buildAuthorizedClient.spec.d.ts +1 -0
  203. package/dist/test/registry/buildAuthorizedClient.spec.js +101 -0
  204. package/dist/test/registry/buildAuthorizedClient.spec.js.map +1 -0
  205. package/dist/test/sampleOpaResponse.json +480 -0
  206. package/dist/test/sampleOpaResponseSimple.json +173 -0
  207. package/dist/test/sampleOpaResponseUnconditionalTrue.json +193 -0
  208. package/dist/test/sampleOpaResponseUnconditionalTrueWithDefaultRule.json +303 -0
  209. package/dist/test/sampleOpaResponseWithDefaultRule.json +303 -0
  210. package/dist/test/session/buildJwt.spec.d.ts +1 -0
  211. package/dist/test/session/buildJwt.spec.js +50 -0
  212. package/dist/test/session/buildJwt.spec.js.map +1 -0
  213. package/dist/test/session/buildJwtForRegistryEsriOpaGroupsAndOwnerTest.spec.d.ts +1 -0
  214. package/dist/test/session/buildJwtForRegistryEsriOpaGroupsAndOwnerTest.spec.js +64 -0
  215. package/dist/test/session/buildJwtForRegistryEsriOpaGroupsAndOwnerTest.spec.js.map +1 -0
  216. package/dist/test/session/buildJwtForRegistryEsriOpaGroupsTest.spec.d.ts +1 -0
  217. package/dist/test/session/buildJwtForRegistryEsriOpaGroupsTest.spec.js +52 -0
  218. package/dist/test/session/buildJwtForRegistryEsriOpaGroupsTest.spec.js.map +1 -0
  219. package/dist/test/session/buildJwtForRegistryEsriOpaOwnerTest.spec.d.ts +1 -0
  220. package/dist/test/session/buildJwtForRegistryEsriOpaOwnerTest.spec.js +36 -0
  221. package/dist/test/session/buildJwtForRegistryEsriOpaOwnerTest.spec.js.map +1 -0
  222. package/dist/test/testAsyncPage.spec.d.ts +1 -0
  223. package/dist/test/testAsyncPage.spec.js +463 -0
  224. package/dist/test/testAsyncPage.spec.js.map +1 -0
  225. package/dist/test/testOpaCompileResponseParser.spec.d.ts +1 -0
  226. package/dist/test/testOpaCompileResponseParser.spec.js +148 -0
  227. package/dist/test/testOpaCompileResponseParser.spec.js.map +1 -0
  228. package/dist/test/util.d.ts +1 -0
  229. package/dist/test/util.js +8 -0
  230. package/dist/test/util.js.map +1 -0
  231. package/dist/util/arrayToMaybe.d.ts +2 -0
  232. package/dist/util/arrayToMaybe.js +8 -0
  233. package/dist/util/arrayToMaybe.js.map +1 -0
  234. package/dist/util/cleanOrgTitle.d.ts +1 -0
  235. package/dist/util/cleanOrgTitle.js +13 -0
  236. package/dist/util/cleanOrgTitle.js.map +1 -0
  237. package/dist/util/escapeRegExp.d.ts +2 -0
  238. package/dist/util/escapeRegExp.js +5 -0
  239. package/dist/util/escapeRegExp.js.map +1 -0
  240. package/dist/util/getMinikubeIP.d.ts +1 -0
  241. package/dist/util/getMinikubeIP.js +13 -0
  242. package/dist/util/getMinikubeIP.js.map +1 -0
  243. package/dist/util/isUuid.d.ts +2 -0
  244. package/dist/util/isUuid.js +6 -0
  245. package/dist/util/isUuid.js.map +1 -0
  246. package/dist/util/unionToThrowable.d.ts +1 -0
  247. package/dist/util/unionToThrowable.js +12 -0
  248. package/dist/util/unionToThrowable.js.map +1 -0
  249. package/dist/utilityTypes.d.ts +1 -0
  250. package/dist/utilityTypes.js +3 -0
  251. package/dist/utilityTypes.js.map +1 -0
  252. package/package.json +3 -3
@@ -0,0 +1,480 @@
1
+ {
2
+ "result": {
3
+ "queries": [
4
+ [
5
+ {
6
+ "index": 0,
7
+ "terms": [
8
+ {
9
+ "type": "ref",
10
+ "value": [
11
+ {
12
+ "type": "var",
13
+ "value": "equal"
14
+ }
15
+ ]
16
+ },
17
+ {
18
+ "type": "ref",
19
+ "value": [
20
+ {
21
+ "type": "var",
22
+ "value": "data"
23
+ },
24
+ {
25
+ "type": "string",
26
+ "value": "partial"
27
+ },
28
+ {
29
+ "type": "string",
30
+ "value": "object"
31
+ },
32
+ {
33
+ "type": "string",
34
+ "value": "content"
35
+ },
36
+ {
37
+ "type": "string",
38
+ "value": "allowRead"
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ "type": "boolean",
44
+ "value": true
45
+ }
46
+ ]
47
+ }
48
+ ]
49
+ ],
50
+ "support": [
51
+ {
52
+ "package": {
53
+ "path": [
54
+ {
55
+ "type": "var",
56
+ "value": "data"
57
+ },
58
+ {
59
+ "type": "string",
60
+ "value": "partial"
61
+ },
62
+ {
63
+ "type": "string",
64
+ "value": "object"
65
+ },
66
+ {
67
+ "type": "string",
68
+ "value": "content"
69
+ }
70
+ ]
71
+ },
72
+ "rules": [
73
+ {
74
+ "head": {
75
+ "name": "isValidAllowReadUri",
76
+ "value": {
77
+ "type": "boolean",
78
+ "value": true
79
+ }
80
+ },
81
+ "body": [
82
+ {
83
+ "index": 0,
84
+ "terms": {
85
+ "type": "boolean",
86
+ "value": true
87
+ }
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ "default": true,
93
+ "head": {
94
+ "name": "isValidAllowReadUri",
95
+ "value": {
96
+ "type": "boolean",
97
+ "value": false
98
+ }
99
+ },
100
+ "body": [
101
+ {
102
+ "index": 0,
103
+ "terms": {
104
+ "type": "boolean",
105
+ "value": true
106
+ }
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "head": {
112
+ "name": "allowRead",
113
+ "value": {
114
+ "type": "boolean",
115
+ "value": true
116
+ }
117
+ },
118
+ "body": [
119
+ {
120
+ "index": 0,
121
+ "terms": {
122
+ "type": "ref",
123
+ "value": [
124
+ {
125
+ "type": "var",
126
+ "value": "data"
127
+ },
128
+ {
129
+ "type": "string",
130
+ "value": "partial"
131
+ },
132
+ {
133
+ "type": "string",
134
+ "value": "object"
135
+ },
136
+ {
137
+ "type": "string",
138
+ "value": "content"
139
+ },
140
+ {
141
+ "type": "string",
142
+ "value": "isValidAllowReadUri"
143
+ }
144
+ ]
145
+ }
146
+ },
147
+ {
148
+ "index": 1,
149
+ "negated": true,
150
+ "terms": {
151
+ "type": "boolean",
152
+ "value": true
153
+ }
154
+ },
155
+ {
156
+ "index": 2,
157
+ "negated": true,
158
+ "terms": {
159
+ "type": "boolean",
160
+ "value": true
161
+ }
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "head": {
167
+ "name": "allowRead",
168
+ "value": {
169
+ "type": "boolean",
170
+ "value": true
171
+ }
172
+ },
173
+ "body": [
174
+ {
175
+ "index": 0,
176
+ "terms": {
177
+ "type": "ref",
178
+ "value": [
179
+ {
180
+ "type": "var",
181
+ "value": "data"
182
+ },
183
+ {
184
+ "type": "string",
185
+ "value": "partial"
186
+ },
187
+ {
188
+ "type": "string",
189
+ "value": "object"
190
+ },
191
+ {
192
+ "type": "string",
193
+ "value": "content"
194
+ },
195
+ {
196
+ "type": "string",
197
+ "value": "isValidAllowReadUri"
198
+ }
199
+ ]
200
+ }
201
+ },
202
+ {
203
+ "index": 1,
204
+ "terms": {
205
+ "type": "ref",
206
+ "value": [
207
+ {
208
+ "type": "var",
209
+ "value": "data"
210
+ },
211
+ {
212
+ "type": "string",
213
+ "value": "partial"
214
+ },
215
+ {
216
+ "type": "string",
217
+ "value": "object"
218
+ },
219
+ {
220
+ "type": "string",
221
+ "value": "dataset"
222
+ },
223
+ {
224
+ "type": "string",
225
+ "value": "hasAnyPublishedReadPermission"
226
+ }
227
+ ]
228
+ }
229
+ },
230
+ {
231
+ "index": 2,
232
+ "terms": [
233
+ {
234
+ "type": "ref",
235
+ "value": [
236
+ {
237
+ "type": "var",
238
+ "value": "eq"
239
+ }
240
+ ]
241
+ },
242
+ {
243
+ "type": "ref",
244
+ "value": [
245
+ {
246
+ "type": "var",
247
+ "value": "input"
248
+ },
249
+ {
250
+ "type": "string",
251
+ "value": "object"
252
+ },
253
+ {
254
+ "type": "string",
255
+ "value": "content"
256
+ },
257
+ {
258
+ "type": "string",
259
+ "value": "id"
260
+ }
261
+ ]
262
+ },
263
+ {
264
+ "type": "string",
265
+ "value": "header/navigation/datasets"
266
+ }
267
+ ]
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ "head": {
273
+ "name": "allowRead",
274
+ "value": {
275
+ "type": "boolean",
276
+ "value": true
277
+ }
278
+ },
279
+ "body": [
280
+ {
281
+ "index": 0,
282
+ "terms": {
283
+ "type": "ref",
284
+ "value": [
285
+ {
286
+ "type": "var",
287
+ "value": "data"
288
+ },
289
+ {
290
+ "type": "string",
291
+ "value": "partial"
292
+ },
293
+ {
294
+ "type": "string",
295
+ "value": "object"
296
+ },
297
+ {
298
+ "type": "string",
299
+ "value": "content"
300
+ },
301
+ {
302
+ "type": "string",
303
+ "value": "isValidAllowReadUri"
304
+ }
305
+ ]
306
+ }
307
+ },
308
+ {
309
+ "index": 1,
310
+ "terms": {
311
+ "type": "ref",
312
+ "value": [
313
+ {
314
+ "type": "var",
315
+ "value": "data"
316
+ },
317
+ {
318
+ "type": "string",
319
+ "value": "partial"
320
+ },
321
+ {
322
+ "type": "string",
323
+ "value": "object"
324
+ },
325
+ {
326
+ "type": "string",
327
+ "value": "dataset"
328
+ },
329
+ {
330
+ "type": "string",
331
+ "value": "hasAnyDraftReadPermission"
332
+ }
333
+ ]
334
+ }
335
+ },
336
+ {
337
+ "index": 2,
338
+ "terms": [
339
+ {
340
+ "type": "ref",
341
+ "value": [
342
+ {
343
+ "type": "var",
344
+ "value": "eq"
345
+ }
346
+ ]
347
+ },
348
+ {
349
+ "type": "ref",
350
+ "value": [
351
+ {
352
+ "type": "var",
353
+ "value": "input"
354
+ },
355
+ {
356
+ "type": "string",
357
+ "value": "object"
358
+ },
359
+ {
360
+ "type": "string",
361
+ "value": "content"
362
+ },
363
+ {
364
+ "type": "string",
365
+ "value": "id"
366
+ }
367
+ ]
368
+ },
369
+ {
370
+ "type": "string",
371
+ "value": "header/navigation/drafts"
372
+ }
373
+ ]
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ "default": true,
379
+ "head": {
380
+ "name": "allowRead",
381
+ "value": {
382
+ "type": "boolean",
383
+ "value": false
384
+ }
385
+ },
386
+ "body": [
387
+ {
388
+ "index": 0,
389
+ "terms": {
390
+ "type": "boolean",
391
+ "value": true
392
+ }
393
+ }
394
+ ]
395
+ }
396
+ ]
397
+ },
398
+ {
399
+ "package": {
400
+ "path": [
401
+ {
402
+ "type": "var",
403
+ "value": "data"
404
+ },
405
+ {
406
+ "type": "string",
407
+ "value": "partial"
408
+ },
409
+ {
410
+ "type": "string",
411
+ "value": "object"
412
+ },
413
+ {
414
+ "type": "string",
415
+ "value": "dataset"
416
+ }
417
+ ]
418
+ },
419
+ "rules": [
420
+ {
421
+ "head": {
422
+ "name": "hasAnyPublishedReadPermission",
423
+ "value": {
424
+ "type": "boolean",
425
+ "value": true
426
+ }
427
+ },
428
+ "body": [
429
+ {
430
+ "index": 0,
431
+ "terms": {
432
+ "type": "boolean",
433
+ "value": true
434
+ }
435
+ }
436
+ ]
437
+ },
438
+ {
439
+ "default": true,
440
+ "head": {
441
+ "name": "hasAnyPublishedReadPermission",
442
+ "value": {
443
+ "type": "boolean",
444
+ "value": false
445
+ }
446
+ },
447
+ "body": [
448
+ {
449
+ "index": 0,
450
+ "terms": {
451
+ "type": "boolean",
452
+ "value": true
453
+ }
454
+ }
455
+ ]
456
+ },
457
+ {
458
+ "default": true,
459
+ "head": {
460
+ "name": "hasAnyDraftReadPermission",
461
+ "value": {
462
+ "type": "boolean",
463
+ "value": false
464
+ }
465
+ },
466
+ "body": [
467
+ {
468
+ "index": 0,
469
+ "terms": {
470
+ "type": "boolean",
471
+ "value": true
472
+ }
473
+ }
474
+ ]
475
+ }
476
+ ]
477
+ }
478
+ ]
479
+ }
480
+ }
@@ -0,0 +1,173 @@
1
+ {
2
+ "result": {
3
+ "queries": [
4
+ [
5
+ {
6
+ "index": 0,
7
+ "terms": [
8
+ {
9
+ "type": "ref",
10
+ "value": [
11
+ {
12
+ "type": "var",
13
+ "value": "equal"
14
+ }
15
+ ]
16
+ },
17
+ {
18
+ "type": "ref",
19
+ "value": [
20
+ {
21
+ "type": "var",
22
+ "value": "data"
23
+ },
24
+ {
25
+ "type": "string",
26
+ "value": "partial"
27
+ },
28
+ {
29
+ "type": "string",
30
+ "value": "object"
31
+ },
32
+ {
33
+ "type": "string",
34
+ "value": "content"
35
+ },
36
+ {
37
+ "type": "string",
38
+ "value": "allowRead"
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ "type": "boolean",
44
+ "value": true
45
+ }
46
+ ]
47
+ }
48
+ ]
49
+ ],
50
+ "support": [
51
+ {
52
+ "package": {
53
+ "path": [
54
+ {
55
+ "type": "var",
56
+ "value": "data"
57
+ },
58
+ {
59
+ "type": "string",
60
+ "value": "partial"
61
+ },
62
+ {
63
+ "type": "string",
64
+ "value": "object"
65
+ },
66
+ {
67
+ "type": "string",
68
+ "value": "content"
69
+ }
70
+ ]
71
+ },
72
+ "rules": [
73
+ {
74
+ "head": {
75
+ "name": "allowRead",
76
+ "value": {
77
+ "type": "boolean",
78
+ "value": true
79
+ }
80
+ },
81
+ "body": [
82
+ {
83
+ "index": 0,
84
+ "negated": true,
85
+ "terms": {
86
+ "type": "boolean",
87
+ "value": true
88
+ }
89
+ },
90
+ {
91
+ "index": 1,
92
+ "negated": true,
93
+ "terms": {
94
+ "type": "boolean",
95
+ "value": true
96
+ }
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "head": {
102
+ "name": "allowRead",
103
+ "value": {
104
+ "type": "boolean",
105
+ "value": true
106
+ }
107
+ },
108
+ "body": [
109
+ {
110
+ "index": 0,
111
+ "terms": [
112
+ {
113
+ "type": "ref",
114
+ "value": [
115
+ {
116
+ "type": "var",
117
+ "value": "eq"
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "type": "ref",
123
+ "value": [
124
+ {
125
+ "type": "var",
126
+ "value": "input"
127
+ },
128
+ {
129
+ "type": "string",
130
+ "value": "object"
131
+ },
132
+ {
133
+ "type": "string",
134
+ "value": "content"
135
+ },
136
+ {
137
+ "type": "string",
138
+ "value": "id"
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ "type": "string",
144
+ "value": "header/navigation/datasets"
145
+ }
146
+ ]
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "default": true,
152
+ "head": {
153
+ "name": "allowRead",
154
+ "value": {
155
+ "type": "boolean",
156
+ "value": false
157
+ }
158
+ },
159
+ "body": [
160
+ {
161
+ "index": 0,
162
+ "terms": {
163
+ "type": "boolean",
164
+ "value": true
165
+ }
166
+ }
167
+ ]
168
+ }
169
+ ]
170
+ }
171
+ ]
172
+ }
173
+ }