@osdk/maker 0.15.0-beta.6 → 0.15.0-beta.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 (188) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +26 -22
  3. package/build/browser/api/action/ActionParameter.js.map +1 -1
  4. package/build/browser/api/action/ActionParameterConfiguration.js.map +1 -1
  5. package/build/browser/api/defineAction.js +65 -22
  6. package/build/browser/api/defineAction.js.map +1 -1
  7. package/build/browser/api/defineCreateInterfaceObjectAction.js +28 -8
  8. package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -1
  9. package/build/browser/api/defineInterface.js +40 -34
  10. package/build/browser/api/defineInterface.js.map +1 -1
  11. package/build/browser/api/defineModifyInterfaceObjectAction.js +31 -8
  12. package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -1
  13. package/build/browser/api/defineObject.js +13 -9
  14. package/build/browser/api/defineObject.js.map +1 -1
  15. package/build/browser/api/defineOntology.js +6 -0
  16. package/build/browser/api/defineOntology.js.map +1 -1
  17. package/build/browser/api/defineSpt.js.map +1 -1
  18. package/build/browser/api/defineValueType.js +17 -4
  19. package/build/browser/api/defineValueType.js.map +1 -1
  20. package/build/browser/api/interface/InterfacePropertyType.js +22 -1
  21. package/build/browser/api/interface/InterfacePropertyType.js.map +1 -1
  22. package/build/browser/api/interface/InterfaceType.js.map +1 -1
  23. package/build/browser/api/interface/getFlattenedInterfaceProperties.js +9 -3
  24. package/build/browser/api/interface/getFlattenedInterfaceProperties.js.map +1 -1
  25. package/build/browser/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js +5 -0
  26. package/build/browser/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js.map +1 -1
  27. package/build/browser/api/links/LinkType.js.map +1 -1
  28. package/build/browser/api/object/ObjectType.js.map +1 -1
  29. package/build/browser/api/object/ObjectTypeDefinition.js.map +1 -1
  30. package/build/browser/api/object/ObjectTypeStatus.js.map +1 -1
  31. package/build/browser/api/properties/PropertyTypeType.js +1 -1
  32. package/build/browser/api/properties/PropertyTypeType.js.map +1 -1
  33. package/build/browser/api/properties/SharedPropertyType.js.map +1 -1
  34. package/build/browser/api/test/actions.test.js +6105 -5850
  35. package/build/browser/api/test/actions.test.js.map +1 -1
  36. package/build/browser/api/test/interfaces.test.js +757 -492
  37. package/build/browser/api/test/interfaces.test.js.map +1 -1
  38. package/build/browser/api/test/links.test.js +1334 -1325
  39. package/build/browser/api/test/links.test.js.map +1 -1
  40. package/build/browser/api/test/misc.test.js +262 -11
  41. package/build/browser/api/test/misc.test.js.map +1 -1
  42. package/build/browser/api/test/objects.test.js +1019 -960
  43. package/build/browser/api/test/objects.test.js.map +1 -1
  44. package/build/browser/api/test/spt.test.js +250 -103
  45. package/build/browser/api/test/spt.test.js.map +1 -1
  46. package/build/browser/api/test/valueTypes.test.js +69 -0
  47. package/build/browser/api/test/valueTypes.test.js.map +1 -1
  48. package/build/browser/cli/main.js +1 -1
  49. package/build/browser/conversion/toMarketplace/convertActionValidation.js +1 -1
  50. package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -1
  51. package/build/browser/conversion/toMarketplace/convertInterface.js +2 -2
  52. package/build/browser/conversion/toMarketplace/convertInterface.js.map +1 -1
  53. package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js +66 -0
  54. package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
  55. package/build/browser/conversion/toMarketplace/convertLink.js +30 -4
  56. package/build/browser/conversion/toMarketplace/convertLink.js.map +1 -1
  57. package/build/browser/conversion/toMarketplace/convertMappingValue.js +35 -0
  58. package/build/browser/conversion/toMarketplace/convertMappingValue.js.map +1 -1
  59. package/build/browser/conversion/toMarketplace/convertObject.js +4 -2
  60. package/build/browser/conversion/toMarketplace/convertObject.js.map +1 -1
  61. package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js +2 -1
  62. package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
  63. package/build/browser/conversion/toMarketplace/convertSpt.js +4 -2
  64. package/build/browser/conversion/toMarketplace/convertSpt.js.map +1 -1
  65. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +143 -0
  66. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
  67. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -0
  68. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
  69. package/build/browser/index.js.map +1 -1
  70. package/build/cjs/index.cjs +444 -117
  71. package/build/cjs/index.cjs.map +1 -1
  72. package/build/cjs/index.d.cts +53 -17
  73. package/build/esm/api/action/ActionParameter.js.map +1 -1
  74. package/build/esm/api/action/ActionParameterConfiguration.js.map +1 -1
  75. package/build/esm/api/defineAction.js +65 -22
  76. package/build/esm/api/defineAction.js.map +1 -1
  77. package/build/esm/api/defineCreateInterfaceObjectAction.js +28 -8
  78. package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -1
  79. package/build/esm/api/defineInterface.js +40 -34
  80. package/build/esm/api/defineInterface.js.map +1 -1
  81. package/build/esm/api/defineModifyInterfaceObjectAction.js +31 -8
  82. package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -1
  83. package/build/esm/api/defineObject.js +13 -9
  84. package/build/esm/api/defineObject.js.map +1 -1
  85. package/build/esm/api/defineOntology.js +6 -0
  86. package/build/esm/api/defineOntology.js.map +1 -1
  87. package/build/esm/api/defineSpt.js.map +1 -1
  88. package/build/esm/api/defineValueType.js +17 -4
  89. package/build/esm/api/defineValueType.js.map +1 -1
  90. package/build/esm/api/interface/InterfacePropertyType.js +22 -1
  91. package/build/esm/api/interface/InterfacePropertyType.js.map +1 -1
  92. package/build/esm/api/interface/InterfaceType.js.map +1 -1
  93. package/build/esm/api/interface/getFlattenedInterfaceProperties.js +9 -3
  94. package/build/esm/api/interface/getFlattenedInterfaceProperties.js.map +1 -1
  95. package/build/esm/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js +5 -0
  96. package/build/esm/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js.map +1 -1
  97. package/build/esm/api/links/LinkType.js.map +1 -1
  98. package/build/esm/api/object/ObjectType.js.map +1 -1
  99. package/build/esm/api/object/ObjectTypeDefinition.js.map +1 -1
  100. package/build/esm/api/object/ObjectTypeStatus.js.map +1 -1
  101. package/build/esm/api/properties/PropertyTypeType.js +1 -1
  102. package/build/esm/api/properties/PropertyTypeType.js.map +1 -1
  103. package/build/esm/api/properties/SharedPropertyType.js.map +1 -1
  104. package/build/esm/api/test/actions.test.js +6105 -5850
  105. package/build/esm/api/test/actions.test.js.map +1 -1
  106. package/build/esm/api/test/interfaces.test.js +757 -492
  107. package/build/esm/api/test/interfaces.test.js.map +1 -1
  108. package/build/esm/api/test/links.test.js +1334 -1325
  109. package/build/esm/api/test/links.test.js.map +1 -1
  110. package/build/esm/api/test/misc.test.js +262 -11
  111. package/build/esm/api/test/misc.test.js.map +1 -1
  112. package/build/esm/api/test/objects.test.js +1019 -960
  113. package/build/esm/api/test/objects.test.js.map +1 -1
  114. package/build/esm/api/test/spt.test.js +250 -103
  115. package/build/esm/api/test/spt.test.js.map +1 -1
  116. package/build/esm/api/test/valueTypes.test.js +69 -0
  117. package/build/esm/api/test/valueTypes.test.js.map +1 -1
  118. package/build/esm/cli/main.js +1 -1
  119. package/build/esm/conversion/toMarketplace/convertActionValidation.js +1 -1
  120. package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -1
  121. package/build/esm/conversion/toMarketplace/convertInterface.js +2 -2
  122. package/build/esm/conversion/toMarketplace/convertInterface.js.map +1 -1
  123. package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js +66 -0
  124. package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
  125. package/build/esm/conversion/toMarketplace/convertLink.js +30 -4
  126. package/build/esm/conversion/toMarketplace/convertLink.js.map +1 -1
  127. package/build/esm/conversion/toMarketplace/convertMappingValue.js +35 -0
  128. package/build/esm/conversion/toMarketplace/convertMappingValue.js.map +1 -1
  129. package/build/esm/conversion/toMarketplace/convertObject.js +4 -2
  130. package/build/esm/conversion/toMarketplace/convertObject.js.map +1 -1
  131. package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js +2 -1
  132. package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
  133. package/build/esm/conversion/toMarketplace/convertSpt.js +4 -2
  134. package/build/esm/conversion/toMarketplace/convertSpt.js.map +1 -1
  135. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +143 -0
  136. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
  137. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -0
  138. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
  139. package/build/esm/index.js.map +1 -1
  140. package/build/types/api/action/ActionParameter.d.ts +2 -1
  141. package/build/types/api/action/ActionParameter.d.ts.map +1 -1
  142. package/build/types/api/action/ActionParameterConfiguration.d.ts +2 -1
  143. package/build/types/api/action/ActionParameterConfiguration.d.ts.map +1 -1
  144. package/build/types/api/defineAction.d.ts +4 -3
  145. package/build/types/api/defineAction.d.ts.map +1 -1
  146. package/build/types/api/defineCreateInterfaceObjectAction.d.ts.map +1 -1
  147. package/build/types/api/defineInterface.d.ts +7 -5
  148. package/build/types/api/defineInterface.d.ts.map +1 -1
  149. package/build/types/api/defineModifyInterfaceObjectAction.d.ts.map +1 -1
  150. package/build/types/api/defineObject.d.ts.map +1 -1
  151. package/build/types/api/defineOntology.d.ts.map +1 -1
  152. package/build/types/api/defineSpt.d.ts +3 -0
  153. package/build/types/api/defineSpt.d.ts.map +1 -1
  154. package/build/types/api/defineValueType.d.ts +9 -0
  155. package/build/types/api/defineValueType.d.ts.map +1 -1
  156. package/build/types/api/interface/InterfacePropertyType.d.ts +12 -2
  157. package/build/types/api/interface/InterfacePropertyType.d.ts.map +1 -1
  158. package/build/types/api/interface/InterfaceType.d.ts +3 -2
  159. package/build/types/api/interface/InterfaceType.d.ts.map +1 -1
  160. package/build/types/api/interface/getFlattenedInterfaceProperties.d.ts +1 -1
  161. package/build/types/api/interface/getFlattenedInterfaceProperties.d.ts.map +1 -1
  162. package/build/types/api/links/LinkType.d.ts +16 -4
  163. package/build/types/api/links/LinkType.d.ts.map +1 -1
  164. package/build/types/api/object/ObjectType.d.ts +1 -0
  165. package/build/types/api/object/ObjectType.d.ts.map +1 -1
  166. package/build/types/api/object/ObjectTypeDefinition.d.ts +1 -0
  167. package/build/types/api/object/ObjectTypeDefinition.d.ts.map +1 -1
  168. package/build/types/api/object/ObjectTypeStatus.d.ts +1 -1
  169. package/build/types/api/object/ObjectTypeStatus.d.ts.map +1 -1
  170. package/build/types/api/properties/PropertyTypeType.d.ts +1 -0
  171. package/build/types/api/properties/PropertyTypeType.d.ts.map +1 -1
  172. package/build/types/api/properties/SharedPropertyType.d.ts +1 -0
  173. package/build/types/api/properties/SharedPropertyType.d.ts.map +1 -1
  174. package/build/types/conversion/toMarketplace/convertInterface.d.ts.map +1 -1
  175. package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts +3 -0
  176. package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts.map +1 -0
  177. package/build/types/conversion/toMarketplace/convertLink.d.ts +3 -2
  178. package/build/types/conversion/toMarketplace/convertLink.d.ts.map +1 -1
  179. package/build/types/conversion/toMarketplace/convertMappingValue.d.ts +2 -1
  180. package/build/types/conversion/toMarketplace/convertMappingValue.d.ts.map +1 -1
  181. package/build/types/conversion/toMarketplace/convertObject.d.ts.map +1 -1
  182. package/build/types/conversion/toMarketplace/convertSpt.d.ts +1 -1
  183. package/build/types/conversion/toMarketplace/convertSpt.d.ts.map +1 -1
  184. package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts +3 -0
  185. package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts.map +1 -0
  186. package/build/types/index.d.ts +1 -0
  187. package/build/types/index.d.ts.map +1 -1
  188. package/package.json +3 -3
