@osdk/maker 0.15.0-beta.6 → 0.15.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/build/browser/api/action/ActionParameter.js.map +1 -1
- package/build/browser/api/action/ActionParameterConfiguration.js.map +1 -1
- package/build/browser/api/defineAction.js +65 -22
- package/build/browser/api/defineAction.js.map +1 -1
- package/build/browser/api/defineCreateInterfaceObjectAction.js +28 -8
- package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineInterface.js +40 -34
- package/build/browser/api/defineInterface.js.map +1 -1
- package/build/browser/api/defineModifyInterfaceObjectAction.js +31 -8
- package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineObject.js +13 -9
- package/build/browser/api/defineObject.js.map +1 -1
- package/build/browser/api/defineSpt.js.map +1 -1
- package/build/browser/api/interface/InterfacePropertyType.js +22 -1
- package/build/browser/api/interface/InterfacePropertyType.js.map +1 -1
- package/build/browser/api/interface/InterfaceType.js.map +1 -1
- package/build/browser/api/interface/getFlattenedInterfaceProperties.js +9 -3
- package/build/browser/api/interface/getFlattenedInterfaceProperties.js.map +1 -1
- package/build/browser/api/object/ObjectType.js.map +1 -1
- package/build/browser/api/object/ObjectTypeDefinition.js.map +1 -1
- package/build/browser/api/properties/PropertyTypeType.js +1 -1
- package/build/browser/api/properties/PropertyTypeType.js.map +1 -1
- package/build/browser/api/properties/SharedPropertyType.js.map +1 -1
- package/build/browser/api/test/actions.test.js +6105 -5850
- package/build/browser/api/test/actions.test.js.map +1 -1
- package/build/browser/api/test/interfaces.test.js +723 -470
- package/build/browser/api/test/interfaces.test.js.map +1 -1
- package/build/browser/api/test/links.test.js +1334 -1325
- package/build/browser/api/test/links.test.js.map +1 -1
- package/build/browser/api/test/misc.test.js +262 -11
- package/build/browser/api/test/misc.test.js.map +1 -1
- package/build/browser/api/test/objects.test.js +1019 -960
- package/build/browser/api/test/objects.test.js.map +1 -1
- package/build/browser/api/test/spt.test.js +250 -103
- package/build/browser/api/test/spt.test.js.map +1 -1
- package/build/browser/cli/main.js +1 -1
- package/build/browser/conversion/toMarketplace/convertActionValidation.js +1 -1
- package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertInterface.js +2 -2
- package/build/browser/conversion/toMarketplace/convertInterface.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js +66 -0
- package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertMappingValue.js +35 -0
- package/build/browser/conversion/toMarketplace/convertMappingValue.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertObject.js +4 -2
- package/build/browser/conversion/toMarketplace/convertObject.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js +2 -1
- package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertSpt.js +4 -2
- package/build/browser/conversion/toMarketplace/convertSpt.js.map +1 -1
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +143 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +386 -109
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +28 -13
- package/build/esm/api/action/ActionParameter.js.map +1 -1
- package/build/esm/api/action/ActionParameterConfiguration.js.map +1 -1
- package/build/esm/api/defineAction.js +65 -22
- package/build/esm/api/defineAction.js.map +1 -1
- package/build/esm/api/defineCreateInterfaceObjectAction.js +28 -8
- package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineInterface.js +40 -34
- package/build/esm/api/defineInterface.js.map +1 -1
- package/build/esm/api/defineModifyInterfaceObjectAction.js +31 -8
- package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineObject.js +13 -9
- package/build/esm/api/defineObject.js.map +1 -1
- package/build/esm/api/defineSpt.js.map +1 -1
- package/build/esm/api/interface/InterfacePropertyType.js +22 -1
- package/build/esm/api/interface/InterfacePropertyType.js.map +1 -1
- package/build/esm/api/interface/InterfaceType.js.map +1 -1
- package/build/esm/api/interface/getFlattenedInterfaceProperties.js +9 -3
- package/build/esm/api/interface/getFlattenedInterfaceProperties.js.map +1 -1
- package/build/esm/api/object/ObjectType.js.map +1 -1
- package/build/esm/api/object/ObjectTypeDefinition.js.map +1 -1
- package/build/esm/api/properties/PropertyTypeType.js +1 -1
- package/build/esm/api/properties/PropertyTypeType.js.map +1 -1
- package/build/esm/api/properties/SharedPropertyType.js.map +1 -1
- package/build/esm/api/test/actions.test.js +6105 -5850
- package/build/esm/api/test/actions.test.js.map +1 -1
- package/build/esm/api/test/interfaces.test.js +723 -470
- package/build/esm/api/test/interfaces.test.js.map +1 -1
- package/build/esm/api/test/links.test.js +1334 -1325
- package/build/esm/api/test/links.test.js.map +1 -1
- package/build/esm/api/test/misc.test.js +262 -11
- package/build/esm/api/test/misc.test.js.map +1 -1
- package/build/esm/api/test/objects.test.js +1019 -960
- package/build/esm/api/test/objects.test.js.map +1 -1
- package/build/esm/api/test/spt.test.js +250 -103
- package/build/esm/api/test/spt.test.js.map +1 -1
- package/build/esm/cli/main.js +1 -1
- package/build/esm/conversion/toMarketplace/convertActionValidation.js +1 -1
- package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertInterface.js +2 -2
- package/build/esm/conversion/toMarketplace/convertInterface.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js +66 -0
- package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertMappingValue.js +35 -0
- package/build/esm/conversion/toMarketplace/convertMappingValue.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertObject.js +4 -2
- package/build/esm/conversion/toMarketplace/convertObject.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js +2 -1
- package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertSpt.js +4 -2
- package/build/esm/conversion/toMarketplace/convertSpt.js.map +1 -1
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +143 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/types/api/action/ActionParameter.d.ts +2 -1
- package/build/types/api/action/ActionParameter.d.ts.map +1 -1
- package/build/types/api/action/ActionParameterConfiguration.d.ts +2 -1
- package/build/types/api/action/ActionParameterConfiguration.d.ts.map +1 -1
- package/build/types/api/defineAction.d.ts +4 -3
- package/build/types/api/defineAction.d.ts.map +1 -1
- package/build/types/api/defineCreateInterfaceObjectAction.d.ts.map +1 -1
- package/build/types/api/defineInterface.d.ts +5 -5
- package/build/types/api/defineInterface.d.ts.map +1 -1
- package/build/types/api/defineModifyInterfaceObjectAction.d.ts.map +1 -1
- package/build/types/api/defineObject.d.ts.map +1 -1
- package/build/types/api/defineSpt.d.ts +3 -0
- package/build/types/api/defineSpt.d.ts.map +1 -1
- package/build/types/api/interface/InterfacePropertyType.d.ts +12 -2
- package/build/types/api/interface/InterfacePropertyType.d.ts.map +1 -1
- package/build/types/api/interface/InterfaceType.d.ts +3 -2
- package/build/types/api/interface/InterfaceType.d.ts.map +1 -1
- package/build/types/api/interface/getFlattenedInterfaceProperties.d.ts +1 -1
- package/build/types/api/interface/getFlattenedInterfaceProperties.d.ts.map +1 -1
- package/build/types/api/object/ObjectType.d.ts +1 -0
- package/build/types/api/object/ObjectType.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeDefinition.d.ts +1 -0
- package/build/types/api/object/ObjectTypeDefinition.d.ts.map +1 -1
- package/build/types/api/properties/PropertyTypeType.d.ts +1 -0
- package/build/types/api/properties/PropertyTypeType.d.ts.map +1 -1
- package/build/types/api/properties/SharedPropertyType.d.ts +1 -0
- package/build/types/api/properties/SharedPropertyType.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertInterface.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts +3 -0
- package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertMappingValue.d.ts +2 -1
- package/build/types/conversion/toMarketplace/convertMappingValue.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertObject.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertSpt.d.ts +1 -1
- package/build/types/conversion/toMarketplace/convertSpt.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts +3 -0
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts.map +1 -0
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -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:
|
|
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
|
-
"
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
|
|
190
|
-
"
|
|
191
|
-
|
|
192
|
-
"
|
|
193
|
-
|
|
194
|
-
|
|
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
|
-
"
|
|
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
|
-
|
|
200
|
-
|
|
201
|
-
"
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
},
|
|
283
|
+
},
|
|
284
|
+
"searchable": true,
|
|
285
|
+
"status": {
|
|
286
|
+
"active": {},
|
|
287
|
+
"type": "active",
|
|
247
288
|
},
|
|
248
289
|
},
|
|
249
290
|
},
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
295
|
-
|
|
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
|
-
"
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
"
|
|
302
|
-
|
|
303
|
-
|
|
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
|
-
"
|
|
312
|
-
"visibility": "NORMAL",
|
|
369
|
+
"propertiesV2": {},
|
|
313
370
|
},
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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
|
-
"
|
|
408
|
+
"type": "array",
|
|
324
409
|
},
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
"sharedPropertyTypeApiName": undefined,
|
|
343
|
-
"sharedPropertyTypeRid": undefined,
|
|
344
|
-
"status": {
|
|
345
|
-
"active": {},
|
|
346
|
-
"type": "active",
|
|
415
|
+
{
|
|
416
|
+
"kind": "render_hint",
|
|
417
|
+
"name": "SORTABLE",
|
|
347
418
|
},
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
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
|
-
"
|
|
490
|
+
"fieldType": {
|
|
491
|
+
"double": {},
|
|
492
|
+
"type": "double",
|
|
493
|
+
},
|
|
494
|
+
"typeClasses": [],
|
|
359
495
|
},
|
|
360
|
-
|
|
361
|
-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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
|
-
"
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
"active": {},
|
|
391
|
-
"type": "active",
|
|
706
|
+
"type": "string",
|
|
707
|
+
},
|
|
708
|
+
"typeClasses": [
|
|
709
|
+
{
|
|
710
|
+
"kind": "render_hint",
|
|
711
|
+
"name": "SELECTABLE",
|
|
392
712
|
},
|
|
393
|
-
|
|
394
|
-
"
|
|
395
|
-
|
|
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
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
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
|
-
"
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
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
|
-
"
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
"active": {},
|
|
431
|
-
"type": "active",
|
|
806
|
+
"type": "string",
|
|
807
|
+
},
|
|
808
|
+
"typeClasses": [
|
|
809
|
+
{
|
|
810
|
+
"kind": "render_hint",
|
|
811
|
+
"name": "SELECTABLE",
|
|
432
812
|
},
|
|
433
|
-
|
|
434
|
-
"
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
"
|
|
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
|
-
"
|
|
471
|
-
"
|
|
472
|
-
"
|
|
473
|
-
"type": "active",
|
|
884
|
+
"datasourceName": "com.palantir.foo",
|
|
885
|
+
"editsConfiguration": {
|
|
886
|
+
"onlyAllowPrivilegedEdits": false,
|
|
474
887
|
},
|
|
475
|
-
"
|
|
888
|
+
"redacted": false,
|
|
476
889
|
},
|
|
890
|
+
],
|
|
891
|
+
"entityMetadata": {
|
|
892
|
+
"aliases": [],
|
|
893
|
+
"arePatchesEnabled": false,
|
|
477
894
|
},
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
"
|
|
482
|
-
"
|
|
483
|
-
"
|
|
484
|
-
"
|
|
485
|
-
"
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
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
|
-
"
|
|
492
|
-
"
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
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
|
-
"
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
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
|
-
"
|
|
510
|
-
|
|
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
|
-
|
|
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("
|
|
971
|
+
it("Restricted view datasources are properly defined", () => {
|
|
521
972
|
defineObject({
|
|
522
973
|
titlePropertyApiName: "bar",
|
|
523
|
-
displayName: "
|
|
524
|
-
pluralDisplayName: "
|
|
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: "
|
|
984
|
+
type: "restrictedView"
|
|
534
985
|
}]
|
|
535
986
|
});
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
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
|
-
"
|
|
547
|
-
|
|
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.
|
|
1014
|
+
"com.palantir.foo": {
|
|
582
1015
|
"datasources": [
|
|
583
1016
|
{
|
|
584
1017
|
"datasource": {
|
|
585
|
-
"
|
|
1018
|
+
"restrictedViewV2": {
|
|
586
1019
|
"propertyMapping": {
|
|
587
|
-
"
|
|
588
|
-
|
|
589
|
-
|
|
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
|
-
"
|
|
1025
|
+
"restrictedViewRid": "com.palantir.foo",
|
|
696
1026
|
},
|
|
697
|
-
"type": "
|
|
1027
|
+
"type": "restrictedViewV2",
|
|
698
1028
|
},
|
|
699
|
-
"datasourceName": "com.palantir.
|
|
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.
|
|
1042
|
+
"apiName": "com.palantir.foo",
|
|
712
1043
|
"displayMetadata": {
|
|
713
1044
|
"description": undefined,
|
|
714
|
-
"displayName": "
|
|
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": "
|
|
1054
|
+
"pluralDisplayName": "Foo",
|
|
724
1055
|
"visibility": "NORMAL",
|
|
725
1056
|
},
|
|
726
1057
|
"implementsInterfaces2": [],
|
|
727
1058
|
"primaryKeys": [
|
|
728
|
-
"
|
|
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": "
|
|
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
|
-
"
|
|
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": "
|
|
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": "
|
|
1209
|
+
"pluralDisplayName": "Foo",
|
|
860
1210
|
"visibility": "NORMAL",
|
|
861
1211
|
},
|
|
862
1212
|
"implementsInterfaces2": [],
|
|
863
1213
|
"primaryKeys": [
|
|
864
|
-
"
|
|
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
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
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
|
-
"
|
|
1158
|
-
"
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
"
|
|
1163
|
-
|
|
1164
|
-
|
|
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
|
-
"
|
|
1206
|
-
"
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
"
|
|
1211
|
-
"
|
|
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
|
-
"
|
|
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
|
-
|
|
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
|
-
"
|
|
1333
|
-
|
|
1334
|
-
},
|
|
1335
|
-
"
|
|
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
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
"
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
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
|
-
"
|
|
1409
|
+
"type": "mediaSetView",
|
|
1385
1410
|
},
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1411
|
+
"datasourceName": "fizz",
|
|
1412
|
+
"editsConfiguration": {
|
|
1413
|
+
"onlyAllowPrivilegedEdits": false,
|
|
1414
|
+
},
|
|
1415
|
+
"redacted": false,
|
|
1389
1416
|
},
|
|
1390
|
-
|
|
1391
|
-
"
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
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
|
-
"
|
|
1424
|
+
"propertySecurityGroups": undefined,
|
|
1425
|
+
"retentionPolicy": {
|
|
1426
|
+
"none": {},
|
|
1427
|
+
"type": "none",
|
|
1428
|
+
},
|
|
1429
|
+
"streamLocator": "com.palantir.fizz",
|
|
1403
1430
|
},
|
|
1404
|
-
"
|
|
1405
|
-
"visibility": "NORMAL",
|
|
1431
|
+
"type": "streamV2",
|
|
1406
1432
|
},
|
|
1407
|
-
"
|
|
1408
|
-
"
|
|
1409
|
-
"
|
|
1410
|
-
|
|
1411
|
-
"
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
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
|
-
"
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
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
|
-
"
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
"active": {},
|
|
1468
|
-
"type": "active",
|
|
1492
|
+
"type": "string",
|
|
1493
|
+
},
|
|
1494
|
+
"typeClasses": [
|
|
1495
|
+
{
|
|
1496
|
+
"kind": "render_hint",
|
|
1497
|
+
"name": "SELECTABLE",
|
|
1469
1498
|
},
|
|
1470
|
-
|
|
1471
|
-
"
|
|
1472
|
-
"
|
|
1499
|
+
{
|
|
1500
|
+
"kind": "render_hint",
|
|
1501
|
+
"name": "SORTABLE",
|
|
1473
1502
|
},
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
},
|
|
1503
|
+
],
|
|
1504
|
+
"valueType": undefined,
|
|
1477
1505
|
},
|
|
1478
|
-
"
|
|
1479
|
-
|
|
1480
|
-
"
|
|
1481
|
-
"
|
|
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,
|