@osdk/maker 0.14.0-beta.5 → 0.14.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/browser/api/action/DefaultFormat.js +2 -0
  3. package/build/browser/api/action/DefaultFormat.js.map +1 -0
  4. package/build/browser/api/action/TableConfiguration.js +2 -0
  5. package/build/browser/api/action/TableConfiguration.js.map +1 -0
  6. package/build/browser/api/defineAction.js.map +1 -1
  7. package/build/browser/api/defineCreateInterfaceObjectAction.js +9 -1
  8. package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -1
  9. package/build/browser/api/defineCreateObjectAction.js +4 -2
  10. package/build/browser/api/defineCreateObjectAction.js.map +1 -1
  11. package/build/browser/api/defineCreateOrModifyObjectAction.js +4 -2
  12. package/build/browser/api/defineCreateOrModifyObjectAction.js.map +1 -1
  13. package/build/browser/api/defineModifyInterfaceObjectAction.js +8 -0
  14. package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -1
  15. package/build/browser/api/defineModifyObjectAction.js +4 -2
  16. package/build/browser/api/defineModifyObjectAction.js.map +1 -1
  17. package/build/browser/api/test/actions.test.js +1247 -1180
  18. package/build/browser/api/test/actions.test.js.map +1 -1
  19. package/build/browser/cli/main.js +1 -1
  20. package/build/cjs/index.cjs +30 -8
  21. package/build/cjs/index.cjs.map +1 -1
  22. package/build/cjs/index.d.cts +16 -4
  23. package/build/esm/api/action/DefaultFormat.js +2 -0
  24. package/build/esm/api/action/DefaultFormat.js.map +1 -0
  25. package/build/esm/api/action/TableConfiguration.js +2 -0
  26. package/build/esm/api/action/TableConfiguration.js.map +1 -0
  27. package/build/esm/api/defineAction.js.map +1 -1
  28. package/build/esm/api/defineCreateInterfaceObjectAction.js +9 -1
  29. package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -1
  30. package/build/esm/api/defineCreateObjectAction.js +4 -2
  31. package/build/esm/api/defineCreateObjectAction.js.map +1 -1
  32. package/build/esm/api/defineCreateOrModifyObjectAction.js +4 -2
  33. package/build/esm/api/defineCreateOrModifyObjectAction.js.map +1 -1
  34. package/build/esm/api/defineModifyInterfaceObjectAction.js +8 -0
  35. package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -1
  36. package/build/esm/api/defineModifyObjectAction.js +4 -2
  37. package/build/esm/api/defineModifyObjectAction.js.map +1 -1
  38. package/build/esm/api/test/actions.test.js +1247 -1180
  39. package/build/esm/api/test/actions.test.js.map +1 -1
  40. package/build/esm/cli/main.js +1 -1
  41. package/build/types/api/action/DefaultFormat.d.ts +1 -0
  42. package/build/types/api/action/DefaultFormat.d.ts.map +1 -0
  43. package/build/types/api/action/TableConfiguration.d.ts +8 -0
  44. package/build/types/api/action/TableConfiguration.d.ts.map +1 -0
  45. package/build/types/api/defineAction.d.ts +8 -4
  46. package/build/types/api/defineAction.d.ts.map +1 -1
  47. package/package.json +3 -3
@@ -1829,7 +1829,7 @@
1829
1829
  "valueTypes": [],
1830
1830
  },
1831
1831
  }