@@ -165,43 +165,84 @@ describe("Object Types", () => {
165
165
  displayName: "geopoint"
166
166
  }
167
167
  },
168
+ aliases: ["alias1", "alias2"],
168
169
  implementsInterfaces: [{
169
170
  implements: sample,
170
171
  propertyMapping: [{
171
- interfaceProperty: "foo",
172
+ interfaceProperty: spt.apiName,
172
173
  mapsTo: "bar"
173
174
  }]
174
175
  }]
175
176
  });
176
177
  expect(dumpOntologyFullMetadata().ontology).toMatchInlineSnapshot(`
177
- {
178
+ {
179
+ "actionTypes": {},
180
+ "blockPermissionInformation": {
178
181
  "actionTypes": {},
179
- "blockPermissionInformation": {
180
- "actionTypes": {},
181
- "linkTypes": {},
182
- "objectTypes": {},
183
- },
184
- "interfaceTypes": {
185
- "com.palantir.interface": {
186
- "interfaceType": {
187
- "apiName": "com.palantir.interface",
188
- "displayMetadata": {
189
- "description": "interface",
190
- "displayName": "interface",
191
- "icon": {
192
- "blueprint": {
193
- "color": "#4C90F0",
194
- "locator": "layout-hierarchy",
182
+ "linkTypes": {},
183
+ "objectTypes": {},
184
+ },
185
+ "interfaceTypes": {
186
+ "com.palantir.interface": {
187
+ "interfaceType": {
188
+ "apiName": "com.palantir.interface",
189
+ "displayMetadata": {
190
+ "description": "interface",
191
+ "displayName": "interface",
192
+ "icon": {
193
+ "blueprint": {
194
+ "color": "#4C90F0",
195
+ "locator": "layout-hierarchy",
196
+ },
197
+ "type": "blueprint",
198
+ },
199
+ },
200
+ "extendsInterfaces": [],
201
+ "links": [],
202
+ "properties": [],
203
+ "propertiesV2": {
204
+ "com.palantir.foo": {
205
+ "required": true,
206
+ "sharedPropertyType": {
207
+ "aliases": [],
208
+ "apiName": "com.palantir.foo",
209
+ "baseFormatter": undefined,
210
+ "dataConstraints": undefined,
211
+ "displayMetadata": {
212
+ "description": undefined,
213
+ "displayName": "foo",
214
+ "visibility": "NORMAL",
195
215
  },
196
- "type": "blueprint",
216
+ "gothamMapping": undefined,
217
+ "indexedForSearch": true,
218
+ "type": {
219
+ "string": {
220
+ "analyzerOverride": undefined,
221
+ "enableAsciiFolding": undefined,
222
+ "isLongText": false,
223
+ "supportsEfficientLeadingWildcard": false,
224
+ "supportsExactMatching": true,
225
+ },
226
+ "type": "string",
227
+ },
228
+ "typeClasses": [
229
+ {
230
+ "kind": "render_hint",
231
+ "name": "SELECTABLE",
232
+ },
233
+ {
234
+ "kind": "render_hint",
235
+ "name": "SORTABLE",
236
+ },
237
+ ],
238
+ "valueType": undefined,
197
239
  },
198
240
  },
199
- "extendsInterfaces": [],
200
- "links": [],
201
- "properties": [],
202
- "propertiesV2": {
203
- "com.palantir.foo": {
204
- "required": true,
241
+ },
242
+ "propertiesV3": {
243
+ "com.palantir.foo": {
244
+ "sharedPropertyBasedPropertyType": {
245
+ "requireImplementation": true,
205
246
  "sharedPropertyType": {
206
247
  "aliases": [],
207
248
  "apiName": "com.palantir.foo",
@@ -237,291 +278,701 @@ describe("Object Types", () => {
237
278
  "valueType": undefined,
238
279
  },
239
280
  },
281
+ "type": "sharedPropertyBasedPropertyType",
240
282
  },
241
- "propertiesV3": {},
242
- "searchable": true,
243
- "status": {
244
- "active": {},
245
- "type": "active",
246
- },
283
+ },
284
+ "searchable": true,
285
+ "status": {
286
+ "active": {},
287
+ "type": "active",
247
288
  },
248
289
  },
249
290
  },
250
- "linkTypes": {},
251
- "objectTypes": {
252
- "com.palantir.foo": {
253
- "datasources": [
254
- {
255
- "datasource": {
256
- "datasetV2": {
257
- "datasetRid": "com.palantir.foo",
258
- "propertyMapping": {
259
- "arrayProp": {
260
- "column": "arrayProp",
261
- "type": "column",
262
- },
263
- "bar": {
264
- "column": "bar",
265
- "type": "column",
266
- },
267
- "geopoint": {
268
- "struct": {
269
- "column": "geopoint",
270
- "mapping": {
271
- "lat": {
272
- "apiName": "lat",
273
- "mappings": {},
274
- },
275
- "lng": {
276
- "apiName": "lng",
277
- "mappings": {},
278
- },
291
+ },
292
+ "linkTypes": {},
293
+ "objectTypes": {
294
+ "com.palantir.foo": {
295
+ "datasources": [
296
+ {
297
+ "datasource": {
298
+ "datasetV2": {
299
+ "datasetRid": "com.palantir.foo",
300
+ "propertyMapping": {
301
+ "arrayProp": {
302
+ "column": "arrayProp",
303
+ "type": "column",
304
+ },
305
+ "bar": {
306
+ "column": "bar",
307
+ "type": "column",
308
+ },
309
+ "geopoint": {
310
+ "struct": {
311
+ "column": "geopoint",
312
+ "mapping": {
313
+ "lat": {
314
+ "apiName": "lat",
315
+ "mappings": {},
316
+ },
317
+ "lng": {
318
+ "apiName": "lng",
319
+ "mappings": {},
279
320
  },
280
321
  },
281
- "type": "struct",
282
322
  },
323
+ "type": "struct",
283
324
  },
284
325
  },
285
- "type": "datasetV2",
286
- },
287
- "datasourceName": "com.palantir.foo",
288
- "editsConfiguration": {
289
- "onlyAllowPrivilegedEdits": false,
290
326
  },
291
- "redacted": false,
327
+ "type": "datasetV2",
328
+ },
329
+ "datasourceName": "com.palantir.foo",
330
+ "editsConfiguration": {
331
+ "onlyAllowPrivilegedEdits": false,
292
332
  },
333
+ "redacted": false,
334
+ },
335
+ ],
336
+ "entityMetadata": {
337
+ "aliases": [
338
+ "alias1",
339
+ "alias2",
293
340
  ],
294
- "entityMetadata": {
295
- "arePatchesEnabled": false,
341
+ "arePatchesEnabled": false,
342
+ },
343
+ "objectType": {
344
+ "allImplementsInterfaces": {},
345
+ "apiName": "com.palantir.foo",
346
+ "displayMetadata": {
347
+ "description": undefined,
348
+ "displayName": "Foo",
349
+ "groupDisplayName": undefined,
350
+ "icon": {
351
+ "blueprint": {
352
+ "color": "#2D72D2",
353
+ "locator": "cube",
354
+ },
355
+ "type": "blueprint",
356
+ },
357
+ "pluralDisplayName": "Foo",
358
+ "visibility": "NORMAL",
296
359
  },
297
- "objectType": {
298
- "allImplementsInterfaces": {},
299
- "apiName": "com.palantir.foo",
300
- "displayMetadata": {
301
- "description": undefined,
302
- "displayName": "Foo",
303
- "groupDisplayName": undefined,
304
- "icon": {
305
- "blueprint": {
306
- "color": "#2D72D2",
307
- "locator": "cube",
360
+ "implementsInterfaces2": [
361
+ {
362
+ "interfaceTypeApiName": "com.palantir.interface",
363
+ "linksV2": {},
364
+ "properties": {
365
+ "com.palantir.foo": {
366
+ "propertyTypeRid": "bar",
308
367
  },
309
- "type": "blueprint",
310
368
  },
311
- "pluralDisplayName": "Foo",
312
- "visibility": "NORMAL",
369
+ "propertiesV2": {},
313
370
  },
314
- "implementsInterfaces2": [
315
- {
316
- "interfaceTypeApiName": "com.palantir.interface",
317
- "linksV2": {},
318
- "properties": {
319
- "com.palantir.foo": {
320
- "propertyTypeRid": "bar",
371
+ ],
372
+ "primaryKeys": [
373
+ "bar",
374
+ ],
375
+ "propertyTypes": {
376
+ "arrayProp": {
377
+ "apiName": "arrayProp",
378
+ "baseFormatter": undefined,
379
+ "dataConstraints": undefined,
380
+ "displayMetadata": {
381
+ "description": undefined,
382
+ "displayName": "Array Property Test",
383
+ "visibility": "NORMAL",
384
+ },
385
+ "indexedForSearch": true,
386
+ "inlineAction": undefined,
387
+ "ruleSetBinding": undefined,
388
+ "sharedPropertyTypeApiName": undefined,
389
+ "sharedPropertyTypeRid": undefined,
390
+ "status": {
391
+ "active": {},
392
+ "type": "active",
393
+ },
394
+ "type": {
395
+ "array": {
396
+ "reducers": [],
397
+ "subtype": {
398
+ "string": {
399
+ "analyzerOverride": undefined,
400
+ "enableAsciiFolding": undefined,
401
+ "isLongText": false,
402
+ "supportsEfficientLeadingWildcard": false,
403
+ "supportsExactMatching": true,
404
+ },
405
+ "type": "string",
321
406
  },
322
407
  },
323
- "propertiesV2": {},
408
+ "type": "array",
324
409
  },
325
- ],
326
- "primaryKeys": [
327
- "bar",
328
- ],
329
- "propertyTypes": {
330
- "arrayProp": {
331
- "apiName": "arrayProp",
332
- "baseFormatter": undefined,
333
- "dataConstraints": undefined,
334
- "displayMetadata": {
335
- "description": undefined,
336
- "displayName": "Array Property Test",
337
- "visibility": "NORMAL",
410
+ "typeClasses": [
411
+ {
412
+ "kind": "render_hint",
413
+ "name": "SELECTABLE",
338
414
  },
339
- "indexedForSearch": true,
340
- "inlineAction": undefined,
341
- "ruleSetBinding": undefined,
342
- "sharedPropertyTypeApiName": undefined,
343
- "sharedPropertyTypeRid": undefined,
344
- "status": {
345
- "active": {},
346
- "type": "active",
415
+ {
416
+ "kind": "render_hint",
417
+ "name": "SORTABLE",
347
418
  },
348
- "type": {
349
- "array": {
350
- "subtype": {
351
- "string": {
352
- "analyzerOverride": undefined,
353
- "enableAsciiFolding": undefined,
354
- "isLongText": false,
355
- "supportsEfficientLeadingWildcard": false,
356
- "supportsExactMatching": true,
419
+ ],
420
+ "valueType": undefined,
421
+ },
422
+ "bar": {
423
+ "apiName": "bar",
424
+ "baseFormatter": undefined,
425
+ "dataConstraints": undefined,
426
+ "displayMetadata": {
427
+ "description": undefined,
428
+ "displayName": "Bar",
429
+ "visibility": "NORMAL",
430
+ },
431
+ "indexedForSearch": true,
432
+ "inlineAction": undefined,
433
+ "ruleSetBinding": undefined,
434
+ "sharedPropertyTypeApiName": undefined,
435
+ "sharedPropertyTypeRid": undefined,
436
+ "status": {
437
+ "active": {},
438
+ "type": "active",
439
+ },
440
+ "type": {
441
+ "string": {
442
+ "analyzerOverride": undefined,
443
+ "enableAsciiFolding": undefined,
444
+ "isLongText": false,
445
+ "supportsEfficientLeadingWildcard": false,
446
+ "supportsExactMatching": true,
447
+ },
448
+ "type": "string",
449
+ },
450
+ "typeClasses": [
451
+ {
452
+ "kind": "render_hint",
453
+ "name": "SELECTABLE",
454
+ },
455
+ {
456
+ "kind": "render_hint",
457
+ "name": "SORTABLE",
458
+ },
459
+ ],
460
+ "valueType": undefined,
461
+ },
462
+ "geopoint": {
463
+ "apiName": "geopoint",
464
+ "baseFormatter": undefined,
465
+ "dataConstraints": undefined,
466
+ "displayMetadata": {
467
+ "description": undefined,
468
+ "displayName": "geopoint",
469
+ "visibility": "NORMAL",
470
+ },
471
+ "indexedForSearch": true,
472
+ "inlineAction": undefined,
473
+ "ruleSetBinding": undefined,
474
+ "sharedPropertyTypeApiName": undefined,
475
+ "sharedPropertyTypeRid": undefined,
476
+ "status": {
477
+ "active": {},
478
+ "type": "active",
479
+ },
480
+ "type": {
481
+ "struct": {
482
+ "structFields": [
483
+ {
484
+ "aliases": [],
485
+ "apiName": "lat",
486
+ "displayMetadata": {
487
+ "description": undefined,
488
+ "displayName": "lat",
357
489
  },
358
- "type": "string",
490
+ "fieldType": {
491
+ "double": {},
492
+ "type": "double",
493
+ },
494
+ "typeClasses": [],
359
495
  },
360
- },
361
- "type": "array",
496
+ {
497
+ "aliases": [],
498
+ "apiName": "lng",
499
+ "displayMetadata": {
500
+ "description": undefined,
501
+ "displayName": "lng",
502
+ },
503
+ "fieldType": {
504
+ "double": {},
505
+ "type": "double",
506
+ },
507
+ "typeClasses": [],
508
+ },
509
+ ],
362
510
  },
363
- "typeClasses": [
364
- {
365
- "kind": "render_hint",
366
- "name": "SELECTABLE",
367
- },
368
- {
369
- "kind": "render_hint",
370
- "name": "SORTABLE",
371
- },
372
- ],
373
- "valueType": undefined,
511
+ "type": "struct",
374
512
  },
375
- "bar": {
376
- "apiName": "bar",
377
- "baseFormatter": undefined,
378
- "dataConstraints": undefined,
379
- "displayMetadata": {
380
- "description": undefined,
381
- "displayName": "Bar",
382
- "visibility": "NORMAL",
513
+ "typeClasses": [],
514
+ "valueType": undefined,
515
+ },
516
+ },
517
+ "redacted": false,
518
+ "status": {
519
+ "active": {},
520
+ "type": "active",
521
+ },
522
+ "titlePropertyTypeRid": "bar",
523
+ },
524
+ },
525
+ },
526
+ "sharedPropertyTypes": {
527
+ "com.palantir.foo": {
528
+ "sharedPropertyType": {
529
+ "aliases": [],
530
+ "apiName": "com.palantir.foo",
531
+ "baseFormatter": undefined,
532
+ "dataConstraints": undefined,
533
+ "displayMetadata": {
534
+ "description": undefined,
535
+ "displayName": "foo",
536
+ "visibility": "NORMAL",
537
+ },
538
+ "gothamMapping": undefined,
539
+ "indexedForSearch": true,
540
+ "type": {
541
+ "string": {
542
+ "analyzerOverride": undefined,
543
+ "enableAsciiFolding": undefined,
544
+ "isLongText": false,
545
+ "supportsEfficientLeadingWildcard": false,
546
+ "supportsExactMatching": true,
547
+ },
548
+ "type": "string",
549
+ },
550
+ "typeClasses": [
551
+ {
552
+ "kind": "render_hint",
553
+ "name": "SELECTABLE",
554
+ },
555
+ {
556
+ "kind": "render_hint",
557
+ "name": "SORTABLE",
558
+ },
559
+ ],
560
+ "valueType": undefined,
561
+ },
562
+ },
563
+ },
564
+ }
565
+ `);
566
+ });
567
+ it("Explicit datasource definitions are properly defined", () => {
568
+ defineObject({
569
+ titlePropertyApiName: "bar",
570
+ displayName: "datasetBackedObject",
571
+ pluralDisplayName: "datasetBackedObject",
572
+ apiName: "foo",
573
+ primaryKeyPropertyApiName: "bar",
574
+ properties: {
575
+ "bar": {
576
+ type: "string"
577
+ }
578
+ },
579
+ datasources: [{
580
+ type: "dataset"
581
+ }]
582
+ });
583
+ defineObject({
584
+ titlePropertyApiName: "fizz",
585
+ displayName: "streamBackedObjectNoRetention",
586
+ pluralDisplayName: "streamBackedObjectNoRetention",
587
+ apiName: "fizz",
588
+ primaryKeyPropertyApiName: "fizz",
589
+ properties: {
590
+ "fizz": {
591
+ type: "string"
592
+ },
593
+ "bar": {
594
+ type: "string"
595
+ }
596
+ },
597
+ datasources: [{
598
+ type: "stream"
599
+ }]
600
+ });
601
+ defineObject({
602
+ titlePropertyApiName: "buzz",
603
+ displayName: "streamBackedObjectWithRetention",
604
+ pluralDisplayName: "streamBackedObjectWithRetention",
605
+ apiName: "buzz",
606
+ primaryKeyPropertyApiName: "buzz",
607
+ properties: {
608
+ "buzz": {
609
+ type: "string"
610
+ }
611
+ },
612
+ datasources: [{
613
+ type: "stream",
614
+ retentionPeriod: "PT1H"
615
+ }]
616
+ });
617
+ expect(dumpOntologyFullMetadata().ontology).toMatchInlineSnapshot(`
618
+ {
619
+ "actionTypes": {},
620
+ "blockPermissionInformation": {
621
+ "actionTypes": {},
622
+ "linkTypes": {},
623
+ "objectTypes": {},
624
+ },
625
+ "interfaceTypes": {},
626
+ "linkTypes": {},
627
+ "objectTypes": {
628
+ "com.palantir.buzz": {
629
+ "datasources": [
630
+ {
631
+ "datasource": {
632
+ "streamV2": {
633
+ "propertyMapping": {
634
+ "buzz": "buzz",
635
+ },
636
+ "propertySecurityGroups": undefined,
637
+ "retentionPolicy": {
638
+ "time": {
639
+ "window": "PT1H",
640
+ },
641
+ "type": "time",
642
+ },
643
+ "streamLocator": "com.palantir.buzz",
644
+ },
645
+ "type": "streamV2",
646
+ },
647
+ "datasourceName": "com.palantir.buzz",
648
+ "editsConfiguration": {
649
+ "onlyAllowPrivilegedEdits": false,
650
+ },
651
+ "redacted": false,
652
+ },
653
+ ],
654
+ "entityMetadata": {
655
+ "aliases": [],
656
+ "arePatchesEnabled": false,
657
+ },
658
+ "objectType": {
659
+ "allImplementsInterfaces": {},
660
+ "apiName": "com.palantir.buzz",
661
+ "displayMetadata": {
662
+ "description": undefined,
663
+ "displayName": "streamBackedObjectWithRetention",
664
+ "groupDisplayName": undefined,
665
+ "icon": {
666
+ "blueprint": {
667
+ "color": "#2D72D2",
668
+ "locator": "cube",
669
+ },
670
+ "type": "blueprint",
671
+ },
672
+ "pluralDisplayName": "streamBackedObjectWithRetention",
673
+ "visibility": "NORMAL",
674
+ },
675
+ "implementsInterfaces2": [],
676
+ "primaryKeys": [
677
+ "buzz",
678
+ ],
679
+ "propertyTypes": {
680
+ "buzz": {
681
+ "apiName": "buzz",
682
+ "baseFormatter": undefined,
683
+ "dataConstraints": undefined,
684
+ "displayMetadata": {
685
+ "description": undefined,
686
+ "displayName": "Buzz",
687
+ "visibility": "NORMAL",
688
+ },
689
+ "indexedForSearch": true,
690
+ "inlineAction": undefined,
691
+ "ruleSetBinding": undefined,
692
+ "sharedPropertyTypeApiName": undefined,
693
+ "sharedPropertyTypeRid": undefined,
694
+ "status": {
695
+ "active": {},
696
+ "type": "active",
697
+ },
698
+ "type": {
699
+ "string": {
700
+ "analyzerOverride": undefined,
701
+ "enableAsciiFolding": undefined,
702
+ "isLongText": false,
703
+ "supportsEfficientLeadingWildcard": false,
704
+ "supportsExactMatching": true,
383
705
  },
384
- "indexedForSearch": true,
385
- "inlineAction": undefined,
386
- "ruleSetBinding": undefined,
387
- "sharedPropertyTypeApiName": undefined,
388
- "sharedPropertyTypeRid": undefined,
389
- "status": {
390
- "active": {},
391
- "type": "active",
706
+ "type": "string",
707
+ },
708
+ "typeClasses": [
709
+ {
710
+ "kind": "render_hint",
711
+ "name": "SELECTABLE",
392
712
  },
393
- "type": {
394
- "string": {
395
- "analyzerOverride": undefined,
396
- "enableAsciiFolding": undefined,
397
- "isLongText": false,
398
- "supportsEfficientLeadingWildcard": false,
399
- "supportsExactMatching": true,
400
- },
401
- "type": "string",
713
+ {
714
+ "kind": "render_hint",
715
+ "name": "SORTABLE",
402
716
  },
403
- "typeClasses": [
404
- {
405
- "kind": "render_hint",
406
- "name": "SELECTABLE",
407
- },
408
- {
409
- "kind": "render_hint",
410
- "name": "SORTABLE",
411
- },
412
- ],
413
- "valueType": undefined,
717
+ ],
718
+ "valueType": undefined,
719
+ },
720
+ },
721
+ "redacted": false,
722
+ "status": {
723
+ "active": {},
724
+ "type": "active",
725
+ },
726
+ "titlePropertyTypeRid": "buzz",
727
+ },
728
+ },
729
+ "com.palantir.fizz": {
730
+ "datasources": [
731
+ {
732
+ "datasource": {
733
+ "streamV2": {
734
+ "propertyMapping": {
735
+ "bar": "bar",
736
+ "fizz": "fizz",
737
+ },
738
+ "propertySecurityGroups": undefined,
739
+ "retentionPolicy": {
740
+ "none": {},
741
+ "type": "none",
742
+ },
743
+ "streamLocator": "com.palantir.fizz",
744
+ },
745
+ "type": "streamV2",
746
+ },
747
+ "datasourceName": "com.palantir.fizz",
748
+ "editsConfiguration": {
749
+ "onlyAllowPrivilegedEdits": false,
750
+ },
751
+ "redacted": false,
752
+ },
753
+ ],
754
+ "entityMetadata": {
755
+ "aliases": [],
756
+ "arePatchesEnabled": false,
757
+ },
758
+ "objectType": {
759
+ "allImplementsInterfaces": {},
760
+ "apiName": "com.palantir.fizz",
761
+ "displayMetadata": {
762
+ "description": undefined,
763
+ "displayName": "streamBackedObjectNoRetention",
764
+ "groupDisplayName": undefined,
765
+ "icon": {
766
+ "blueprint": {
767
+ "color": "#2D72D2",
768
+ "locator": "cube",
769
+ },
770
+ "type": "blueprint",
771
+ },
772
+ "pluralDisplayName": "streamBackedObjectNoRetention",
773
+ "visibility": "NORMAL",
774
+ },
775
+ "implementsInterfaces2": [],
776
+ "primaryKeys": [
777
+ "fizz",
778
+ ],
779
+ "propertyTypes": {
780
+ "bar": {
781
+ "apiName": "bar",
782
+ "baseFormatter": undefined,
783
+ "dataConstraints": undefined,
784
+ "displayMetadata": {
785
+ "description": undefined,
786
+ "displayName": "Bar",
787
+ "visibility": "NORMAL",
414
788
  },
415
- "geopoint": {
416
- "apiName": "geopoint",
417
- "baseFormatter": undefined,
418
- "dataConstraints": undefined,
419
- "displayMetadata": {
420
- "description": undefined,
421
- "displayName": "geopoint",
422
- "visibility": "NORMAL",
789
+ "indexedForSearch": true,
790
+ "inlineAction": undefined,
791
+ "ruleSetBinding": undefined,
792
+ "sharedPropertyTypeApiName": undefined,
793
+ "sharedPropertyTypeRid": undefined,
794
+ "status": {
795
+ "active": {},
796
+ "type": "active",
797
+ },
798
+ "type": {
799
+ "string": {
800
+ "analyzerOverride": undefined,
801
+ "enableAsciiFolding": undefined,
802
+ "isLongText": false,
803
+ "supportsEfficientLeadingWildcard": false,
804
+ "supportsExactMatching": true,
423
805
  },
424
- "indexedForSearch": true,
425
- "inlineAction": undefined,
426
- "ruleSetBinding": undefined,
427
- "sharedPropertyTypeApiName": undefined,
428
- "sharedPropertyTypeRid": undefined,
429
- "status": {
430
- "active": {},
431
- "type": "active",
806
+ "type": "string",
807
+ },
808
+ "typeClasses": [
809
+ {
810
+ "kind": "render_hint",
811
+ "name": "SELECTABLE",
432
812
  },
433
- "type": {
434
- "struct": {
435
- "structFields": [
436
- {
437
- "aliases": [],
438
- "apiName": "lat",
439
- "displayMetadata": {
440
- "description": undefined,
441
- "displayName": "lat",
442
- },
443
- "fieldType": {
444
- "double": {},
445
- "type": "double",
446
- },
447
- "typeClasses": [],
448
- },
449
- {
450
- "aliases": [],
451
- "apiName": "lng",
452
- "displayMetadata": {
453
- "description": undefined,
454
- "displayName": "lng",
455
- },
456
- "fieldType": {
457
- "double": {},
458
- "type": "double",
459
- },
460
- "typeClasses": [],
461
- },
462
- ],
463
- },
464
- "type": "struct",
813
+ {
814
+ "kind": "render_hint",
815
+ "name": "SORTABLE",
816
+ },
817
+ ],
818
+ "valueType": undefined,
819
+ },
820
+ "fizz": {
821
+ "apiName": "fizz",
822
+ "baseFormatter": undefined,
823
+ "dataConstraints": undefined,
824
+ "displayMetadata": {
825
+ "description": undefined,
826
+ "displayName": "Fizz",
827
+ "visibility": "NORMAL",
828
+ },
829
+ "indexedForSearch": true,
830
+ "inlineAction": undefined,
831
+ "ruleSetBinding": undefined,
832
+ "sharedPropertyTypeApiName": undefined,
833
+ "sharedPropertyTypeRid": undefined,
834
+ "status": {
835
+ "active": {},
836
+ "type": "active",
837
+ },
838
+ "type": {
839
+ "string": {
840
+ "analyzerOverride": undefined,
841
+ "enableAsciiFolding": undefined,
842
+ "isLongText": false,
843
+ "supportsEfficientLeadingWildcard": false,
844
+ "supportsExactMatching": true,
845
+ },
846
+ "type": "string",
847
+ },
848
+ "typeClasses": [
849
+ {
850
+ "kind": "render_hint",
851
+ "name": "SELECTABLE",
852
+ },
853
+ {
854
+ "kind": "render_hint",
855
+ "name": "SORTABLE",
856
+ },
857
+ ],
858
+ "valueType": undefined,
859
+ },
860
+ },
861
+ "redacted": false,
862
+ "status": {
863
+ "active": {},
864
+ "type": "active",
865
+ },
866
+ "titlePropertyTypeRid": "fizz",
867
+ },
868
+ },
869
+ "com.palantir.foo": {
870
+ "datasources": [
871
+ {
872
+ "datasource": {
873
+ "datasetV2": {
874
+ "datasetRid": "com.palantir.foo",
875
+ "propertyMapping": {
876
+ "bar": {
877
+ "column": "bar",
878
+ "type": "column",
879
+ },
465
880
  },
466
- "typeClasses": [],
467
- "valueType": undefined,
468
881
  },
882
+ "type": "datasetV2",
469
883
  },
470
- "redacted": false,
471
- "status": {
472
- "active": {},
473
- "type": "active",
884
+ "datasourceName": "com.palantir.foo",
885
+ "editsConfiguration": {
886
+ "onlyAllowPrivilegedEdits": false,
474
887
  },
475
- "titlePropertyTypeRid": "bar",
888
+ "redacted": false,
476
889
  },
890
+ ],
891
+ "entityMetadata": {
892
+ "aliases": [],
893
+ "arePatchesEnabled": false,
477
894
  },
478
- },
479
- "sharedPropertyTypes": {
480
- "com.palantir.foo": {
481
- "sharedPropertyType": {
482
- "aliases": [],
483
- "apiName": "com.palantir.foo",
484
- "baseFormatter": undefined,
485
- "dataConstraints": undefined,
486
- "displayMetadata": {
487
- "description": undefined,
488
- "displayName": "foo",
489
- "visibility": "NORMAL",
895
+ "objectType": {
896
+ "allImplementsInterfaces": {},
897
+ "apiName": "com.palantir.foo",
898
+ "displayMetadata": {
899
+ "description": undefined,
900
+ "displayName": "datasetBackedObject",
901
+ "groupDisplayName": undefined,
902
+ "icon": {
903
+ "blueprint": {
904
+ "color": "#2D72D2",
905
+ "locator": "cube",
906
+ },
907
+ "type": "blueprint",
490
908
  },
491
- "gothamMapping": undefined,
492
- "indexedForSearch": true,
493
- "type": {
494
- "string": {
495
- "analyzerOverride": undefined,
496
- "enableAsciiFolding": undefined,
497
- "isLongText": false,
498
- "supportsEfficientLeadingWildcard": false,
499
- "supportsExactMatching": true,
909
+ "pluralDisplayName": "datasetBackedObject",
910
+ "visibility": "NORMAL",
911
+ },
912
+ "implementsInterfaces2": [],
913
+ "primaryKeys": [
914
+ "bar",
915
+ ],
916
+ "propertyTypes": {
917
+ "bar": {
918
+ "apiName": "bar",
919
+ "baseFormatter": undefined,
920
+ "dataConstraints": undefined,
921
+ "displayMetadata": {
922
+ "description": undefined,
923
+ "displayName": "Bar",
924
+ "visibility": "NORMAL",
500
925
  },
501
- "type": "string",
502
- },
503
- "typeClasses": [
504
- {
505
- "kind": "render_hint",
506
- "name": "SELECTABLE",
926
+ "indexedForSearch": true,
927
+ "inlineAction": undefined,
928
+ "ruleSetBinding": undefined,
929
+ "sharedPropertyTypeApiName": undefined,
930
+ "sharedPropertyTypeRid": undefined,
931
+ "status": {
932
+ "active": {},
933
+ "type": "active",
507
934
  },
508
- {
509
- "kind": "render_hint",
510
- "name": "SORTABLE",
935
+ "type": {
936
+ "string": {
937
+ "analyzerOverride": undefined,
938
+ "enableAsciiFolding": undefined,
939
+ "isLongText": false,
940
+ "supportsEfficientLeadingWildcard": false,
941
+ "supportsExactMatching": true,
942
+ },
943
+ "type": "string",
511
944
  },
512
- ],
513
- "valueType": undefined,
945
+ "typeClasses": [
946
+ {
947
+ "kind": "render_hint",
948
+ "name": "SELECTABLE",
949
+ },
950
+ {
951
+ "kind": "render_hint",
952
+ "name": "SORTABLE",
953
+ },
954
+ ],
955
+ "valueType": undefined,
956
+ },
957
+ },
958
+ "redacted": false,
959
+ "status": {
960
+ "active": {},
961
+ "type": "active",
514
962
  },
963
+ "titlePropertyTypeRid": "bar",
515
964
  },
516
965
  },
517
- }
518
- `);
966
+ },
967
+ "sharedPropertyTypes": {},
968
+ }
969
+ `);
519
970
  });
520
- it("Explicit datasource definitions are properly defined", () => {
971
+ it("Restricted view datasources are properly defined", () => {
521
972
  defineObject({
522
973
  titlePropertyApiName: "bar",
523
- displayName: "datasetBackedObject",
524
- pluralDisplayName: "datasetBackedObject",
974
+ displayName: "Foo",
975
+ pluralDisplayName: "Foo",
525
976
  apiName: "foo",
526
977
  primaryKeyPropertyApiName: "bar",
527
978
  properties: {
@@ -530,45 +981,27 @@ describe("Object Types", () => {
530
981
  }
531
982
  },
532
983
  datasources: [{
533
- type: "dataset"
984
+ type: "restrictedView"
534
985
  }]
535
986
  });
536
- defineObject({
537
- titlePropertyApiName: "fizz",
538
- displayName: "streamBackedObjectNoRetention",
539
- pluralDisplayName: "streamBackedObjectNoRetention",
540
- apiName: "fizz",
541
- primaryKeyPropertyApiName: "fizz",
542
- properties: {
543
- "fizz": {
544
- type: "string"
987
+ expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
988
+ {
989
+ "importedOntology": {
990
+ "actionTypes": {},
991
+ "blockPermissionInformation": {
992
+ "actionTypes": {},
993
+ "linkTypes": {},
994
+ "objectTypes": {},
995
+ },
996
+ "interfaceTypes": {},
997
+ "linkTypes": {},
998
+ "objectTypes": {},
999
+ "sharedPropertyTypes": {},
545
1000
  },
546
- "bar": {
547
- type: "string"
548
- }
549
- },
550
- datasources: [{
551
- type: "stream"
552
- }]
553
- });
554
- defineObject({
555
- titlePropertyApiName: "buzz",
556
- displayName: "streamBackedObjectWithRetention",
557
- pluralDisplayName: "streamBackedObjectWithRetention",
558
- apiName: "buzz",
559
- primaryKeyPropertyApiName: "buzz",
560
- properties: {
561
- "buzz": {
562
- type: "string"
563
- }
564
- },
565
- datasources: [{
566
- type: "stream",
567
- retentionPeriod: "PT1H"
568
- }]
569
- });
570
- expect(dumpOntologyFullMetadata().ontology).toMatchInlineSnapshot(`
571
- {
1001
+ "importedValueTypes": {
1002
+ "valueTypes": [],
1003
+ },
1004
+ "ontology": {
572
1005
  "actionTypes": {},
573
1006
  "blockPermissionInformation": {
574
1007
  "actionTypes": {},
@@ -578,125 +1011,22 @@ describe("Object Types", () => {
578
1011
  "interfaceTypes": {},
579
1012
  "linkTypes": {},
580
1013
  "objectTypes": {
581
- "com.palantir.buzz": {
1014
+ "com.palantir.foo": {
582
1015
  "datasources": [
583
1016
  {
584
1017
  "datasource": {
585
- "streamV2": {
1018
+ "restrictedViewV2": {
586
1019
  "propertyMapping": {
587
- "buzz": "buzz",
588
- },
589
- "propertySecurityGroups": undefined,
590
- "retentionPolicy": {
591
- "time": {
592
- "window": "PT1H",
1020
+ "bar": {
1021
+ "column": "bar",
1022
+ "type": "column",
593
1023
  },
594
- "type": "time",
595
- },
596
- "streamLocator": "com.palantir.buzz",
597
- },
598
- "type": "streamV2",
599
- },
600
- "datasourceName": "com.palantir.buzz",
601
- "editsConfiguration": {
602
- "onlyAllowPrivilegedEdits": false,
603
- },
604
- "redacted": false,
605
- },
606
- ],
607
- "entityMetadata": {
608
- "arePatchesEnabled": false,
609
- },
610
- "objectType": {
611
- "allImplementsInterfaces": {},
612
- "apiName": "com.palantir.buzz",
613
- "displayMetadata": {
614
- "description": undefined,
615
- "displayName": "streamBackedObjectWithRetention",
616
- "groupDisplayName": undefined,
617
- "icon": {
618
- "blueprint": {
619
- "color": "#2D72D2",
620
- "locator": "cube",
621
- },
622
- "type": "blueprint",
623
- },
624
- "pluralDisplayName": "streamBackedObjectWithRetention",
625
- "visibility": "NORMAL",
626
- },
627
- "implementsInterfaces2": [],
628
- "primaryKeys": [
629
- "buzz",
630
- ],
631
- "propertyTypes": {
632
- "buzz": {
633
- "apiName": "buzz",
634
- "baseFormatter": undefined,
635
- "dataConstraints": undefined,
636
- "displayMetadata": {
637
- "description": undefined,
638
- "displayName": "Buzz",
639
- "visibility": "NORMAL",
640
- },
641
- "indexedForSearch": true,
642
- "inlineAction": undefined,
643
- "ruleSetBinding": undefined,
644
- "sharedPropertyTypeApiName": undefined,
645
- "sharedPropertyTypeRid": undefined,
646
- "status": {
647
- "active": {},
648
- "type": "active",
649
- },
650
- "type": {
651
- "string": {
652
- "analyzerOverride": undefined,
653
- "enableAsciiFolding": undefined,
654
- "isLongText": false,
655
- "supportsEfficientLeadingWildcard": false,
656
- "supportsExactMatching": true,
657
- },
658
- "type": "string",
659
- },
660
- "typeClasses": [
661
- {
662
- "kind": "render_hint",
663
- "name": "SELECTABLE",
664
- },
665
- {
666
- "kind": "render_hint",
667
- "name": "SORTABLE",
668
- },
669
- ],
670
- "valueType": undefined,
671
- },
672
- },
673
- "redacted": false,
674
- "status": {
675
- "active": {},
676
- "type": "active",
677
- },
678
- "titlePropertyTypeRid": "buzz",
679
- },
680
- },
681
- "com.palantir.fizz": {
682
- "datasources": [
683
- {
684
- "datasource": {
685
- "streamV2": {
686
- "propertyMapping": {
687
- "bar": "bar",
688
- "fizz": "fizz",
689
- },
690
- "propertySecurityGroups": undefined,
691
- "retentionPolicy": {
692
- "none": {},
693
- "type": "none",
694
1024
  },
695
- "streamLocator": "com.palantir.fizz",
1025
+ "restrictedViewRid": "com.palantir.foo",
696
1026
  },
697
- "type": "streamV2",
1027
+ "type": "restrictedViewV2",
698
1028
  },
699
- "datasourceName": "com.palantir.fizz",
1029
+ "datasourceName": "com.palantir.foo",
700
1030
  "editsConfiguration": {
701
1031
  "onlyAllowPrivilegedEdits": false,
702
1032
  },
@@ -704,14 +1034,15 @@ describe("Object Types", () => {
704
1034
  },
705
1035
  ],
706
1036
  "entityMetadata": {
1037
+ "aliases": [],
707
1038
  "arePatchesEnabled": false,
708
1039
  },
709
1040
  "objectType": {
710
1041
  "allImplementsInterfaces": {},
711
- "apiName": "com.palantir.fizz",
1042
+ "apiName": "com.palantir.foo",
712
1043
  "displayMetadata": {
713
1044
  "description": undefined,
714
- "displayName": "streamBackedObjectNoRetention",
1045
+ "displayName": "Foo",
715
1046
  "groupDisplayName": undefined,
716
1047
  "icon": {
717
1048
  "blueprint": {
@@ -720,12 +1051,12 @@ describe("Object Types", () => {
720
1051
  },
721
1052
  "type": "blueprint",
722
1053
  },
723
- "pluralDisplayName": "streamBackedObjectNoRetention",
1054
+ "pluralDisplayName": "Foo",
724
1055
  "visibility": "NORMAL",
725
1056
  },
726
1057
  "implementsInterfaces2": [],
727
1058
  "primaryKeys": [
728
- "fizz",
1059
+ "bar",
729
1060
  ],
730
1061
  "propertyTypes": {
731
1062
  "bar": {
@@ -768,55 +1099,69 @@ describe("Object Types", () => {
768
1099
  ],
769
1100
  "valueType": undefined,
770
1101
  },
771
- "fizz": {
772
- "apiName": "fizz",
773
- "baseFormatter": undefined,
774
- "dataConstraints": undefined,
775
- "displayMetadata": {
776
- "description": undefined,
777
- "displayName": "Fizz",
778
- "visibility": "NORMAL",
779
- },
780
- "indexedForSearch": true,
781
- "inlineAction": undefined,
782
- "ruleSetBinding": undefined,
783
- "sharedPropertyTypeApiName": undefined,
784
- "sharedPropertyTypeRid": undefined,
785
- "status": {
786
- "active": {},
787
- "type": "active",
788
- },
789
- "type": {
790
- "string": {
791
- "analyzerOverride": undefined,
792
- "enableAsciiFolding": undefined,
793
- "isLongText": false,
794
- "supportsEfficientLeadingWildcard": false,
795
- "supportsExactMatching": true,
796
- },
797
- "type": "string",
798
- },
799
- "typeClasses": [
800
- {
801
- "kind": "render_hint",
802
- "name": "SELECTABLE",
803
- },
804
- {
805
- "kind": "render_hint",
806
- "name": "SORTABLE",
807
- },
808
- ],
809
- "valueType": undefined,
810
- },
811
1102
  },
812
1103
  "redacted": false,
813
1104
  "status": {
814
1105
  "active": {},
815
1106
  "type": "active",
816
1107
  },
817
- "titlePropertyTypeRid": "fizz",
1108
+ "titlePropertyTypeRid": "bar",
818
1109
  },
819
1110
  },
1111
+ },
1112
+ "sharedPropertyTypes": {},
1113
+ },
1114
+ "randomnessKey": undefined,
1115
+ "valueTypes": {
1116
+ "valueTypes": [],
1117
+ },
1118
+ }
1119
+ `);
1120
+ });
1121
+ it("Edit only properties are properly defined", () => {
1122
+ defineObject({
1123
+ titlePropertyApiName: "bar",
1124
+ displayName: "Foo",
1125
+ pluralDisplayName: "Foo",
1126
+ apiName: "foo",
1127
+ primaryKeyPropertyApiName: "fizz",
1128
+ properties: {
1129
+ "bar": {
1130
+ type: "string",
1131
+ editOnly: true
1132
+ },
1133
+ "fizz": {
1134
+ type: "string"
1135
+ }
1136
+ }
1137
+ });
1138
+ expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
1139
+ {
1140
+ "importedOntology": {
1141
+ "actionTypes": {},
1142
+ "blockPermissionInformation": {
1143
+ "actionTypes": {},
1144
+ "linkTypes": {},
1145
+ "objectTypes": {},
1146
+ },
1147
+ "interfaceTypes": {},
1148
+ "linkTypes": {},
1149
+ "objectTypes": {},
1150
+ "sharedPropertyTypes": {},
1151
+ },
1152
+ "importedValueTypes": {
1153
+ "valueTypes": [],
1154
+ },
1155
+ "ontology": {
1156
+ "actionTypes": {},
1157
+ "blockPermissionInformation": {
1158
+ "actionTypes": {},
1159
+ "linkTypes": {},
1160
+ "objectTypes": {},
1161
+ },
1162
+ "interfaceTypes": {},
1163
+ "linkTypes": {},
1164
+ "objectTypes": {
820
1165
  "com.palantir.foo": {
821
1166
  "datasources": [
822
1167
  {
@@ -825,7 +1170,11 @@ describe("Object Types", () => {
825
1170
  "datasetRid": "com.palantir.foo",
826
1171
  "propertyMapping": {
827
1172
  "bar": {
828
- "column": "bar",
1173
+ "editOnly": {},
1174
+ "type": "editOnly",
1175
+ },
1176
+ "fizz": {
1177
+ "column": "fizz",
829
1178
  "type": "column",
830
1179
  },
831
1180
  },
@@ -840,6 +1189,7 @@ describe("Object Types", () => {
840
1189
  },
841
1190
  ],
842
1191
  "entityMetadata": {
1192
+ "aliases": [],
843
1193
  "arePatchesEnabled": false,
844
1194
  },
845
1195
  "objectType": {
@@ -847,7 +1197,7 @@ describe("Object Types", () => {
847
1197
  "apiName": "com.palantir.foo",
848
1198
  "displayMetadata": {
849
1199
  "description": undefined,
850
- "displayName": "datasetBackedObject",
1200
+ "displayName": "Foo",
851
1201
  "groupDisplayName": undefined,
852
1202
  "icon": {
853
1203
  "blueprint": {
@@ -856,12 +1206,12 @@ describe("Object Types", () => {
856
1206
  },
857
1207
  "type": "blueprint",
858
1208
  },
859
- "pluralDisplayName": "datasetBackedObject",
1209
+ "pluralDisplayName": "Foo",
860
1210
  "visibility": "NORMAL",
861
1211
  },
862
1212
  "implementsInterfaces2": [],
863
1213
  "primaryKeys": [
864
- "bar",
1214
+ "fizz",
865
1215
  ],
866
1216
  "propertyTypes": {
867
1217
  "bar": {
@@ -904,362 +1254,64 @@ describe("Object Types", () => {
904
1254
  ],
905
1255
  "valueType": undefined,
906
1256
  },
907
- },
908
- "redacted": false,
909
- "status": {
910
- "active": {},
911
- "type": "active",
912
- },
913
- "titlePropertyTypeRid": "bar",
914
- },
915
- },
916
- },
917
- "sharedPropertyTypes": {},
918
- }
919
- `);
920
- });
921
- it("Restricted view datasources are properly defined", () => {
922
- defineObject({
923
- titlePropertyApiName: "bar",
924
- displayName: "Foo",
925
- pluralDisplayName: "Foo",
926
- apiName: "foo",
927
- primaryKeyPropertyApiName: "bar",
928
- properties: {
929
- "bar": {
930
- type: "string"
931
- }
932
- },
933
- datasources: [{
934
- type: "restrictedView"
935
- }]
936
- });
937
- expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
938
- {
939
- "importedOntology": {
940
- "actionTypes": {},
941
- "blockPermissionInformation": {
942
- "actionTypes": {},
943
- "linkTypes": {},
944
- "objectTypes": {},
945
- },
946
- "interfaceTypes": {},
947
- "linkTypes": {},
948
- "objectTypes": {},
949
- "sharedPropertyTypes": {},
950
- },
951
- "importedValueTypes": {
952
- "valueTypes": [],
953
- },
954
- "ontology": {
955
- "actionTypes": {},
956
- "blockPermissionInformation": {
957
- "actionTypes": {},
958
- "linkTypes": {},
959
- "objectTypes": {},
960
- },
961
- "interfaceTypes": {},
962
- "linkTypes": {},
963
- "objectTypes": {
964
- "com.palantir.foo": {
965
- "datasources": [
966
- {
967
- "datasource": {
968
- "restrictedViewV2": {
969
- "propertyMapping": {
970
- "bar": {
971
- "column": "bar",
972
- "type": "column",
973
- },
974
- },
975
- "restrictedViewRid": "com.palantir.foo",
976
- },
977
- "type": "restrictedViewV2",
978
- },
979
- "datasourceName": "com.palantir.foo",
980
- "editsConfiguration": {
981
- "onlyAllowPrivilegedEdits": false,
982
- },
983
- "redacted": false,
984
- },
985
- ],
986
- "entityMetadata": {
987
- "arePatchesEnabled": false,
988
- },
989
- "objectType": {
990
- "allImplementsInterfaces": {},
991
- "apiName": "com.palantir.foo",
992
- "displayMetadata": {
993
- "description": undefined,
994
- "displayName": "Foo",
995
- "groupDisplayName": undefined,
996
- "icon": {
997
- "blueprint": {
998
- "color": "#2D72D2",
999
- "locator": "cube",
1000
- },
1001
- "type": "blueprint",
1002
- },
1003
- "pluralDisplayName": "Foo",
1004
- "visibility": "NORMAL",
1005
- },
1006
- "implementsInterfaces2": [],
1007
- "primaryKeys": [
1008
- "bar",
1009
- ],
1010
- "propertyTypes": {
1011
- "bar": {
1012
- "apiName": "bar",
1013
- "baseFormatter": undefined,
1014
- "dataConstraints": undefined,
1015
- "displayMetadata": {
1016
- "description": undefined,
1017
- "displayName": "Bar",
1018
- "visibility": "NORMAL",
1019
- },
1020
- "indexedForSearch": true,
1021
- "inlineAction": undefined,
1022
- "ruleSetBinding": undefined,
1023
- "sharedPropertyTypeApiName": undefined,
1024
- "sharedPropertyTypeRid": undefined,
1025
- "status": {
1026
- "active": {},
1027
- "type": "active",
1028
- },
1029
- "type": {
1030
- "string": {
1031
- "analyzerOverride": undefined,
1032
- "enableAsciiFolding": undefined,
1033
- "isLongText": false,
1034
- "supportsEfficientLeadingWildcard": false,
1035
- "supportsExactMatching": true,
1036
- },
1037
- "type": "string",
1038
- },
1039
- "typeClasses": [
1040
- {
1041
- "kind": "render_hint",
1042
- "name": "SELECTABLE",
1043
- },
1044
- {
1045
- "kind": "render_hint",
1046
- "name": "SORTABLE",
1047
- },
1048
- ],
1049
- "valueType": undefined,
1050
- },
1051
- },
1052
- "redacted": false,
1053
- "status": {
1054
- "active": {},
1055
- "type": "active",
1056
- },
1057
- "titlePropertyTypeRid": "bar",
1058
- },
1059
- },
1060
- },
1061
- "sharedPropertyTypes": {},
1062
- },
1063
- "randomnessKey": undefined,
1064
- "valueTypes": {
1065
- "valueTypes": [],
1066
- },
1067
- }
1068
- `);
1069
- });
1070
- it("Edit only properties are properly defined", () => {
1071
- defineObject({
1072
- titlePropertyApiName: "bar",
1073
- displayName: "Foo",
1074
- pluralDisplayName: "Foo",
1075
- apiName: "foo",
1076
- primaryKeyPropertyApiName: "fizz",
1077
- properties: {
1078
- "bar": {
1079
- type: "string",
1080
- editOnly: true
1081
- },
1082
- "fizz": {
1083
- type: "string"
1084
- }
1085
- }
1086
- });
1087
- expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
1088
- {
1089
- "importedOntology": {
1090
- "actionTypes": {},
1091
- "blockPermissionInformation": {
1092
- "actionTypes": {},
1093
- "linkTypes": {},
1094
- "objectTypes": {},
1095
- },
1096
- "interfaceTypes": {},
1097
- "linkTypes": {},
1098
- "objectTypes": {},
1099
- "sharedPropertyTypes": {},
1100
- },
1101
- "importedValueTypes": {
1102
- "valueTypes": [],
1103
- },
1104
- "ontology": {
1105
- "actionTypes": {},
1106
- "blockPermissionInformation": {
1107
- "actionTypes": {},
1108
- "linkTypes": {},
1109
- "objectTypes": {},
1110
- },
1111
- "interfaceTypes": {},
1112
- "linkTypes": {},
1113
- "objectTypes": {
1114
- "com.palantir.foo": {
1115
- "datasources": [
1116
- {
1117
- "datasource": {
1118
- "datasetV2": {
1119
- "datasetRid": "com.palantir.foo",
1120
- "propertyMapping": {
1121
- "bar": {
1122
- "editOnly": {},
1123
- "type": "editOnly",
1124
- },
1125
- "fizz": {
1126
- "column": "fizz",
1127
- "type": "column",
1128
- },
1129
- },
1130
- },
1131
- "type": "datasetV2",
1132
- },
1133
- "datasourceName": "com.palantir.foo",
1134
- "editsConfiguration": {
1135
- "onlyAllowPrivilegedEdits": false,
1136
- },
1137
- "redacted": false,
1138
- },
1139
- ],
1140
- "entityMetadata": {
1141
- "arePatchesEnabled": false,
1142
- },
1143
- "objectType": {
1144
- "allImplementsInterfaces": {},
1145
- "apiName": "com.palantir.foo",
1146
- "displayMetadata": {
1147
- "description": undefined,
1148
- "displayName": "Foo",
1149
- "groupDisplayName": undefined,
1150
- "icon": {
1151
- "blueprint": {
1152
- "color": "#2D72D2",
1153
- "locator": "cube",
1154
- },
1155
- "type": "blueprint",
1257
+ "fizz": {
1258
+ "apiName": "fizz",
1259
+ "baseFormatter": undefined,
1260
+ "dataConstraints": undefined,
1261
+ "displayMetadata": {
1262
+ "description": undefined,
1263
+ "displayName": "Fizz",
1264
+ "visibility": "NORMAL",
1156
1265
  },
1157
- "pluralDisplayName": "Foo",
1158
- "visibility": "NORMAL",
1159
- },
1160
- "implementsInterfaces2": [],
1161
- "primaryKeys": [
1162
- "fizz",
1163
- ],
1164
- "propertyTypes": {
1165
- "bar": {
1166
- "apiName": "bar",
1167
- "baseFormatter": undefined,
1168
- "dataConstraints": undefined,
1169
- "displayMetadata": {
1170
- "description": undefined,
1171
- "displayName": "Bar",
1172
- "visibility": "NORMAL",
1173
- },
1174
- "indexedForSearch": true,
1175
- "inlineAction": undefined,
1176
- "ruleSetBinding": undefined,
1177
- "sharedPropertyTypeApiName": undefined,
1178
- "sharedPropertyTypeRid": undefined,
1179
- "status": {
1180
- "active": {},
1181
- "type": "active",
1182
- },
1183
- "type": {
1184
- "string": {
1185
- "analyzerOverride": undefined,
1186
- "enableAsciiFolding": undefined,
1187
- "isLongText": false,
1188
- "supportsEfficientLeadingWildcard": false,
1189
- "supportsExactMatching": true,
1190
- },
1191
- "type": "string",
1192
- },
1193
- "typeClasses": [
1194
- {
1195
- "kind": "render_hint",
1196
- "name": "SELECTABLE",
1197
- },
1198
- {
1199
- "kind": "render_hint",
1200
- "name": "SORTABLE",
1201
- },
1202
- ],
1203
- "valueType": undefined,
1266
+ "indexedForSearch": true,
1267
+ "inlineAction": undefined,
1268
+ "ruleSetBinding": undefined,
1269
+ "sharedPropertyTypeApiName": undefined,
1270
+ "sharedPropertyTypeRid": undefined,
1271
+ "status": {
1272
+ "active": {},
1273
+ "type": "active",
1204
1274
  },
1205
- "fizz": {
1206
- "apiName": "fizz",
1207
- "baseFormatter": undefined,
1208
- "dataConstraints": undefined,
1209
- "displayMetadata": {
1210
- "description": undefined,
1211
- "displayName": "Fizz",
1212
- "visibility": "NORMAL",
1213
- },
1214
- "indexedForSearch": true,
1215
- "inlineAction": undefined,
1216
- "ruleSetBinding": undefined,
1217
- "sharedPropertyTypeApiName": undefined,
1218
- "sharedPropertyTypeRid": undefined,
1219
- "status": {
1220
- "active": {},
1221
- "type": "active",
1222
- },
1223
- "type": {
1224
- "string": {
1225
- "analyzerOverride": undefined,
1226
- "enableAsciiFolding": undefined,
1227
- "isLongText": false,
1228
- "supportsEfficientLeadingWildcard": false,
1229
- "supportsExactMatching": true,
1230
- },
1231
- "type": "string",
1275
+ "type": {
1276
+ "string": {
1277
+ "analyzerOverride": undefined,
1278
+ "enableAsciiFolding": undefined,
1279
+ "isLongText": false,
1280
+ "supportsEfficientLeadingWildcard": false,
1281
+ "supportsExactMatching": true,
1232
1282
  },
1233
- "typeClasses": [
1234
- {
1235
- "kind": "render_hint",
1236
- "name": "SELECTABLE",
1237
- },
1238
- {
1239
- "kind": "render_hint",
1240
- "name": "SORTABLE",
1241
- },
1242
- ],
1243
- "valueType": undefined,
1283
+ "type": "string",
1244
1284
  },
1285
+ "typeClasses": [
1286
+ {
1287
+ "kind": "render_hint",
1288
+ "name": "SELECTABLE",
1289
+ },
1290
+ {
1291
+ "kind": "render_hint",
1292
+ "name": "SORTABLE",
1293
+ },
1294
+ ],
1295
+ "valueType": undefined,
1245
1296
  },
1246
- "redacted": false,
1247
- "status": {
1248
- "active": {},
1249
- "type": "active",
1250
- },
1251
- "titlePropertyTypeRid": "bar",
1252
1297
  },
1298
+ "redacted": false,
1299
+ "status": {
1300
+ "active": {},
1301
+ "type": "active",
1302
+ },
1303
+ "titlePropertyTypeRid": "bar",
1253
1304
  },
1254
1305
  },
1255
- "sharedPropertyTypes": {},
1256
- },
1257
- "randomnessKey": undefined,
1258
- "valueTypes": {
1259
- "valueTypes": [],
1260
1306
  },
1261
- }
1262
- `);
1307
+ "sharedPropertyTypes": {},
1308
+ },
1309
+ "randomnessKey": undefined,
1310
+ "valueTypes": {
1311
+ "valueTypes": [],
1312
+ },
1313
+ }
1314
+ `);
1263
1315
  });
1264
1316
  it("Fails if edit only property is primary key", () => {
1265
1317
  expect(() => {
@@ -1316,182 +1368,184 @@ describe("Object Types", () => {
1316
1368
  }]
1317
1369
  });
1318
1370
  expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
1319
- {
1320
- "importedOntology": {
1371
+ {
1372
+ "importedOntology": {
1373
+ "actionTypes": {},
1374
+ "blockPermissionInformation": {
1321
1375
  "actionTypes": {},
1322
- "blockPermissionInformation": {
1323
- "actionTypes": {},
1324
- "linkTypes": {},
1325
- "objectTypes": {},
1326
- },
1327
- "interfaceTypes": {},
1328
1376
  "linkTypes": {},
1329
1377
  "objectTypes": {},
1330
- "sharedPropertyTypes": {},
1331
1378
  },
1332
- "importedValueTypes": {
1333
- "valueTypes": [],
1334
- },
1335
- "ontology": {
1379
+ "interfaceTypes": {},
1380
+ "linkTypes": {},
1381
+ "objectTypes": {},
1382
+ "sharedPropertyTypes": {},
1383
+ },
1384
+ "importedValueTypes": {
1385
+ "valueTypes": [],
1386
+ },
1387
+ "ontology": {
1388
+ "actionTypes": {},
1389
+ "blockPermissionInformation": {
1336
1390
  "actionTypes": {},
1337
- "blockPermissionInformation": {
1338
- "actionTypes": {},
1339
- "linkTypes": {},
1340
- "objectTypes": {},
1341
- },
1342
- "interfaceTypes": {},
1343
1391
  "linkTypes": {},
1344
- "objectTypes": {
1345
- "com.palantir.fizz": {
1346
- "datasources": [
1347
- {
1348
- "datasource": {
1349
- "mediaSetView": {
1350
- "assumedMarkings": [],
1351
- "mediaSetViewLocator": "com.palantir.fizz.fizz",
1352
- "properties": [
1353
- "fizz",
1354
- ],
1355
- },
1356
- "type": "mediaSetView",
1357
- },
1358
- "datasourceName": "fizz",
1359
- "editsConfiguration": {
1360
- "onlyAllowPrivilegedEdits": false,
1361
- },
1362
- "redacted": false,
1363
- },
1364
- {
1365
- "datasource": {
1366
- "streamV2": {
1367
- "propertyMapping": {
1368
- "bar": "bar",
1369
- "fizz": "fizz",
1370
- },
1371
- "propertySecurityGroups": undefined,
1372
- "retentionPolicy": {
1373
- "none": {},
1374
- "type": "none",
1375
- },
1376
- "streamLocator": "com.palantir.fizz",
1377
- },
1378
- "type": "streamV2",
1379
- },
1380
- "datasourceName": "com.palantir.fizz",
1381
- "editsConfiguration": {
1382
- "onlyAllowPrivilegedEdits": false,
1392
+ "objectTypes": {},
1393
+ },
1394
+ "interfaceTypes": {},
1395
+ "linkTypes": {},
1396
+ "objectTypes": {
1397
+ "com.palantir.fizz": {
1398
+ "datasources": [
1399
+ {
1400
+ "datasource": {
1401
+ "mediaSetView": {
1402
+ "assumedMarkings": [],
1403
+ "mediaSetViewLocator": "com.palantir.fizz.fizz",
1404
+ "properties": [
1405
+ "fizz",
1406
+ ],
1407
+ "uploadProperties": [],
1383
1408
  },
1384
- "redacted": false,
1409
+ "type": "mediaSetView",
1385
1410
  },
1386
- ],
1387
- "entityMetadata": {
1388
- "arePatchesEnabled": false,
1411
+ "datasourceName": "fizz",
1412
+ "editsConfiguration": {
1413
+ "onlyAllowPrivilegedEdits": false,
1414
+ },
1415
+ "redacted": false,
1389
1416
  },
1390
- "objectType": {
1391
- "allImplementsInterfaces": {},
1392
- "apiName": "com.palantir.fizz",
1393
- "displayMetadata": {
1394
- "description": undefined,
1395
- "displayName": "exampleObject",
1396
- "groupDisplayName": undefined,
1397
- "icon": {
1398
- "blueprint": {
1399
- "color": "#2D72D2",
1400
- "locator": "cube",
1417
+ {
1418
+ "datasource": {
1419
+ "streamV2": {
1420
+ "propertyMapping": {
1421
+ "bar": "bar",
1422
+ "fizz": "fizz",
1401
1423
  },
1402
- "type": "blueprint",
1424
+ "propertySecurityGroups": undefined,
1425
+ "retentionPolicy": {
1426
+ "none": {},
1427
+ "type": "none",
1428
+ },
1429
+ "streamLocator": "com.palantir.fizz",
1403
1430
  },
1404
- "pluralDisplayName": "exampleObject",
1405
- "visibility": "NORMAL",
1431
+ "type": "streamV2",
1406
1432
  },
1407
- "implementsInterfaces2": [],
1408
- "primaryKeys": [
1409
- "bar",
1410
- ],
1411
- "propertyTypes": {
1412
- "bar": {
1413
- "apiName": "bar",
1414
- "baseFormatter": undefined,
1415
- "dataConstraints": undefined,
1416
- "displayMetadata": {
1417
- "description": undefined,
1418
- "displayName": "Bar",
1419
- "visibility": "NORMAL",
1420
- },
1421
- "indexedForSearch": true,
1422
- "inlineAction": undefined,
1423
- "ruleSetBinding": undefined,
1424
- "sharedPropertyTypeApiName": undefined,
1425
- "sharedPropertyTypeRid": undefined,
1426
- "status": {
1427
- "active": {},
1428
- "type": "active",
1429
- },
1430
- "type": {
1431
- "string": {
1432
- "analyzerOverride": undefined,
1433
- "enableAsciiFolding": undefined,
1434
- "isLongText": false,
1435
- "supportsEfficientLeadingWildcard": false,
1436
- "supportsExactMatching": true,
1437
- },
1438
- "type": "string",
1439
- },
1440
- "typeClasses": [
1441
- {
1442
- "kind": "render_hint",
1443
- "name": "SELECTABLE",
1444
- },
1445
- {
1446
- "kind": "render_hint",
1447
- "name": "SORTABLE",
1448
- },
1449
- ],
1450
- "valueType": undefined,
1433
+ "datasourceName": "com.palantir.fizz",
1434
+ "editsConfiguration": {
1435
+ "onlyAllowPrivilegedEdits": false,
1436
+ },
1437
+ "redacted": false,
1438
+ },
1439
+ ],
1440
+ "entityMetadata": {
1441
+ "aliases": [],
1442
+ "arePatchesEnabled": false,
1443
+ },
1444
+ "objectType": {
1445
+ "allImplementsInterfaces": {},
1446
+ "apiName": "com.palantir.fizz",
1447
+ "displayMetadata": {
1448
+ "description": undefined,
1449
+ "displayName": "exampleObject",
1450
+ "groupDisplayName": undefined,
1451
+ "icon": {
1452
+ "blueprint": {
1453
+ "color": "#2D72D2",
1454
+ "locator": "cube",
1451
1455
  },
1452
- "fizz": {
1453
- "apiName": "fizz",
1454
- "baseFormatter": undefined,
1455
- "dataConstraints": undefined,
1456
- "displayMetadata": {
1457
- "description": undefined,
1458
- "displayName": "Fizz",
1459
- "visibility": "NORMAL",
1456
+ "type": "blueprint",
1457
+ },
1458
+ "pluralDisplayName": "exampleObject",
1459
+ "visibility": "NORMAL",
1460
+ },
1461
+ "implementsInterfaces2": [],
1462
+ "primaryKeys": [
1463
+ "bar",
1464
+ ],
1465
+ "propertyTypes": {
1466
+ "bar": {
1467
+ "apiName": "bar",
1468
+ "baseFormatter": undefined,
1469
+ "dataConstraints": undefined,
1470
+ "displayMetadata": {
1471
+ "description": undefined,
1472
+ "displayName": "Bar",
1473
+ "visibility": "NORMAL",
1474
+ },
1475
+ "indexedForSearch": true,
1476
+ "inlineAction": undefined,
1477
+ "ruleSetBinding": undefined,
1478
+ "sharedPropertyTypeApiName": undefined,
1479
+ "sharedPropertyTypeRid": undefined,
1480
+ "status": {
1481
+ "active": {},
1482
+ "type": "active",
1483
+ },
1484
+ "type": {
1485
+ "string": {
1486
+ "analyzerOverride": undefined,
1487
+ "enableAsciiFolding": undefined,
1488
+ "isLongText": false,
1489
+ "supportsEfficientLeadingWildcard": false,
1490
+ "supportsExactMatching": true,
1460
1491
  },
1461
- "indexedForSearch": true,
1462
- "inlineAction": undefined,
1463
- "ruleSetBinding": undefined,
1464
- "sharedPropertyTypeApiName": undefined,
1465
- "sharedPropertyTypeRid": undefined,
1466
- "status": {
1467
- "active": {},
1468
- "type": "active",
1492
+ "type": "string",
1493
+ },
1494
+ "typeClasses": [
1495
+ {
1496
+ "kind": "render_hint",
1497
+ "name": "SELECTABLE",
1469
1498
  },
1470
- "type": {
1471
- "mediaReference": {},
1472
- "type": "mediaReference",
1499
+ {
1500
+ "kind": "render_hint",
1501
+ "name": "SORTABLE",
1473
1502
  },
1474
- "typeClasses": [],
1475
- "valueType": undefined,
1476
- },
1503
+ ],
1504
+ "valueType": undefined,
1477
1505
  },
1478
- "redacted": false,
1479
- "status": {
1480
- "active": {},
1481
- "type": "active",
1506
+ "fizz": {
1507
+ "apiName": "fizz",
1508
+ "baseFormatter": undefined,
1509
+ "dataConstraints": undefined,
1510
+ "displayMetadata": {
1511
+ "description": undefined,
1512
+ "displayName": "Fizz",
1513
+ "visibility": "NORMAL",
1514
+ },
1515
+ "indexedForSearch": true,
1516
+ "inlineAction": undefined,
1517
+ "ruleSetBinding": undefined,
1518
+ "sharedPropertyTypeApiName": undefined,
1519
+ "sharedPropertyTypeRid": undefined,
1520
+ "status": {
1521
+ "active": {},
1522
+ "type": "active",
1523
+ },
1524
+ "type": {
1525
+ "mediaReference": {},
1526
+ "type": "mediaReference",
1527
+ },
1528
+ "typeClasses": [],
1529
+ "valueType": undefined,
1482
1530
  },
1483
- "titlePropertyTypeRid": "bar",
1484
1531
  },
1532
+ "redacted": false,
1533
+ "status": {
1534
+ "active": {},
1535
+ "type": "active",
1536
+ },
1537
+ "titlePropertyTypeRid": "bar",
1485
1538
  },
1486
1539
  },
1487
- "sharedPropertyTypes": {},
1488
- },
1489
- "randomnessKey": undefined,
1490
- "valueTypes": {
1491
- "valueTypes": [],
1492
1540
  },
1493
- }
1494
- `);
1541
+ "sharedPropertyTypes": {},
1542
+ },
1543
+ "randomnessKey": undefined,
1544
+ "valueTypes": {
1545
+ "valueTypes": [],
1546
+ },
1547
+ }
1548
+ `);
1495
1549
  });
1496
1550
  it("Derived datasources are properly defined", () => {
1497
1551
  const passenger = defineObject({
@@ -2319,6 +2373,7 @@ describe("Object Types", () => {
2319
2373
  },
2320
2374
  ],
2321
2375
  "entityMetadata": {
2376
+ "aliases": [],
2322
2377
  "arePatchesEnabled": true,
2323
2378
  },
2324
2379
  "objectType": {
@@ -2403,6 +2458,7 @@ describe("Object Types", () => {
2403
2458
  },
2404
2459
  "type": {
2405
2460
  "array": {
2461
+ "reducers": [],
2406
2462
  "subtype": {
2407
2463
  "string": {
2408
2464
  "analyzerOverride": undefined,
@@ -2464,6 +2520,7 @@ describe("Object Types", () => {
2464
2520
  },
2465
2521
  ],
2466
2522
  "entityMetadata": {
2523
+ "aliases": [],
2467
2524
  "arePatchesEnabled": true,
2468
2525
  },
2469
2526
  "objectType": {
@@ -2820,6 +2877,7 @@ describe("Object Types", () => {
2820
2877
  },
2821
2878
  ],
2822
2879
  "entityMetadata": {
2880
+ "aliases": [],
2823
2881
  "arePatchesEnabled": false,
2824
2882
  },
2825
2883
  "objectType": {
@@ -2944,6 +3002,7 @@ describe("Object Types", () => {
2944
3002
  },
2945
3003
  "type": {
2946
3004
  "array": {
3005
+ "reducers": [],
2947
3006
  "subtype": {
2948
3007
  "string": {
2949
3008
  "analyzerOverride": undefined,