@osdk/maker-experimental 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,597 @@
1
+ /*
2
+ * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { defineCreateObjectAction, defineObject, defineOntology, dumpOntologyFullMetadata } from "@osdk/maker";
18
+ import { beforeEach, describe, expect, it } from "vitest";
19
+ import { defineImportObject } from "./importObjectType.js";
20
+ describe("Experimental Test Suite", () => {
21
+ beforeEach(async () => {
22
+ await defineOntology("com.palantir.", () => {}, "/tmp/");
23
+ });
24
+ describe("Imports", () => {
25
+ it("Imported object types as action parameters are properly defined", () => {
26
+ const importedObject = defineImportObject({
27
+ apiName: "myImport",
28
+ properties: {
29
+ id: {
30
+ type: "string"
31
+ },
32
+ name: {
33
+ type: "string"
34
+ }
35
+ }
36
+ });
37
+ const foo = defineObject({
38
+ apiName: "foo",
39
+ displayName: "Foo",
40
+ pluralDisplayName: "Foos",
41
+ titlePropertyApiName: "id",
42
+ primaryKeyPropertyApiName: "id",
43
+ properties: {
44
+ "id": {
45
+ type: "string"
46
+ },
47
+ "date": {
48
+ type: "date"
49
+ },
50
+ "team": {
51
+ type: "string"
52
+ }
53
+ }
54
+ });
55
+ defineCreateObjectAction({
56
+ objectType: foo,
57
+ parameterOrdering: ["ref", "team", "id", "date"],
58
+ parameterConfiguration: {
59
+ "ref": {
60
+ customParameterType: {
61
+ type: "objectReference",
62
+ objectReference: {
63
+ objectTypeId: importedObject.apiName
64
+ }
65
+ }
66
+ },
67
+ "team": {
68
+ defaultValue: {
69
+ type: "objectParameterPropertyValue",
70
+ objectParameterPropertyValue: {
71
+ parameterId: "ref",
72
+ propertyTypeId: "foo"
73
+ }
74
+ }
75
+ }
76
+ }
77
+ });
78
+ expect(dumpOntologyFullMetadata().blockData).toMatchInlineSnapshot(`
79
+ {
80
+ "actionTypes": {
81
+ "com.palantir.create-object-foo": {
82
+ "actionType": {
83
+ "actionTypeLogic": {
84
+ "logic": {
85
+ "rules": [
86
+ {
87
+ "addObjectRule": {
88
+ "objectTypeId": "com.palantir.foo",
89
+ "propertyValues": {
90
+ "date": {
91
+ "parameterId": "date",
92
+ "type": "parameterId",
93
+ },
94
+ "id": {
95
+ "parameterId": "id",
96
+ "type": "parameterId",
97
+ },
98
+ "team": {
99
+ "parameterId": "team",
100
+ "type": "parameterId",
101
+ },
102
+ },
103
+ "structFieldValues": {},
104
+ },
105
+ "type": "addObjectRule",
106
+ },
107
+ ],
108
+ },
109
+ "validation": {
110
+ "actionTypeLevelValidation": {
111
+ "rules": {
112
+ "0": {
113
+ "condition": {
114
+ "true": {},
115
+ "type": "true",
116
+ },
117
+ "displayMetadata": {
118
+ "failureMessage": "",
119
+ "typeClasses": [],
120
+ },
121
+ },
122
+ },
123
+ },
124
+ "parameterValidations": {
125
+ "date": {
126
+ "conditionalOverrides": [],
127
+ "defaultValidation": {
128
+ "display": {
129
+ "renderHint": {
130
+ "dateTimePicker": {},
131
+ "type": "dateTimePicker",
132
+ },
133
+ "visibility": {
134
+ "editable": {},
135
+ "type": "editable",
136
+ },
137
+ },
138
+ "validation": {
139
+ "allowedValues": {
140
+ "datetime": {
141
+ "datetime": {
142
+ "maximum": undefined,
143
+ "minimum": undefined,
144
+ },
145
+ "type": "datetime",
146
+ },
147
+ "type": "datetime",
148
+ },
149
+ "required": {
150
+ "required": {},
151
+ "type": "required",
152
+ },
153
+ },
154
+ },
155
+ },
156
+ "id": {
157
+ "conditionalOverrides": [],
158
+ "defaultValidation": {
159
+ "display": {
160
+ "renderHint": {
161
+ "textInput": {},
162
+ "type": "textInput",
163
+ },
164
+ "visibility": {
165
+ "editable": {},
166
+ "type": "editable",
167
+ },
168
+ },
169
+ "validation": {
170
+ "allowedValues": {
171
+ "text": {
172
+ "text": {},
173
+ "type": "text",
174
+ },
175
+ "type": "text",
176
+ },
177
+ "required": {
178
+ "required": {},
179
+ "type": "required",
180
+ },
181
+ },
182
+ },
183
+ },
184
+ "ref": {
185
+ "conditionalOverrides": [],
186
+ "defaultValidation": {
187
+ "display": {
188
+ "renderHint": {
189
+ "dropdown": {},
190
+ "type": "dropdown",
191
+ },
192
+ "visibility": {
193
+ "editable": {},
194
+ "type": "editable",
195
+ },
196
+ },
197
+ "validation": {
198
+ "allowedValues": {
199
+ "objectQuery": {
200
+ "objectQuery": {},
201
+ "type": "objectQuery",
202
+ },
203
+ "type": "objectQuery",
204
+ },
205
+ "required": {
206
+ "required": {},
207
+ "type": "required",
208
+ },
209
+ },
210
+ },
211
+ },
212
+ "team": {
213
+ "conditionalOverrides": [],
214
+ "defaultValidation": {
215
+ "display": {
216
+ "prefill": {
217
+ "objectParameterPropertyValue": {
218
+ "parameterId": "ref",
219
+ "propertyTypeId": "foo",
220
+ },
221
+ "type": "objectParameterPropertyValue",
222
+ },
223
+ "renderHint": {
224
+ "textInput": {},
225
+ "type": "textInput",
226
+ },
227
+ "visibility": {
228
+ "editable": {},
229
+ "type": "editable",
230
+ },
231
+ },
232
+ "validation": {
233
+ "allowedValues": {
234
+ "text": {
235
+ "text": {},
236
+ "type": "text",
237
+ },
238
+ "type": "text",
239
+ },
240
+ "required": {
241
+ "required": {},
242
+ "type": "required",
243
+ },
244
+ },
245
+ },
246
+ },
247
+ },
248
+ "sectionValidations": {},
249
+ },
250
+ },
251
+ "metadata": {
252
+ "apiName": "com.palantir.create-object-foo",
253
+ "displayMetadata": {
254
+ "configuration": {
255
+ "defaultLayout": "FORM",
256
+ "displayAndFormat": {
257
+ "table": {
258
+ "columnWidthByParameterRid": {},
259
+ "enableFileImport": true,
260
+ "fitHorizontally": false,
261
+ "frozenColumnCount": 0,
262
+ "rowHeightInLines": 1,
263
+ },
264
+ },
265
+ "enableLayoutUserSwitch": false,
266
+ },
267
+ "description": "",
268
+ "displayName": "Create Foo",
269
+ "icon": {
270
+ "blueprint": {
271
+ "color": "#000000",
272
+ "locator": "edit",
273
+ },
274
+ "type": "blueprint",
275
+ },
276
+ "successMessage": [],
277
+ "typeClasses": [],
278
+ },
279
+ "entities": {
280
+ "affectedInterfaceTypes": [],
281
+ "affectedLinkTypes": [],
282
+ "affectedObjectTypes": [
283
+ "com.palantir.foo",
284
+ ],
285
+ "typeGroups": [],
286
+ },
287
+ "formContentOrdering": [],
288
+ "parameterOrdering": [
289
+ "ref",
290
+ "team",
291
+ "id",
292
+ "date",
293
+ ],
294
+ "parameters": {
295
+ "date": {
296
+ "displayMetadata": {
297
+ "description": "",
298
+ "displayName": "Date",
299
+ "typeClasses": [],
300
+ },
301
+ "id": "date",
302
+ "type": {
303
+ "date": {},
304
+ "type": "date",
305
+ },
306
+ },
307
+ "id": {
308
+ "displayMetadata": {
309
+ "description": "",
310
+ "displayName": "Id",
311
+ "typeClasses": [],
312
+ },
313
+ "id": "id",
314
+ "type": {
315
+ "string": {},
316
+ "type": "string",
317
+ },
318
+ },
319
+ "ref": {
320
+ "displayMetadata": {
321
+ "description": "",
322
+ "displayName": "Ref",
323
+ "typeClasses": [],
324
+ },
325
+ "id": "ref",
326
+ "type": {
327
+ "objectReference": {
328
+ "objectTypeId": "myImport",
329
+ },
330
+ "type": "objectReference",
331
+ },
332
+ },
333
+ "team": {
334
+ "displayMetadata": {
335
+ "description": "",
336
+ "displayName": "Team",
337
+ "typeClasses": [],
338
+ },
339
+ "id": "team",
340
+ "type": {
341
+ "string": {},
342
+ "type": "string",
343
+ },
344
+ },
345
+ },
346
+ "sections": {},
347
+ "status": {
348
+ "active": {},
349
+ "type": "active",
350
+ },
351
+ },
352
+ },
353
+ },
354
+ },
355
+ "blockPermissionInformation": {
356
+ "actionTypes": {},
357
+ "linkTypes": {},
358
+ "objectTypes": {},
359
+ },
360
+ "interfaceTypes": {},
361
+ "linkTypes": {},
362
+ "objectTypes": {
363
+ "com.palantir.foo": {
364
+ "datasources": [
365
+ {
366
+ "datasource": {
367
+ "datasetV2": {
368
+ "datasetRid": "com.palantir.foo",
369
+ "propertyMapping": {
370
+ "date": {
371
+ "column": "date",
372
+ "type": "column",
373
+ },
374
+ "id": {
375
+ "column": "id",
376
+ "type": "column",
377
+ },
378
+ "team": {
379
+ "column": "team",
380
+ "type": "column",
381
+ },
382
+ },
383
+ },
384
+ "type": "datasetV2",
385
+ },
386
+ "editsConfiguration": {
387
+ "onlyAllowPrivilegedEdits": false,
388
+ },
389
+ "redacted": false,
390
+ "rid": "ri.ontology.main.datasource.com.palantir.foo",
391
+ },
392
+ ],
393
+ "entityMetadata": {
394
+ "arePatchesEnabled": false,
395
+ },
396
+ "objectType": {
397
+ "allImplementsInterfaces": {},
398
+ "apiName": "com.palantir.foo",
399
+ "displayMetadata": {
400
+ "description": undefined,
401
+ "displayName": "Foo",
402
+ "groupDisplayName": undefined,
403
+ "icon": {
404
+ "blueprint": {
405
+ "color": "#2D72D2",
406
+ "locator": "cube",
407
+ },
408
+ "type": "blueprint",
409
+ },
410
+ "pluralDisplayName": "Foos",
411
+ "visibility": "NORMAL",
412
+ },
413
+ "implementsInterfaces2": [],
414
+ "primaryKeys": [
415
+ "id",
416
+ ],
417
+ "propertyTypes": {
418
+ "date": {
419
+ "apiName": "date",
420
+ "baseFormatter": undefined,
421
+ "dataConstraints": undefined,
422
+ "displayMetadata": {
423
+ "description": undefined,
424
+ "displayName": "Date",
425
+ "visibility": "NORMAL",
426
+ },
427
+ "indexedForSearch": true,
428
+ "inlineAction": undefined,
429
+ "ruleSetBinding": undefined,
430
+ "sharedPropertyTypeApiName": undefined,
431
+ "sharedPropertyTypeRid": undefined,
432
+ "status": {
433
+ "active": {},
434
+ "type": "active",
435
+ },
436
+ "type": {
437
+ "date": {},
438
+ "type": "date",
439
+ },
440
+ "typeClasses": [
441
+ {
442
+ "kind": "render_hint",
443
+ "name": "SELECTABLE",
444
+ },
445
+ {
446
+ "kind": "render_hint",
447
+ "name": "SORTABLE",
448
+ },
449
+ ],
450
+ "valueType": undefined,
451
+ },
452
+ "id": {
453
+ "apiName": "id",
454
+ "baseFormatter": undefined,
455
+ "dataConstraints": undefined,
456
+ "displayMetadata": {
457
+ "description": undefined,
458
+ "displayName": "Id",
459
+ "visibility": "NORMAL",
460
+ },
461
+ "indexedForSearch": true,
462
+ "inlineAction": undefined,
463
+ "ruleSetBinding": undefined,
464
+ "sharedPropertyTypeApiName": undefined,
465
+ "sharedPropertyTypeRid": undefined,
466
+ "status": {
467
+ "active": {},
468
+ "type": "active",
469
+ },
470
+ "type": {
471
+ "string": {
472
+ "analyzerOverride": undefined,
473
+ "enableAsciiFolding": undefined,
474
+ "isLongText": false,
475
+ "supportsEfficientLeadingWildcard": false,
476
+ "supportsExactMatching": true,
477
+ },
478
+ "type": "string",
479
+ },
480
+ "typeClasses": [
481
+ {
482
+ "kind": "render_hint",
483
+ "name": "SELECTABLE",
484
+ },
485
+ {
486
+ "kind": "render_hint",
487
+ "name": "SORTABLE",
488
+ },
489
+ ],
490
+ "valueType": undefined,
491
+ },
492
+ "team": {
493
+ "apiName": "team",
494
+ "baseFormatter": undefined,
495
+ "dataConstraints": undefined,
496
+ "displayMetadata": {
497
+ "description": undefined,
498
+ "displayName": "Team",
499
+ "visibility": "NORMAL",
500
+ },
501
+ "indexedForSearch": true,
502
+ "inlineAction": undefined,
503
+ "ruleSetBinding": undefined,
504
+ "sharedPropertyTypeApiName": undefined,
505
+ "sharedPropertyTypeRid": undefined,
506
+ "status": {
507
+ "active": {},
508
+ "type": "active",
509
+ },
510
+ "type": {
511
+ "string": {
512
+ "analyzerOverride": undefined,
513
+ "enableAsciiFolding": undefined,
514
+ "isLongText": false,
515
+ "supportsEfficientLeadingWildcard": false,
516
+ "supportsExactMatching": true,
517
+ },
518
+ "type": "string",
519
+ },
520
+ "typeClasses": [
521
+ {
522
+ "kind": "render_hint",
523
+ "name": "SELECTABLE",
524
+ },
525
+ {
526
+ "kind": "render_hint",
527
+ "name": "SORTABLE",
528
+ },
529
+ ],
530
+ "valueType": undefined,
531
+ },
532
+ },
533
+ "redacted": false,
534
+ "status": {
535
+ "active": {},
536
+ "type": "active",
537
+ },
538
+ "titlePropertyTypeRid": "id",
539
+ },
540
+ },
541
+ },
542
+ "sharedPropertyTypes": {},
543
+ }
544
+ `);
545
+ expect(dumpOntologyFullMetadata().importedTypes).toMatchInlineSnapshot(`
546
+ {
547
+ "actionTypes": [],
548
+ "interfaceTypes": [],
549
+ "linkTypes": [],
550
+ "objectTypes": [
551
+ {
552
+ "apiName": "myImport",
553
+ "description": undefined,
554
+ "displayName": "MyImport",
555
+ "propertyTypes": [
556
+ {
557
+ "apiName": "id",
558
+ "description": undefined,
559
+ "displayName": "Id",
560
+ "sharedPropertyType": undefined,
561
+ "type": {
562
+ "string": {
563
+ "analyzerOverride": undefined,
564
+ "enableAsciiFolding": undefined,
565
+ "isLongText": false,
566
+ "supportsEfficientLeadingWildcard": false,
567
+ "supportsExactMatching": true,
568
+ },
569
+ "type": "string",
570
+ },
571
+ },
572
+ {
573
+ "apiName": "name",
574
+ "description": undefined,
575
+ "displayName": "Name",
576
+ "sharedPropertyType": undefined,
577
+ "type": {
578
+ "string": {
579
+ "analyzerOverride": undefined,
580
+ "enableAsciiFolding": undefined,
581
+ "isLongText": false,
582
+ "supportsEfficientLeadingWildcard": false,
583
+ "supportsExactMatching": true,
584
+ },
585
+ "type": "string",
586
+ },
587
+ },
588
+ ],
589
+ },
590
+ ],
591
+ "sharedPropertyTypes": [],
592
+ }
593
+ `);
594
+ });
595
+ });
596
+ });
597
+ //# sourceMappingURL=overall.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overall.test.js","names":["defineCreateObjectAction","defineObject","defineOntology","dumpOntologyFullMetadata","beforeEach","describe","expect","it","defineImportObject","importedObject","apiName","properties","id","type","name","foo","displayName","pluralDisplayName","titlePropertyApiName","primaryKeyPropertyApiName","objectType","parameterOrdering","parameterConfiguration","customParameterType","objectReference","objectTypeId","defaultValue","objectParameterPropertyValue","parameterId","propertyTypeId","blockData","toMatchInlineSnapshot","importedTypes"],"sources":["overall.test.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n defineCreateObjectAction,\n defineObject,\n defineOntology,\n dumpOntologyFullMetadata,\n} from \"@osdk/maker\";\nimport { beforeEach, describe, expect, it } from \"vitest\";\nimport { defineImportObject } from \"./importObjectType.js\";\n\ndescribe(\"Experimental Test Suite\", () => {\n beforeEach(async () => {\n await defineOntology(\"com.palantir.\", () => {}, \"/tmp/\");\n });\n\n describe(\"Imports\", () => {\n it(\"Imported object types as action parameters are properly defined\", () => {\n const importedObject = defineImportObject({\n apiName: \"myImport\",\n properties: {\n id: { type: \"string\" },\n name: { type: \"string\" },\n },\n });\n const foo = defineObject({\n apiName: \"foo\",\n displayName: \"Foo\",\n pluralDisplayName: \"Foos\",\n titlePropertyApiName: \"id\",\n primaryKeyPropertyApiName: \"id\",\n properties: {\n \"id\": { type: \"string\" },\n \"date\": { type: \"date\" },\n \"team\": { type: \"string\" },\n },\n });\n defineCreateObjectAction({\n objectType: foo,\n parameterOrdering: [\"ref\", \"team\", \"id\", \"date\"],\n parameterConfiguration: {\n \"ref\": {\n customParameterType: {\n type: \"objectReference\",\n objectReference: {\n objectTypeId: importedObject.apiName,\n },\n },\n },\n \"team\": {\n defaultValue: {\n type: \"objectParameterPropertyValue\",\n objectParameterPropertyValue: {\n parameterId: \"ref\",\n propertyTypeId: \"foo\",\n },\n },\n },\n },\n });\n expect(dumpOntologyFullMetadata().blockData).toMatchInlineSnapshot(`\n {\n \"actionTypes\": {\n \"com.palantir.create-object-foo\": {\n \"actionType\": {\n \"actionTypeLogic\": {\n \"logic\": {\n \"rules\": [\n {\n \"addObjectRule\": {\n \"objectTypeId\": \"com.palantir.foo\",\n \"propertyValues\": {\n \"date\": {\n \"parameterId\": \"date\",\n \"type\": \"parameterId\",\n },\n \"id\": {\n \"parameterId\": \"id\",\n \"type\": \"parameterId\",\n },\n \"team\": {\n \"parameterId\": \"team\",\n \"type\": \"parameterId\",\n },\n },\n \"structFieldValues\": {},\n },\n \"type\": \"addObjectRule\",\n },\n ],\n },\n \"validation\": {\n \"actionTypeLevelValidation\": {\n \"rules\": {\n \"0\": {\n \"condition\": {\n \"true\": {},\n \"type\": \"true\",\n },\n \"displayMetadata\": {\n \"failureMessage\": \"\",\n \"typeClasses\": [],\n },\n },\n },\n },\n \"parameterValidations\": {\n \"date\": {\n \"conditionalOverrides\": [],\n \"defaultValidation\": {\n \"display\": {\n \"renderHint\": {\n \"dateTimePicker\": {},\n \"type\": \"dateTimePicker\",\n },\n \"visibility\": {\n \"editable\": {},\n \"type\": \"editable\",\n },\n },\n \"validation\": {\n \"allowedValues\": {\n \"datetime\": {\n \"datetime\": {\n \"maximum\": undefined,\n \"minimum\": undefined,\n },\n \"type\": \"datetime\",\n },\n \"type\": \"datetime\",\n },\n \"required\": {\n \"required\": {},\n \"type\": \"required\",\n },\n },\n },\n },\n \"id\": {\n \"conditionalOverrides\": [],\n \"defaultValidation\": {\n \"display\": {\n \"renderHint\": {\n \"textInput\": {},\n \"type\": \"textInput\",\n },\n \"visibility\": {\n \"editable\": {},\n \"type\": \"editable\",\n },\n },\n \"validation\": {\n \"allowedValues\": {\n \"text\": {\n \"text\": {},\n \"type\": \"text\",\n },\n \"type\": \"text\",\n },\n \"required\": {\n \"required\": {},\n \"type\": \"required\",\n },\n },\n },\n },\n \"ref\": {\n \"conditionalOverrides\": [],\n \"defaultValidation\": {\n \"display\": {\n \"renderHint\": {\n \"dropdown\": {},\n \"type\": \"dropdown\",\n },\n \"visibility\": {\n \"editable\": {},\n \"type\": \"editable\",\n },\n },\n \"validation\": {\n \"allowedValues\": {\n \"objectQuery\": {\n \"objectQuery\": {},\n \"type\": \"objectQuery\",\n },\n \"type\": \"objectQuery\",\n },\n \"required\": {\n \"required\": {},\n \"type\": \"required\",\n },\n },\n },\n },\n \"team\": {\n \"conditionalOverrides\": [],\n \"defaultValidation\": {\n \"display\": {\n \"prefill\": {\n \"objectParameterPropertyValue\": {\n \"parameterId\": \"ref\",\n \"propertyTypeId\": \"foo\",\n },\n \"type\": \"objectParameterPropertyValue\",\n },\n \"renderHint\": {\n \"textInput\": {},\n \"type\": \"textInput\",\n },\n \"visibility\": {\n \"editable\": {},\n \"type\": \"editable\",\n },\n },\n \"validation\": {\n \"allowedValues\": {\n \"text\": {\n \"text\": {},\n \"type\": \"text\",\n },\n \"type\": \"text\",\n },\n \"required\": {\n \"required\": {},\n \"type\": \"required\",\n },\n },\n },\n },\n },\n \"sectionValidations\": {},\n },\n },\n \"metadata\": {\n \"apiName\": \"com.palantir.create-object-foo\",\n \"displayMetadata\": {\n \"configuration\": {\n \"defaultLayout\": \"FORM\",\n \"displayAndFormat\": {\n \"table\": {\n \"columnWidthByParameterRid\": {},\n \"enableFileImport\": true,\n \"fitHorizontally\": false,\n \"frozenColumnCount\": 0,\n \"rowHeightInLines\": 1,\n },\n },\n \"enableLayoutUserSwitch\": false,\n },\n \"description\": \"\",\n \"displayName\": \"Create Foo\",\n \"icon\": {\n \"blueprint\": {\n \"color\": \"#000000\",\n \"locator\": \"edit\",\n },\n \"type\": \"blueprint\",\n },\n \"successMessage\": [],\n \"typeClasses\": [],\n },\n \"entities\": {\n \"affectedInterfaceTypes\": [],\n \"affectedLinkTypes\": [],\n \"affectedObjectTypes\": [\n \"com.palantir.foo\",\n ],\n \"typeGroups\": [],\n },\n \"formContentOrdering\": [],\n \"parameterOrdering\": [\n \"ref\",\n \"team\",\n \"id\",\n \"date\",\n ],\n \"parameters\": {\n \"date\": {\n \"displayMetadata\": {\n \"description\": \"\",\n \"displayName\": \"Date\",\n \"typeClasses\": [],\n },\n \"id\": \"date\",\n \"type\": {\n \"date\": {},\n \"type\": \"date\",\n },\n },\n \"id\": {\n \"displayMetadata\": {\n \"description\": \"\",\n \"displayName\": \"Id\",\n \"typeClasses\": [],\n },\n \"id\": \"id\",\n \"type\": {\n \"string\": {},\n \"type\": \"string\",\n },\n },\n \"ref\": {\n \"displayMetadata\": {\n \"description\": \"\",\n \"displayName\": \"Ref\",\n \"typeClasses\": [],\n },\n \"id\": \"ref\",\n \"type\": {\n \"objectReference\": {\n \"objectTypeId\": \"myImport\",\n },\n \"type\": \"objectReference\",\n },\n },\n \"team\": {\n \"displayMetadata\": {\n \"description\": \"\",\n \"displayName\": \"Team\",\n \"typeClasses\": [],\n },\n \"id\": \"team\",\n \"type\": {\n \"string\": {},\n \"type\": \"string\",\n },\n },\n },\n \"sections\": {},\n \"status\": {\n \"active\": {},\n \"type\": \"active\",\n },\n },\n },\n },\n },\n \"blockPermissionInformation\": {\n \"actionTypes\": {},\n \"linkTypes\": {},\n \"objectTypes\": {},\n },\n \"interfaceTypes\": {},\n \"linkTypes\": {},\n \"objectTypes\": {\n \"com.palantir.foo\": {\n \"datasources\": [\n {\n \"datasource\": {\n \"datasetV2\": {\n \"datasetRid\": \"com.palantir.foo\",\n \"propertyMapping\": {\n \"date\": {\n \"column\": \"date\",\n \"type\": \"column\",\n },\n \"id\": {\n \"column\": \"id\",\n \"type\": \"column\",\n },\n \"team\": {\n \"column\": \"team\",\n \"type\": \"column\",\n },\n },\n },\n \"type\": \"datasetV2\",\n },\n \"editsConfiguration\": {\n \"onlyAllowPrivilegedEdits\": false,\n },\n \"redacted\": false,\n \"rid\": \"ri.ontology.main.datasource.com.palantir.foo\",\n },\n ],\n \"entityMetadata\": {\n \"arePatchesEnabled\": false,\n },\n \"objectType\": {\n \"allImplementsInterfaces\": {},\n \"apiName\": \"com.palantir.foo\",\n \"displayMetadata\": {\n \"description\": undefined,\n \"displayName\": \"Foo\",\n \"groupDisplayName\": undefined,\n \"icon\": {\n \"blueprint\": {\n \"color\": \"#2D72D2\",\n \"locator\": \"cube\",\n },\n \"type\": \"blueprint\",\n },\n \"pluralDisplayName\": \"Foos\",\n \"visibility\": \"NORMAL\",\n },\n \"implementsInterfaces2\": [],\n \"primaryKeys\": [\n \"id\",\n ],\n \"propertyTypes\": {\n \"date\": {\n \"apiName\": \"date\",\n \"baseFormatter\": undefined,\n \"dataConstraints\": undefined,\n \"displayMetadata\": {\n \"description\": undefined,\n \"displayName\": \"Date\",\n \"visibility\": \"NORMAL\",\n },\n \"indexedForSearch\": true,\n \"inlineAction\": undefined,\n \"ruleSetBinding\": undefined,\n \"sharedPropertyTypeApiName\": undefined,\n \"sharedPropertyTypeRid\": undefined,\n \"status\": {\n \"active\": {},\n \"type\": \"active\",\n },\n \"type\": {\n \"date\": {},\n \"type\": \"date\",\n },\n \"typeClasses\": [\n {\n \"kind\": \"render_hint\",\n \"name\": \"SELECTABLE\",\n },\n {\n \"kind\": \"render_hint\",\n \"name\": \"SORTABLE\",\n },\n ],\n \"valueType\": undefined,\n },\n \"id\": {\n \"apiName\": \"id\",\n \"baseFormatter\": undefined,\n \"dataConstraints\": undefined,\n \"displayMetadata\": {\n \"description\": undefined,\n \"displayName\": \"Id\",\n \"visibility\": \"NORMAL\",\n },\n \"indexedForSearch\": true,\n \"inlineAction\": undefined,\n \"ruleSetBinding\": undefined,\n \"sharedPropertyTypeApiName\": undefined,\n \"sharedPropertyTypeRid\": undefined,\n \"status\": {\n \"active\": {},\n \"type\": \"active\",\n },\n \"type\": {\n \"string\": {\n \"analyzerOverride\": undefined,\n \"enableAsciiFolding\": undefined,\n \"isLongText\": false,\n \"supportsEfficientLeadingWildcard\": false,\n \"supportsExactMatching\": true,\n },\n \"type\": \"string\",\n },\n \"typeClasses\": [\n {\n \"kind\": \"render_hint\",\n \"name\": \"SELECTABLE\",\n },\n {\n \"kind\": \"render_hint\",\n \"name\": \"SORTABLE\",\n },\n ],\n \"valueType\": undefined,\n },\n \"team\": {\n \"apiName\": \"team\",\n \"baseFormatter\": undefined,\n \"dataConstraints\": undefined,\n \"displayMetadata\": {\n \"description\": undefined,\n \"displayName\": \"Team\",\n \"visibility\": \"NORMAL\",\n },\n \"indexedForSearch\": true,\n \"inlineAction\": undefined,\n \"ruleSetBinding\": undefined,\n \"sharedPropertyTypeApiName\": undefined,\n \"sharedPropertyTypeRid\": undefined,\n \"status\": {\n \"active\": {},\n \"type\": \"active\",\n },\n \"type\": {\n \"string\": {\n \"analyzerOverride\": undefined,\n \"enableAsciiFolding\": undefined,\n \"isLongText\": false,\n \"supportsEfficientLeadingWildcard\": false,\n \"supportsExactMatching\": true,\n },\n \"type\": \"string\",\n },\n \"typeClasses\": [\n {\n \"kind\": \"render_hint\",\n \"name\": \"SELECTABLE\",\n },\n {\n \"kind\": \"render_hint\",\n \"name\": \"SORTABLE\",\n },\n ],\n \"valueType\": undefined,\n },\n },\n \"redacted\": false,\n \"status\": {\n \"active\": {},\n \"type\": \"active\",\n },\n \"titlePropertyTypeRid\": \"id\",\n },\n },\n },\n \"sharedPropertyTypes\": {},\n }\n `);\n expect(dumpOntologyFullMetadata().importedTypes).toMatchInlineSnapshot(`\n {\n \"actionTypes\": [],\n \"interfaceTypes\": [],\n \"linkTypes\": [],\n \"objectTypes\": [\n {\n \"apiName\": \"myImport\",\n \"description\": undefined,\n \"displayName\": \"MyImport\",\n \"propertyTypes\": [\n {\n \"apiName\": \"id\",\n \"description\": undefined,\n \"displayName\": \"Id\",\n \"sharedPropertyType\": undefined,\n \"type\": {\n \"string\": {\n \"analyzerOverride\": undefined,\n \"enableAsciiFolding\": undefined,\n \"isLongText\": false,\n \"supportsEfficientLeadingWildcard\": false,\n \"supportsExactMatching\": true,\n },\n \"type\": \"string\",\n },\n },\n {\n \"apiName\": \"name\",\n \"description\": undefined,\n \"displayName\": \"Name\",\n \"sharedPropertyType\": undefined,\n \"type\": {\n \"string\": {\n \"analyzerOverride\": undefined,\n \"enableAsciiFolding\": undefined,\n \"isLongText\": false,\n \"supportsEfficientLeadingWildcard\": false,\n \"supportsExactMatching\": true,\n },\n \"type\": \"string\",\n },\n },\n ],\n },\n ],\n \"sharedPropertyTypes\": [],\n }\n `);\n });\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,wBAAwB,EACxBC,YAAY,EACZC,cAAc,EACdC,wBAAwB,QACnB,aAAa;AACpB,SAASC,UAAU,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AACzD,SAASC,kBAAkB,QAAQ,uBAAuB;AAE1DH,QAAQ,CAAC,yBAAyB,EAAE,MAAM;EACxCD,UAAU,CAAC,YAAY;IACrB,MAAMF,cAAc,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC;EAC1D,CAAC,CAAC;EAEFG,QAAQ,CAAC,SAAS,EAAE,MAAM;IACxBE,EAAE,CAAC,iEAAiE,EAAE,MAAM;MAC1E,MAAME,cAAc,GAAGD,kBAAkB,CAAC;QACxCE,OAAO,EAAE,UAAU;QACnBC,UAAU,EAAE;UACVC,EAAE,EAAE;YAAEC,IAAI,EAAE;UAAS,CAAC;UACtBC,IAAI,EAAE;YAAED,IAAI,EAAE;UAAS;QACzB;MACF,CAAC,CAAC;MACF,MAAME,GAAG,GAAGd,YAAY,CAAC;QACvBS,OAAO,EAAE,KAAK;QACdM,WAAW,EAAE,KAAK;QAClBC,iBAAiB,EAAE,MAAM;QACzBC,oBAAoB,EAAE,IAAI;QAC1BC,yBAAyB,EAAE,IAAI;QAC/BR,UAAU,EAAE;UACV,IAAI,EAAE;YAAEE,IAAI,EAAE;UAAS,CAAC;UACxB,MAAM,EAAE;YAAEA,IAAI,EAAE;UAAO,CAAC;UACxB,MAAM,EAAE;YAAEA,IAAI,EAAE;UAAS;QAC3B;MACF,CAAC,CAAC;MACFb,wBAAwB,CAAC;QACvBoB,UAAU,EAAEL,GAAG;QACfM,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC;QAChDC,sBAAsB,EAAE;UACtB,KAAK,EAAE;YACLC,mBAAmB,EAAE;cACnBV,IAAI,EAAE,iBAAiB;cACvBW,eAAe,EAAE;gBACfC,YAAY,EAAEhB,cAAc,CAACC;cAC/B;YACF;UACF,CAAC;UACD,MAAM,EAAE;YACNgB,YAAY,EAAE;cACZb,IAAI,EAAE,8BAA8B;cACpCc,4BAA4B,EAAE;gBAC5BC,WAAW,EAAE,KAAK;gBAClBC,cAAc,EAAE;cAClB;YACF;UACF;QACF;MACF,CAAC,CAAC;MACFvB,MAAM,CAACH,wBAAwB,CAAC,CAAC,CAAC2B,SAAS,CAAC,CAACC,qBAAqB,CAAC;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,CAAC;MACJzB,MAAM,CAACH,wBAAwB,CAAC,CAAC,CAAC6B,aAAa,CAAC,CAACD,qBAAqB,CAAC;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,CAAC;IACN,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}