1832
- `);});it("Interface actions with customizations are properly defined",()=>{const property1=defineSharedPropertyType({apiName:"property1",type:"string"});const property2=defineSharedPropertyType({apiName:"property2",type:"string"});const property3=defineSharedPropertyType({apiName:"property3",type:"string"});const exampleInterface=defineInterface({apiName:"exampleInterface",properties:{property1,property2,property3}});defineCreateInterfaceObjectAction({interfaceType:exampleInterface,apiName:"custom-api-name-1",displayName:"Custom Create Action",status:"experimental",parameterConfiguration:{[property3.apiName]:{required:false,conditionalOverrides:[{type:"required",condition:{type:"and",conditions:[{type:"group",name:"parameterLevelGroup"},{type:"parameter",parameterId:property1.apiName,matches:{type:"staticValue",staticValue:{type:"string",string:"bar"}}}]}}],defaultValue:{type:"staticValue",staticValue:{type:"string",string:"default_fizz"}},displayName:"fizz_display",description:"fizz_description"}},excludedProperties:[property2.apiName],parameterOrdering:[property1.apiName,property3.apiName],enableLayoutSwitch:true,submissionMetadata:{successMessage:"Custom success message",undoButtonConfiguration:true,submitButtonDisplayMetadata:{intent:"DANGER",text:"Custom button"}}});defineModifyInterfaceObjectAction({interfaceType:exampleInterface,apiName:"custom-api-name-2",displayName:"Custom Modify Action",status:"experimental",parameterConfiguration:{[property3.apiName]:{required:false,conditionalOverrides:[{type:"required",condition:{type:"and",conditions:[{type:"group",name:"parameterLevelGroup"},{type:"parameter",parameterId:property1.apiName,matches:{type:"staticValue",staticValue:{type:"string",string:"bar"}}}]}}],defaultValue:{type:"staticValue",staticValue:{type:"string",string:"default_fizz"}},displayName:"fizz_display",description:"fizz_description"}},excludedProperties:[property2.apiName],parameterOrdering:[property1.apiName,property3.apiName],enableLayoutSwitch:true,submissionMetadata:{successMessage:"Custom success message",undoButtonConfiguration:true,submitButtonDisplayMetadata:{intent:"DANGER",text:"Custom button"}}});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
1832
+ `);});it("Interface actions with customizations are properly defined",()=>{const property1=defineSharedPropertyType({apiName:"property1",type:"string"});const property2=defineSharedPropertyType({apiName:"property2",type:"string"});const property3=defineSharedPropertyType({apiName:"property3",type:"string"});const exampleInterface=defineInterface({apiName:"exampleInterface",properties:{property1,property2,property3}});defineCreateInterfaceObjectAction({interfaceType:exampleInterface,apiName:"custom-api-name-1",displayName:"Custom Create Action",status:"experimental",actionLevelValidation:[{condition:{type:"group",name:"actionLevelGroup"}}],parameterConfiguration:{[property3.apiName]:{required:false,conditionalOverrides:[{type:"required",condition:{type:"and",conditions:[{type:"group",name:"parameterLevelGroup"},{type:"parameter",parameterId:property1.apiName,matches:{type:"staticValue",staticValue:{type:"string",string:"bar"}}}]}}],defaultValue:{type:"staticValue",staticValue:{type:"string",string:"default_fizz"}},displayName:"fizz_display",description:"fizz_description"}},excludedProperties:[property2.apiName],parameterOrdering:[property1.apiName,property3.apiName],enableLayoutSwitch:true,defaultFormat:"TABLE",tableConfiguration:{columnWidthByParameterRid:{},enableFileImport:false,fitHorizontally:true,frozenColumnCount:1,rowHeightInLines:10},submissionMetadata:{successMessage:"Custom success message",undoButtonConfiguration:true,submitButtonDisplayMetadata:{intent:"DANGER",text:"Custom button"}}});defineModifyInterfaceObjectAction({interfaceType:exampleInterface,apiName:"custom-api-name-2",displayName:"Custom Modify Action",status:"experimental",actionLevelValidation:[{condition:{type:"group",name:"actionLevelGroup"}}],parameterConfiguration:{[property3.apiName]:{required:false,conditionalOverrides:[{type:"required",condition:{type:"and",conditions:[{type:"group",name:"parameterLevelGroup"},{type:"parameter",parameterId:property1.apiName,matches:{type:"staticValue",staticValue:{type:"string",string:"bar"}}}]}}],defaultValue:{type:"staticValue",staticValue:{type:"string",string:"default_fizz"}},displayName:"fizz_display",description:"fizz_description"}},excludedProperties:[property2.apiName],parameterOrdering:[property1.apiName,property3.apiName],enableLayoutSwitch:true,defaultFormat:"TABLE",tableConfiguration:{columnWidthByParameterRid:{},enableFileImport:false,fitHorizontally:true,frozenColumnCount:1,rowHeightInLines:10},submissionMetadata:{successMessage:"Custom success message",undoButtonConfiguration:true,submitButtonDisplayMetadata:{intent:"DANGER",text:"Custom button"}}});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
1833
1833
  {
1834
1834
  "importedOntology": {
1835
1835
  "actionTypes": {},
@@ -1877,11 +1877,37 @@
1877
1877
  "rules": {
1878
1878
  "0": {
1879
1879
  "condition": {
1880
- "true": {},
1881
- "type": "true",
1880
+ "comparison": {
1881
+ "left": {
1882
+ "type": "userProperty",
1883
+ "userProperty": {
1884
+ "propertyValue": {
1885
+ "groupIds": {},
1886
+ "type": "groupIds",
1887
+ },
1888
+ "userId": {
1889
+ "currentUser": {},
1890
+ "type": "currentUser",
1891
+ },
1892
+ },
1893
+ },
1894
+ "operator": "INTERSECTS",
1895
+ "right": {
1896
+ "staticValue": {
1897
+ "stringList": {
1898
+ "strings": [
1899
+ "actionLevelGroup",
1900
+ ],
1901
+ },
1902
+ "type": "stringList",
1903
+ },
1904
+ "type": "staticValue",
1905
+ },
1906
+ },
1907
+ "type": "comparison",
1882
1908
  },
1883
1909
  "displayMetadata": {
1884
- "failureMessage": "",
1910
+ "failureMessage": "Did not satisfy validation",
1885
1911
  "typeClasses": [],
1886
1912
  },
1887
1913
  },
@@ -2059,14 +2085,14 @@
2059
2085
  "apiName": "com.palantir.custom-api-name-1",
2060
2086
  "displayMetadata": {
2061
2087
  "configuration": {
2062
- "defaultLayout": "FORM",
2088
+ "defaultLayout": "TABLE",
2063
2089
  "displayAndFormat": {
2064
2090
  "table": {
2065
2091
  "columnWidthByParameterRid": {},
2066
- "enableFileImport": true,
2067
- "fitHorizontally": false,
2068
- "frozenColumnCount": 0,
2069
- "rowHeightInLines": 1,
2092
+ "enableFileImport": false,
2093
+ "fitHorizontally": true,
2094
+ "frozenColumnCount": 1,
2095
+ "rowHeightInLines": 10,
2070
2096
  },
2071
2097
  },
2072
2098
  "enableLayoutUserSwitch": true,
@@ -2185,11 +2211,37 @@
2185
2211
  "rules": {
2186
2212
  "0": {
2187
2213
  "condition": {
2188
- "true": {},
2189
- "type": "true",
2214
+ "comparison": {
2215
+ "left": {
2216
+ "type": "userProperty",
2217
+ "userProperty": {
2218
+ "propertyValue": {
2219
+ "groupIds": {},
2220
+ "type": "groupIds",
2221
+ },
2222
+ "userId": {
2223
+ "currentUser": {},
2224
+ "type": "currentUser",
2225
+ },
2226
+ },
2227
+ },
2228
+ "operator": "INTERSECTS",
2229
+ "right": {
2230
+ "staticValue": {
2231
+ "stringList": {
2232
+ "strings": [
2233
+ "actionLevelGroup",
2234
+ ],
2235
+ },
2236
+ "type": "stringList",
2237
+ },
2238
+ "type": "staticValue",
2239
+ },
2240
+ },
2241
+ "type": "comparison",
2190
2242
  },
2191
2243
  "displayMetadata": {
2192
- "failureMessage": "",
2244
+ "failureMessage": "Did not satisfy validation",
2193
2245
  "typeClasses": [],
2194
2246
  },
2195
2247
  },
@@ -2363,14 +2415,14 @@
2363
2415
  "apiName": "com.palantir.custom-api-name-2",
2364
2416
  "displayMetadata": {
2365
2417
  "configuration": {
2366
- "defaultLayout": "FORM",
2418
+ "defaultLayout": "TABLE",
2367
2419
  "displayAndFormat": {
2368
2420
  "table": {
2369
2421
  "columnWidthByParameterRid": {},
2370
- "enableFileImport": true,
2371
- "fitHorizontally": false,
2372
- "frozenColumnCount": 0,
2373
- "rowHeightInLines": 1,
2422
+ "enableFileImport": false,
2423
+ "fitHorizontally": true,
2424
+ "frozenColumnCount": 1,
2425
+ "rowHeightInLines": 10,
2374
2426
  },
2375
2427
  },
2376
2428
  "enableLayoutUserSwitch": true,
@@ -2461,7 +2513,22 @@
2461
2513
  },
2462
2514
  },
2463
2515
  "blockPermissionInformation": {
2464
- "actionTypes": {},
2516
+ "actionTypes": {
2517
+ "com.palantir.custom-api-name-1": {
2518
+ "restrictionStatus": {
2519
+ "hasRolesApplied": true,
2520
+ "ontologyPackageRid": null,
2521
+ "publicProject": false,
2522
+ },
2523
+ },
2524
+ "com.palantir.custom-api-name-2": {
2525
+ "restrictionStatus": {
2526
+ "hasRolesApplied": true,
2527
+ "ontologyPackageRid": null,
2528
+ "publicProject": false,
2529
+ },
2530
+ },
2531
+ },
2465
2532
  "linkTypes": {},
2466
2533
  "objectTypes": {},
2467
2534
  },
@@ -4270,1408 +4337,1408 @@
4270
4337
  "valueTypes": [],
4271
4338
  },
4272
4339
  }
4273
- `);});it("Customizations on CRUD object type actions are properly defined",()=>{const exampleObjectType=defineObject({titlePropertyApiName:"bar",displayName:"exampleObjectType",pluralDisplayName:"exampleObjectTypes",apiName:"foo",primaryKeyPropertyApiName:"primary",properties:{"bar":{type:"string"},"fizz":{type:"string"},"buzz":{type:"string"},"primary":{type:"string"}}});defineCreateObjectAction({objectType:exampleObjectType,actionLevelValidation:[{condition:{type:"group",name:"actionLevelGroup"}},{condition:{type:"group",name:"actionLevelGroup2"},displayMetadata:{failureMessage:"Different custom failure message",typeClasses:[]}}],parameterOrdering:["bar","fizz","primary"],parameterConfiguration:{"fizz":{required:false,conditionalOverrides:[{type:"required",condition:{type:"and",conditions:[{type:"group",name:"parameterLevelGroup"},{type:"parameter",parameterId:"bar",matches:{type:"staticValue",staticValue:{type:"string",string:"bar"}}}]}}],defaultValue:{type:"staticValue",staticValue:{type:"string",string:"default_fizz"}},displayName:"fizz_display",description:"fizz_description"}},excludedProperties:["buzz"],defaultFormat:"TABLE",enableLayoutSwitch:true,submissionMetadata:{successMessage:"Custom success message",undoButtonConfiguration:true,submitButtonDisplayMetadata:{intent:"DANGER",text:"Custom button"}}});defineModifyObjectAction({objectType:exampleObjectType,actionLevelValidation:[{condition:{type:"group",name:"actionLevelGroup"}},{condition:{type:"group",name:"actionLevelGroup2"},displayMetadata:{failureMessage:"Different custom failure message",typeClasses:[]}}],parameterOrdering:["bar","fizz"],parameterConfiguration:{"fizz":{required:false,conditionalOverrides:[{type:"required",condition:{type:"and",conditions:[{type:"group",name:"parameterLevelGroup"},{type:"parameter",parameterId:"bar",matches:{type:"staticValue",staticValue:{type:"string",string:"bar"}}}]}}],defaultValue:{type:"staticValue",staticValue:{type:"string",string:"default_fizz"}},displayName:"fizz_display",description:"fizz_description"}},excludedProperties:["buzz"],defaultFormat:"TABLE",enableLayoutSwitch:true,submissionMetadata:{successMessage:"Custom success message",undoButtonConfiguration:true,submitButtonDisplayMetadata:{intent:"DANGER",text:"Custom button"}}});defineCreateOrModifyObjectAction({objectType:exampleObjectType,actionLevelValidation:[{condition:{type:"group",name:"actionLevelGroup"}},{condition:{type:"group",name:"actionLevelGroup2"},displayMetadata:{failureMessage:"Different custom failure message",typeClasses:[]}}],parameterOrdering:["bar","fizz"],parameterConfiguration:{"fizz":{required:false,conditionalOverrides:[{type:"required",condition:{type:"and",conditions:[{type:"group",name:"parameterLevelGroup"},{type:"parameter",parameterId:"bar",matches:{type:"staticValue",staticValue:{type:"string",string:"bar"}}}]}}],defaultValue:{type:"staticValue",staticValue:{type:"string",string:"default_fizz"}},displayName:"fizz_display",description:"fizz_description"}},excludedProperties:["buzz"],defaultFormat:"TABLE",enableLayoutSwitch:true,submissionMetadata:{successMessage:"Custom success message",undoButtonConfiguration:true,submitButtonDisplayMetadata:{intent:"DANGER",text:"Custom button"}},primaryKeyOption:"userInput"});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
4274
- {
4275
- "importedOntology": {
4340
+ `);});it("Customizations on CRUD object type actions are properly defined",()=>{const exampleObjectType=defineObject({titlePropertyApiName:"bar",displayName:"exampleObjectType",pluralDisplayName:"exampleObjectTypes",apiName:"foo",primaryKeyPropertyApiName:"primary",properties:{"bar":{type:"string"},"fizz":{type:"string"},"buzz":{type:"string"},"primary":{type:"string"}}});defineCreateObjectAction({objectType:exampleObjectType,actionLevelValidation:[{condition:{type:"group",name:"actionLevelGroup"}},{condition:{type:"group",name:"actionLevelGroup2"},displayMetadata:{failureMessage:"Different custom failure message",typeClasses:[]}}],parameterOrdering:["bar","fizz","primary"],parameterConfiguration:{"fizz":{required:false,conditionalOverrides:[{type:"required",condition:{type:"and",conditions:[{type:"group",name:"parameterLevelGroup"},{type:"parameter",parameterId:"bar",matches:{type:"staticValue",staticValue:{type:"string",string:"bar"}}}]}}],defaultValue:{type:"staticValue",staticValue:{type:"string",string:"default_fizz"}},displayName:"fizz_display",description:"fizz_description"}},excludedProperties:["buzz"],defaultFormat:"TABLE",enableLayoutSwitch:true,submissionMetadata:{successMessage:"Custom success message",undoButtonConfiguration:true,submitButtonDisplayMetadata:{intent:"DANGER",text:"Custom button"}},tableConfiguration:{columnWidthByParameterRid:{},enableFileImport:false,fitHorizontally:true,frozenColumnCount:1,rowHeightInLines:10}});defineModifyObjectAction({objectType:exampleObjectType,actionLevelValidation:[{condition:{type:"group",name:"actionLevelGroup"}},{condition:{type:"group",name:"actionLevelGroup2"},displayMetadata:{failureMessage:"Different custom failure message",typeClasses:[]}}],parameterOrdering:["bar","fizz"],parameterConfiguration:{"fizz":{required:false,conditionalOverrides:[{type:"required",condition:{type:"and",conditions:[{type:"group",name:"parameterLevelGroup"},{type:"parameter",parameterId:"bar",matches:{type:"staticValue",staticValue:{type:"string",string:"bar"}}}]}}],defaultValue:{type:"staticValue",staticValue:{type:"string",string:"default_fizz"}},displayName:"fizz_display",description:"fizz_description"}},excludedProperties:["buzz"],defaultFormat:"TABLE",enableLayoutSwitch:true,submissionMetadata:{successMessage:"Custom success message",undoButtonConfiguration:true,submitButtonDisplayMetadata:{intent:"DANGER",text:"Custom button"}},tableConfiguration:{columnWidthByParameterRid:{},enableFileImport:false,fitHorizontally:true,frozenColumnCount:1,rowHeightInLines:10}});defineCreateOrModifyObjectAction({objectType:exampleObjectType,actionLevelValidation:[{condition:{type:"group",name:"actionLevelGroup"}},{condition:{type:"group",name:"actionLevelGroup2"},displayMetadata:{failureMessage:"Different custom failure message",typeClasses:[]}}],parameterOrdering:["bar","fizz"],parameterConfiguration:{"fizz":{required:false,conditionalOverrides:[{type:"required",condition:{type:"and",conditions:[{type:"group",name:"parameterLevelGroup"},{type:"parameter",parameterId:"bar",matches:{type:"staticValue",staticValue:{type:"string",string:"bar"}}}]}}],defaultValue:{type:"staticValue",staticValue:{type:"string",string:"default_fizz"}},displayName:"fizz_display",description:"fizz_description"}},excludedProperties:["buzz"],defaultFormat:"TABLE",enableLayoutSwitch:true,submissionMetadata:{successMessage:"Custom success message",undoButtonConfiguration:true,submitButtonDisplayMetadata:{intent:"DANGER",text:"Custom button"}},tableConfiguration:{columnWidthByParameterRid:{},enableFileImport:false,fitHorizontally:true,frozenColumnCount:1,rowHeightInLines:10},primaryKeyOption:"userInput"});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
4341
+ {
4342
+ "importedOntology": {
4343
+ "actionTypes": {},
4344
+ "blockPermissionInformation": {
4276
4345
  "actionTypes": {},
4277
- "blockPermissionInformation": {
4278
- "actionTypes": {},
4279
- "linkTypes": {},
4280
- "objectTypes": {},
4281
- },
4282
- "interfaceTypes": {},
4283
4346
  "linkTypes": {},
4284
4347
  "objectTypes": {},
4285
- "sharedPropertyTypes": {},
4286
- },
4287
- "importedValueTypes": {
4288
- "valueTypes": [],
4289
4348
  },
4290
- "ontology": {
4291
- "actionTypes": {
4292
- "com.palantir.create-object-foo": {
4293
- "actionType": {
4294
- "actionTypeLogic": {
4295
- "logic": {
4296
- "rules": [
4297
- {
4298
- "addObjectRule": {
4299
- "objectTypeId": "com.palantir.foo",
4300
- "propertyValues": {
4301
- "bar": {
4302
- "parameterId": "bar",
4303
- "type": "parameterId",
4304
- },
4305
- "fizz": {
4306
- "parameterId": "fizz",
4307
- "type": "parameterId",
4308
- },
4309
- "primary": {
4310
- "parameterId": "primary",
4311
- "type": "parameterId",
4312
- },
4349
+ "interfaceTypes": {},
4350
+ "linkTypes": {},
4351
+ "objectTypes": {},
4352
+ "sharedPropertyTypes": {},
4353
+ },
4354
+ "importedValueTypes": {
4355
+ "valueTypes": [],
4356
+ },
4357
+ "ontology": {
4358
+ "actionTypes": {
4359
+ "com.palantir.create-object-foo": {
4360
+ "actionType": {
4361
+ "actionTypeLogic": {
4362
+ "logic": {
4363
+ "rules": [
4364
+ {
4365
+ "addObjectRule": {
4366
+ "objectTypeId": "com.palantir.foo",
4367
+ "propertyValues": {
4368
+ "bar": {
4369
+ "parameterId": "bar",
4370
+ "type": "parameterId",
4371
+ },
4372
+ "fizz": {
4373
+ "parameterId": "fizz",
4374
+ "type": "parameterId",
4375
+ },
4376
+ "primary": {
4377
+ "parameterId": "primary",
4378
+ "type": "parameterId",
4313
4379
  },
4314
- "structFieldValues": {},
4315
4380
  },
4316
- "type": "addObjectRule",
4381
+ "structFieldValues": {},
4317
4382
  },
4318
- ],
4319
- },
4320
- "validation": {
4321
- "actionTypeLevelValidation": {
4322
- "rules": {
4323
- "0": {
4324
- "condition": {
4325
- "comparison": {
4326
- "left": {
4327
- "type": "userProperty",
4328
- "userProperty": {
4329
- "propertyValue": {
4330
- "groupIds": {},
4331
- "type": "groupIds",
4332
- },
4333
- "userId": {
4334
- "currentUser": {},
4335
- "type": "currentUser",
4336
- },
4383
+ "type": "addObjectRule",
4384
+ },
4385
+ ],
4386
+ },
4387
+ "validation": {
4388
+ "actionTypeLevelValidation": {
4389
+ "rules": {
4390
+ "0": {
4391
+ "condition": {
4392
+ "comparison": {
4393
+ "left": {
4394
+ "type": "userProperty",
4395
+ "userProperty": {
4396
+ "propertyValue": {
4397
+ "groupIds": {},
4398
+ "type": "groupIds",
4399
+ },
4400
+ "userId": {
4401
+ "currentUser": {},
4402
+ "type": "currentUser",
4337
4403
  },
4338
4404
  },
4339
- "operator": "INTERSECTS",
4340
- "right": {
4341
- "staticValue": {
4342
- "stringList": {
4343
- "strings": [
4344
- "actionLevelGroup",
4345
- ],
4346
- },
4347
- "type": "stringList",
4405
+ },
4406
+ "operator": "INTERSECTS",
4407
+ "right": {
4408
+ "staticValue": {
4409
+ "stringList": {
4410
+ "strings": [
4411
+ "actionLevelGroup",
4412
+ ],
4348
4413
  },
4349
- "type": "staticValue",
4414
+ "type": "stringList",
4350
4415
  },
4416
+ "type": "staticValue",
4351
4417
  },
4352
- "type": "comparison",
4353
- },
4354
- "displayMetadata": {
4355
- "failureMessage": "Did not satisfy validation",
4356
- "typeClasses": [],
4357
4418
  },
4419
+ "type": "comparison",
4358
4420
  },
4359
- "1": {
4360
- "condition": {
4361
- "comparison": {
4362
- "left": {
4363
- "type": "userProperty",
4364
- "userProperty": {
4365
- "propertyValue": {
4366
- "groupIds": {},
4367
- "type": "groupIds",
4368
- },
4369
- "userId": {
4370
- "currentUser": {},
4371
- "type": "currentUser",
4372
- },
4421
+ "displayMetadata": {
4422
+ "failureMessage": "Did not satisfy validation",
4423
+ "typeClasses": [],
4424
+ },
4425
+ },
4426
+ "1": {
4427
+ "condition": {
4428
+ "comparison": {
4429
+ "left": {
4430
+ "type": "userProperty",
4431
+ "userProperty": {
4432
+ "propertyValue": {
4433
+ "groupIds": {},
4434
+ "type": "groupIds",
4435
+ },
4436
+ "userId": {
4437
+ "currentUser": {},
4438
+ "type": "currentUser",
4373
4439
  },
4374
4440
  },
4375
- "operator": "INTERSECTS",
4376
- "right": {
4377
- "staticValue": {
4378
- "stringList": {
4379
- "strings": [
4380
- "actionLevelGroup2",
4381
- ],
4382
- },
4383
- "type": "stringList",
4441
+ },
4442
+ "operator": "INTERSECTS",
4443
+ "right": {
4444
+ "staticValue": {
4445
+ "stringList": {
4446
+ "strings": [
4447
+ "actionLevelGroup2",
4448
+ ],
4384
4449
  },
4385
- "type": "staticValue",
4450
+ "type": "stringList",
4386
4451
  },
4452
+ "type": "staticValue",
4387
4453
  },
4388
- "type": "comparison",
4389
- },
4390
- "displayMetadata": {
4391
- "failureMessage": "Different custom failure message",
4392
- "typeClasses": [],
4393
4454
  },
4455
+ "type": "comparison",
4456
+ },
4457
+ "displayMetadata": {
4458
+ "failureMessage": "Different custom failure message",
4459
+ "typeClasses": [],
4394
4460
  },
4395
4461
  },
4396
4462
  },
4397
- "parameterValidations": {
4398
- "bar": {
4399
- "conditionalOverrides": [],
4400
- "defaultValidation": {
4401
- "display": {
4402
- "renderHint": {
4403
- "textInput": {},
4404
- "type": "textInput",
4405
- },
4406
- "visibility": {
4407
- "editable": {},
4408
- "type": "editable",
4409
- },
4463
+ },
4464
+ "parameterValidations": {
4465
+ "bar": {
4466
+ "conditionalOverrides": [],
4467
+ "defaultValidation": {
4468
+ "display": {
4469
+ "renderHint": {
4470
+ "textInput": {},
4471
+ "type": "textInput",
4410
4472
  },
4411
- "validation": {
4412
- "allowedValues": {
4413
- "text": {
4414
- "text": {},
4415
- "type": "text",
4416
- },
4473
+ "visibility": {
4474
+ "editable": {},
4475
+ "type": "editable",
4476
+ },
4477
+ },
4478
+ "validation": {
4479
+ "allowedValues": {
4480
+ "text": {
4481
+ "text": {},
4417
4482
  "type": "text",
4418
4483
  },
4419
- "required": {
4420
- "notRequired": {},
4421
- "type": "notRequired",
4422
- },
4484
+ "type": "text",
4485
+ },
4486
+ "required": {
4487
+ "notRequired": {},
4488
+ "type": "notRequired",
4423
4489
  },
4424
4490
  },
4425
4491
  },
4426
- "fizz": {
4427
- "conditionalOverrides": [
4428
- {
4429
- "condition": {
4430
- "and": {
4431
- "conditions": [
4432
- {
4433
- "comparison": {
4434
- "left": {
4435
- "type": "userProperty",
4436
- "userProperty": {
4437
- "propertyValue": {
4438
- "groupIds": {},
4439
- "type": "groupIds",
4440
- },
4441
- "userId": {
4442
- "currentUser": {},
4443
- "type": "currentUser",
4444
- },
4445
- },
4446
- },
4447
- "operator": "INTERSECTS",
4448
- "right": {
4449
- "staticValue": {
4450
- "stringList": {
4451
- "strings": [
4452
- "parameterLevelGroup",
4453
- ],
4454
- },
4455
- "type": "stringList",
4492
+ },
4493
+ "fizz": {
4494
+ "conditionalOverrides": [
4495
+ {
4496
+ "condition": {
4497
+ "and": {
4498
+ "conditions": [
4499
+ {
4500
+ "comparison": {
4501
+ "left": {
4502
+ "type": "userProperty",
4503
+ "userProperty": {
4504
+ "propertyValue": {
4505
+ "groupIds": {},
4506
+ "type": "groupIds",
4507
+ },
4508
+ "userId": {
4509
+ "currentUser": {},
4510
+ "type": "currentUser",
4456
4511
  },
4457
- "type": "staticValue",
4458
- },
4459
- },
4460
- "type": "comparison",
4461
- },
4462
- {
4463
- "comparison": {
4464
- "left": {
4465
- "parameterId": "bar",
4466
- "type": "parameterId",
4467
4512
  },
4468
- "operator": "EQUALS",
4469
- "right": {
4470
- "staticValue": {
4471
- "string": "bar",
4472
- "type": "string",
4513
+ },
4514
+ "operator": "INTERSECTS",
4515
+ "right": {
4516
+ "staticValue": {
4517
+ "stringList": {
4518
+ "strings": [
4519
+ "parameterLevelGroup",
4520
+ ],
4473
4521
  },
4474
- "type": "staticValue",
4522
+ "type": "stringList",
4475
4523
  },
4524
+ "type": "staticValue",
4476
4525
  },
4477
- "type": "comparison",
4478
4526
  },
4479
- ],
4480
- },
4481
- "type": "and",
4482
- },
4483
- "parameterBlockOverrides": [
4484
- {
4485
- "parameterRequired": {
4486
- "required": {
4487
- "required": {},
4488
- "type": "required",
4527
+ "type": "comparison",
4528
+ },
4529
+ {
4530
+ "comparison": {
4531
+ "left": {
4532
+ "parameterId": "bar",
4533
+ "type": "parameterId",
4534
+ },
4535
+ "operator": "EQUALS",
4536
+ "right": {
4537
+ "staticValue": {
4538
+ "string": "bar",
4539
+ "type": "string",
4540
+ },
4541
+ "type": "staticValue",
4542
+ },
4489
4543
  },
4544
+ "type": "comparison",
4490
4545
  },
4491
- "type": "parameterRequired",
4492
- },
4493
- ],
4546
+ ],
4547
+ },
4548
+ "type": "and",
4494
4549
  },
4495
- ],
4496
- "defaultValidation": {
4497
- "display": {
4498
- "prefill": {
4499
- "staticValue": {
4500
- "string": "default_fizz",
4501
- "type": "string",
4550
+ "parameterBlockOverrides": [
4551
+ {
4552
+ "parameterRequired": {
4553
+ "required": {
4554
+ "required": {},
4555
+ "type": "required",
4556
+ },
4502
4557
  },
4503
- "type": "staticValue",
4504
- },
4505
- "renderHint": {
4506
- "textInput": {},
4507
- "type": "textInput",
4558
+ "type": "parameterRequired",
4508
4559
  },
4509
- "visibility": {
4510
- "editable": {},
4511
- "type": "editable",
4560
+ ],
4561
+ },
4562
+ ],
4563
+ "defaultValidation": {
4564
+ "display": {
4565
+ "prefill": {
4566
+ "staticValue": {
4567
+ "string": "default_fizz",
4568
+ "type": "string",
4512
4569
  },
4570
+ "type": "staticValue",
4513
4571
  },
4514
- "validation": {
4515
- "allowedValues": {
4516
- "text": {
4517
- "text": {},
4518
- "type": "text",
4519
- },
4572
+ "renderHint": {
4573
+ "textInput": {},
4574
+ "type": "textInput",
4575
+ },
4576
+ "visibility": {
4577
+ "editable": {},
4578
+ "type": "editable",
4579
+ },
4580
+ },
4581
+ "validation": {
4582
+ "allowedValues": {
4583
+ "text": {
4584
+ "text": {},
4520
4585
  "type": "text",
4521
4586
  },
4522
- "required": {
4523
- "notRequired": {},
4524
- "type": "notRequired",
4525
- },
4587
+ "type": "text",
4588
+ },
4589
+ "required": {
4590
+ "notRequired": {},
4591
+ "type": "notRequired",
4526
4592
  },
4527
4593
  },
4528
4594
  },
4529
- "primary": {
4530
- "conditionalOverrides": [],
4531
- "defaultValidation": {
4532
- "display": {
4533
- "renderHint": {
4534
- "textInput": {},
4535
- "type": "textInput",
4536
- },
4537
- "visibility": {
4538
- "editable": {},
4539
- "type": "editable",
4540
- },
4595
+ },
4596
+ "primary": {
4597
+ "conditionalOverrides": [],
4598
+ "defaultValidation": {
4599
+ "display": {
4600
+ "renderHint": {
4601
+ "textInput": {},
4602
+ "type": "textInput",
4541
4603
  },
4542
- "validation": {
4543
- "allowedValues": {
4544
- "text": {
4545
- "text": {},
4546
- "type": "text",
4547
- },
4604
+ "visibility": {
4605
+ "editable": {},
4606
+ "type": "editable",
4607
+ },
4608
+ },
4609
+ "validation": {
4610
+ "allowedValues": {
4611
+ "text": {
4612
+ "text": {},
4548
4613
  "type": "text",
4549
4614
  },
4550
- "required": {
4551
- "notRequired": {},
4552
- "type": "notRequired",
4553
- },
4615
+ "type": "text",
4616
+ },
4617
+ "required": {
4618
+ "notRequired": {},
4619
+ "type": "notRequired",
4554
4620
  },
4555
4621
  },
4556
4622
  },
4557
4623
  },
4558
- "sectionValidations": {},
4559
4624
  },
4625
+ "sectionValidations": {},
4560
4626
  },
4561
- "metadata": {
4562
- "apiName": "com.palantir.create-object-foo",
4563
- "displayMetadata": {
4564
- "configuration": {
4565
- "defaultLayout": "TABLE",
4566
- "displayAndFormat": {
4567
- "table": {
4568
- "columnWidthByParameterRid": {},
4569
- "enableFileImport": true,
4570
- "fitHorizontally": false,
4571
- "frozenColumnCount": 0,
4572
- "rowHeightInLines": 1,
4573
- },
4574
- },
4575
- "enableLayoutUserSwitch": true,
4576
- },
4577
- "description": "",
4578
- "displayName": "Create exampleObjectType",
4579
- "icon": {
4580
- "blueprint": {
4581
- "color": "#000000",
4582
- "locator": "edit",
4627
+ },
4628
+ "metadata": {
4629
+ "apiName": "com.palantir.create-object-foo",
4630
+ "displayMetadata": {
4631
+ "configuration": {
4632
+ "defaultLayout": "TABLE",
4633
+ "displayAndFormat": {
4634
+ "table": {
4635
+ "columnWidthByParameterRid": {},
4636
+ "enableFileImport": false,
4637
+ "fitHorizontally": true,
4638
+ "frozenColumnCount": 1,
4639
+ "rowHeightInLines": 10,
4583
4640
  },
4584
- "type": "blueprint",
4585
4641
  },
4586
- "submitButtonDisplayMetadata": {
4587
- "intent": "DANGER",
4588
- "text": "Custom button",
4642
+ "enableLayoutUserSwitch": true,
4643
+ },
4644
+ "description": "",
4645
+ "displayName": "Create exampleObjectType",
4646
+ "icon": {
4647
+ "blueprint": {
4648
+ "color": "#000000",
4649
+ "locator": "edit",
4589
4650
  },
4590
- "successMessage": [
4591
- {
4592
- "message": "Custom success message",
4593
- "type": "message",
4594
- },
4595
- ],
4596
- "typeClasses": [],
4597
- "undoButtonConfiguration": true,
4651
+ "type": "blueprint",
4598
4652
  },
4599
- "entities": {
4600
- "affectedInterfaceTypes": [],
4601
- "affectedLinkTypes": [],
4602
- "affectedObjectTypes": [
4603
- "com.palantir.foo",
4604
- ],
4605
- "typeGroups": [],
4653
+ "submitButtonDisplayMetadata": {
4654
+ "intent": "DANGER",
4655
+ "text": "Custom button",
4606
4656
  },
4607
- "formContentOrdering": [],
4608
- "parameterOrdering": [
4609
- "bar",
4610
- "fizz",
4611
- "primary",
4657
+ "successMessage": [
4658
+ {
4659
+ "message": "Custom success message",
4660
+ "type": "message",
4661
+ },
4612
4662
  ],
4613
- "parameters": {
4614
- "bar": {
4615
- "displayMetadata": {
4616
- "description": "",
4617
- "displayName": "Bar",
4618
- "typeClasses": [],
4619
- },
4620
- "id": "bar",
4621
- "type": {
4622
- "string": {},
4623
- "type": "string",
4624
- },
4663
+ "typeClasses": [],
4664
+ "undoButtonConfiguration": true,
4665
+ },
4666
+ "entities": {
4667
+ "affectedInterfaceTypes": [],
4668
+ "affectedLinkTypes": [],
4669
+ "affectedObjectTypes": [
4670
+ "com.palantir.foo",
4671
+ ],
4672
+ "typeGroups": [],
4673
+ },
4674
+ "formContentOrdering": [],
4675
+ "parameterOrdering": [
4676
+ "bar",
4677
+ "fizz",
4678
+ "primary",
4679
+ ],
4680
+ "parameters": {
4681
+ "bar": {
4682
+ "displayMetadata": {
4683
+ "description": "",
4684
+ "displayName": "Bar",
4685
+ "typeClasses": [],
4625
4686
  },
4626
- "fizz": {
4627
- "displayMetadata": {
4628
- "description": "fizz_description",
4629
- "displayName": "fizz_display",
4630
- "typeClasses": [],
4631
- },
4632
- "id": "fizz",
4633
- "type": {
4634
- "string": {},
4635
- "type": "string",
4636
- },
4687
+ "id": "bar",
4688
+ "type": {
4689
+ "string": {},
4690
+ "type": "string",
4637
4691
  },
4638
- "primary": {
4639
- "displayMetadata": {
4640
- "description": "",
4641
- "displayName": "Primary",
4642
- "typeClasses": [],
4643
- },
4644
- "id": "primary",
4645
- "type": {
4646
- "string": {},
4647
- "type": "string",
4648
- },
4692
+ },
4693
+ "fizz": {
4694
+ "displayMetadata": {
4695
+ "description": "fizz_description",
4696
+ "displayName": "fizz_display",
4697
+ "typeClasses": [],
4698
+ },
4699
+ "id": "fizz",
4700
+ "type": {
4701
+ "string": {},
4702
+ "type": "string",
4649
4703
  },
4650
4704
  },
4651
- "sections": {},
4652
- "status": {
4653
- "active": {},
4654
- "type": "active",
4705
+ "primary": {
4706
+ "displayMetadata": {
4707
+ "description": "",
4708
+ "displayName": "Primary",
4709
+ "typeClasses": [],
4710
+ },
4711
+ "id": "primary",
4712
+ "type": {
4713
+ "string": {},
4714
+ "type": "string",
4715
+ },
4655
4716
  },
4656
4717
  },
4718
+ "sections": {},
4719
+ "status": {
4720
+ "active": {},
4721
+ "type": "active",
4722
+ },
4657
4723
  },
4658
4724
  },
4659
- "com.palantir.create-or-modify-foo": {
4660
- "actionType": {
4661
- "actionTypeLogic": {
4662
- "logic": {
4663
- "rules": [
4664
- {
4665
- "addOrModifyObjectRuleV2": {
4666
- "objectToModify": "objectToCreateOrModifyParameter",
4667
- "propertyValues": {
4668
- "bar": {
4669
- "parameterId": "bar",
4670
- "type": "parameterId",
4671
- },
4672
- "fizz": {
4673
- "parameterId": "fizz",
4674
- "type": "parameterId",
4675
- },
4725
+ },
4726
+ "com.palantir.create-or-modify-foo": {
4727
+ "actionType": {
4728
+ "actionTypeLogic": {
4729
+ "logic": {
4730
+ "rules": [
4731
+ {
4732
+ "addOrModifyObjectRuleV2": {
4733
+ "objectToModify": "objectToCreateOrModifyParameter",
4734
+ "propertyValues": {
4735
+ "bar": {
4736
+ "parameterId": "bar",
4737
+ "type": "parameterId",
4738
+ },
4739
+ "fizz": {
4740
+ "parameterId": "fizz",
4741
+ "type": "parameterId",
4676
4742
  },
4677
- "structFieldValues": {},
4678
4743
  },
4679
- "type": "addOrModifyObjectRuleV2",
4744
+ "structFieldValues": {},
4680
4745
  },
4681
- ],
4682
- },
4683
- "validation": {
4684
- "actionTypeLevelValidation": {
4685
- "rules": {
4686
- "0": {
4687
- "condition": {
4688
- "comparison": {
4689
- "left": {
4690
- "type": "userProperty",
4691
- "userProperty": {
4692
- "propertyValue": {
4693
- "groupIds": {},
4694
- "type": "groupIds",
4695
- },
4696
- "userId": {
4697
- "currentUser": {},
4698
- "type": "currentUser",
4699
- },
4746
+ "type": "addOrModifyObjectRuleV2",
4747
+ },
4748
+ ],
4749
+ },
4750
+ "validation": {
4751
+ "actionTypeLevelValidation": {
4752
+ "rules": {
4753
+ "0": {
4754
+ "condition": {
4755
+ "comparison": {
4756
+ "left": {
4757
+ "type": "userProperty",
4758
+ "userProperty": {
4759
+ "propertyValue": {
4760
+ "groupIds": {},
4761
+ "type": "groupIds",
4762
+ },
4763
+ "userId": {
4764
+ "currentUser": {},
4765
+ "type": "currentUser",
4700
4766
  },
4701
4767
  },
4702
- "operator": "INTERSECTS",
4703
- "right": {
4704
- "staticValue": {
4705
- "stringList": {
4706
- "strings": [
4707
- "actionLevelGroup",
4708
- ],
4709
- },
4710
- "type": "stringList",
4768
+ },
4769
+ "operator": "INTERSECTS",
4770
+ "right": {
4771
+ "staticValue": {
4772
+ "stringList": {
4773
+ "strings": [
4774
+ "actionLevelGroup",
4775
+ ],
4711
4776
  },
4712
- "type": "staticValue",
4777
+ "type": "stringList",
4713
4778
  },
4779
+ "type": "staticValue",
4714
4780
  },
4715
- "type": "comparison",
4716
- },
4717
- "displayMetadata": {
4718
- "failureMessage": "Did not satisfy validation",
4719
- "typeClasses": [],
4720
4781
  },
4782
+ "type": "comparison",
4721
4783
  },
4722
- "1": {
4723
- "condition": {
4724
- "comparison": {
4725
- "left": {
4726
- "type": "userProperty",
4727
- "userProperty": {
4728
- "propertyValue": {
4729
- "groupIds": {},
4730
- "type": "groupIds",
4731
- },
4732
- "userId": {
4733
- "currentUser": {},
4734
- "type": "currentUser",
4735
- },
4784
+ "displayMetadata": {
4785
+ "failureMessage": "Did not satisfy validation",
4786
+ "typeClasses": [],
4787
+ },
4788
+ },
4789
+ "1": {
4790
+ "condition": {
4791
+ "comparison": {
4792
+ "left": {
4793
+ "type": "userProperty",
4794
+ "userProperty": {
4795
+ "propertyValue": {
4796
+ "groupIds": {},
4797
+ "type": "groupIds",
4798
+ },
4799
+ "userId": {
4800
+ "currentUser": {},
4801
+ "type": "currentUser",
4736
4802
  },
4737
4803
  },
4738
- "operator": "INTERSECTS",
4739
- "right": {
4740
- "staticValue": {
4741
- "stringList": {
4742
- "strings": [
4743
- "actionLevelGroup2",
4744
- ],
4745
- },
4746
- "type": "stringList",
4804
+ },
4805
+ "operator": "INTERSECTS",
4806
+ "right": {
4807
+ "staticValue": {
4808
+ "stringList": {
4809
+ "strings": [
4810
+ "actionLevelGroup2",
4811
+ ],
4747
4812
  },
4748
- "type": "staticValue",
4813
+ "type": "stringList",
4749
4814
  },
4815
+ "type": "staticValue",
4750
4816
  },
4751
- "type": "comparison",
4752
- },
4753
- "displayMetadata": {
4754
- "failureMessage": "Different custom failure message",
4755
- "typeClasses": [],
4756
4817
  },
4818
+ "type": "comparison",
4819
+ },
4820
+ "displayMetadata": {
4821
+ "failureMessage": "Different custom failure message",
4822
+ "typeClasses": [],
4757
4823
  },
4758
4824
  },
4759
4825
  },
4760
- "parameterValidations": {
4761
- "bar": {
4762
- "conditionalOverrides": [],
4763
- "defaultValidation": {
4764
- "display": {
4765
- "prefill": {
4766
- "objectParameterPropertyValue": {
4767
- "parameterId": "objectToCreateOrModifyParameter",
4768
- "propertyTypeId": "bar",
4769
- },
4770
- "type": "objectParameterPropertyValue",
4771
- },
4772
- "renderHint": {
4773
- "textInput": {},
4774
- "type": "textInput",
4775
- },
4776
- "visibility": {
4777
- "editable": {},
4778
- "type": "editable",
4826
+ },
4827
+ "parameterValidations": {
4828
+ "bar": {
4829
+ "conditionalOverrides": [],
4830
+ "defaultValidation": {
4831
+ "display": {
4832
+ "prefill": {
4833
+ "objectParameterPropertyValue": {
4834
+ "parameterId": "objectToCreateOrModifyParameter",
4835
+ "propertyTypeId": "bar",
4779
4836
  },
4837
+ "type": "objectParameterPropertyValue",
4780
4838
  },
4781
- "validation": {
4782
- "allowedValues": {
4783
- "text": {
4784
- "text": {},
4785
- "type": "text",
4786
- },
4839
+ "renderHint": {
4840
+ "textInput": {},
4841
+ "type": "textInput",
4842
+ },
4843
+ "visibility": {
4844
+ "editable": {},
4845
+ "type": "editable",
4846
+ },
4847
+ },
4848
+ "validation": {
4849
+ "allowedValues": {
4850
+ "text": {
4851
+ "text": {},
4787
4852
  "type": "text",
4788
4853
  },
4789
- "required": {
4790
- "notRequired": {},
4791
- "type": "notRequired",
4792
- },
4854
+ "type": "text",
4855
+ },
4856
+ "required": {
4857
+ "notRequired": {},
4858
+ "type": "notRequired",
4793
4859
  },
4794
4860
  },
4795
4861
  },
4796
- "fizz": {
4797
- "conditionalOverrides": [
4798
- {
4799
- "condition": {
4800
- "and": {
4801
- "conditions": [
4802
- {
4803
- "comparison": {
4804
- "left": {
4805
- "type": "userProperty",
4806
- "userProperty": {
4807
- "propertyValue": {
4808
- "groupIds": {},
4809
- "type": "groupIds",
4810
- },
4811
- "userId": {
4812
- "currentUser": {},
4813
- "type": "currentUser",
4814
- },
4862
+ },
4863
+ "fizz": {
4864
+ "conditionalOverrides": [
4865
+ {
4866
+ "condition": {
4867
+ "and": {
4868
+ "conditions": [
4869
+ {
4870
+ "comparison": {
4871
+ "left": {
4872
+ "type": "userProperty",
4873
+ "userProperty": {
4874
+ "propertyValue": {
4875
+ "groupIds": {},
4876
+ "type": "groupIds",
4815
4877
  },
4816
- },
4817
- "operator": "INTERSECTS",
4818
- "right": {
4819
- "staticValue": {
4820
- "stringList": {
4821
- "strings": [
4822
- "parameterLevelGroup",
4823
- ],
4824
- },
4825
- "type": "stringList",
4878
+ "userId": {
4879
+ "currentUser": {},
4880
+ "type": "currentUser",
4826
4881
  },
4827
- "type": "staticValue",
4828
4882
  },
4829
4883
  },
4830
- "type": "comparison",
4831
- },
4832
- {
4833
- "comparison": {
4834
- "left": {
4835
- "parameterId": "bar",
4836
- "type": "parameterId",
4837
- },
4838
- "operator": "EQUALS",
4839
- "right": {
4840
- "staticValue": {
4841
- "string": "bar",
4842
- "type": "string",
4884
+ "operator": "INTERSECTS",
4885
+ "right": {
4886
+ "staticValue": {
4887
+ "stringList": {
4888
+ "strings": [
4889
+ "parameterLevelGroup",
4890
+ ],
4843
4891
  },
4844
- "type": "staticValue",
4892
+ "type": "stringList",
4845
4893
  },
4894
+ "type": "staticValue",
4846
4895
  },
4847
- "type": "comparison",
4848
4896
  },
4849
- ],
4850
- },
4851
- "type": "and",
4852
- },
4853
- "parameterBlockOverrides": [
4854
- {
4855
- "parameterRequired": {
4856
- "required": {
4857
- "required": {},
4858
- "type": "required",
4897
+ "type": "comparison",
4898
+ },
4899
+ {
4900
+ "comparison": {
4901
+ "left": {
4902
+ "parameterId": "bar",
4903
+ "type": "parameterId",
4904
+ },
4905
+ "operator": "EQUALS",
4906
+ "right": {
4907
+ "staticValue": {
4908
+ "string": "bar",
4909
+ "type": "string",
4910
+ },
4911
+ "type": "staticValue",
4912
+ },
4859
4913
  },
4914
+ "type": "comparison",
4860
4915
  },
4861
- "type": "parameterRequired",
4862
- },
4863
- ],
4916
+ ],
4917
+ },
4918
+ "type": "and",
4864
4919
  },
4865
- ],
4866
- "defaultValidation": {
4867
- "display": {
4868
- "prefill": {
4869
- "staticValue": {
4870
- "string": "default_fizz",
4871
- "type": "string",
4920
+ "parameterBlockOverrides": [
4921
+ {
4922
+ "parameterRequired": {
4923
+ "required": {
4924
+ "required": {},
4925
+ "type": "required",
4926
+ },
4872
4927
  },
4873
- "type": "staticValue",
4874
- },
4875
- "renderHint": {
4876
- "textInput": {},
4877
- "type": "textInput",
4928
+ "type": "parameterRequired",
4878
4929
  },
4879
- "visibility": {
4880
- "editable": {},
4881
- "type": "editable",
4930
+ ],
4931
+ },
4932
+ ],
4933
+ "defaultValidation": {
4934
+ "display": {
4935
+ "prefill": {
4936
+ "staticValue": {
4937
+ "string": "default_fizz",
4938
+ "type": "string",
4882
4939
  },
4940
+ "type": "staticValue",
4883
4941
  },
4884
- "validation": {
4885
- "allowedValues": {
4886
- "text": {
4887
- "text": {},
4888
- "type": "text",
4889
- },
4942
+ "renderHint": {
4943
+ "textInput": {},
4944
+ "type": "textInput",
4945
+ },
4946
+ "visibility": {
4947
+ "editable": {},
4948
+ "type": "editable",
4949
+ },
4950
+ },
4951
+ "validation": {
4952
+ "allowedValues": {
4953
+ "text": {
4954
+ "text": {},
4890
4955
  "type": "text",
4891
4956
  },
4892
- "required": {
4893
- "notRequired": {},
4894
- "type": "notRequired",
4895
- },
4957
+ "type": "text",
4958
+ },
4959
+ "required": {
4960
+ "notRequired": {},
4961
+ "type": "notRequired",
4896
4962
  },
4897
4963
  },
4898
4964
  },
4899
- "objectToCreateOrModifyParameter": {
4900
- "conditionalOverrides": [],
4901
- "defaultValidation": {
4902
- "display": {
4903
- "renderHint": {
4904
- "dropdown": {},
4905
- "type": "dropdown",
4906
- },
4907
- "visibility": {
4908
- "editable": {},
4909
- "type": "editable",
4910
- },
4965
+ },
4966
+ "objectToCreateOrModifyParameter": {
4967
+ "conditionalOverrides": [],
4968
+ "defaultValidation": {
4969
+ "display": {
4970
+ "renderHint": {
4971
+ "dropdown": {},
4972
+ "type": "dropdown",
4911
4973
  },
4912
- "validation": {
4913
- "allowedValues": {
4914
- "objectQuery": {
4915
- "objectQuery": {},
4916
- "type": "objectQuery",
4917
- },
4974
+ "visibility": {
4975
+ "editable": {},
4976
+ "type": "editable",
4977
+ },
4978
+ },
4979
+ "validation": {
4980
+ "allowedValues": {
4981
+ "objectQuery": {
4982
+ "objectQuery": {},
4918
4983
  "type": "objectQuery",
4919
4984
  },
4920
- "required": {
4921
- "required": {},
4922
- "type": "required",
4923
- },
4985
+ "type": "objectQuery",
4986
+ },
4987
+ "required": {
4988
+ "required": {},
4989
+ "type": "required",
4924
4990
  },
4925
4991
  },
4926
4992
  },
4927
4993
  },
4928
- "sectionValidations": {},
4929
4994
  },
4995
+ "sectionValidations": {},
4930
4996
  },
4931
- "metadata": {
4932
- "apiName": "com.palantir.create-or-modify-foo",
4933
- "displayMetadata": {
4934
- "configuration": {
4935
- "defaultLayout": "TABLE",
4936
- "displayAndFormat": {
4937
- "table": {
4938
- "columnWidthByParameterRid": {},
4939
- "enableFileImport": true,
4940
- "fitHorizontally": false,
4941
- "frozenColumnCount": 0,
4942
- "rowHeightInLines": 1,
4943
- },
4944
- },
4945
- "enableLayoutUserSwitch": true,
4946
- },
4947
- "description": "",
4948
- "displayName": "Create or Modify exampleObjectType",
4949
- "icon": {
4950
- "blueprint": {
4951
- "color": "#000000",
4952
- "locator": "edit",
4997
+ },
4998
+ "metadata": {
4999
+ "apiName": "com.palantir.create-or-modify-foo",
5000
+ "displayMetadata": {
5001
+ "configuration": {
5002
+ "defaultLayout": "TABLE",
5003
+ "displayAndFormat": {
5004
+ "table": {
5005
+ "columnWidthByParameterRid": {},
5006
+ "enableFileImport": false,
5007
+ "fitHorizontally": true,
5008
+ "frozenColumnCount": 1,
5009
+ "rowHeightInLines": 10,
4953
5010
  },
4954
- "type": "blueprint",
4955
5011
  },
4956
- "submitButtonDisplayMetadata": {
4957
- "intent": "DANGER",
4958
- "text": "Custom button",
5012
+ "enableLayoutUserSwitch": true,
5013
+ },
5014
+ "description": "",
5015
+ "displayName": "Create or Modify exampleObjectType",
5016
+ "icon": {
5017
+ "blueprint": {
5018
+ "color": "#000000",
5019
+ "locator": "edit",
4959
5020
  },
4960
- "successMessage": [
4961
- {
4962
- "message": "Custom success message",
4963
- "type": "message",
4964
- },
4965
- ],
4966
- "typeClasses": [],
4967
- "undoButtonConfiguration": true,
5021
+ "type": "blueprint",
4968
5022
  },
4969
- "entities": {
4970
- "affectedInterfaceTypes": [],
4971
- "affectedLinkTypes": [],
4972
- "affectedObjectTypes": [
4973
- "com.palantir.foo",
4974
- ],
4975
- "typeGroups": [],
5023
+ "submitButtonDisplayMetadata": {
5024
+ "intent": "DANGER",
5025
+ "text": "Custom button",
4976
5026
  },
4977
- "formContentOrdering": [],
4978
- "parameterOrdering": [
4979
- "objectToCreateOrModifyParameter",
4980
- "bar",
4981
- "fizz",
5027
+ "successMessage": [
5028
+ {
5029
+ "message": "Custom success message",
5030
+ "type": "message",
5031
+ },
4982
5032
  ],
4983
- "parameters": {
4984
- "bar": {
4985
- "displayMetadata": {
4986
- "description": "",
4987
- "displayName": "Bar",
4988
- "typeClasses": [],
4989
- },
4990
- "id": "bar",
4991
- "type": {
4992
- "string": {},
4993
- "type": "string",
4994
- },
5033
+ "typeClasses": [],
5034
+ "undoButtonConfiguration": true,
5035
+ },
5036
+ "entities": {
5037
+ "affectedInterfaceTypes": [],
5038
+ "affectedLinkTypes": [],
5039
+ "affectedObjectTypes": [
5040
+ "com.palantir.foo",
5041
+ ],
5042
+ "typeGroups": [],
5043
+ },
5044
+ "formContentOrdering": [],
5045
+ "parameterOrdering": [
5046
+ "objectToCreateOrModifyParameter",
5047
+ "bar",
5048
+ "fizz",
5049
+ ],
5050
+ "parameters": {
5051
+ "bar": {
5052
+ "displayMetadata": {
5053
+ "description": "",
5054
+ "displayName": "Bar",
5055
+ "typeClasses": [],
4995
5056
  },
4996
- "fizz": {
4997
- "displayMetadata": {
4998
- "description": "fizz_description",
4999
- "displayName": "fizz_display",
5000
- "typeClasses": [],
5001
- },
5002
- "id": "fizz",
5003
- "type": {
5004
- "string": {},
5005
- "type": "string",
5006
- },
5057
+ "id": "bar",
5058
+ "type": {
5059
+ "string": {},
5060
+ "type": "string",
5007
5061
  },
5008
- "objectToCreateOrModifyParameter": {
5009
- "displayMetadata": {
5010
- "description": "",
5011
- "displayName": "Create or modify object",
5012
- "typeClasses": [],
5013
- },
5014
- "id": "objectToCreateOrModifyParameter",
5015
- "type": {
5016
- "objectReference": {
5017
- "maybeCreateObjectOption": {
5018
- "type": "userInput",
5019
- "userInput": {},
5020
- },
5021
- "objectTypeId": "com.palantir.foo",
5062
+ },
5063
+ "fizz": {
5064
+ "displayMetadata": {
5065
+ "description": "fizz_description",
5066
+ "displayName": "fizz_display",
5067
+ "typeClasses": [],
5068
+ },
5069
+ "id": "fizz",
5070
+ "type": {
5071
+ "string": {},
5072
+ "type": "string",
5073
+ },
5074
+ },
5075
+ "objectToCreateOrModifyParameter": {
5076
+ "displayMetadata": {
5077
+ "description": "",
5078
+ "displayName": "Create or modify object",
5079
+ "typeClasses": [],
5080
+ },
5081
+ "id": "objectToCreateOrModifyParameter",
5082
+ "type": {
5083
+ "objectReference": {
5084
+ "maybeCreateObjectOption": {
5085
+ "type": "userInput",
5086
+ "userInput": {},
5022
5087
  },
5023
- "type": "objectReference",
5088
+ "objectTypeId": "com.palantir.foo",
5024
5089
  },
5090
+ "type": "objectReference",
5025
5091
  },
5026
5092
  },
5027
- "sections": {},
5028
- "status": {
5029
- "active": {},
5030
- "type": "active",
5031
- },
5093
+ },
5094
+ "sections": {},
5095
+ "status": {
5096
+ "active": {},
5097
+ "type": "active",
5032
5098
  },
5033
5099
  },
5034
5100
  },
5035
- "com.palantir.modify-object-foo": {
5036
- "actionType": {
5037
- "actionTypeLogic": {
5038
- "logic": {
5039
- "rules": [
5040
- {
5041
- "modifyObjectRule": {
5042
- "objectToModify": "objectToModifyParameter",
5043
- "propertyValues": {
5044
- "bar": {
5045
- "parameterId": "bar",
5046
- "type": "parameterId",
5047
- },
5048
- "fizz": {
5049
- "parameterId": "fizz",
5050
- "type": "parameterId",
5051
- },
5101
+ },
5102
+ "com.palantir.modify-object-foo": {
5103
+ "actionType": {
5104
+ "actionTypeLogic": {
5105
+ "logic": {
5106
+ "rules": [
5107
+ {
5108
+ "modifyObjectRule": {
5109
+ "objectToModify": "objectToModifyParameter",
5110
+ "propertyValues": {
5111
+ "bar": {
5112
+ "parameterId": "bar",
5113
+ "type": "parameterId",
5114
+ },
5115
+ "fizz": {
5116
+ "parameterId": "fizz",
5117
+ "type": "parameterId",
5052
5118
  },
5053
- "structFieldValues": {},
5054
5119
  },
5055
- "type": "modifyObjectRule",
5120
+ "structFieldValues": {},
5056
5121
  },
5057
- ],
5058
- },
5059
- "validation": {
5060
- "actionTypeLevelValidation": {
5061
- "rules": {
5062
- "0": {
5063
- "condition": {
5064
- "comparison": {
5065
- "left": {
5066
- "type": "userProperty",
5067
- "userProperty": {
5068
- "propertyValue": {
5069
- "groupIds": {},
5070
- "type": "groupIds",
5071
- },
5072
- "userId": {
5073
- "currentUser": {},
5074
- "type": "currentUser",
5075
- },
5122
+ "type": "modifyObjectRule",
5123
+ },
5124
+ ],
5125
+ },
5126
+ "validation": {
5127
+ "actionTypeLevelValidation": {
5128
+ "rules": {
5129
+ "0": {
5130
+ "condition": {
5131
+ "comparison": {
5132
+ "left": {
5133
+ "type": "userProperty",
5134
+ "userProperty": {
5135
+ "propertyValue": {
5136
+ "groupIds": {},
5137
+ "type": "groupIds",
5138
+ },
5139
+ "userId": {
5140
+ "currentUser": {},
5141
+ "type": "currentUser",
5076
5142
  },
5077
5143
  },
5078
- "operator": "INTERSECTS",
5079
- "right": {
5080
- "staticValue": {
5081
- "stringList": {
5082
- "strings": [
5083
- "actionLevelGroup",
5084
- ],
5085
- },
5086
- "type": "stringList",
5144
+ },
5145
+ "operator": "INTERSECTS",
5146
+ "right": {
5147
+ "staticValue": {
5148
+ "stringList": {
5149
+ "strings": [
5150
+ "actionLevelGroup",
5151
+ ],
5087
5152
  },
5088
- "type": "staticValue",
5153
+ "type": "stringList",
5089
5154
  },
5155
+ "type": "staticValue",
5090
5156
  },
5091
- "type": "comparison",
5092
- },
5093
- "displayMetadata": {
5094
- "failureMessage": "Did not satisfy validation",
5095
- "typeClasses": [],
5096
5157
  },
5158
+ "type": "comparison",
5097
5159
  },
5098
- "1": {
5099
- "condition": {
5100
- "comparison": {
5101
- "left": {
5102
- "type": "userProperty",
5103
- "userProperty": {
5104
- "propertyValue": {
5105
- "groupIds": {},
5106
- "type": "groupIds",
5107
- },
5108
- "userId": {
5109
- "currentUser": {},
5110
- "type": "currentUser",
5111
- },
5160
+ "displayMetadata": {
5161
+ "failureMessage": "Did not satisfy validation",
5162
+ "typeClasses": [],
5163
+ },
5164
+ },
5165
+ "1": {
5166
+ "condition": {
5167
+ "comparison": {
5168
+ "left": {
5169
+ "type": "userProperty",
5170
+ "userProperty": {
5171
+ "propertyValue": {
5172
+ "groupIds": {},
5173
+ "type": "groupIds",
5174
+ },
5175
+ "userId": {
5176
+ "currentUser": {},
5177
+ "type": "currentUser",
5112
5178
  },
5113
5179
  },
5114
- "operator": "INTERSECTS",
5115
- "right": {
5116
- "staticValue": {
5117
- "stringList": {
5118
- "strings": [
5119
- "actionLevelGroup2",
5120
- ],
5121
- },
5122
- "type": "stringList",
5180
+ },
5181
+ "operator": "INTERSECTS",
5182
+ "right": {
5183
+ "staticValue": {
5184
+ "stringList": {
5185
+ "strings": [
5186
+ "actionLevelGroup2",
5187
+ ],
5123
5188
  },
5124
- "type": "staticValue",
5189
+ "type": "stringList",
5125
5190
  },
5191
+ "type": "staticValue",
5126
5192
  },
5127
- "type": "comparison",
5128
- },
5129
- "displayMetadata": {
5130
- "failureMessage": "Different custom failure message",
5131
- "typeClasses": [],
5132
5193
  },
5194
+ "type": "comparison",
5195
+ },
5196
+ "displayMetadata": {
5197
+ "failureMessage": "Different custom failure message",
5198
+ "typeClasses": [],
5133
5199
  },
5134
5200
  },
5135
5201
  },
5136
- "parameterValidations": {
5137
- "bar": {
5138
- "conditionalOverrides": [],
5139
- "defaultValidation": {
5140
- "display": {
5141
- "prefill": {
5142
- "objectParameterPropertyValue": {
5143
- "parameterId": "objectToModifyParameter",
5144
- "propertyTypeId": "bar",
5145
- },
5146
- "type": "objectParameterPropertyValue",
5147
- },
5148
- "renderHint": {
5149
- "textInput": {},
5150
- "type": "textInput",
5151
- },
5152
- "visibility": {
5153
- "editable": {},
5154
- "type": "editable",
5202
+ },
5203
+ "parameterValidations": {
5204
+ "bar": {
5205
+ "conditionalOverrides": [],
5206
+ "defaultValidation": {
5207
+ "display": {
5208
+ "prefill": {
5209
+ "objectParameterPropertyValue": {
5210
+ "parameterId": "objectToModifyParameter",
5211
+ "propertyTypeId": "bar",
5155
5212
  },
5213
+ "type": "objectParameterPropertyValue",
5156
5214
  },
5157
- "validation": {
5158
- "allowedValues": {
5159
- "text": {
5160
- "text": {},
5161
- "type": "text",
5162
- },
5215
+ "renderHint": {
5216
+ "textInput": {},
5217
+ "type": "textInput",
5218
+ },
5219
+ "visibility": {
5220
+ "editable": {},
5221
+ "type": "editable",
5222
+ },
5223
+ },
5224
+ "validation": {
5225
+ "allowedValues": {
5226
+ "text": {
5227
+ "text": {},
5163
5228
  "type": "text",
5164
5229
  },
5165
- "required": {
5166
- "notRequired": {},
5167
- "type": "notRequired",
5168
- },
5230
+ "type": "text",
5231
+ },
5232
+ "required": {
5233
+ "notRequired": {},
5234
+ "type": "notRequired",
5169
5235
  },
5170
5236
  },
5171
5237
  },
5172
- "fizz": {
5173
- "conditionalOverrides": [
5174
- {
5175
- "condition": {
5176
- "and": {
5177
- "conditions": [
5178
- {
5179
- "comparison": {
5180
- "left": {
5181
- "type": "userProperty",
5182
- "userProperty": {
5183
- "propertyValue": {
5184
- "groupIds": {},
5185
- "type": "groupIds",
5186
- },
5187
- "userId": {
5188
- "currentUser": {},
5189
- "type": "currentUser",
5190
- },
5238
+ },
5239
+ "fizz": {
5240
+ "conditionalOverrides": [
5241
+ {
5242
+ "condition": {
5243
+ "and": {
5244
+ "conditions": [
5245
+ {
5246
+ "comparison": {
5247
+ "left": {
5248
+ "type": "userProperty",
5249
+ "userProperty": {
5250
+ "propertyValue": {
5251
+ "groupIds": {},
5252
+ "type": "groupIds",
5191
5253
  },
5192
- },
5193
- "operator": "INTERSECTS",
5194
- "right": {
5195
- "staticValue": {
5196
- "stringList": {
5197
- "strings": [
5198
- "parameterLevelGroup",
5199
- ],
5200
- },
5201
- "type": "stringList",
5254
+ "userId": {
5255
+ "currentUser": {},
5256
+ "type": "currentUser",
5202
5257
  },
5203
- "type": "staticValue",
5204
5258
  },
5205
5259
  },
5206
- "type": "comparison",
5207
- },
5208
- {
5209
- "comparison": {
5210
- "left": {
5211
- "parameterId": "bar",
5212
- "type": "parameterId",
5213
- },
5214
- "operator": "EQUALS",
5215
- "right": {
5216
- "staticValue": {
5217
- "string": "bar",
5218
- "type": "string",
5260
+ "operator": "INTERSECTS",
5261
+ "right": {
5262
+ "staticValue": {
5263
+ "stringList": {
5264
+ "strings": [
5265
+ "parameterLevelGroup",
5266
+ ],
5219
5267
  },
5220
- "type": "staticValue",
5268
+ "type": "stringList",
5221
5269
  },
5270
+ "type": "staticValue",
5222
5271
  },
5223
- "type": "comparison",
5224
5272
  },
5225
- ],
5226
- },
5227
- "type": "and",
5228
- },
5229
- "parameterBlockOverrides": [
5230
- {
5231
- "parameterRequired": {
5232
- "required": {
5233
- "required": {},
5234
- "type": "required",
5273
+ "type": "comparison",
5274
+ },
5275
+ {
5276
+ "comparison": {
5277
+ "left": {
5278
+ "parameterId": "bar",
5279
+ "type": "parameterId",
5280
+ },
5281
+ "operator": "EQUALS",
5282
+ "right": {
5283
+ "staticValue": {
5284
+ "string": "bar",
5285
+ "type": "string",
5286
+ },
5287
+ "type": "staticValue",
5288
+ },
5235
5289
  },
5290
+ "type": "comparison",
5236
5291
  },
5237
- "type": "parameterRequired",
5238
- },
5239
- ],
5240
- },
5241
- ],
5242
- "defaultValidation": {
5243
- "display": {
5244
- "prefill": {
5245
- "staticValue": {
5246
- "string": "default_fizz",
5247
- "type": "string",
5248
- },
5249
- "type": "staticValue",
5250
- },
5251
- "renderHint": {
5252
- "textInput": {},
5253
- "type": "textInput",
5254
- },
5255
- "visibility": {
5256
- "editable": {},
5257
- "type": "editable",
5292
+ ],
5258
5293
  },
5294
+ "type": "and",
5259
5295
  },
5260
- "validation": {
5261
- "allowedValues": {
5262
- "text": {
5263
- "text": {},
5264
- "type": "text",
5296
+ "parameterBlockOverrides": [
5297
+ {
5298
+ "parameterRequired": {
5299
+ "required": {
5300
+ "required": {},
5301
+ "type": "required",
5302
+ },
5265
5303
  },
5266
- "type": "text",
5304
+ "type": "parameterRequired",
5267
5305
  },
5268
- "required": {
5269
- "notRequired": {},
5270
- "type": "notRequired",
5306
+ ],
5307
+ },
5308
+ ],
5309
+ "defaultValidation": {
5310
+ "display": {
5311
+ "prefill": {
5312
+ "staticValue": {
5313
+ "string": "default_fizz",
5314
+ "type": "string",
5271
5315
  },
5316
+ "type": "staticValue",
5272
5317
  },
5273
- },
5274
- },
5275
- "objectToModifyParameter": {
5276
- "conditionalOverrides": [],
5277
- "defaultValidation": {
5278
- "display": {
5279
- "renderHint": {
5280
- "dropdown": {},
5281
- "type": "dropdown",
5282
- },
5283
- "visibility": {
5284
- "editable": {},
5285
- "type": "editable",
5318
+ "renderHint": {
5319
+ "textInput": {},
5320
+ "type": "textInput",
5321
+ },
5322
+ "visibility": {
5323
+ "editable": {},
5324
+ "type": "editable",
5325
+ },
5326
+ },
5327
+ "validation": {
5328
+ "allowedValues": {
5329
+ "text": {
5330
+ "text": {},
5331
+ "type": "text",
5286
5332
  },
5333
+ "type": "text",
5287
5334
  },
5288
- "validation": {
5289
- "allowedValues": {
5290
- "objectQuery": {
5291
- "objectQuery": {},
5292
- "type": "objectQuery",
5293
- },
5335
+ "required": {
5336
+ "notRequired": {},
5337
+ "type": "notRequired",
5338
+ },
5339
+ },
5340
+ },
5341
+ },
5342
+ "objectToModifyParameter": {
5343
+ "conditionalOverrides": [],
5344
+ "defaultValidation": {
5345
+ "display": {
5346
+ "renderHint": {
5347
+ "dropdown": {},
5348
+ "type": "dropdown",
5349
+ },
5350
+ "visibility": {
5351
+ "editable": {},
5352
+ "type": "editable",
5353
+ },
5354
+ },
5355
+ "validation": {
5356
+ "allowedValues": {
5357
+ "objectQuery": {
5358
+ "objectQuery": {},
5294
5359
  "type": "objectQuery",
5295
5360
  },
5296
- "required": {
5297
- "required": {},
5298
- "type": "required",
5299
- },
5361
+ "type": "objectQuery",
5362
+ },
5363
+ "required": {
5364
+ "required": {},
5365
+ "type": "required",
5300
5366
  },
5301
5367
  },
5302
5368
  },
5303
5369
  },
5304
- "sectionValidations": {},
5305
5370
  },
5371
+ "sectionValidations": {},
5306
5372
  },
5307
- "metadata": {
5308
- "apiName": "com.palantir.modify-object-foo",
5309
- "displayMetadata": {
5310
- "configuration": {
5311
- "defaultLayout": "TABLE",
5312
- "displayAndFormat": {
5313
- "table": {
5314
- "columnWidthByParameterRid": {},
5315
- "enableFileImport": true,
5316
- "fitHorizontally": false,
5317
- "frozenColumnCount": 0,
5318
- "rowHeightInLines": 1,
5319
- },
5320
- },
5321
- "enableLayoutUserSwitch": true,
5322
- },
5323
- "description": "",
5324
- "displayName": "Modify exampleObjectType",
5325
- "icon": {
5326
- "blueprint": {
5327
- "color": "#000000",
5328
- "locator": "edit",
5373
+ },
5374
+ "metadata": {
5375
+ "apiName": "com.palantir.modify-object-foo",
5376
+ "displayMetadata": {
5377
+ "configuration": {
5378
+ "defaultLayout": "TABLE",
5379
+ "displayAndFormat": {
5380
+ "table": {
5381
+ "columnWidthByParameterRid": {},
5382
+ "enableFileImport": false,
5383
+ "fitHorizontally": true,
5384
+ "frozenColumnCount": 1,
5385
+ "rowHeightInLines": 10,
5329
5386
  },
5330
- "type": "blueprint",
5331
5387
  },
5332
- "submitButtonDisplayMetadata": {
5333
- "intent": "DANGER",
5334
- "text": "Custom button",
5388
+ "enableLayoutUserSwitch": true,
5389
+ },
5390
+ "description": "",
5391
+ "displayName": "Modify exampleObjectType",
5392
+ "icon": {
5393
+ "blueprint": {
5394
+ "color": "#000000",
5395
+ "locator": "edit",
5335
5396
  },
5336
- "successMessage": [
5337
- {
5338
- "message": "Custom success message",
5339
- "type": "message",
5340
- },
5341
- ],
5342
- "typeClasses": [],
5343
- "undoButtonConfiguration": true,
5397
+ "type": "blueprint",
5344
5398
  },
5345
- "entities": {
5346
- "affectedInterfaceTypes": [],
5347
- "affectedLinkTypes": [],
5348
- "affectedObjectTypes": [
5349
- "com.palantir.foo",
5350
- ],
5351
- "typeGroups": [],
5399
+ "submitButtonDisplayMetadata": {
5400
+ "intent": "DANGER",
5401
+ "text": "Custom button",
5352
5402
  },
5353
- "formContentOrdering": [],
5354
- "parameterOrdering": [
5355
- "objectToModifyParameter",
5356
- "bar",
5357
- "fizz",
5403
+ "successMessage": [
5404
+ {
5405
+ "message": "Custom success message",
5406
+ "type": "message",
5407
+ },
5358
5408
  ],
5359
- "parameters": {
5360
- "bar": {
5361
- "displayMetadata": {
5362
- "description": "",
5363
- "displayName": "Bar",
5364
- "typeClasses": [],
5365
- },
5366
- "id": "bar",
5367
- "type": {
5368
- "string": {},
5369
- "type": "string",
5370
- },
5409
+ "typeClasses": [],
5410
+ "undoButtonConfiguration": true,
5411
+ },
5412
+ "entities": {
5413
+ "affectedInterfaceTypes": [],
5414
+ "affectedLinkTypes": [],
5415
+ "affectedObjectTypes": [
5416
+ "com.palantir.foo",
5417
+ ],
5418
+ "typeGroups": [],
5419
+ },
5420
+ "formContentOrdering": [],
5421
+ "parameterOrdering": [
5422
+ "objectToModifyParameter",
5423
+ "bar",
5424
+ "fizz",
5425
+ ],
5426
+ "parameters": {
5427
+ "bar": {
5428
+ "displayMetadata": {
5429
+ "description": "",
5430
+ "displayName": "Bar",
5431
+ "typeClasses": [],
5371
5432
  },
5372
- "fizz": {
5373
- "displayMetadata": {
5374
- "description": "fizz_description",
5375
- "displayName": "fizz_display",
5376
- "typeClasses": [],
5377
- },
5378
- "id": "fizz",
5379
- "type": {
5380
- "string": {},
5381
- "type": "string",
5382
- },
5433
+ "id": "bar",
5434
+ "type": {
5435
+ "string": {},
5436
+ "type": "string",
5383
5437
  },
5384
- "objectToModifyParameter": {
5385
- "displayMetadata": {
5386
- "description": "",
5387
- "displayName": "Modify object",
5388
- "typeClasses": [],
5389
- },
5390
- "id": "objectToModifyParameter",
5391
- "type": {
5392
- "objectReference": {
5393
- "objectTypeId": "com.palantir.foo",
5394
- },
5395
- "type": "objectReference",
5396
- },
5438
+ },
5439
+ "fizz": {
5440
+ "displayMetadata": {
5441
+ "description": "fizz_description",
5442
+ "displayName": "fizz_display",
5443
+ "typeClasses": [],
5444
+ },
5445
+ "id": "fizz",
5446
+ "type": {
5447
+ "string": {},
5448
+ "type": "string",
5397
5449
  },
5398
5450
  },
5399
- "sections": {},
5400
- "status": {
5401
- "active": {},
5402
- "type": "active",
5451
+ "objectToModifyParameter": {
5452
+ "displayMetadata": {
5453
+ "description": "",
5454
+ "displayName": "Modify object",
5455
+ "typeClasses": [],
5456
+ },
5457
+ "id": "objectToModifyParameter",
5458
+ "type": {
5459
+ "objectReference": {
5460
+ "objectTypeId": "com.palantir.foo",
5461
+ },
5462
+ "type": "objectReference",
5463
+ },
5403
5464
  },
5404
5465
  },
5466
+ "sections": {},
5467
+ "status": {
5468
+ "active": {},
5469
+ "type": "active",
5470
+ },
5405
5471
  },
5406
5472
  },
5407
5473
  },
5408
- "blockPermissionInformation": {
5409
- "actionTypes": {
5410
- "com.palantir.create-object-foo": {
5411
- "restrictionStatus": {
5412
- "hasRolesApplied": true,
5413
- "ontologyPackageRid": null,
5414
- "publicProject": false,
5415
- },
5474
+ },
5475
+ "blockPermissionInformation": {
5476
+ "actionTypes": {
5477
+ "com.palantir.create-object-foo": {
5478
+ "restrictionStatus": {
5479
+ "hasRolesApplied": true,
5480
+ "ontologyPackageRid": null,
5481
+ "publicProject": false,
5416
5482
  },
5417
- "com.palantir.create-or-modify-foo": {
5418
- "restrictionStatus": {
5419
- "hasRolesApplied": true,
5420
- "ontologyPackageRid": null,
5421
- "publicProject": false,
5422
- },
5483
+ },
5484
+ "com.palantir.create-or-modify-foo": {
5485
+ "restrictionStatus": {
5486
+ "hasRolesApplied": true,
5487
+ "ontologyPackageRid": null,
5488
+ "publicProject": false,
5423
5489
  },
5424
- "com.palantir.modify-object-foo": {
5425
- "restrictionStatus": {
5426
- "hasRolesApplied": true,
5427
- "ontologyPackageRid": null,
5428
- "publicProject": false,
5429
- },
5490
+ },
5491
+ "com.palantir.modify-object-foo": {
5492
+ "restrictionStatus": {
5493
+ "hasRolesApplied": true,
5494
+ "ontologyPackageRid": null,
5495
+ "publicProject": false,
5430
5496
  },
5431
5497
  },
5432
- "linkTypes": {},
5433
- "objectTypes": {},
5434
5498
  },
5435
- "interfaceTypes": {},
5436
5499
  "linkTypes": {},
5437
- "objectTypes": {
5438
- "com.palantir.foo": {
5439
- "datasources": [
5440
- {
5441
- "datasource": {
5442
- "datasetV2": {
5443
- "datasetRid": "com.palantir.foo",
5444
- "propertyMapping": {
5445
- "bar": {
5446
- "column": "bar",
5447
- "type": "column",
5448
- },
5449
- "buzz": {
5450
- "column": "buzz",
5451
- "type": "column",
5452
- },
5453
- "fizz": {
5454
- "column": "fizz",
5455
- "type": "column",
5456
- },
5457
- "primary": {
5458
- "column": "primary",
5459
- "type": "column",
5460
- },
5500
+ "objectTypes": {},
5501
+ },
5502
+ "interfaceTypes": {},
5503
+ "linkTypes": {},
5504
+ "objectTypes": {
5505
+ "com.palantir.foo": {
5506
+ "datasources": [
5507
+ {
5508
+ "datasource": {
5509
+ "datasetV2": {
5510
+ "datasetRid": "com.palantir.foo",
5511
+ "propertyMapping": {
5512
+ "bar": {
5513
+ "column": "bar",
5514
+ "type": "column",
5515
+ },
5516
+ "buzz": {
5517
+ "column": "buzz",
5518
+ "type": "column",
5519
+ },
5520
+ "fizz": {
5521
+ "column": "fizz",
5522
+ "type": "column",
5523
+ },
5524
+ "primary": {
5525
+ "column": "primary",
5526
+ "type": "column",
5461
5527
  },
5462
5528
  },
5463
- "type": "datasetV2",
5464
- },
5465
- "datasourceName": "com.palantir.foo",
5466
- "editsConfiguration": {
5467
- "onlyAllowPrivilegedEdits": false,
5468
5529
  },
5469
- "redacted": false,
5530
+ "type": "datasetV2",
5470
5531
  },
5471
- ],
5472
- "entityMetadata": {
5473
- "arePatchesEnabled": false,
5532
+ "datasourceName": "com.palantir.foo",
5533
+ "editsConfiguration": {
5534
+ "onlyAllowPrivilegedEdits": false,
5535
+ },
5536
+ "redacted": false,
5474
5537
  },
5475
- "objectType": {
5476
- "allImplementsInterfaces": {},
5477
- "apiName": "com.palantir.foo",
5478
- "displayMetadata": {
5479
- "description": undefined,
5480
- "displayName": "exampleObjectType",
5481
- "groupDisplayName": undefined,
5482
- "icon": {
5483
- "blueprint": {
5484
- "color": "#2D72D2",
5485
- "locator": "cube",
5486
- },
5487
- "type": "blueprint",
5538
+ ],
5539
+ "entityMetadata": {
5540
+ "arePatchesEnabled": false,
5541
+ },
5542
+ "objectType": {
5543
+ "allImplementsInterfaces": {},
5544
+ "apiName": "com.palantir.foo",
5545
+ "displayMetadata": {
5546
+ "description": undefined,
5547
+ "displayName": "exampleObjectType",
5548
+ "groupDisplayName": undefined,
5549
+ "icon": {
5550
+ "blueprint": {
5551
+ "color": "#2D72D2",
5552
+ "locator": "cube",
5488
5553
  },
5489
- "pluralDisplayName": "exampleObjectTypes",
5490
- "visibility": "NORMAL",
5554
+ "type": "blueprint",
5491
5555
  },
5492
- "implementsInterfaces2": [],
5493
- "primaryKeys": [
5494
- "primary",
5495
- ],
5496
- "propertyTypes": {
5497
- "bar": {
5498
- "apiName": "bar",
5499
- "baseFormatter": undefined,
5500
- "dataConstraints": undefined,
5501
- "displayMetadata": {
5502
- "description": undefined,
5503
- "displayName": "Bar",
5504
- "visibility": "NORMAL",
5556
+ "pluralDisplayName": "exampleObjectTypes",
5557
+ "visibility": "NORMAL",
5558
+ },
5559
+ "implementsInterfaces2": [],
5560
+ "primaryKeys": [
5561
+ "primary",
5562
+ ],
5563
+ "propertyTypes": {
5564
+ "bar": {
5565
+ "apiName": "bar",
5566
+ "baseFormatter": undefined,
5567
+ "dataConstraints": undefined,
5568
+ "displayMetadata": {
5569
+ "description": undefined,
5570
+ "displayName": "Bar",
5571
+ "visibility": "NORMAL",
5572
+ },
5573
+ "indexedForSearch": true,
5574
+ "inlineAction": undefined,
5575
+ "ruleSetBinding": undefined,
5576
+ "sharedPropertyTypeApiName": undefined,
5577
+ "sharedPropertyTypeRid": undefined,
5578
+ "status": {
5579
+ "active": {},
5580
+ "type": "active",
5581
+ },
5582
+ "type": {
5583
+ "string": {
5584
+ "analyzerOverride": undefined,
5585
+ "enableAsciiFolding": undefined,
5586
+ "isLongText": false,
5587
+ "supportsEfficientLeadingWildcard": false,
5588
+ "supportsExactMatching": true,
5505
5589
  },
5506
- "indexedForSearch": true,
5507
- "inlineAction": undefined,
5508
- "ruleSetBinding": undefined,
5509
- "sharedPropertyTypeApiName": undefined,
5510
- "sharedPropertyTypeRid": undefined,
5511
- "status": {
5512
- "active": {},
5513
- "type": "active",
5590
+ "type": "string",
5591
+ },
5592
+ "typeClasses": [
5593
+ {
5594
+ "kind": "render_hint",
5595
+ "name": "SELECTABLE",
5514
5596
  },
5515
- "type": {
5516
- "string": {
5517
- "analyzerOverride": undefined,
5518
- "enableAsciiFolding": undefined,
5519
- "isLongText": false,
5520
- "supportsEfficientLeadingWildcard": false,
5521
- "supportsExactMatching": true,
5522
- },
5523
- "type": "string",
5597
+ {
5598
+ "kind": "render_hint",
5599
+ "name": "SORTABLE",
5524
5600
  },
5525
- "typeClasses": [
5526
- {
5527
- "kind": "render_hint",
5528
- "name": "SELECTABLE",
5529
- },
5530
- {
5531
- "kind": "render_hint",
5532
- "name": "SORTABLE",
5533
- },
5534
- ],
5535
- "valueType": undefined,
5601
+ ],
5602
+ "valueType": undefined,
5603
+ },
5604
+ "buzz": {
5605
+ "apiName": "buzz",
5606
+ "baseFormatter": undefined,
5607
+ "dataConstraints": undefined,
5608
+ "displayMetadata": {
5609
+ "description": undefined,
5610
+ "displayName": "Buzz",
5611
+ "visibility": "NORMAL",
5612
+ },
5613
+ "indexedForSearch": true,
5614
+ "inlineAction": undefined,
5615
+ "ruleSetBinding": undefined,
5616
+ "sharedPropertyTypeApiName": undefined,
5617
+ "sharedPropertyTypeRid": undefined,
5618
+ "status": {
5619
+ "active": {},
5620
+ "type": "active",
5536
5621
  },
5537
- "buzz": {
5538
- "apiName": "buzz",
5539
- "baseFormatter": undefined,
5540
- "dataConstraints": undefined,
5541
- "displayMetadata": {
5542
- "description": undefined,
5543
- "displayName": "Buzz",
5544
- "visibility": "NORMAL",
5622
+ "type": {
5623
+ "string": {
5624
+ "analyzerOverride": undefined,
5625
+ "enableAsciiFolding": undefined,
5626
+ "isLongText": false,
5627
+ "supportsEfficientLeadingWildcard": false,
5628
+ "supportsExactMatching": true,
5545
5629
  },
5546
- "indexedForSearch": true,
5547
- "inlineAction": undefined,
5548
- "ruleSetBinding": undefined,
5549
- "sharedPropertyTypeApiName": undefined,
5550
- "sharedPropertyTypeRid": undefined,
5551
- "status": {
5552
- "active": {},
5553
- "type": "active",
5630
+ "type": "string",
5631
+ },
5632
+ "typeClasses": [
5633
+ {
5634
+ "kind": "render_hint",
5635
+ "name": "SELECTABLE",
5554
5636
  },
5555
- "type": {
5556
- "string": {
5557
- "analyzerOverride": undefined,
5558
- "enableAsciiFolding": undefined,
5559
- "isLongText": false,
5560
- "supportsEfficientLeadingWildcard": false,
5561
- "supportsExactMatching": true,
5562
- },
5563
- "type": "string",
5637
+ {
5638
+ "kind": "render_hint",
5639
+ "name": "SORTABLE",
5564
5640
  },
5565
- "typeClasses": [
5566
- {
5567
- "kind": "render_hint",
5568
- "name": "SELECTABLE",
5569
- },
5570
- {
5571
- "kind": "render_hint",
5572
- "name": "SORTABLE",
5573
- },
5574
- ],
5575
- "valueType": undefined,
5641
+ ],
5642
+ "valueType": undefined,
5643
+ },
5644
+ "fizz": {
5645
+ "apiName": "fizz",
5646
+ "baseFormatter": undefined,
5647
+ "dataConstraints": undefined,
5648
+ "displayMetadata": {
5649
+ "description": undefined,
5650
+ "displayName": "Fizz",
5651
+ "visibility": "NORMAL",
5652
+ },
5653
+ "indexedForSearch": true,
5654
+ "inlineAction": undefined,
5655
+ "ruleSetBinding": undefined,
5656
+ "sharedPropertyTypeApiName": undefined,
5657
+ "sharedPropertyTypeRid": undefined,
5658
+ "status": {
5659
+ "active": {},
5660
+ "type": "active",
5576
5661
  },
5577
- "fizz": {
5578
- "apiName": "fizz",
5579
- "baseFormatter": undefined,
5580
- "dataConstraints": undefined,
5581
- "displayMetadata": {
5582
- "description": undefined,
5583
- "displayName": "Fizz",
5584
- "visibility": "NORMAL",
5662
+ "type": {
5663
+ "string": {
5664
+ "analyzerOverride": undefined,
5665
+ "enableAsciiFolding": undefined,
5666
+ "isLongText": false,
5667
+ "supportsEfficientLeadingWildcard": false,
5668
+ "supportsExactMatching": true,
5585
5669
  },
5586
- "indexedForSearch": true,
5587
- "inlineAction": undefined,
5588
- "ruleSetBinding": undefined,
5589
- "sharedPropertyTypeApiName": undefined,
5590
- "sharedPropertyTypeRid": undefined,
5591
- "status": {
5592
- "active": {},
5593
- "type": "active",
5670
+ "type": "string",
5671
+ },
5672
+ "typeClasses": [
5673
+ {
5674
+ "kind": "render_hint",
5675
+ "name": "SELECTABLE",
5594
5676
  },
5595
- "type": {
5596
- "string": {
5597
- "analyzerOverride": undefined,
5598
- "enableAsciiFolding": undefined,
5599
- "isLongText": false,
5600
- "supportsEfficientLeadingWildcard": false,
5601
- "supportsExactMatching": true,
5602
- },
5603
- "type": "string",
5677
+ {
5678
+ "kind": "render_hint",
5679
+ "name": "SORTABLE",
5604
5680
  },
5605
- "typeClasses": [
5606
- {
5607
- "kind": "render_hint",
5608
- "name": "SELECTABLE",
5609
- },
5610
- {
5611
- "kind": "render_hint",
5612
- "name": "SORTABLE",
5613
- },
5614
- ],
5615
- "valueType": undefined,
5681
+ ],
5682
+ "valueType": undefined,
5683
+ },
5684
+ "primary": {
5685
+ "apiName": "primary",
5686
+ "baseFormatter": undefined,
5687
+ "dataConstraints": undefined,
5688
+ "displayMetadata": {
5689
+ "description": undefined,
5690
+ "displayName": "Primary",
5691
+ "visibility": "NORMAL",
5692
+ },
5693
+ "indexedForSearch": true,
5694
+ "inlineAction": undefined,
5695
+ "ruleSetBinding": undefined,
5696
+ "sharedPropertyTypeApiName": undefined,
5697
+ "sharedPropertyTypeRid": undefined,
5698
+ "status": {
5699
+ "active": {},
5700
+ "type": "active",
5616
5701
  },
5617
- "primary": {
5618
- "apiName": "primary",
5619
- "baseFormatter": undefined,
5620
- "dataConstraints": undefined,
5621
- "displayMetadata": {
5622
- "description": undefined,
5623
- "displayName": "Primary",
5624
- "visibility": "NORMAL",
5702
+ "type": {
5703
+ "string": {
5704
+ "analyzerOverride": undefined,
5705
+ "enableAsciiFolding": undefined,
5706
+ "isLongText": false,
5707
+ "supportsEfficientLeadingWildcard": false,
5708
+ "supportsExactMatching": true,
5625
5709
  },
5626
- "indexedForSearch": true,
5627
- "inlineAction": undefined,
5628
- "ruleSetBinding": undefined,
5629
- "sharedPropertyTypeApiName": undefined,
5630
- "sharedPropertyTypeRid": undefined,
5631
- "status": {
5632
- "active": {},
5633
- "type": "active",
5710
+ "type": "string",
5711
+ },
5712
+ "typeClasses": [
5713
+ {
5714
+ "kind": "render_hint",
5715
+ "name": "SELECTABLE",
5634
5716
  },
5635
- "type": {
5636
- "string": {
5637
- "analyzerOverride": undefined,
5638
- "enableAsciiFolding": undefined,
5639
- "isLongText": false,
5640
- "supportsEfficientLeadingWildcard": false,
5641
- "supportsExactMatching": true,
5642
- },
5643
- "type": "string",
5717
+ {
5718
+ "kind": "render_hint",
5719
+ "name": "SORTABLE",
5644
5720
  },
5645
- "typeClasses": [
5646
- {
5647
- "kind": "render_hint",
5648
- "name": "SELECTABLE",
5649
- },
5650
- {
5651
- "kind": "render_hint",
5652
- "name": "SORTABLE",
5653
- },
5654
- ],
5655
- "valueType": undefined,
5656
- },
5657
- },
5658
- "redacted": false,
5659
- "status": {
5660
- "active": {},
5661
- "type": "active",
5721
+ ],
5722
+ "valueType": undefined,
5662
5723
  },
5663
- "titlePropertyTypeRid": "bar",
5664
5724
  },
5725
+ "redacted": false,
5726
+ "status": {
5727
+ "active": {},
5728
+ "type": "active",
5729
+ },
5730
+ "titlePropertyTypeRid": "bar",
5665
5731
  },
5666
5732
  },
5667
- "sharedPropertyTypes": {},
5668
- },
5669
- "randomnessKey": undefined,
5670
- "valueTypes": {
5671
- "valueTypes": [],
5672
5733
  },
5673
- }
5674
- `);});it("Non-parameter mapped properties are properly defined",()=>{const exampleObjectType=defineObject({titlePropertyApiName:"bar",displayName:"exampleObjectType",pluralDisplayName:"exampleObjectTypes",apiName:"foo",primaryKeyPropertyApiName:"bar",properties:{"bar":{type:"string"},"fizz":{type:"string"},"buzz":{type:"timestamp"}}});defineCreateObjectAction({objectType:exampleObjectType,nonParameterMappings:{"fizz":{type:"currentUser"},"buzz":{type:"currentTime"}}});defineModifyObjectAction({objectType:exampleObjectType,nonParameterMappings:{"fizz":{type:"currentUser"},"buzz":{type:"currentTime"}}});defineCreateOrModifyObjectAction({objectType:exampleObjectType,nonParameterMappings:{"fizz":{type:"currentUser"},"buzz":{type:"currentTime"}}});const property1=defineSharedPropertyType({apiName:"property1",type:"string"});const property2=defineSharedPropertyType({apiName:"property2",type:"string"});const exampleInterface=defineInterface({apiName:"exampleInterface",properties:{property1,property2}});defineCreateInterfaceObjectAction({interfaceType:exampleInterface,nonParameterMappings:{[property1.apiName]:{type:"currentUser"},[property2.apiName]:{type:"currentTime"}}});defineModifyInterfaceObjectAction({interfaceType:exampleInterface,nonParameterMappings:{[property1.apiName]:{type:"currentUser"},[property2.apiName]:{type:"currentTime"}}});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
5734
+ "sharedPropertyTypes": {},
5735
+ },
5736
+ "randomnessKey": undefined,
5737
+ "valueTypes": {
5738
+ "valueTypes": [],
5739
+ },
5740
+ }
5741
+ `);});it("Non-parameter mapped properties are properly defined",()=>{const exampleObjectType=defineObject({titlePropertyApiName:"bar",displayName:"exampleObjectType",pluralDisplayName:"exampleObjectTypes",apiName:"foo",primaryKeyPropertyApiName:"bar",properties:{"bar":{type:"string"},"fizz":{type:"string"},"buzz":{type:"timestamp"}}});defineCreateObjectAction({objectType:exampleObjectType,nonParameterMappings:{"fizz":{type:"currentUser"},"buzz":{type:"currentTime"}}});defineModifyObjectAction({objectType:exampleObjectType,nonParameterMappings:{"fizz":{type:"currentUser"},"buzz":{type:"currentTime"}}});defineCreateOrModifyObjectAction({objectType:exampleObjectType,nonParameterMappings:{"fizz":{type:"currentUser"},"buzz":{type:"currentTime"}}});const property1=defineSharedPropertyType({apiName:"property1",type:"string"});const property2=defineSharedPropertyType({apiName:"property2",type:"string"});const exampleInterface=defineInterface({apiName:"exampleInterface",properties:{property1,property2}});defineCreateInterfaceObjectAction({interfaceType:exampleInterface,nonParameterMappings:{[property1.apiName]:{type:"currentUser"},[property2.apiName]:{type:"currentTime"}}});defineModifyInterfaceObjectAction({interfaceType:exampleInterface,nonParameterMappings:{[property1.apiName]:{type:"currentUser"},[property2.apiName]:{type:"currentTime"}}});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
5675
5742
  {
5676
5743
  "importedOntology": {
5677
5744
  "actionTypes": {},