@osdk/maker 0.15.0-beta.2 → 0.15.0-beta.4

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 (66) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/build/browser/api/action/ActionParameterAllowedValues.js.map +1 -1
  3. package/build/browser/api/defineAction.js +84 -3
  4. package/build/browser/api/defineAction.js.map +1 -1
  5. package/build/browser/api/defineCreateInterfaceObjectAction.js +3 -0
  6. package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -1
  7. package/build/browser/api/defineCreateObjectAction.js +3 -0
  8. package/build/browser/api/defineCreateObjectAction.js.map +1 -1
  9. package/build/browser/api/defineCreateOrModifyObjectAction.js +3 -0
  10. package/build/browser/api/defineCreateOrModifyObjectAction.js.map +1 -1
  11. package/build/browser/api/defineDeleteInterfaceObjectAction.js +4 -1
  12. package/build/browser/api/defineDeleteInterfaceObjectAction.js.map +1 -1
  13. package/build/browser/api/defineDeleteObjectAction.js +7 -19
  14. package/build/browser/api/defineDeleteObjectAction.js.map +1 -1
  15. package/build/browser/api/defineModifyInterfaceObjectAction.js +3 -0
  16. package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -1
  17. package/build/browser/api/defineModifyObjectAction.js +3 -0
  18. package/build/browser/api/defineModifyObjectAction.js.map +1 -1
  19. package/build/browser/api/defineOntology.js +41 -1
  20. package/build/browser/api/defineOntology.js.map +1 -1
  21. package/build/browser/api/test/actions.test.js +2129 -1318
  22. package/build/browser/api/test/actions.test.js.map +1 -1
  23. package/build/browser/cli/main.js +1 -1
  24. package/build/browser/conversion/toMarketplace/convertActionValidation.js +1 -1
  25. package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -1
  26. package/build/browser/index.js +1 -1
  27. package/build/browser/index.js.map +1 -1
  28. package/build/cjs/index.cjs +152 -24
  29. package/build/cjs/index.cjs.map +1 -1
  30. package/build/cjs/index.d.cts +24 -1
  31. package/build/esm/api/action/ActionParameterAllowedValues.js.map +1 -1
  32. package/build/esm/api/defineAction.js +84 -3
  33. package/build/esm/api/defineAction.js.map +1 -1
  34. package/build/esm/api/defineCreateInterfaceObjectAction.js +3 -0
  35. package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -1
  36. package/build/esm/api/defineCreateObjectAction.js +3 -0
  37. package/build/esm/api/defineCreateObjectAction.js.map +1 -1
  38. package/build/esm/api/defineCreateOrModifyObjectAction.js +3 -0
  39. package/build/esm/api/defineCreateOrModifyObjectAction.js.map +1 -1
  40. package/build/esm/api/defineDeleteInterfaceObjectAction.js +4 -1
  41. package/build/esm/api/defineDeleteInterfaceObjectAction.js.map +1 -1
  42. package/build/esm/api/defineDeleteObjectAction.js +7 -19
  43. package/build/esm/api/defineDeleteObjectAction.js.map +1 -1
  44. package/build/esm/api/defineModifyInterfaceObjectAction.js +3 -0
  45. package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -1
  46. package/build/esm/api/defineModifyObjectAction.js +3 -0
  47. package/build/esm/api/defineModifyObjectAction.js.map +1 -1
  48. package/build/esm/api/defineOntology.js +41 -1
  49. package/build/esm/api/defineOntology.js.map +1 -1
  50. package/build/esm/api/test/actions.test.js +2129 -1318
  51. package/build/esm/api/test/actions.test.js.map +1 -1
  52. package/build/esm/cli/main.js +1 -1
  53. package/build/esm/conversion/toMarketplace/convertActionValidation.js +1 -1
  54. package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -1
  55. package/build/esm/index.js +1 -1
  56. package/build/esm/index.js.map +1 -1
  57. package/build/types/api/action/ActionParameterAllowedValues.d.ts +14 -0
  58. package/build/types/api/action/ActionParameterAllowedValues.d.ts.map +1 -1
  59. package/build/types/api/defineAction.d.ts +10 -0
  60. package/build/types/api/defineAction.d.ts.map +1 -1
  61. package/build/types/api/defineDeleteObjectAction.d.ts.map +1 -1
  62. package/build/types/api/defineOntology.d.ts +2 -2
  63. package/build/types/api/defineOntology.d.ts.map +1 -1
  64. package/build/types/index.d.ts +1 -1
  65. package/build/types/index.d.ts.map +1 -1
  66. package/package.json +3 -3
@@ -12,7 +12,7 @@
12
12
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
- */import{beforeEach,describe,expect,it}from"vitest";import{OntologyEntityTypeEnum}from"../common/OntologyEntityTypeEnum.js";import{CREATE_INTERFACE_OBJECT_PARAMETER,CREATE_OR_MODIFY_OBJECT_PARAMETER,defineAction,MODIFY_INTERFACE_OBJECT_PARAMETER,MODIFY_OBJECT_PARAMETER}from"../defineAction.js";import{defineCreateInterfaceObjectAction}from"../defineCreateInterfaceObjectAction.js";import{defineCreateObjectAction}from"../defineCreateObjectAction.js";import{defineCreateOrModifyObjectAction}from"../defineCreateOrModifyObjectAction.js";import{defineDeleteInterfaceObjectAction}from"../defineDeleteInterfaceObjectAction.js";import{defineDeleteObjectAction}from"../defineDeleteObjectAction.js";import{defineInterface}from"../defineInterface.js";import{defineModifyInterfaceObjectAction}from"../defineModifyInterfaceObjectAction.js";import{defineModifyObjectAction}from"../defineModifyObjectAction.js";import{defineObject}from"../defineObject.js";import{defineOntology,dumpOntologyFullMetadata}from"../defineOntology.js";import{defineSharedPropertyType}from"../defineSpt.js";import{importOntologyEntity}from"../importOntologyEntity.js";describe("Action Types",()=>{beforeEach(async()=>{await defineOntology("com.palantir.",()=>{},"/tmp/");});it("Concrete actions are properly defined",()=>{defineAction({apiName:"foo",displayName:"exampleAction",status:"active",rules:[{type:"addOrModifyObjectRuleV2",addOrModifyObjectRuleV2:{objectToModify:"objectToModifyParameter",propertyValues:{"bar":{type:"parameterId",parameterId:"param1"}},structFieldValues:{}}}],parameters:[{id:"param1",displayName:"param1",type:"boolean",validation:{required:true,allowedValues:{type:"boolean"}}}]});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
15
+ */import{beforeEach,describe,expect,it}from"vitest";import{OntologyEntityTypeEnum}from"../common/OntologyEntityTypeEnum.js";import{CREATE_INTERFACE_OBJECT_PARAMETER,CREATE_OR_MODIFY_OBJECT_PARAMETER,defineAction,DELETE_OBJECT_PARAMETER,MODIFY_INTERFACE_OBJECT_PARAMETER,MODIFY_OBJECT_PARAMETER}from"../defineAction.js";import{defineCreateInterfaceObjectAction}from"../defineCreateInterfaceObjectAction.js";import{defineCreateObjectAction}from"../defineCreateObjectAction.js";import{defineCreateOrModifyObjectAction}from"../defineCreateOrModifyObjectAction.js";import{defineDeleteInterfaceObjectAction}from"../defineDeleteInterfaceObjectAction.js";import{defineDeleteObjectAction}from"../defineDeleteObjectAction.js";import{defineInterface}from"../defineInterface.js";import{defineModifyInterfaceObjectAction}from"../defineModifyInterfaceObjectAction.js";import{defineModifyObjectAction}from"../defineModifyObjectAction.js";import{defineObject}from"../defineObject.js";import{defineOntology,dumpOntologyFullMetadata}from"../defineOntology.js";import{defineSharedPropertyType}from"../defineSpt.js";import{importOntologyEntity}from"../importOntologyEntity.js";describe("Action Types",()=>{beforeEach(async()=>{await defineOntology("com.palantir.",()=>{},"/tmp/");});it("Concrete actions are properly defined",()=>{defineAction({apiName:"foo",displayName:"exampleAction",status:"active",rules:[{type:"addOrModifyObjectRuleV2",addOrModifyObjectRuleV2:{objectToModify:"objectToModifyParameter",propertyValues:{"bar":{type:"parameterId",parameterId:"param1"}},structFieldValues:{}}}],parameters:[{id:"param1",displayName:"param1",type:"boolean",validation:{required:true,allowedValues:{type:"boolean"}}}]});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
16
16
  {
17
17
  "importedOntology": {
18
18
  "actionTypes": {},
@@ -8846,1430 +8846,1429 @@
8846
8846
  "valueTypes": [],
8847
8847
  },
8848
8848
  }
8849
- `);});it("Parameter configuration, property mapping, and excluded property validations work",()=>{const sampleObject=defineObject({apiName:"sampleObject",displayName:"Test Object",description:"Sample object description",primaryKeyPropertyApiName:"id",pluralDisplayName:"tests",titlePropertyApiName:"name",properties:{"name":{type:"string"},"id":{type:"string"}}});expect(()=>{defineCreateObjectAction({objectType:sampleObject,parameterConfiguration:{"name":{displayName:"Name"},"custom_parameter":{displayName:"My Custom Param"}}});}).toThrowErrorMatchingInlineSnapshot(`[Error: Invariant failed: Parameter custom_parameter does not exist as a property on com.palantir.sampleObject and its type is not explicitly defined]`);expect(()=>{defineCreateObjectAction({objectType:sampleObject,nonParameterMappings:{"custom_parameter":{type:"staticValue",staticValue:{type:"string",string:"custom_value"}}}});}).toThrowErrorMatchingInlineSnapshot(`[Error: Invariant failed: Property custom_parameter does not exist as a property on com.palantir.sampleObject]`);expect(()=>{defineCreateObjectAction({objectType:sampleObject,excludedProperties:["custom_parameter"]});}).toThrowErrorMatchingInlineSnapshot(`[Error: Invariant failed: Property custom_parameter does not exist as a property on com.palantir.sampleObject]`);expect(()=>{defineCreateObjectAction({objectType:sampleObject,actionLevelValidation:[{condition:{type:"or",conditions:[{type:"parameter",parameterId:"non_existent_parameter",matches:{type:"staticValue",staticValue:{type:"string",string:"value"}}}]}}]});}).toThrowErrorMatchingInlineSnapshot(`[Error: Invariant failed: Action parameter condition references unknown parameter non_existent_parameter]`);});it("Static default action parameters must match type",()=>{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"}}});expect(()=>defineCreateObjectAction({objectType:exampleObjectType,parameterConfiguration:{"buzz":{defaultValue:{type:"staticValue",staticValue:{type:"boolean",boolean:true}}}}})).toThrowError("Invariant failed: Default static value for parameter buzz does not match type");});it("ModifyObjectRule requires objectToModify parameter",()=>{defineObject({apiName:"sampleObject",displayName:"Test Object",description:"Sample object description",primaryKeyPropertyApiName:"id",pluralDisplayName:"tests",titlePropertyApiName:"name",properties:{"name":{type:"string",description:"The name of the test object"},"id":{type:"string",description:"The ID of the test object"}}});expect(()=>defineAction({apiName:"foo",displayName:"exampleAction",status:"active",rules:[{type:"modifyObjectRule",modifyObjectRule:{objectToModify:"sampleObject",propertyValues:{"name":{type:"parameterId",parameterId:"name"}},structFieldValues:{}}}],parameters:[{id:"name",displayName:"Name",type:"string",validation:{required:true,allowedValues:{type:"text"}}}]})).toThrowError("Invariant failed: Object to modify parameter must be defined in parameters");});it("Target object parameters are configurable",()=>{const employeeObject=defineObject({apiName:"employee",displayName:"Employee",pluralDisplayName:"Employees",titlePropertyApiName:"id",primaryKeyPropertyApiName:"id",properties:{"id":{type:"string",displayName:"ID",description:"dummy"},"managedBy":{type:"string"}}});defineModifyObjectAction({objectType:employeeObject,parameterConfiguration:{[MODIFY_OBJECT_PARAMETER]:{displayName:"Chose a manager to modify",description:"Description",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"supervisors"}}]}}});defineCreateOrModifyObjectAction({objectType:employeeObject,parameterConfiguration:{[CREATE_OR_MODIFY_OBJECT_PARAMETER]:{displayName:"Chose a manager to modify or create a new one",description:"Description",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"supervisors"}}]}}});const property1=defineSharedPropertyType({apiName:"property1",type:"string"});const exampleInterface=defineInterface({apiName:"exampleInterface",properties:{property1}});defineCreateInterfaceObjectAction({interfaceType:exampleInterface,parameterConfiguration:{[CREATE_INTERFACE_OBJECT_PARAMETER]:{displayName:"Choose an object to create",description:"Description",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"supervisors"}}]}}});defineModifyInterfaceObjectAction({interfaceType:exampleInterface,parameterConfiguration:{[MODIFY_INTERFACE_OBJECT_PARAMETER]:{displayName:"Choose an object to modify",description:"Description",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"supervisors"}}]}}});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
8850
- {
8851
- "importedOntology": {
8849
+ `);});it("Parameter configuration, property mapping, and excluded property validations work",()=>{const sampleObject=defineObject({apiName:"sampleObject",displayName:"Test Object",description:"Sample object description",primaryKeyPropertyApiName:"id",pluralDisplayName:"tests",titlePropertyApiName:"name",properties:{"name":{type:"string"},"id":{type:"string"}}});expect(()=>{defineCreateObjectAction({objectType:sampleObject,parameterConfiguration:{"name":{displayName:"Name"},"custom_parameter":{displayName:"My Custom Param"}}});}).toThrowErrorMatchingInlineSnapshot(`[Error: Invariant failed: Parameter custom_parameter does not exist as a property on com.palantir.sampleObject and its type is not explicitly defined]`);expect(()=>{defineCreateObjectAction({objectType:sampleObject,nonParameterMappings:{"custom_parameter":{type:"staticValue",staticValue:{type:"string",string:"custom_value"}}}});}).toThrowErrorMatchingInlineSnapshot(`[Error: Invariant failed: Property custom_parameter does not exist as a property on com.palantir.sampleObject]`);expect(()=>{defineCreateObjectAction({objectType:sampleObject,excludedProperties:["custom_parameter"]});}).toThrowErrorMatchingInlineSnapshot(`[Error: Invariant failed: Property custom_parameter does not exist as a property on com.palantir.sampleObject]`);expect(()=>{defineCreateObjectAction({objectType:sampleObject,actionLevelValidation:[{condition:{type:"or",conditions:[{type:"parameter",parameterId:"non_existent_parameter",matches:{type:"staticValue",staticValue:{type:"string",string:"value"}}}]}}]});}).toThrowErrorMatchingInlineSnapshot(`[Error: Invariant failed: Action parameter condition references unknown parameter non_existent_parameter]`);});it("Static default action parameters must match type",()=>{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"}}});expect(()=>defineCreateObjectAction({objectType:exampleObjectType,parameterConfiguration:{"buzz":{defaultValue:{type:"staticValue",staticValue:{type:"boolean",boolean:true}}}}})).toThrowError("Invariant failed: Default static value for parameter buzz does not match type");});it("ModifyObjectRule requires objectToModify parameter",()=>{defineObject({apiName:"sampleObject",displayName:"Test Object",description:"Sample object description",primaryKeyPropertyApiName:"id",pluralDisplayName:"tests",titlePropertyApiName:"name",properties:{"name":{type:"string",description:"The name of the test object"},"id":{type:"string",description:"The ID of the test object"}}});expect(()=>defineAction({apiName:"foo",displayName:"exampleAction",status:"active",rules:[{type:"modifyObjectRule",modifyObjectRule:{objectToModify:"sampleObject",propertyValues:{"name":{type:"parameterId",parameterId:"name"}},structFieldValues:{}}}],parameters:[{id:"name",displayName:"Name",type:"string",validation:{required:true,allowedValues:{type:"text"}}}]})).toThrowError("Invariant failed: Object to modify parameter must be defined in parameters");});it("Target object parameters are configurable",()=>{const employeeObject=defineObject({apiName:"employee",displayName:"Employee",pluralDisplayName:"Employees",titlePropertyApiName:"id",primaryKeyPropertyApiName:"id",properties:{"id":{type:"string",displayName:"ID",description:"dummy"},"managedBy":{type:"string"}}});defineModifyObjectAction({objectType:employeeObject,parameterConfiguration:{[MODIFY_OBJECT_PARAMETER]:{displayName:"Chose a manager to modify",description:"Description",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"supervisors"}}]}}});defineCreateOrModifyObjectAction({objectType:employeeObject,parameterConfiguration:{[CREATE_OR_MODIFY_OBJECT_PARAMETER]:{displayName:"Chose a manager to modify or create a new one",description:"Description",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"supervisors"}}]}}});defineDeleteObjectAction({objectType:employeeObject,parameterConfiguration:{[DELETE_OBJECT_PARAMETER]:{displayName:"Chose managers to delete",description:"Description",required:{listLength:{min:1,max:5}}}}});const property1=defineSharedPropertyType({apiName:"property1",type:"string"});const exampleInterface=defineInterface({apiName:"exampleInterface",properties:{property1}});defineCreateInterfaceObjectAction({interfaceType:exampleInterface,parameterConfiguration:{[CREATE_INTERFACE_OBJECT_PARAMETER]:{displayName:"Choose an object to create",description:"Description",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"supervisors"}}]}}});defineModifyInterfaceObjectAction({interfaceType:exampleInterface,parameterConfiguration:{[MODIFY_INTERFACE_OBJECT_PARAMETER]:{displayName:"Choose an object to modify",description:"Description",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"supervisors"}}]}}});defineDeleteInterfaceObjectAction({interfaceType:exampleInterface,parameterConfiguration:{[DELETE_OBJECT_PARAMETER]:{displayName:"Chose managers to delete",description:"Description",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"supervisors"}}]}}});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
8850
+ {
8851
+ "importedOntology": {
8852
+ "actionTypes": {},
8853
+ "blockPermissionInformation": {
8852
8854
  "actionTypes": {},
8853
- "blockPermissionInformation": {
8854
- "actionTypes": {},
8855
- "linkTypes": {},
8856
- "objectTypes": {},
8857
- },
8858
- "interfaceTypes": {},
8859
8855
  "linkTypes": {},
8860
8856
  "objectTypes": {},
8861
- "sharedPropertyTypes": {},
8862
- },
8863
- "importedValueTypes": {
8864
- "valueTypes": [],
8865
8857
  },
8866
- "ontology": {
8867
- "actionTypes": {
8868
- "com.palantir.create-example-interface": {
8869
- "actionType": {
8870
- "actionTypeLogic": {
8871
- "logic": {
8872
- "rules": [
8873
- {
8874
- "addInterfaceRule": {
8875
- "interfaceApiName": "com.palantir.exampleInterface",
8876
- "objectTypeParameter": "objectTypeParameter",
8877
- "sharedPropertyValues": {
8878
- "com.palantir.property1": {
8879
- "parameterId": "com.palantir.property1",
8880
- "type": "parameterId",
8881
- },
8858
+ "interfaceTypes": {},
8859
+ "linkTypes": {},
8860
+ "objectTypes": {},
8861
+ "sharedPropertyTypes": {},
8862
+ },
8863
+ "importedValueTypes": {
8864
+ "valueTypes": [],
8865
+ },
8866
+ "ontology": {
8867
+ "actionTypes": {
8868
+ "com.palantir.create-example-interface": {
8869
+ "actionType": {
8870
+ "actionTypeLogic": {
8871
+ "logic": {
8872
+ "rules": [
8873
+ {
8874
+ "addInterfaceRule": {
8875
+ "interfaceApiName": "com.palantir.exampleInterface",
8876
+ "objectTypeParameter": "objectTypeParameter",
8877
+ "sharedPropertyValues": {
8878
+ "com.palantir.property1": {
8879
+ "parameterId": "com.palantir.property1",
8880
+ "type": "parameterId",
8882
8881
  },
8883
8882
  },
8884
- "type": "addInterfaceRule",
8885
8883
  },
8886
- ],
8887
- },
8888
- "validation": {
8889
- "actionTypeLevelValidation": {
8890
- "rules": {
8891
- "0": {
8892
- "condition": {
8893
- "true": {},
8894
- "type": "true",
8895
- },
8896
- "displayMetadata": {
8897
- "failureMessage": "",
8898
- "typeClasses": [],
8899
- },
8884
+ "type": "addInterfaceRule",
8885
+ },
8886
+ ],
8887
+ },
8888
+ "validation": {
8889
+ "actionTypeLevelValidation": {
8890
+ "rules": {
8891
+ "0": {
8892
+ "condition": {
8893
+ "true": {},
8894
+ "type": "true",
8895
+ },
8896
+ "displayMetadata": {
8897
+ "failureMessage": "",
8898
+ "typeClasses": [],
8900
8899
  },
8901
8900
  },
8902
8901
  },
8903
- "parameterValidations": {
8904
- "com.palantir.property1": {
8905
- "conditionalOverrides": [],
8906
- "defaultValidation": {
8907
- "display": {
8908
- "renderHint": {
8909
- "textInput": {},
8910
- "type": "textInput",
8911
- },
8912
- "visibility": {
8913
- "editable": {},
8914
- "type": "editable",
8915
- },
8902
+ },
8903
+ "parameterValidations": {
8904
+ "com.palantir.property1": {
8905
+ "conditionalOverrides": [],
8906
+ "defaultValidation": {
8907
+ "display": {
8908
+ "renderHint": {
8909
+ "textInput": {},
8910
+ "type": "textInput",
8916
8911
  },
8917
- "validation": {
8918
- "allowedValues": {
8919
- "text": {
8920
- "text": {},
8921
- "type": "text",
8922
- },
8912
+ "visibility": {
8913
+ "editable": {},
8914
+ "type": "editable",
8915
+ },
8916
+ },
8917
+ "validation": {
8918
+ "allowedValues": {
8919
+ "text": {
8920
+ "text": {},
8923
8921
  "type": "text",
8924
8922
  },
8925
- "required": {
8926
- "required": {},
8927
- "type": "required",
8928
- },
8923
+ "type": "text",
8924
+ },
8925
+ "required": {
8926
+ "required": {},
8927
+ "type": "required",
8929
8928
  },
8930
8929
  },
8931
8930
  },
8932
- "objectTypeParameter": {
8933
- "conditionalOverrides": [
8934
- {
8935
- "condition": {
8936
- "comparison": {
8937
- "left": {
8938
- "type": "userProperty",
8939
- "userProperty": {
8940
- "propertyValue": {
8941
- "groupIds": {},
8942
- "type": "groupIds",
8943
- },
8944
- "userId": {
8945
- "currentUser": {},
8946
- "type": "currentUser",
8947
- },
8931
+ },
8932
+ "objectTypeParameter": {
8933
+ "conditionalOverrides": [
8934
+ {
8935
+ "condition": {
8936
+ "comparison": {
8937
+ "left": {
8938
+ "type": "userProperty",
8939
+ "userProperty": {
8940
+ "propertyValue": {
8941
+ "groupIds": {},
8942
+ "type": "groupIds",
8943
+ },
8944
+ "userId": {
8945
+ "currentUser": {},
8946
+ "type": "currentUser",
8948
8947
  },
8949
8948
  },
8950
- "operator": "INTERSECTS",
8951
- "right": {
8952
- "staticValue": {
8953
- "stringList": {
8954
- "strings": [
8955
- "supervisors",
8956
- ],
8957
- },
8958
- "type": "stringList",
8949
+ },
8950
+ "operator": "INTERSECTS",
8951
+ "right": {
8952
+ "staticValue": {
8953
+ "stringList": {
8954
+ "strings": [
8955
+ "supervisors",
8956
+ ],
8959
8957
  },
8960
- "type": "staticValue",
8958
+ "type": "stringList",
8961
8959
  },
8960
+ "type": "staticValue",
8962
8961
  },
8963
- "type": "comparison",
8964
8962
  },
8965
- "parameterBlockOverrides": [
8966
- {
8967
- "type": "visibility",
8963
+ "type": "comparison",
8964
+ },
8965
+ "parameterBlockOverrides": [
8966
+ {
8967
+ "type": "visibility",
8968
+ "visibility": {
8968
8969
  "visibility": {
8969
- "visibility": {
8970
- "editable": {},
8971
- "type": "editable",
8972
- },
8970
+ "editable": {},
8971
+ "type": "editable",
8973
8972
  },
8974
8973
  },
8975
- ],
8976
- },
8977
- ],
8978
- "defaultValidation": {
8979
- "display": {
8980
- "renderHint": {
8981
- "dropdown": {},
8982
- "type": "dropdown",
8983
- },
8984
- "visibility": {
8985
- "editable": {},
8986
- "type": "editable",
8987
8974
  },
8975
+ ],
8976
+ },
8977
+ ],
8978
+ "defaultValidation": {
8979
+ "display": {
8980
+ "renderHint": {
8981
+ "dropdown": {},
8982
+ "type": "dropdown",
8988
8983
  },
8989
- "validation": {
8990
- "allowedValues": {
8984
+ "visibility": {
8985
+ "editable": {},
8986
+ "type": "editable",
8987
+ },
8988
+ },
8989
+ "validation": {
8990
+ "allowedValues": {
8991
+ "objectTypeReference": {
8991
8992
  "objectTypeReference": {
8992
- "objectTypeReference": {
8993
- "interfaceTypeRids": [
8994
- "com.palantir.exampleInterface",
8995
- ],
8996
- },
8997
- "type": "objectTypeReference",
8993
+ "interfaceTypeRids": [
8994
+ "com.palantir.exampleInterface",
8995
+ ],
8998
8996
  },
8999
8997
  "type": "objectTypeReference",
9000
8998
  },
9001
- "required": {
9002
- "required": {},
9003
- "type": "required",
9004
- },
8999
+ "type": "objectTypeReference",
9000
+ },
9001
+ "required": {
9002
+ "required": {},
9003
+ "type": "required",
9005
9004
  },
9006
9005
  },
9007
9006
  },
9008
9007
  },
9009
- "sectionValidations": {},
9010
9008
  },
9009
+ "sectionValidations": {},
9011
9010
  },
9012
- "metadata": {
9013
- "apiName": "com.palantir.create-example-interface",
9014
- "displayMetadata": {
9015
- "configuration": {
9016
- "defaultLayout": "FORM",
9017
- "displayAndFormat": {
9018
- "table": {
9019
- "columnWidthByParameterRid": {},
9020
- "enableFileImport": true,
9021
- "fitHorizontally": false,
9022
- "frozenColumnCount": 0,
9023
- "rowHeightInLines": 1,
9024
- },
9025
- },
9026
- "enableLayoutUserSwitch": false,
9027
- },
9028
- "description": "",
9029
- "displayName": "Create exampleInterface",
9030
- "icon": {
9031
- "blueprint": {
9032
- "color": "#000000",
9033
- "locator": "edit",
9011
+ },
9012
+ "metadata": {
9013
+ "apiName": "com.palantir.create-example-interface",
9014
+ "displayMetadata": {
9015
+ "configuration": {
9016
+ "defaultLayout": "FORM",
9017
+ "displayAndFormat": {
9018
+ "table": {
9019
+ "columnWidthByParameterRid": {},
9020
+ "enableFileImport": true,
9021
+ "fitHorizontally": false,
9022
+ "frozenColumnCount": 0,
9023
+ "rowHeightInLines": 1,
9034
9024
  },
9035
- "type": "blueprint",
9036
9025
  },
9037
- "successMessage": [],
9038
- "typeClasses": [],
9026
+ "enableLayoutUserSwitch": false,
9039
9027
  },
9040
- "entities": {
9041
- "affectedInterfaceTypes": [
9042
- "com.palantir.exampleInterface",
9043
- ],
9044
- "affectedLinkTypes": [],
9045
- "affectedObjectTypes": [],
9046
- "typeGroups": [],
9028
+ "description": "",
9029
+ "displayName": "Create exampleInterface",
9030
+ "icon": {
9031
+ "blueprint": {
9032
+ "color": "#000000",
9033
+ "locator": "edit",
9034
+ },
9035
+ "type": "blueprint",
9047
9036
  },
9048
- "formContentOrdering": [],
9049
- "parameterOrdering": [
9050
- "objectTypeParameter",
9051
- "com.palantir.property1",
9037
+ "successMessage": [],
9038
+ "typeClasses": [],
9039
+ },
9040
+ "entities": {
9041
+ "affectedInterfaceTypes": [
9042
+ "com.palantir.exampleInterface",
9052
9043
  ],
9053
- "parameters": {
9054
- "com.palantir.property1": {
9055
- "displayMetadata": {
9056
- "description": "",
9057
- "displayName": "property1",
9058
- "typeClasses": [],
9059
- },
9060
- "id": "com.palantir.property1",
9061
- "type": {
9062
- "string": {},
9063
- "type": "string",
9064
- },
9044
+ "affectedLinkTypes": [],
9045
+ "affectedObjectTypes": [],
9046
+ "typeGroups": [],
9047
+ },
9048
+ "formContentOrdering": [],
9049
+ "parameterOrdering": [
9050
+ "objectTypeParameter",
9051
+ "com.palantir.property1",
9052
+ ],
9053
+ "parameters": {
9054
+ "com.palantir.property1": {
9055
+ "displayMetadata": {
9056
+ "description": "",
9057
+ "displayName": "property1",
9058
+ "typeClasses": [],
9065
9059
  },
9066
- "objectTypeParameter": {
9067
- "displayMetadata": {
9068
- "description": "Description",
9069
- "displayName": "Choose an object to create",
9070
- "typeClasses": [],
9071
- },
9072
- "id": "objectTypeParameter",
9073
- "type": {
9074
- "objectTypeReference": {
9075
- "interfaceTypeRids": [
9076
- "com.palantir.exampleInterface",
9077
- ],
9078
- },
9079
- "type": "objectTypeReference",
9080
- },
9060
+ "id": "com.palantir.property1",
9061
+ "type": {
9062
+ "string": {},
9063
+ "type": "string",
9081
9064
  },
9082
9065
  },
9083
- "sections": {},
9084
- "status": {
9085
- "active": {},
9086
- "type": "active",
9066
+ "objectTypeParameter": {
9067
+ "displayMetadata": {
9068
+ "description": "Description",
9069
+ "displayName": "Choose an object to create",
9070
+ "typeClasses": [],
9071
+ },
9072
+ "id": "objectTypeParameter",
9073
+ "type": {
9074
+ "objectTypeReference": {
9075
+ "interfaceTypeRids": [
9076
+ "com.palantir.exampleInterface",
9077
+ ],
9078
+ },
9079
+ "type": "objectTypeReference",
9080
+ },
9087
9081
  },
9088
9082
  },
9083
+ "sections": {},
9084
+ "status": {
9085
+ "active": {},
9086
+ "type": "active",
9087
+ },
9089
9088
  },
9090
9089
  },
9091
- "com.palantir.create-or-modify-employee": {
9092
- "actionType": {
9093
- "actionTypeLogic": {
9094
- "logic": {
9095
- "rules": [
9096
- {
9097
- "addOrModifyObjectRuleV2": {
9098
- "objectToModify": "objectToCreateOrModifyParameter",
9099
- "propertyValues": {
9100
- "managedBy": {
9101
- "parameterId": "managedBy",
9102
- "type": "parameterId",
9103
- },
9090
+ },
9091
+ "com.palantir.create-or-modify-employee": {
9092
+ "actionType": {
9093
+ "actionTypeLogic": {
9094
+ "logic": {
9095
+ "rules": [
9096
+ {
9097
+ "addOrModifyObjectRuleV2": {
9098
+ "objectToModify": "objectToCreateOrModifyParameter",
9099
+ "propertyValues": {
9100
+ "managedBy": {
9101
+ "parameterId": "managedBy",
9102
+ "type": "parameterId",
9104
9103
  },
9105
- "structFieldValues": {},
9106
9104
  },
9107
- "type": "addOrModifyObjectRuleV2",
9105
+ "structFieldValues": {},
9108
9106
  },
9109
- ],
9110
- },
9111
- "validation": {
9112
- "actionTypeLevelValidation": {
9113
- "rules": {
9114
- "0": {
9115
- "condition": {
9116
- "true": {},
9117
- "type": "true",
9118
- },
9119
- "displayMetadata": {
9120
- "failureMessage": "",
9121
- "typeClasses": [],
9122
- },
9107
+ "type": "addOrModifyObjectRuleV2",
9108
+ },
9109
+ ],
9110
+ },
9111
+ "validation": {
9112
+ "actionTypeLevelValidation": {
9113
+ "rules": {
9114
+ "0": {
9115
+ "condition": {
9116
+ "true": {},
9117
+ "type": "true",
9118
+ },
9119
+ "displayMetadata": {
9120
+ "failureMessage": "",
9121
+ "typeClasses": [],
9123
9122
  },
9124
9123
  },
9125
9124
  },
9126
- "parameterValidations": {
9127
- "managedBy": {
9128
- "conditionalOverrides": [],
9129
- "defaultValidation": {
9130
- "display": {
9131
- "prefill": {
9132
- "objectParameterPropertyValue": {
9133
- "parameterId": "objectToCreateOrModifyParameter",
9134
- "propertyTypeId": "managedBy",
9135
- },
9136
- "type": "objectParameterPropertyValue",
9137
- },
9138
- "renderHint": {
9139
- "textInput": {},
9140
- "type": "textInput",
9141
- },
9142
- "visibility": {
9143
- "editable": {},
9144
- "type": "editable",
9125
+ },
9126
+ "parameterValidations": {
9127
+ "managedBy": {
9128
+ "conditionalOverrides": [],
9129
+ "defaultValidation": {
9130
+ "display": {
9131
+ "prefill": {
9132
+ "objectParameterPropertyValue": {
9133
+ "parameterId": "objectToCreateOrModifyParameter",
9134
+ "propertyTypeId": "managedBy",
9145
9135
  },
9136
+ "type": "objectParameterPropertyValue",
9146
9137
  },
9147
- "validation": {
9148
- "allowedValues": {
9149
- "text": {
9150
- "text": {},
9151
- "type": "text",
9152
- },
9138
+ "renderHint": {
9139
+ "textInput": {},
9140
+ "type": "textInput",
9141
+ },
9142
+ "visibility": {
9143
+ "editable": {},
9144
+ "type": "editable",
9145
+ },
9146
+ },
9147
+ "validation": {
9148
+ "allowedValues": {
9149
+ "text": {
9150
+ "text": {},
9153
9151
  "type": "text",
9154
9152
  },
9155
- "required": {
9156
- "notRequired": {},
9157
- "type": "notRequired",
9158
- },
9153
+ "type": "text",
9154
+ },
9155
+ "required": {
9156
+ "notRequired": {},
9157
+ "type": "notRequired",
9159
9158
  },
9160
9159
  },
9161
9160
  },
9162
- "objectToCreateOrModifyParameter": {
9163
- "conditionalOverrides": [
9164
- {
9165
- "condition": {
9166
- "comparison": {
9167
- "left": {
9168
- "type": "userProperty",
9169
- "userProperty": {
9170
- "propertyValue": {
9171
- "groupIds": {},
9172
- "type": "groupIds",
9173
- },
9174
- "userId": {
9175
- "currentUser": {},
9176
- "type": "currentUser",
9177
- },
9178
- },
9179
- },
9180
- "operator": "INTERSECTS",
9181
- "right": {
9182
- "staticValue": {
9183
- "stringList": {
9184
- "strings": [
9185
- "supervisors",
9186
- ],
9187
- },
9188
- "type": "stringList",
9189
- },
9190
- "type": "staticValue",
9161
+ },
9162
+ "objectToCreateOrModifyParameter": {
9163
+ "conditionalOverrides": [
9164
+ {
9165
+ "condition": {
9166
+ "comparison": {
9167
+ "left": {
9168
+ "type": "userProperty",
9169
+ "userProperty": {
9170
+ "propertyValue": {
9171
+ "groupIds": {},
9172
+ "type": "groupIds",
9173
+ },
9174
+ "userId": {
9175
+ "currentUser": {},
9176
+ "type": "currentUser",
9177
+ },
9191
9178
  },
9192
9179
  },
9193
- "type": "comparison",
9194
- },
9195
- "parameterBlockOverrides": [
9196
- {
9197
- "type": "visibility",
9198
- "visibility": {
9199
- "visibility": {
9200
- "editable": {},
9201
- "type": "editable",
9180
+ "operator": "INTERSECTS",
9181
+ "right": {
9182
+ "staticValue": {
9183
+ "stringList": {
9184
+ "strings": [
9185
+ "supervisors",
9186
+ ],
9202
9187
  },
9188
+ "type": "stringList",
9203
9189
  },
9190
+ "type": "staticValue",
9204
9191
  },
9205
- ],
9206
- },
9207
- ],
9208
- "defaultValidation": {
9209
- "display": {
9210
- "renderHint": {
9211
- "dropdown": {},
9212
- "type": "dropdown",
9213
- },
9214
- "visibility": {
9215
- "editable": {},
9216
- "type": "editable",
9217
9192
  },
9193
+ "type": "comparison",
9218
9194
  },
9219
- "validation": {
9220
- "allowedValues": {
9221
- "objectQuery": {
9222
- "objectQuery": {},
9223
- "type": "objectQuery",
9195
+ "parameterBlockOverrides": [
9196
+ {
9197
+ "type": "visibility",
9198
+ "visibility": {
9199
+ "visibility": {
9200
+ "editable": {},
9201
+ "type": "editable",
9202
+ },
9224
9203
  },
9225
- "type": "objectQuery",
9226
9204
  },
9227
- "required": {
9228
- "required": {},
9229
- "type": "required",
9205
+ ],
9206
+ },
9207
+ ],
9208
+ "defaultValidation": {
9209
+ "display": {
9210
+ "renderHint": {
9211
+ "dropdown": {},
9212
+ "type": "dropdown",
9213
+ },
9214
+ "visibility": {
9215
+ "editable": {},
9216
+ "type": "editable",
9217
+ },
9218
+ },
9219
+ "validation": {
9220
+ "allowedValues": {
9221
+ "objectQuery": {
9222
+ "objectQuery": {},
9223
+ "type": "objectQuery",
9230
9224
  },
9225
+ "type": "objectQuery",
9226
+ },
9227
+ "required": {
9228
+ "required": {},
9229
+ "type": "required",
9231
9230
  },
9232
9231
  },
9233
9232
  },
9234
9233
  },
9235
- "sectionValidations": {},
9236
9234
  },
9235
+ "sectionValidations": {},
9237
9236
  },
9238
- "metadata": {
9239
- "apiName": "com.palantir.create-or-modify-employee",
9240
- "displayMetadata": {
9241
- "configuration": {
9242
- "defaultLayout": "FORM",
9243
- "displayAndFormat": {
9244
- "table": {
9245
- "columnWidthByParameterRid": {},
9246
- "enableFileImport": true,
9247
- "fitHorizontally": false,
9248
- "frozenColumnCount": 0,
9249
- "rowHeightInLines": 1,
9250
- },
9251
- },
9252
- "enableLayoutUserSwitch": false,
9253
- },
9254
- "description": "",
9255
- "displayName": "Create or Modify Employee",
9256
- "icon": {
9257
- "blueprint": {
9258
- "color": "#000000",
9259
- "locator": "edit",
9237
+ },
9238
+ "metadata": {
9239
+ "apiName": "com.palantir.create-or-modify-employee",
9240
+ "displayMetadata": {
9241
+ "configuration": {
9242
+ "defaultLayout": "FORM",
9243
+ "displayAndFormat": {
9244
+ "table": {
9245
+ "columnWidthByParameterRid": {},
9246
+ "enableFileImport": true,
9247
+ "fitHorizontally": false,
9248
+ "frozenColumnCount": 0,
9249
+ "rowHeightInLines": 1,
9260
9250
  },
9261
- "type": "blueprint",
9262
9251
  },
9263
- "successMessage": [],
9264
- "typeClasses": [],
9252
+ "enableLayoutUserSwitch": false,
9265
9253
  },
9266
- "entities": {
9267
- "affectedInterfaceTypes": [],
9268
- "affectedLinkTypes": [],
9269
- "affectedObjectTypes": [
9270
- "com.palantir.employee",
9271
- ],
9272
- "typeGroups": [],
9254
+ "description": "",
9255
+ "displayName": "Create or Modify Employee",
9256
+ "icon": {
9257
+ "blueprint": {
9258
+ "color": "#000000",
9259
+ "locator": "edit",
9260
+ },
9261
+ "type": "blueprint",
9273
9262
  },
9274
- "formContentOrdering": [],
9275
- "parameterOrdering": [
9276
- "objectToCreateOrModifyParameter",
9277
- "managedBy",
9263
+ "successMessage": [],
9264
+ "typeClasses": [],
9265
+ },
9266
+ "entities": {
9267
+ "affectedInterfaceTypes": [],
9268
+ "affectedLinkTypes": [],
9269
+ "affectedObjectTypes": [
9270
+ "com.palantir.employee",
9278
9271
  ],
9279
- "parameters": {
9280
- "managedBy": {
9281
- "displayMetadata": {
9282
- "description": "",
9283
- "displayName": "ManagedBy",
9284
- "typeClasses": [],
9285
- },
9286
- "id": "managedBy",
9287
- "type": {
9288
- "string": {},
9289
- "type": "string",
9290
- },
9272
+ "typeGroups": [],
9273
+ },
9274
+ "formContentOrdering": [],
9275
+ "parameterOrdering": [
9276
+ "objectToCreateOrModifyParameter",
9277
+ "managedBy",
9278
+ ],
9279
+ "parameters": {
9280
+ "managedBy": {
9281
+ "displayMetadata": {
9282
+ "description": "",
9283
+ "displayName": "ManagedBy",
9284
+ "typeClasses": [],
9291
9285
  },
9292
- "objectToCreateOrModifyParameter": {
9293
- "displayMetadata": {
9294
- "description": "Description",
9295
- "displayName": "Chose a manager to modify or create a new one",
9296
- "typeClasses": [],
9297
- },
9298
- "id": "objectToCreateOrModifyParameter",
9299
- "type": {
9300
- "objectReference": {
9301
- "maybeCreateObjectOption": {
9302
- "autoGenerated": {},
9303
- "type": "autoGenerated",
9304
- },
9305
- "objectTypeId": "com.palantir.employee",
9286
+ "id": "managedBy",
9287
+ "type": {
9288
+ "string": {},
9289
+ "type": "string",
9290
+ },
9291
+ },
9292
+ "objectToCreateOrModifyParameter": {
9293
+ "displayMetadata": {
9294
+ "description": "Description",
9295
+ "displayName": "Chose a manager to modify or create a new one",
9296
+ "typeClasses": [],
9297
+ },
9298
+ "id": "objectToCreateOrModifyParameter",
9299
+ "type": {
9300
+ "objectReference": {
9301
+ "maybeCreateObjectOption": {
9302
+ "autoGenerated": {},
9303
+ "type": "autoGenerated",
9306
9304
  },
9307
- "type": "objectReference",
9305
+ "objectTypeId": "com.palantir.employee",
9308
9306
  },
9307
+ "type": "objectReference",
9309
9308
  },
9310
9309
  },
9311
- "sections": {},
9312
- "status": {
9313
- "active": {},
9314
- "type": "active",
9315
- },
9310
+ },
9311
+ "sections": {},
9312
+ "status": {
9313
+ "active": {},
9314
+ "type": "active",
9316
9315
  },
9317
9316
  },
9318
9317
  },
9319
- "com.palantir.modify-example-interface": {
9320
- "actionType": {
9321
- "actionTypeLogic": {
9322
- "logic": {
9323
- "rules": [
9324
- {
9325
- "modifyInterfaceRule": {
9326
- "interfaceObjectToModifyParameter": "interfaceObjectToModifyParameter",
9327
- "sharedPropertyValues": {
9328
- "com.palantir.property1": {
9329
- "parameterId": "com.palantir.property1",
9330
- "type": "parameterId",
9331
- },
9332
- },
9318
+ },
9319
+ "com.palantir.delete-interface-object-example-interface": {
9320
+ "actionType": {
9321
+ "actionTypeLogic": {
9322
+ "logic": {
9323
+ "rules": [
9324
+ {
9325
+ "deleteObjectRule": {
9326
+ "objectToDelete": "objectToDeleteParameter",
9327
+ },
9328
+ "type": "deleteObjectRule",
9329
+ },
9330
+ ],
9331
+ },
9332
+ "validation": {
9333
+ "actionTypeLevelValidation": {
9334
+ "rules": {
9335
+ "0": {
9336
+ "condition": {
9337
+ "true": {},
9338
+ "type": "true",
9339
+ },
9340
+ "displayMetadata": {
9341
+ "failureMessage": "",
9342
+ "typeClasses": [],
9333
9343
  },
9334
- "type": "modifyInterfaceRule",
9335
9344
  },
9336
- ],
9345
+ },
9337
9346
  },
9338
- "validation": {
9339
- "actionTypeLevelValidation": {
9340
- "rules": {
9341
- "0": {
9342
- "condition": {
9343
- "true": {},
9344
- "type": "true",
9345
- },
9346
- "displayMetadata": {
9347
- "failureMessage": "",
9348
- "typeClasses": [],
9349
- },
9350
- },
9351
- },
9352
- },
9353
- "parameterValidations": {
9354
- "com.palantir.property1": {
9355
- "conditionalOverrides": [],
9356
- "defaultValidation": {
9357
- "display": {
9358
- "renderHint": {
9359
- "textInput": {},
9360
- "type": "textInput",
9361
- },
9362
- "visibility": {
9363
- "editable": {},
9364
- "type": "editable",
9365
- },
9347
+ "parameterValidations": {
9348
+ "objectToDeleteParameter": {
9349
+ "conditionalOverrides": [],
9350
+ "defaultValidation": {
9351
+ "display": {
9352
+ "renderHint": {
9353
+ "dropdown": {},
9354
+ "type": "dropdown",
9366
9355
  },
9367
- "validation": {
9368
- "allowedValues": {
9369
- "text": {
9370
- "text": {},
9371
- "type": "text",
9372
- },
9373
- "type": "text",
9374
- },
9375
- "required": {
9376
- "required": {},
9377
- "type": "required",
9378
- },
9356
+ "visibility": {
9357
+ "editable": {},
9358
+ "type": "editable",
9379
9359
  },
9380
9360
  },
9381
- },
9382
- "interfaceObjectToModifyParameter": {
9383
- "conditionalOverrides": [
9384
- {
9385
- "condition": {
9386
- "comparison": {
9387
- "left": {
9388
- "type": "userProperty",
9389
- "userProperty": {
9390
- "propertyValue": {
9391
- "groupIds": {},
9392
- "type": "groupIds",
9393
- },
9394
- "userId": {
9395
- "currentUser": {},
9396
- "type": "currentUser",
9397
- },
9398
- },
9399
- },
9400
- "operator": "INTERSECTS",
9401
- "right": {
9402
- "staticValue": {
9403
- "stringList": {
9404
- "strings": [
9405
- "supervisors",
9406
- ],
9407
- },
9408
- "type": "stringList",
9409
- },
9410
- "type": "staticValue",
9411
- },
9412
- },
9413
- "type": "comparison",
9414
- },
9415
- "parameterBlockOverrides": [
9416
- {
9417
- "type": "visibility",
9418
- "visibility": {
9419
- "visibility": {
9420
- "editable": {},
9421
- "type": "editable",
9422
- },
9423
- },
9424
- },
9425
- ],
9426
- },
9427
- ],
9428
- "defaultValidation": {
9429
- "display": {
9430
- "renderHint": {
9431
- "dropdown": {},
9432
- "type": "dropdown",
9433
- },
9434
- "visibility": {
9435
- "editable": {},
9436
- "type": "editable",
9437
- },
9438
- },
9439
- "validation": {
9440
- "allowedValues": {
9441
- "interfaceObjectQuery": {
9442
- "interfaceObjectQuery": {},
9443
- "type": "interfaceObjectQuery",
9444
- },
9361
+ "validation": {
9362
+ "allowedValues": {
9363
+ "interfaceObjectQuery": {
9364
+ "interfaceObjectQuery": {},
9445
9365
  "type": "interfaceObjectQuery",
9446
9366
  },
9447
- "required": {
9448
- "required": {},
9449
- "type": "required",
9450
- },
9367
+ "type": "interfaceObjectQuery",
9368
+ },
9369
+ "required": {
9370
+ "required": {},
9371
+ "type": "required",
9451
9372
  },
9452
9373
  },
9453
9374
  },
9454
9375
  },
9455
- "sectionValidations": {},
9456
9376
  },
9377
+ "sectionValidations": {},
9457
9378
  },
9458
- "metadata": {
9459
- "apiName": "com.palantir.modify-example-interface",
9460
- "displayMetadata": {
9461
- "configuration": {
9462
- "defaultLayout": "FORM",
9463
- "displayAndFormat": {
9464
- "table": {
9465
- "columnWidthByParameterRid": {},
9466
- "enableFileImport": true,
9467
- "fitHorizontally": false,
9468
- "frozenColumnCount": 0,
9469
- "rowHeightInLines": 1,
9470
- },
9471
- },
9472
- "enableLayoutUserSwitch": false,
9473
- },
9474
- "description": "",
9475
- "displayName": "Modify exampleInterface",
9476
- "icon": {
9477
- "blueprint": {
9478
- "color": "#000000",
9479
- "locator": "edit",
9379
+ },
9380
+ "metadata": {
9381
+ "apiName": "com.palantir.delete-interface-object-example-interface",
9382
+ "displayMetadata": {
9383
+ "configuration": {
9384
+ "defaultLayout": "FORM",
9385
+ "displayAndFormat": {
9386
+ "table": {
9387
+ "columnWidthByParameterRid": {},
9388
+ "enableFileImport": true,
9389
+ "fitHorizontally": false,
9390
+ "frozenColumnCount": 0,
9391
+ "rowHeightInLines": 1,
9480
9392
  },
9481
- "type": "blueprint",
9482
9393
  },
9483
- "successMessage": [],
9484
- "typeClasses": [],
9394
+ "enableLayoutUserSwitch": false,
9485
9395
  },
9486
- "entities": {
9487
- "affectedInterfaceTypes": [
9488
- "com.palantir.exampleInterface",
9489
- ],
9490
- "affectedLinkTypes": [],
9491
- "affectedObjectTypes": [],
9492
- "typeGroups": [],
9396
+ "description": "",
9397
+ "displayName": "Delete exampleInterface",
9398
+ "icon": {
9399
+ "blueprint": {
9400
+ "color": "#000000",
9401
+ "locator": "edit",
9402
+ },
9403
+ "type": "blueprint",
9493
9404
  },
9494
- "formContentOrdering": [],
9495
- "parameterOrdering": [
9496
- "interfaceObjectToModifyParameter",
9497
- "com.palantir.property1",
9405
+ "successMessage": [],
9406
+ "typeClasses": [],
9407
+ },
9408
+ "entities": {
9409
+ "affectedInterfaceTypes": [
9410
+ "com.palantir.exampleInterface",
9498
9411
  ],
9499
- "parameters": {
9500
- "com.palantir.property1": {
9501
- "displayMetadata": {
9502
- "description": "",
9503
- "displayName": "property1",
9504
- "typeClasses": [],
9505
- },
9506
- "id": "com.palantir.property1",
9507
- "type": {
9508
- "string": {},
9509
- "type": "string",
9510
- },
9412
+ "affectedLinkTypes": [],
9413
+ "affectedObjectTypes": [],
9414
+ "typeGroups": [],
9415
+ },
9416
+ "formContentOrdering": [],
9417
+ "parameterOrdering": [
9418
+ "objectToDeleteParameter",
9419
+ ],
9420
+ "parameters": {
9421
+ "objectToDeleteParameter": {
9422
+ "displayMetadata": {
9423
+ "description": "",
9424
+ "displayName": "Delete object",
9425
+ "typeClasses": [],
9511
9426
  },
9512
- "interfaceObjectToModifyParameter": {
9513
- "displayMetadata": {
9514
- "description": "Description",
9515
- "displayName": "Choose an object to modify",
9516
- "typeClasses": [],
9517
- },
9518
- "id": "interfaceObjectToModifyParameter",
9519
- "type": {
9520
- "interfaceReference": {
9521
- "interfaceTypeRid": "com.palantir.exampleInterface",
9522
- },
9523
- "type": "interfaceReference",
9427
+ "id": "objectToDeleteParameter",
9428
+ "type": {
9429
+ "interfaceReference": {
9430
+ "interfaceTypeRid": "com.palantir.exampleInterface",
9524
9431
  },
9432
+ "type": "interfaceReference",
9525
9433
  },
9526
9434
  },
9527
- "sections": {},
9528
- "status": {
9529
- "active": {},
9530
- "type": "active",
9531
- },
9435
+ },
9436
+ "sections": {},
9437
+ "status": {
9438
+ "active": {},
9439
+ "type": "active",
9532
9440
  },
9533
9441
  },
9534
9442
  },
9535
- "com.palantir.modify-object-employee": {
9536
- "actionType": {
9537
- "actionTypeLogic": {
9538
- "logic": {
9539
- "rules": [
9540
- {
9541
- "modifyObjectRule": {
9542
- "objectToModify": "objectToModifyParameter",
9543
- "propertyValues": {
9544
- "managedBy": {
9545
- "parameterId": "managedBy",
9546
- "type": "parameterId",
9547
- },
9548
- },
9549
- "structFieldValues": {},
9550
- },
9551
- "type": "modifyObjectRule",
9443
+ },
9444
+ "com.palantir.delete-object-employee": {
9445
+ "actionType": {
9446
+ "actionTypeLogic": {
9447
+ "logic": {
9448
+ "rules": [
9449
+ {
9450
+ "deleteObjectRule": {
9451
+ "objectToDelete": "objectToDeleteParameter",
9552
9452
  },
9553
- ],
9554
- },
9555
- "validation": {
9556
- "actionTypeLevelValidation": {
9557
- "rules": {
9558
- "0": {
9559
- "condition": {
9560
- "true": {},
9561
- "type": "true",
9562
- },
9563
- "displayMetadata": {
9564
- "failureMessage": "",
9565
- "typeClasses": [],
9566
- },
9453
+ "type": "deleteObjectRule",
9454
+ },
9455
+ ],
9456
+ },
9457
+ "validation": {
9458
+ "actionTypeLevelValidation": {
9459
+ "rules": {
9460
+ "0": {
9461
+ "condition": {
9462
+ "true": {},
9463
+ "type": "true",
9464
+ },
9465
+ "displayMetadata": {
9466
+ "failureMessage": "",
9467
+ "typeClasses": [],
9567
9468
  },
9568
9469
  },
9569
9470
  },
9570
- "parameterValidations": {
9571
- "managedBy": {
9572
- "conditionalOverrides": [],
9573
- "defaultValidation": {
9574
- "display": {
9575
- "prefill": {
9576
- "objectParameterPropertyValue": {
9577
- "parameterId": "objectToModifyParameter",
9578
- "propertyTypeId": "managedBy",
9579
- },
9580
- "type": "objectParameterPropertyValue",
9581
- },
9582
- "renderHint": {
9583
- "textInput": {},
9584
- "type": "textInput",
9585
- },
9586
- "visibility": {
9587
- "editable": {},
9588
- "type": "editable",
9589
- },
9471
+ },
9472
+ "parameterValidations": {
9473
+ "objectToDeleteParameter": {
9474
+ "conditionalOverrides": [],
9475
+ "defaultValidation": {
9476
+ "display": {
9477
+ "renderHint": {
9478
+ "dropdown": {},
9479
+ "type": "dropdown",
9590
9480
  },
9591
- "validation": {
9592
- "allowedValues": {
9593
- "text": {
9594
- "text": {},
9595
- "type": "text",
9596
- },
9597
- "type": "text",
9598
- },
9599
- "required": {
9600
- "notRequired": {},
9601
- "type": "notRequired",
9602
- },
9481
+ "visibility": {
9482
+ "editable": {},
9483
+ "type": "editable",
9603
9484
  },
9604
9485
  },
9605
- },
9606
- "objectToModifyParameter": {
9607
- "conditionalOverrides": [
9608
- {
9609
- "condition": {
9610
- "comparison": {
9611
- "left": {
9612
- "type": "userProperty",
9613
- "userProperty": {
9614
- "propertyValue": {
9615
- "groupIds": {},
9616
- "type": "groupIds",
9617
- },
9618
- "userId": {
9619
- "currentUser": {},
9620
- "type": "currentUser",
9621
- },
9622
- },
9623
- },
9624
- "operator": "INTERSECTS",
9625
- "right": {
9626
- "staticValue": {
9627
- "stringList": {
9628
- "strings": [
9629
- "supervisors",
9630
- ],
9631
- },
9632
- "type": "stringList",
9633
- },
9634
- "type": "staticValue",
9635
- },
9636
- },
9637
- "type": "comparison",
9638
- },
9639
- "parameterBlockOverrides": [
9640
- {
9641
- "type": "visibility",
9642
- "visibility": {
9643
- "visibility": {
9644
- "editable": {},
9645
- "type": "editable",
9646
- },
9647
- },
9648
- },
9649
- ],
9650
- },
9651
- ],
9652
- "defaultValidation": {
9653
- "display": {
9654
- "renderHint": {
9655
- "dropdown": {},
9656
- "type": "dropdown",
9657
- },
9658
- "visibility": {
9659
- "editable": {},
9660
- "type": "editable",
9661
- },
9662
- },
9663
- "validation": {
9664
- "allowedValues": {
9665
- "objectQuery": {
9666
- "objectQuery": {},
9667
- "type": "objectQuery",
9668
- },
9486
+ "validation": {
9487
+ "allowedValues": {
9488
+ "objectQuery": {
9489
+ "objectQuery": {},
9669
9490
  "type": "objectQuery",
9670
9491
  },
9671
- "required": {
9672
- "required": {},
9673
- "type": "required",
9492
+ "type": "objectQuery",
9493
+ },
9494
+ "required": {
9495
+ "listLengthValidation": {
9496
+ "maxLength": 5,
9497
+ "minLength": 1,
9674
9498
  },
9499
+ "type": "listLengthValidation",
9675
9500
  },
9676
9501
  },
9677
9502
  },
9678
9503
  },
9679
- "sectionValidations": {},
9680
9504
  },
9505
+ "sectionValidations": {},
9681
9506
  },
9682
- "metadata": {
9683
- "apiName": "com.palantir.modify-object-employee",
9684
- "displayMetadata": {
9685
- "configuration": {
9686
- "defaultLayout": "FORM",
9687
- "displayAndFormat": {
9688
- "table": {
9689
- "columnWidthByParameterRid": {},
9690
- "enableFileImport": true,
9691
- "fitHorizontally": false,
9692
- "frozenColumnCount": 0,
9693
- "rowHeightInLines": 1,
9694
- },
9695
- },
9696
- "enableLayoutUserSwitch": false,
9697
- },
9698
- "description": "",
9699
- "displayName": "Modify Employee",
9700
- "icon": {
9701
- "blueprint": {
9702
- "color": "#000000",
9703
- "locator": "edit",
9507
+ },
9508
+ "metadata": {
9509
+ "apiName": "com.palantir.delete-object-employee",
9510
+ "displayMetadata": {
9511
+ "configuration": {
9512
+ "defaultLayout": "FORM",
9513
+ "displayAndFormat": {
9514
+ "table": {
9515
+ "columnWidthByParameterRid": {},
9516
+ "enableFileImport": true,
9517
+ "fitHorizontally": false,
9518
+ "frozenColumnCount": 0,
9519
+ "rowHeightInLines": 1,
9704
9520
  },
9705
- "type": "blueprint",
9706
9521
  },
9707
- "successMessage": [],
9708
- "typeClasses": [],
9522
+ "enableLayoutUserSwitch": false,
9709
9523
  },
9710
- "entities": {
9711
- "affectedInterfaceTypes": [],
9712
- "affectedLinkTypes": [],
9713
- "affectedObjectTypes": [
9714
- "com.palantir.employee",
9715
- ],
9716
- "typeGroups": [],
9524
+ "description": "",
9525
+ "displayName": "Delete Employee",
9526
+ "icon": {
9527
+ "blueprint": {
9528
+ "color": "#000000",
9529
+ "locator": "edit",
9530
+ },
9531
+ "type": "blueprint",
9717
9532
  },
9718
- "formContentOrdering": [],
9719
- "parameterOrdering": [
9720
- "objectToModifyParameter",
9721
- "managedBy",
9533
+ "successMessage": [],
9534
+ "typeClasses": [],
9535
+ },
9536
+ "entities": {
9537
+ "affectedInterfaceTypes": [],
9538
+ "affectedLinkTypes": [],
9539
+ "affectedObjectTypes": [
9540
+ "com.palantir.employee",
9722
9541
  ],
9723
- "parameters": {
9724
- "managedBy": {
9725
- "displayMetadata": {
9726
- "description": "",
9727
- "displayName": "ManagedBy",
9728
- "typeClasses": [],
9729
- },
9730
- "id": "managedBy",
9731
- "type": {
9732
- "string": {},
9733
- "type": "string",
9734
- },
9542
+ "typeGroups": [],
9543
+ },
9544
+ "formContentOrdering": [],
9545
+ "parameterOrdering": [
9546
+ "objectToDeleteParameter",
9547
+ ],
9548
+ "parameters": {
9549
+ "objectToDeleteParameter": {
9550
+ "displayMetadata": {
9551
+ "description": "Description",
9552
+ "displayName": "Chose managers to delete",
9553
+ "typeClasses": [],
9735
9554
  },
9736
- "objectToModifyParameter": {
9737
- "displayMetadata": {
9738
- "description": "Description",
9739
- "displayName": "Chose a manager to modify",
9740
- "typeClasses": [],
9741
- },
9742
- "id": "objectToModifyParameter",
9743
- "type": {
9744
- "objectReference": {
9745
- "objectTypeId": "com.palantir.employee",
9746
- },
9747
- "type": "objectReference",
9555
+ "id": "objectToDeleteParameter",
9556
+ "type": {
9557
+ "objectReferenceList": {
9558
+ "objectTypeId": "com.palantir.employee",
9748
9559
  },
9560
+ "type": "objectReferenceList",
9749
9561
  },
9750
9562
  },
9751
- "sections": {},
9752
- "status": {
9753
- "active": {},
9754
- "type": "active",
9755
- },
9563
+ },
9564
+ "sections": {},
9565
+ "status": {
9566
+ "active": {},
9567
+ "type": "active",
9756
9568
  },
9757
9569
  },
9758
9570
  },
9759
9571
  },
9760
- "blockPermissionInformation": {
9761
- "actionTypes": {},
9762
- "linkTypes": {},
9763
- "objectTypes": {},
9764
- },
9765
- "interfaceTypes": {
9766
- "com.palantir.exampleInterface": {
9767
- "interfaceType": {
9768
- "apiName": "com.palantir.exampleInterface",
9769
- "displayMetadata": {
9770
- "description": "exampleInterface",
9771
- "displayName": "exampleInterface",
9772
- "icon": {
9773
- "blueprint": {
9774
- "color": "#4C90F0",
9775
- "locator": "layout-hierarchy",
9572
+ "com.palantir.modify-example-interface": {
9573
+ "actionType": {
9574
+ "actionTypeLogic": {
9575
+ "logic": {
9576
+ "rules": [
9577
+ {
9578
+ "modifyInterfaceRule": {
9579
+ "interfaceObjectToModifyParameter": "interfaceObjectToModifyParameter",
9580
+ "sharedPropertyValues": {
9581
+ "com.palantir.property1": {
9582
+ "parameterId": "com.palantir.property1",
9583
+ "type": "parameterId",
9584
+ },
9585
+ },
9586
+ },
9587
+ "type": "modifyInterfaceRule",
9776
9588
  },
9777
- "type": "blueprint",
9778
- },
9589
+ ],
9779
9590
  },
9780
- "extendsInterfaces": [],
9781
- "links": [],
9782
- "properties": [],
9783
- "propertiesV2": {
9784
- "com.palantir.property1": {
9785
- "required": true,
9786
- "sharedPropertyType": {
9787
- "aliases": [],
9788
- "apiName": "com.palantir.property1",
9789
- "baseFormatter": undefined,
9790
- "dataConstraints": undefined,
9791
- "displayMetadata": {
9792
- "description": undefined,
9793
- "displayName": "property1",
9794
- "visibility": "NORMAL",
9795
- },
9796
- "gothamMapping": undefined,
9797
- "indexedForSearch": true,
9798
- "type": {
9799
- "string": {
9800
- "analyzerOverride": undefined,
9801
- "enableAsciiFolding": undefined,
9802
- "isLongText": false,
9803
- "supportsEfficientLeadingWildcard": false,
9804
- "supportsExactMatching": true,
9591
+ "validation": {
9592
+ "actionTypeLevelValidation": {
9593
+ "rules": {
9594
+ "0": {
9595
+ "condition": {
9596
+ "true": {},
9597
+ "type": "true",
9598
+ },
9599
+ "displayMetadata": {
9600
+ "failureMessage": "",
9601
+ "typeClasses": [],
9805
9602
  },
9806
- "type": "string",
9807
9603
  },
9808
- "typeClasses": [
9809
- {
9810
- "kind": "render_hint",
9811
- "name": "SELECTABLE",
9604
+ },
9605
+ },
9606
+ "parameterValidations": {
9607
+ "com.palantir.property1": {
9608
+ "conditionalOverrides": [],
9609
+ "defaultValidation": {
9610
+ "display": {
9611
+ "renderHint": {
9612
+ "textInput": {},
9613
+ "type": "textInput",
9614
+ },
9615
+ "visibility": {
9616
+ "editable": {},
9617
+ "type": "editable",
9618
+ },
9812
9619
  },
9620
+ "validation": {
9621
+ "allowedValues": {
9622
+ "text": {
9623
+ "text": {},
9624
+ "type": "text",
9625
+ },
9626
+ "type": "text",
9627
+ },
9628
+ "required": {
9629
+ "required": {},
9630
+ "type": "required",
9631
+ },
9632
+ },
9633
+ },
9634
+ },
9635
+ "interfaceObjectToModifyParameter": {
9636
+ "conditionalOverrides": [
9813
9637
  {
9814
- "kind": "render_hint",
9815
- "name": "SORTABLE",
9638
+ "condition": {
9639
+ "comparison": {
9640
+ "left": {
9641
+ "type": "userProperty",
9642
+ "userProperty": {
9643
+ "propertyValue": {
9644
+ "groupIds": {},
9645
+ "type": "groupIds",
9646
+ },
9647
+ "userId": {
9648
+ "currentUser": {},
9649
+ "type": "currentUser",
9650
+ },
9651
+ },
9652
+ },
9653
+ "operator": "INTERSECTS",
9654
+ "right": {
9655
+ "staticValue": {
9656
+ "stringList": {
9657
+ "strings": [
9658
+ "supervisors",
9659
+ ],
9660
+ },
9661
+ "type": "stringList",
9662
+ },
9663
+ "type": "staticValue",
9664
+ },
9665
+ },
9666
+ "type": "comparison",
9667
+ },
9668
+ "parameterBlockOverrides": [
9669
+ {
9670
+ "type": "visibility",
9671
+ "visibility": {
9672
+ "visibility": {
9673
+ "editable": {},
9674
+ "type": "editable",
9675
+ },
9676
+ },
9677
+ },
9678
+ ],
9816
9679
  },
9817
9680
  ],
9818
- "valueType": undefined,
9819
- },
9820
- },
9821
- },
9822
- "propertiesV3": {},
9823
- "searchable": true,
9824
- "status": {
9825
- "active": {},
9826
- "type": "active",
9827
- },
9828
- },
9829
- },
9830
- },
9831
- "linkTypes": {},
9832
- "objectTypes": {
9833
- "com.palantir.employee": {
9834
- "datasources": [
9835
- {
9836
- "datasource": {
9837
- "datasetV2": {
9838
- "datasetRid": "com.palantir.employee",
9839
- "propertyMapping": {
9840
- "id": {
9841
- "column": "id",
9842
- "type": "column",
9681
+ "defaultValidation": {
9682
+ "display": {
9683
+ "renderHint": {
9684
+ "dropdown": {},
9685
+ "type": "dropdown",
9686
+ },
9687
+ "visibility": {
9688
+ "editable": {},
9689
+ "type": "editable",
9690
+ },
9843
9691
  },
9844
- "managedBy": {
9845
- "column": "managedBy",
9846
- "type": "column",
9692
+ "validation": {
9693
+ "allowedValues": {
9694
+ "interfaceObjectQuery": {
9695
+ "interfaceObjectQuery": {},
9696
+ "type": "interfaceObjectQuery",
9697
+ },
9698
+ "type": "interfaceObjectQuery",
9699
+ },
9700
+ "required": {
9701
+ "required": {},
9702
+ "type": "required",
9703
+ },
9847
9704
  },
9848
9705
  },
9849
9706
  },
9850
- "type": "datasetV2",
9851
- },
9852
- "datasourceName": "com.palantir.employee",
9853
- "editsConfiguration": {
9854
- "onlyAllowPrivilegedEdits": false,
9855
9707
  },
9856
- "redacted": false,
9708
+ "sectionValidations": {},
9857
9709
  },
9858
- ],
9859
- "entityMetadata": {
9860
- "arePatchesEnabled": false,
9861
9710
  },
9862
- "objectType": {
9863
- "allImplementsInterfaces": {},
9864
- "apiName": "com.palantir.employee",
9711
+ "metadata": {
9712
+ "apiName": "com.palantir.modify-example-interface",
9865
9713
  "displayMetadata": {
9866
- "description": undefined,
9867
- "displayName": "Employee",
9868
- "groupDisplayName": undefined,
9714
+ "configuration": {
9715
+ "defaultLayout": "FORM",
9716
+ "displayAndFormat": {
9717
+ "table": {
9718
+ "columnWidthByParameterRid": {},
9719
+ "enableFileImport": true,
9720
+ "fitHorizontally": false,
9721
+ "frozenColumnCount": 0,
9722
+ "rowHeightInLines": 1,
9723
+ },
9724
+ },
9725
+ "enableLayoutUserSwitch": false,
9726
+ },
9727
+ "description": "",
9728
+ "displayName": "Modify exampleInterface",
9869
9729
  "icon": {
9870
9730
  "blueprint": {
9871
- "color": "#2D72D2",
9872
- "locator": "cube",
9731
+ "color": "#000000",
9732
+ "locator": "edit",
9873
9733
  },
9874
9734
  "type": "blueprint",
9875
9735
  },
9876
- "pluralDisplayName": "Employees",
9877
- "visibility": "NORMAL",
9736
+ "successMessage": [],
9737
+ "typeClasses": [],
9878
9738
  },
9879
- "implementsInterfaces2": [],
9880
- "primaryKeys": [
9881
- "id",
9882
- ],
9883
- "propertyTypes": {
9884
- "id": {
9885
- "apiName": "id",
9886
- "baseFormatter": undefined,
9887
- "dataConstraints": undefined,
9888
- "displayMetadata": {
9889
- "description": "dummy",
9890
- "displayName": "ID",
9891
- "visibility": "NORMAL",
9892
- },
9893
- "indexedForSearch": true,
9894
- "inlineAction": undefined,
9895
- "ruleSetBinding": undefined,
9896
- "sharedPropertyTypeApiName": undefined,
9897
- "sharedPropertyTypeRid": undefined,
9898
- "status": {
9899
- "active": {},
9900
- "type": "active",
9739
+ "entities": {
9740
+ "affectedInterfaceTypes": [
9741
+ "com.palantir.exampleInterface",
9742
+ ],
9743
+ "affectedLinkTypes": [],
9744
+ "affectedObjectTypes": [],
9745
+ "typeGroups": [],
9746
+ },
9747
+ "formContentOrdering": [],
9748
+ "parameterOrdering": [
9749
+ "interfaceObjectToModifyParameter",
9750
+ "com.palantir.property1",
9751
+ ],
9752
+ "parameters": {
9753
+ "com.palantir.property1": {
9754
+ "displayMetadata": {
9755
+ "description": "",
9756
+ "displayName": "property1",
9757
+ "typeClasses": [],
9901
9758
  },
9759
+ "id": "com.palantir.property1",
9902
9760
  "type": {
9903
- "string": {
9904
- "analyzerOverride": undefined,
9905
- "enableAsciiFolding": undefined,
9906
- "isLongText": false,
9907
- "supportsEfficientLeadingWildcard": false,
9908
- "supportsExactMatching": true,
9909
- },
9761
+ "string": {},
9910
9762
  "type": "string",
9911
9763
  },
9912
- "typeClasses": [
9913
- {
9914
- "kind": "render_hint",
9915
- "name": "SELECTABLE",
9916
- },
9917
- {
9918
- "kind": "render_hint",
9919
- "name": "SORTABLE",
9920
- },
9921
- ],
9922
- "valueType": undefined,
9923
9764
  },
9924
- "managedBy": {
9925
- "apiName": "managedBy",
9926
- "baseFormatter": undefined,
9927
- "dataConstraints": undefined,
9765
+ "interfaceObjectToModifyParameter": {
9928
9766
  "displayMetadata": {
9929
- "description": undefined,
9930
- "displayName": "ManagedBy",
9931
- "visibility": "NORMAL",
9932
- },
9933
- "indexedForSearch": true,
9934
- "inlineAction": undefined,
9935
- "ruleSetBinding": undefined,
9936
- "sharedPropertyTypeApiName": undefined,
9937
- "sharedPropertyTypeRid": undefined,
9938
- "status": {
9939
- "active": {},
9940
- "type": "active",
9767
+ "description": "Description",
9768
+ "displayName": "Choose an object to modify",
9769
+ "typeClasses": [],
9941
9770
  },
9771
+ "id": "interfaceObjectToModifyParameter",
9942
9772
  "type": {
9943
- "string": {
9944
- "analyzerOverride": undefined,
9945
- "enableAsciiFolding": undefined,
9946
- "isLongText": false,
9947
- "supportsEfficientLeadingWildcard": false,
9948
- "supportsExactMatching": true,
9773
+ "interfaceReference": {
9774
+ "interfaceTypeRid": "com.palantir.exampleInterface",
9949
9775
  },
9950
- "type": "string",
9776
+ "type": "interfaceReference",
9951
9777
  },
9952
- "typeClasses": [
9953
- {
9954
- "kind": "render_hint",
9955
- "name": "SELECTABLE",
9956
- },
9957
- {
9958
- "kind": "render_hint",
9959
- "name": "SORTABLE",
9960
- },
9961
- ],
9962
- "valueType": undefined,
9963
9778
  },
9964
9779
  },
9965
- "redacted": false,
9780
+ "sections": {},
9966
9781
  "status": {
9967
9782
  "active": {},
9968
9783
  "type": "active",
9969
9784
  },
9970
- "titlePropertyTypeRid": "id",
9971
- },
9972
- },
9973
- },
9974
- "sharedPropertyTypes": {
9975
- "com.palantir.property1": {
9976
- "sharedPropertyType": {
9977
- "aliases": [],
9978
- "apiName": "com.palantir.property1",
9979
- "baseFormatter": undefined,
9980
- "dataConstraints": undefined,
9981
- "displayMetadata": {
9982
- "description": undefined,
9983
- "displayName": "property1",
9984
- "visibility": "NORMAL",
9985
- },
9986
- "gothamMapping": undefined,
9987
- "indexedForSearch": true,
9988
- "type": {
9989
- "string": {
9990
- "analyzerOverride": undefined,
9991
- "enableAsciiFolding": undefined,
9992
- "isLongText": false,
9993
- "supportsEfficientLeadingWildcard": false,
9994
- "supportsExactMatching": true,
9995
- },
9996
- "type": "string",
9997
- },
9998
- "typeClasses": [
9999
- {
10000
- "kind": "render_hint",
10001
- "name": "SELECTABLE",
10002
- },
10003
- {
10004
- "kind": "render_hint",
10005
- "name": "SORTABLE",
10006
- },
10007
- ],
10008
- "valueType": undefined,
10009
9785
  },
10010
9786
  },
10011
9787
  },
10012
- },
10013
- "randomnessKey": undefined,
10014
- "valueTypes": {
10015
- "valueTypes": [],
10016
- },
10017
- }
10018
- `);});it("Conditional overrides on actions are properly defined",()=>{defineAction({apiName:"foo",displayName:"exampleAction",status:"active",rules:[{type:"modifyObjectRule",modifyObjectRule:{objectToModify:"objectToModifyParameter",propertyValues:{"bar":{type:"parameterId",parameterId:"param1"}},structFieldValues:{}}}],parameters:[{id:"param1",displayName:"param1",type:"boolean",validation:{required:true,allowedValues:{type:"boolean"},defaultVisibility:"editable",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"myGroup"}}]}},{id:"objectToModifyParameter",displayName:"objectToModifyParameter",type:"objectTypeReference",validation:{required:true,allowedValues:{type:"objectTypeReference",interfaceTypes:[]},defaultVisibility:"editable"}}]});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
10019
- {
10020
- "importedOntology": {
10021
- "actionTypes": {},
10022
- "blockPermissionInformation": {
10023
- "actionTypes": {},
10024
- "linkTypes": {},
10025
- "objectTypes": {},
10026
- },
10027
- "interfaceTypes": {},
10028
- "linkTypes": {},
10029
- "objectTypes": {},
10030
- "sharedPropertyTypes": {},
10031
- },
10032
- "importedValueTypes": {
10033
- "valueTypes": [],
10034
- },
10035
- "ontology": {
10036
- "actionTypes": {
10037
- "com.palantir.foo": {
10038
- "actionType": {
10039
- "actionTypeLogic": {
10040
- "logic": {
10041
- "rules": [
10042
- {
10043
- "modifyObjectRule": {
10044
- "objectToModify": "objectToModifyParameter",
10045
- "propertyValues": {
10046
- "bar": {
10047
- "parameterId": "param1",
10048
- "type": "parameterId",
10049
- },
9788
+ "com.palantir.modify-object-employee": {
9789
+ "actionType": {
9790
+ "actionTypeLogic": {
9791
+ "logic": {
9792
+ "rules": [
9793
+ {
9794
+ "modifyObjectRule": {
9795
+ "objectToModify": "objectToModifyParameter",
9796
+ "propertyValues": {
9797
+ "managedBy": {
9798
+ "parameterId": "managedBy",
9799
+ "type": "parameterId",
10050
9800
  },
10051
- "structFieldValues": {},
10052
9801
  },
10053
- "type": "modifyObjectRule",
9802
+ "structFieldValues": {},
10054
9803
  },
10055
- ],
10056
- },
10057
- "validation": {
10058
- "actionTypeLevelValidation": {
10059
- "rules": {
10060
- "0": {
10061
- "condition": {
10062
- "true": {},
10063
- "type": "true",
10064
- },
10065
- "displayMetadata": {
10066
- "failureMessage": "",
10067
- "typeClasses": [],
10068
- },
9804
+ "type": "modifyObjectRule",
9805
+ },
9806
+ ],
9807
+ },
9808
+ "validation": {
9809
+ "actionTypeLevelValidation": {
9810
+ "rules": {
9811
+ "0": {
9812
+ "condition": {
9813
+ "true": {},
9814
+ "type": "true",
9815
+ },
9816
+ "displayMetadata": {
9817
+ "failureMessage": "",
9818
+ "typeClasses": [],
10069
9819
  },
10070
9820
  },
10071
9821
  },
10072
- "parameterValidations": {
10073
- "objectToModifyParameter": {
10074
- "conditionalOverrides": [],
10075
- "defaultValidation": {
10076
- "display": {
10077
- "renderHint": {
10078
- "dropdown": {},
10079
- "type": "dropdown",
10080
- },
10081
- "visibility": {
10082
- "editable": {},
10083
- "type": "editable",
9822
+ },
9823
+ "parameterValidations": {
9824
+ "managedBy": {
9825
+ "conditionalOverrides": [],
9826
+ "defaultValidation": {
9827
+ "display": {
9828
+ "prefill": {
9829
+ "objectParameterPropertyValue": {
9830
+ "parameterId": "objectToModifyParameter",
9831
+ "propertyTypeId": "managedBy",
10084
9832
  },
9833
+ "type": "objectParameterPropertyValue",
10085
9834
  },
10086
- "validation": {
10087
- "allowedValues": {
10088
- "objectTypeReference": {
10089
- "objectTypeReference": {
10090
- "interfaceTypeRids": [],
10091
- },
10092
- "type": "objectTypeReference",
10093
- },
10094
- "type": "objectTypeReference",
10095
- },
10096
- "required": {
10097
- "required": {},
10098
- "type": "required",
10099
- },
9835
+ "renderHint": {
9836
+ "textInput": {},
9837
+ "type": "textInput",
9838
+ },
9839
+ "visibility": {
9840
+ "editable": {},
9841
+ "type": "editable",
10100
9842
  },
10101
9843
  },
10102
- },
10103
- "param1": {
10104
- "conditionalOverrides": [
10105
- {
10106
- "condition": {
10107
- "comparison": {
10108
- "left": {
10109
- "type": "userProperty",
10110
- "userProperty": {
10111
- "propertyValue": {
10112
- "groupIds": {},
10113
- "type": "groupIds",
10114
- },
10115
- "userId": {
10116
- "currentUser": {},
10117
- "type": "currentUser",
10118
- },
9844
+ "validation": {
9845
+ "allowedValues": {
9846
+ "text": {
9847
+ "text": {},
9848
+ "type": "text",
9849
+ },
9850
+ "type": "text",
9851
+ },
9852
+ "required": {
9853
+ "notRequired": {},
9854
+ "type": "notRequired",
9855
+ },
9856
+ },
9857
+ },
9858
+ },
9859
+ "objectToModifyParameter": {
9860
+ "conditionalOverrides": [
9861
+ {
9862
+ "condition": {
9863
+ "comparison": {
9864
+ "left": {
9865
+ "type": "userProperty",
9866
+ "userProperty": {
9867
+ "propertyValue": {
9868
+ "groupIds": {},
9869
+ "type": "groupIds",
10119
9870
  },
10120
- },
10121
- "operator": "INTERSECTS",
10122
- "right": {
10123
- "staticValue": {
10124
- "stringList": {
10125
- "strings": [
10126
- "myGroup",
10127
- ],
10128
- },
10129
- "type": "stringList",
9871
+ "userId": {
9872
+ "currentUser": {},
9873
+ "type": "currentUser",
10130
9874
  },
10131
- "type": "staticValue",
10132
9875
  },
10133
9876
  },
10134
- "type": "comparison",
10135
- },
10136
- "parameterBlockOverrides": [
10137
- {
10138
- "type": "visibility",
10139
- "visibility": {
10140
- "visibility": {
10141
- "hidden": {},
10142
- "type": "hidden",
9877
+ "operator": "INTERSECTS",
9878
+ "right": {
9879
+ "staticValue": {
9880
+ "stringList": {
9881
+ "strings": [
9882
+ "supervisors",
9883
+ ],
10143
9884
  },
9885
+ "type": "stringList",
10144
9886
  },
9887
+ "type": "staticValue",
10145
9888
  },
10146
- ],
10147
- },
10148
- ],
10149
- "defaultValidation": {
10150
- "display": {
10151
- "renderHint": {
10152
- "checkbox": {},
10153
- "type": "checkbox",
10154
- },
10155
- "visibility": {
10156
- "editable": {},
10157
- "type": "editable",
10158
9889
  },
9890
+ "type": "comparison",
10159
9891
  },
10160
- "validation": {
10161
- "allowedValues": {
10162
- "boolean": {
10163
- "boolean": {},
10164
- "type": "boolean",
9892
+ "parameterBlockOverrides": [
9893
+ {
9894
+ "type": "visibility",
9895
+ "visibility": {
9896
+ "visibility": {
9897
+ "editable": {},
9898
+ "type": "editable",
9899
+ },
10165
9900
  },
10166
- "type": "boolean",
10167
9901
  },
10168
- "required": {
10169
- "required": {},
10170
- "type": "required",
9902
+ ],
9903
+ },
9904
+ ],
9905
+ "defaultValidation": {
9906
+ "display": {
9907
+ "renderHint": {
9908
+ "dropdown": {},
9909
+ "type": "dropdown",
9910
+ },
9911
+ "visibility": {
9912
+ "editable": {},
9913
+ "type": "editable",
9914
+ },
9915
+ },
9916
+ "validation": {
9917
+ "allowedValues": {
9918
+ "objectQuery": {
9919
+ "objectQuery": {},
9920
+ "type": "objectQuery",
10171
9921
  },
9922
+ "type": "objectQuery",
9923
+ },
9924
+ "required": {
9925
+ "required": {},
9926
+ "type": "required",
10172
9927
  },
10173
9928
  },
10174
9929
  },
10175
9930
  },
10176
- "sectionValidations": {},
10177
9931
  },
9932
+ "sectionValidations": {},
10178
9933
  },
10179
- "metadata": {
10180
- "apiName": "com.palantir.foo",
10181
- "displayMetadata": {
10182
- "configuration": {
10183
- "defaultLayout": "FORM",
10184
- "displayAndFormat": {
10185
- "table": {
10186
- "columnWidthByParameterRid": {},
10187
- "enableFileImport": true,
10188
- "fitHorizontally": false,
10189
- "frozenColumnCount": 0,
10190
- "rowHeightInLines": 1,
10191
- },
10192
- },
10193
- "enableLayoutUserSwitch": false,
10194
- },
10195
- "description": "",
10196
- "displayName": "exampleAction",
10197
- "icon": {
10198
- "blueprint": {
10199
- "color": "#000000",
10200
- "locator": "edit",
9934
+ },
9935
+ "metadata": {
9936
+ "apiName": "com.palantir.modify-object-employee",
9937
+ "displayMetadata": {
9938
+ "configuration": {
9939
+ "defaultLayout": "FORM",
9940
+ "displayAndFormat": {
9941
+ "table": {
9942
+ "columnWidthByParameterRid": {},
9943
+ "enableFileImport": true,
9944
+ "fitHorizontally": false,
9945
+ "frozenColumnCount": 0,
9946
+ "rowHeightInLines": 1,
10201
9947
  },
10202
- "type": "blueprint",
10203
9948
  },
10204
- "successMessage": [],
10205
- "typeClasses": [],
9949
+ "enableLayoutUserSwitch": false,
10206
9950
  },
10207
- "entities": {
10208
- "affectedInterfaceTypes": [],
10209
- "affectedLinkTypes": [],
10210
- "affectedObjectTypes": [],
10211
- "typeGroups": [],
9951
+ "description": "",
9952
+ "displayName": "Modify Employee",
9953
+ "icon": {
9954
+ "blueprint": {
9955
+ "color": "#000000",
9956
+ "locator": "edit",
9957
+ },
9958
+ "type": "blueprint",
10212
9959
  },
10213
- "formContentOrdering": [],
10214
- "parameterOrdering": [
10215
- "param1",
10216
- "objectToModifyParameter",
9960
+ "successMessage": [],
9961
+ "typeClasses": [],
9962
+ },
9963
+ "entities": {
9964
+ "affectedInterfaceTypes": [],
9965
+ "affectedLinkTypes": [],
9966
+ "affectedObjectTypes": [
9967
+ "com.palantir.employee",
10217
9968
  ],
10218
- "parameters": {
10219
- "objectToModifyParameter": {
10220
- "displayMetadata": {
10221
- "description": "",
10222
- "displayName": "objectToModifyParameter",
10223
- "typeClasses": [],
10224
- },
10225
- "id": "objectToModifyParameter",
10226
- "type": {
10227
- "objectTypeReference": {},
10228
- "type": "objectTypeReference",
10229
- },
9969
+ "typeGroups": [],
9970
+ },
9971
+ "formContentOrdering": [],
9972
+ "parameterOrdering": [
9973
+ "objectToModifyParameter",
9974
+ "managedBy",
9975
+ ],
9976
+ "parameters": {
9977
+ "managedBy": {
9978
+ "displayMetadata": {
9979
+ "description": "",
9980
+ "displayName": "ManagedBy",
9981
+ "typeClasses": [],
10230
9982
  },
10231
- "param1": {
10232
- "displayMetadata": {
10233
- "description": "",
10234
- "displayName": "param1",
10235
- "typeClasses": [],
10236
- },
10237
- "id": "param1",
10238
- "type": {
10239
- "boolean": {},
10240
- "type": "boolean",
10241
- },
9983
+ "id": "managedBy",
9984
+ "type": {
9985
+ "string": {},
9986
+ "type": "string",
10242
9987
  },
10243
9988
  },
10244
- "sections": {},
10245
- "status": {
10246
- "active": {},
10247
- "type": "active",
9989
+ "objectToModifyParameter": {
9990
+ "displayMetadata": {
9991
+ "description": "Description",
9992
+ "displayName": "Chose a manager to modify",
9993
+ "typeClasses": [],
9994
+ },
9995
+ "id": "objectToModifyParameter",
9996
+ "type": {
9997
+ "objectReference": {
9998
+ "objectTypeId": "com.palantir.employee",
9999
+ },
10000
+ "type": "objectReference",
10001
+ },
10248
10002
  },
10249
10003
  },
10004
+ "sections": {},
10005
+ "status": {
10006
+ "active": {},
10007
+ "type": "active",
10008
+ },
10250
10009
  },
10251
10010
  },
10252
10011
  },
10253
- "blockPermissionInformation": {
10254
- "actionTypes": {},
10255
- "linkTypes": {},
10256
- "objectTypes": {},
10257
- },
10258
- "interfaceTypes": {},
10012
+ },
10013
+ "blockPermissionInformation": {
10014
+ "actionTypes": {},
10259
10015
  "linkTypes": {},
10260
10016
  "objectTypes": {},
10261
- "sharedPropertyTypes": {},
10262
- },
10263
- "randomnessKey": undefined,
10264
- "valueTypes": {
10265
- "valueTypes": [],
10266
10017
  },
10267
- }
10268
- `);});it("OAC defined object references as parameters are properly defined",()=>{// This test defines an action that creates an OAC-defined employee object type and also adds an additional parameter
10269
- // for an objectReference to a manager object type that is also defined in OAC. The action shows how you can use this
10270
- // objectReference parameter elsewhere in the action - in this case we are prefilling the managedBy property to be the
10271
- // id of the selected manager object type.
10272
- const employeeObject=defineObject({apiName:"employee",displayName:"Employee",pluralDisplayName:"Employees",titlePropertyApiName:"id",primaryKeyPropertyApiName:"id",properties:{"id":{type:"string",displayName:"ID",description:"dummy"},"managedBy":{type:"string"}}});const managerObject=defineObject({apiName:"manager",displayName:"Manager",pluralDisplayName:"Managers",titlePropertyApiName:"id",primaryKeyPropertyApiName:"id",properties:{"id":{type:"string",displayName:"ID",description:"dummy"}},editsEnabled:true});defineCreateObjectAction({objectType:employeeObject,parameterOrdering:["myManager","id","managedBy"],parameterConfiguration:{"myManager":{customParameterType:{type:"objectReference",objectReference:{objectTypeId:managerObject.apiName}}},"managedBy":{defaultValue:{type:"objectParameterPropertyValue",objectParameterPropertyValue:{parameterId:"myManager",propertyTypeId:"id"}}}}});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
10018
+ "interfaceTypes": {
10019
+ "com.palantir.exampleInterface": {
10020
+ "interfaceType": {
10021
+ "apiName": "com.palantir.exampleInterface",
10022
+ "displayMetadata": {
10023
+ "description": "exampleInterface",
10024
+ "displayName": "exampleInterface",
10025
+ "icon": {
10026
+ "blueprint": {
10027
+ "color": "#4C90F0",
10028
+ "locator": "layout-hierarchy",
10029
+ },
10030
+ "type": "blueprint",
10031
+ },
10032
+ },
10033
+ "extendsInterfaces": [],
10034
+ "links": [],
10035
+ "properties": [],
10036
+ "propertiesV2": {
10037
+ "com.palantir.property1": {
10038
+ "required": true,
10039
+ "sharedPropertyType": {
10040
+ "aliases": [],
10041
+ "apiName": "com.palantir.property1",
10042
+ "baseFormatter": undefined,
10043
+ "dataConstraints": undefined,
10044
+ "displayMetadata": {
10045
+ "description": undefined,
10046
+ "displayName": "property1",
10047
+ "visibility": "NORMAL",
10048
+ },
10049
+ "gothamMapping": undefined,
10050
+ "indexedForSearch": true,
10051
+ "type": {
10052
+ "string": {
10053
+ "analyzerOverride": undefined,
10054
+ "enableAsciiFolding": undefined,
10055
+ "isLongText": false,
10056
+ "supportsEfficientLeadingWildcard": false,
10057
+ "supportsExactMatching": true,
10058
+ },
10059
+ "type": "string",
10060
+ },
10061
+ "typeClasses": [
10062
+ {
10063
+ "kind": "render_hint",
10064
+ "name": "SELECTABLE",
10065
+ },
10066
+ {
10067
+ "kind": "render_hint",
10068
+ "name": "SORTABLE",
10069
+ },
10070
+ ],
10071
+ "valueType": undefined,
10072
+ },
10073
+ },
10074
+ },
10075
+ "propertiesV3": {},
10076
+ "searchable": true,
10077
+ "status": {
10078
+ "active": {},
10079
+ "type": "active",
10080
+ },
10081
+ },
10082
+ },
10083
+ },
10084
+ "linkTypes": {},
10085
+ "objectTypes": {
10086
+ "com.palantir.employee": {
10087
+ "datasources": [
10088
+ {
10089
+ "datasource": {
10090
+ "datasetV2": {
10091
+ "datasetRid": "com.palantir.employee",
10092
+ "propertyMapping": {
10093
+ "id": {
10094
+ "column": "id",
10095
+ "type": "column",
10096
+ },
10097
+ "managedBy": {
10098
+ "column": "managedBy",
10099
+ "type": "column",
10100
+ },
10101
+ },
10102
+ },
10103
+ "type": "datasetV2",
10104
+ },
10105
+ "datasourceName": "com.palantir.employee",
10106
+ "editsConfiguration": {
10107
+ "onlyAllowPrivilegedEdits": false,
10108
+ },
10109
+ "redacted": false,
10110
+ },
10111
+ ],
10112
+ "entityMetadata": {
10113
+ "arePatchesEnabled": false,
10114
+ },
10115
+ "objectType": {
10116
+ "allImplementsInterfaces": {},
10117
+ "apiName": "com.palantir.employee",
10118
+ "displayMetadata": {
10119
+ "description": undefined,
10120
+ "displayName": "Employee",
10121
+ "groupDisplayName": undefined,
10122
+ "icon": {
10123
+ "blueprint": {
10124
+ "color": "#2D72D2",
10125
+ "locator": "cube",
10126
+ },
10127
+ "type": "blueprint",
10128
+ },
10129
+ "pluralDisplayName": "Employees",
10130
+ "visibility": "NORMAL",
10131
+ },
10132
+ "implementsInterfaces2": [],
10133
+ "primaryKeys": [
10134
+ "id",
10135
+ ],
10136
+ "propertyTypes": {
10137
+ "id": {
10138
+ "apiName": "id",
10139
+ "baseFormatter": undefined,
10140
+ "dataConstraints": undefined,
10141
+ "displayMetadata": {
10142
+ "description": "dummy",
10143
+ "displayName": "ID",
10144
+ "visibility": "NORMAL",
10145
+ },
10146
+ "indexedForSearch": true,
10147
+ "inlineAction": undefined,
10148
+ "ruleSetBinding": undefined,
10149
+ "sharedPropertyTypeApiName": undefined,
10150
+ "sharedPropertyTypeRid": undefined,
10151
+ "status": {
10152
+ "active": {},
10153
+ "type": "active",
10154
+ },
10155
+ "type": {
10156
+ "string": {
10157
+ "analyzerOverride": undefined,
10158
+ "enableAsciiFolding": undefined,
10159
+ "isLongText": false,
10160
+ "supportsEfficientLeadingWildcard": false,
10161
+ "supportsExactMatching": true,
10162
+ },
10163
+ "type": "string",
10164
+ },
10165
+ "typeClasses": [
10166
+ {
10167
+ "kind": "render_hint",
10168
+ "name": "SELECTABLE",
10169
+ },
10170
+ {
10171
+ "kind": "render_hint",
10172
+ "name": "SORTABLE",
10173
+ },
10174
+ ],
10175
+ "valueType": undefined,
10176
+ },
10177
+ "managedBy": {
10178
+ "apiName": "managedBy",
10179
+ "baseFormatter": undefined,
10180
+ "dataConstraints": undefined,
10181
+ "displayMetadata": {
10182
+ "description": undefined,
10183
+ "displayName": "ManagedBy",
10184
+ "visibility": "NORMAL",
10185
+ },
10186
+ "indexedForSearch": true,
10187
+ "inlineAction": undefined,
10188
+ "ruleSetBinding": undefined,
10189
+ "sharedPropertyTypeApiName": undefined,
10190
+ "sharedPropertyTypeRid": undefined,
10191
+ "status": {
10192
+ "active": {},
10193
+ "type": "active",
10194
+ },
10195
+ "type": {
10196
+ "string": {
10197
+ "analyzerOverride": undefined,
10198
+ "enableAsciiFolding": undefined,
10199
+ "isLongText": false,
10200
+ "supportsEfficientLeadingWildcard": false,
10201
+ "supportsExactMatching": true,
10202
+ },
10203
+ "type": "string",
10204
+ },
10205
+ "typeClasses": [
10206
+ {
10207
+ "kind": "render_hint",
10208
+ "name": "SELECTABLE",
10209
+ },
10210
+ {
10211
+ "kind": "render_hint",
10212
+ "name": "SORTABLE",
10213
+ },
10214
+ ],
10215
+ "valueType": undefined,
10216
+ },
10217
+ },
10218
+ "redacted": false,
10219
+ "status": {
10220
+ "active": {},
10221
+ "type": "active",
10222
+ },
10223
+ "titlePropertyTypeRid": "id",
10224
+ },
10225
+ },
10226
+ },
10227
+ "sharedPropertyTypes": {
10228
+ "com.palantir.property1": {
10229
+ "sharedPropertyType": {
10230
+ "aliases": [],
10231
+ "apiName": "com.palantir.property1",
10232
+ "baseFormatter": undefined,
10233
+ "dataConstraints": undefined,
10234
+ "displayMetadata": {
10235
+ "description": undefined,
10236
+ "displayName": "property1",
10237
+ "visibility": "NORMAL",
10238
+ },
10239
+ "gothamMapping": undefined,
10240
+ "indexedForSearch": true,
10241
+ "type": {
10242
+ "string": {
10243
+ "analyzerOverride": undefined,
10244
+ "enableAsciiFolding": undefined,
10245
+ "isLongText": false,
10246
+ "supportsEfficientLeadingWildcard": false,
10247
+ "supportsExactMatching": true,
10248
+ },
10249
+ "type": "string",
10250
+ },
10251
+ "typeClasses": [
10252
+ {
10253
+ "kind": "render_hint",
10254
+ "name": "SELECTABLE",
10255
+ },
10256
+ {
10257
+ "kind": "render_hint",
10258
+ "name": "SORTABLE",
10259
+ },
10260
+ ],
10261
+ "valueType": undefined,
10262
+ },
10263
+ },
10264
+ },
10265
+ },
10266
+ "randomnessKey": undefined,
10267
+ "valueTypes": {
10268
+ "valueTypes": [],
10269
+ },
10270
+ }
10271
+ `);});it("Conditional overrides on actions are properly defined",()=>{defineAction({apiName:"foo",displayName:"exampleAction",status:"active",rules:[{type:"modifyObjectRule",modifyObjectRule:{objectToModify:"objectToModifyParameter",propertyValues:{"bar":{type:"parameterId",parameterId:"param1"}},structFieldValues:{}}}],parameters:[{id:"param1",displayName:"param1",type:"boolean",validation:{required:true,allowedValues:{type:"boolean"},defaultVisibility:"editable",conditionalOverrides:[{type:"visibility",condition:{type:"group",name:"myGroup"}}]}},{id:"objectToModifyParameter",displayName:"objectToModifyParameter",type:"objectTypeReference",validation:{required:true,allowedValues:{type:"objectTypeReference",interfaceTypes:[]},defaultVisibility:"editable"}}]});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
10273
10272
  {
10274
10273
  "importedOntology": {
10275
10274
  "actionTypes": {},
@@ -10288,27 +10287,23 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
10288
10287
  },
10289
10288
  "ontology": {
10290
10289
  "actionTypes": {
10291
- "com.palantir.create-object-employee": {
10290
+ "com.palantir.foo": {
10292
10291
  "actionType": {
10293
10292
  "actionTypeLogic": {
10294
10293
  "logic": {
10295
10294
  "rules": [
10296
10295
  {
10297
- "addObjectRule": {
10298
- "objectTypeId": "com.palantir.employee",
10296
+ "modifyObjectRule": {
10297
+ "objectToModify": "objectToModifyParameter",
10299
10298
  "propertyValues": {
10300
- "id": {
10301
- "parameterId": "id",
10302
- "type": "parameterId",
10303
- },
10304
- "managedBy": {
10305
- "parameterId": "managedBy",
10299
+ "bar": {
10300
+ "parameterId": "param1",
10306
10301
  "type": "parameterId",
10307
10302
  },
10308
10303
  },
10309
10304
  "structFieldValues": {},
10310
10305
  },
10311
- "type": "addObjectRule",
10306
+ "type": "modifyObjectRule",
10312
10307
  },
10313
10308
  ],
10314
10309
  },
@@ -10328,13 +10323,13 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
10328
10323
  },
10329
10324
  },
10330
10325
  "parameterValidations": {
10331
- "id": {
10326
+ "objectToModifyParameter": {
10332
10327
  "conditionalOverrides": [],
10333
10328
  "defaultValidation": {
10334
10329
  "display": {
10335
10330
  "renderHint": {
10336
- "textInput": {},
10337
- "type": "textInput",
10331
+ "dropdown": {},
10332
+ "type": "dropdown",
10338
10333
  },
10339
10334
  "visibility": {
10340
10335
  "editable": {},
@@ -10343,61 +10338,72 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
10343
10338
  },
10344
10339
  "validation": {
10345
10340
  "allowedValues": {
10346
- "text": {
10347
- "text": {},
10348
- "type": "text",
10341
+ "objectTypeReference": {
10342
+ "objectTypeReference": {
10343
+ "interfaceTypeRids": [],
10344
+ },
10345
+ "type": "objectTypeReference",
10349
10346
  },
10350
- "type": "text",
10347
+ "type": "objectTypeReference",
10351
10348
  },
10352
10349
  "required": {
10353
- "notRequired": {},
10354
- "type": "notRequired",
10350
+ "required": {},
10351
+ "type": "required",
10355
10352
  },
10356
10353
  },
10357
10354
  },
10358
10355
  },
10359
- "managedBy": {
10360
- "conditionalOverrides": [],
10361
- "defaultValidation": {
10362
- "display": {
10363
- "prefill": {
10364
- "objectParameterPropertyValue": {
10365
- "parameterId": "myManager",
10366
- "propertyTypeId": "id",
10356
+ "param1": {
10357
+ "conditionalOverrides": [
10358
+ {
10359
+ "condition": {
10360
+ "comparison": {
10361
+ "left": {
10362
+ "type": "userProperty",
10363
+ "userProperty": {
10364
+ "propertyValue": {
10365
+ "groupIds": {},
10366
+ "type": "groupIds",
10367
+ },
10368
+ "userId": {
10369
+ "currentUser": {},
10370
+ "type": "currentUser",
10371
+ },
10372
+ },
10373
+ },
10374
+ "operator": "INTERSECTS",
10375
+ "right": {
10376
+ "staticValue": {
10377
+ "stringList": {
10378
+ "strings": [
10379
+ "myGroup",
10380
+ ],
10381
+ },
10382
+ "type": "stringList",
10383
+ },
10384
+ "type": "staticValue",
10385
+ },
10367
10386
  },
10368
- "type": "objectParameterPropertyValue",
10369
- },
10370
- "renderHint": {
10371
- "textInput": {},
10372
- "type": "textInput",
10373
- },
10374
- "visibility": {
10375
- "editable": {},
10376
- "type": "editable",
10387
+ "type": "comparison",
10377
10388
  },
10378
- },
10379
- "validation": {
10380
- "allowedValues": {
10381
- "text": {
10382
- "text": {},
10383
- "type": "text",
10389
+ "parameterBlockOverrides": [
10390
+ {
10391
+ "type": "visibility",
10392
+ "visibility": {
10393
+ "visibility": {
10394
+ "hidden": {},
10395
+ "type": "hidden",
10396
+ },
10397
+ },
10384
10398
  },
10385
- "type": "text",
10386
- },
10387
- "required": {
10388
- "notRequired": {},
10389
- "type": "notRequired",
10390
- },
10399
+ ],
10391
10400
  },
10392
- },
10393
- },
10394
- "myManager": {
10395
- "conditionalOverrides": [],
10401
+ ],
10396
10402
  "defaultValidation": {
10397
10403
  "display": {
10398
10404
  "renderHint": {
10399
- "dropdown": {},
10400
- "type": "dropdown",
10405
+ "checkbox": {},
10406
+ "type": "checkbox",
10401
10407
  },
10402
10408
  "visibility": {
10403
10409
  "editable": {},
@@ -10406,15 +10412,15 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
10406
10412
  },
10407
10413
  "validation": {
10408
10414
  "allowedValues": {
10409
- "objectQuery": {
10410
- "objectQuery": {},
10411
- "type": "objectQuery",
10415
+ "boolean": {
10416
+ "boolean": {},
10417
+ "type": "boolean",
10412
10418
  },
10413
- "type": "objectQuery",
10419
+ "type": "boolean",
10414
10420
  },
10415
10421
  "required": {
10416
- "notRequired": {},
10417
- "type": "notRequired",
10422
+ "required": {},
10423
+ "type": "required",
10418
10424
  },
10419
10425
  },
10420
10426
  },
@@ -10424,7 +10430,7 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
10424
10430
  },
10425
10431
  },
10426
10432
  "metadata": {
10427
- "apiName": "com.palantir.create-object-employee",
10433
+ "apiName": "com.palantir.foo",
10428
10434
  "displayMetadata": {
10429
10435
  "configuration": {
10430
10436
  "defaultLayout": "FORM",
@@ -10440,7 +10446,7 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
10440
10446
  "enableLayoutUserSwitch": false,
10441
10447
  },
10442
10448
  "description": "",
10443
- "displayName": "Create Employee",
10449
+ "displayName": "exampleAction",
10444
10450
  "icon": {
10445
10451
  "blueprint": {
10446
10452
  "color": "#000000",
@@ -10454,54 +10460,37 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
10454
10460
  "entities": {
10455
10461
  "affectedInterfaceTypes": [],
10456
10462
  "affectedLinkTypes": [],
10457
- "affectedObjectTypes": [
10458
- "com.palantir.employee",
10459
- ],
10463
+ "affectedObjectTypes": [],
10460
10464
  "typeGroups": [],
10461
10465
  },
10462
10466
  "formContentOrdering": [],
10463
10467
  "parameterOrdering": [
10464
- "myManager",
10465
- "id",
10466
- "managedBy",
10468
+ "param1",
10469
+ "objectToModifyParameter",
10467
10470
  ],
10468
10471
  "parameters": {
10469
- "id": {
10470
- "displayMetadata": {
10471
- "description": "",
10472
- "displayName": "ID",
10473
- "typeClasses": [],
10474
- },
10475
- "id": "id",
10476
- "type": {
10477
- "string": {},
10478
- "type": "string",
10479
- },
10480
- },
10481
- "managedBy": {
10472
+ "objectToModifyParameter": {
10482
10473
  "displayMetadata": {
10483
10474
  "description": "",
10484
- "displayName": "ManagedBy",
10475
+ "displayName": "objectToModifyParameter",
10485
10476
  "typeClasses": [],
10486
10477
  },
10487
- "id": "managedBy",
10478
+ "id": "objectToModifyParameter",
10488
10479
  "type": {
10489
- "string": {},
10490
- "type": "string",
10480
+ "objectTypeReference": {},
10481
+ "type": "objectTypeReference",
10491
10482
  },
10492
10483
  },
10493
- "myManager": {
10484
+ "param1": {
10494
10485
  "displayMetadata": {
10495
10486
  "description": "",
10496
- "displayName": "MyManager",
10487
+ "displayName": "param1",
10497
10488
  "typeClasses": [],
10498
10489
  },
10499
- "id": "myManager",
10490
+ "id": "param1",
10500
10491
  "type": {
10501
- "objectReference": {
10502
- "objectTypeId": "com.palantir.manager",
10503
- },
10504
- "type": "objectReference",
10492
+ "boolean": {},
10493
+ "type": "boolean",
10505
10494
  },
10506
10495
  },
10507
10496
  },
@@ -10521,41 +10510,305 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
10521
10510
  },
10522
10511
  "interfaceTypes": {},
10523
10512
  "linkTypes": {},
10524
- "objectTypes": {
10525
- "com.palantir.employee": {
10526
- "datasources": [
10527
- {
10528
- "datasource": {
10529
- "datasetV2": {
10530
- "datasetRid": "com.palantir.employee",
10531
- "propertyMapping": {
10532
- "id": {
10533
- "column": "id",
10534
- "type": "column",
10513
+ "objectTypes": {},
10514
+ "sharedPropertyTypes": {},
10515
+ },
10516
+ "randomnessKey": undefined,
10517
+ "valueTypes": {
10518
+ "valueTypes": [],
10519
+ },
10520
+ }
10521
+ `);});it("OAC defined object references as parameters are properly defined",()=>{// This test defines an action that creates an OAC-defined employee object type and also adds an additional parameter
10522
+ // for an objectReference to a manager object type that is also defined in OAC. The action shows how you can use this
10523
+ // objectReference parameter elsewhere in the action - in this case we are prefilling the managedBy property to be the
10524
+ // id of the selected manager object type.
10525
+ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",pluralDisplayName:"Employees",titlePropertyApiName:"id",primaryKeyPropertyApiName:"id",properties:{"id":{type:"string",displayName:"ID",description:"dummy"},"managedBy":{type:"string"}}});const managerObject=defineObject({apiName:"manager",displayName:"Manager",pluralDisplayName:"Managers",titlePropertyApiName:"id",primaryKeyPropertyApiName:"id",properties:{"id":{type:"string",displayName:"ID",description:"dummy"}},editsEnabled:true});defineCreateObjectAction({objectType:employeeObject,parameterOrdering:["myManager","id","managedBy"],parameterConfiguration:{"myManager":{customParameterType:{type:"objectReference",objectReference:{objectTypeId:managerObject.apiName}}},"managedBy":{defaultValue:{type:"objectParameterPropertyValue",objectParameterPropertyValue:{parameterId:"myManager",propertyTypeId:"id"}}}}});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
10526
+ {
10527
+ "importedOntology": {
10528
+ "actionTypes": {},
10529
+ "blockPermissionInformation": {
10530
+ "actionTypes": {},
10531
+ "linkTypes": {},
10532
+ "objectTypes": {},
10533
+ },
10534
+ "interfaceTypes": {},
10535
+ "linkTypes": {},
10536
+ "objectTypes": {},
10537
+ "sharedPropertyTypes": {},
10538
+ },
10539
+ "importedValueTypes": {
10540
+ "valueTypes": [],
10541
+ },
10542
+ "ontology": {
10543
+ "actionTypes": {
10544
+ "com.palantir.create-object-employee": {
10545
+ "actionType": {
10546
+ "actionTypeLogic": {
10547
+ "logic": {
10548
+ "rules": [
10549
+ {
10550
+ "addObjectRule": {
10551
+ "objectTypeId": "com.palantir.employee",
10552
+ "propertyValues": {
10553
+ "id": {
10554
+ "parameterId": "id",
10555
+ "type": "parameterId",
10556
+ },
10557
+ "managedBy": {
10558
+ "parameterId": "managedBy",
10559
+ "type": "parameterId",
10560
+ },
10561
+ },
10562
+ "structFieldValues": {},
10535
10563
  },
10536
- "managedBy": {
10537
- "column": "managedBy",
10538
- "type": "column",
10564
+ "type": "addObjectRule",
10565
+ },
10566
+ ],
10567
+ },
10568
+ "validation": {
10569
+ "actionTypeLevelValidation": {
10570
+ "rules": {
10571
+ "0": {
10572
+ "condition": {
10573
+ "true": {},
10574
+ "type": "true",
10575
+ },
10576
+ "displayMetadata": {
10577
+ "failureMessage": "",
10578
+ "typeClasses": [],
10579
+ },
10539
10580
  },
10540
10581
  },
10541
10582
  },
10542
- "type": "datasetV2",
10543
- },
10544
- "datasourceName": "com.palantir.employee",
10545
- "editsConfiguration": {
10546
- "onlyAllowPrivilegedEdits": false,
10547
- },
10548
- "redacted": false,
10549
- },
10550
- ],
10551
- "entityMetadata": {
10552
- "arePatchesEnabled": false,
10553
- },
10554
- "objectType": {
10555
- "allImplementsInterfaces": {},
10556
- "apiName": "com.palantir.employee",
10557
- "displayMetadata": {
10558
- "description": undefined,
10583
+ "parameterValidations": {
10584
+ "id": {
10585
+ "conditionalOverrides": [],
10586
+ "defaultValidation": {
10587
+ "display": {
10588
+ "renderHint": {
10589
+ "textInput": {},
10590
+ "type": "textInput",
10591
+ },
10592
+ "visibility": {
10593
+ "editable": {},
10594
+ "type": "editable",
10595
+ },
10596
+ },
10597
+ "validation": {
10598
+ "allowedValues": {
10599
+ "text": {
10600
+ "text": {},
10601
+ "type": "text",
10602
+ },
10603
+ "type": "text",
10604
+ },
10605
+ "required": {
10606
+ "notRequired": {},
10607
+ "type": "notRequired",
10608
+ },
10609
+ },
10610
+ },
10611
+ },
10612
+ "managedBy": {
10613
+ "conditionalOverrides": [],
10614
+ "defaultValidation": {
10615
+ "display": {
10616
+ "prefill": {
10617
+ "objectParameterPropertyValue": {
10618
+ "parameterId": "myManager",
10619
+ "propertyTypeId": "id",
10620
+ },
10621
+ "type": "objectParameterPropertyValue",
10622
+ },
10623
+ "renderHint": {
10624
+ "textInput": {},
10625
+ "type": "textInput",
10626
+ },
10627
+ "visibility": {
10628
+ "editable": {},
10629
+ "type": "editable",
10630
+ },
10631
+ },
10632
+ "validation": {
10633
+ "allowedValues": {
10634
+ "text": {
10635
+ "text": {},
10636
+ "type": "text",
10637
+ },
10638
+ "type": "text",
10639
+ },
10640
+ "required": {
10641
+ "notRequired": {},
10642
+ "type": "notRequired",
10643
+ },
10644
+ },
10645
+ },
10646
+ },
10647
+ "myManager": {
10648
+ "conditionalOverrides": [],
10649
+ "defaultValidation": {
10650
+ "display": {
10651
+ "renderHint": {
10652
+ "dropdown": {},
10653
+ "type": "dropdown",
10654
+ },
10655
+ "visibility": {
10656
+ "editable": {},
10657
+ "type": "editable",
10658
+ },
10659
+ },
10660
+ "validation": {
10661
+ "allowedValues": {
10662
+ "objectQuery": {
10663
+ "objectQuery": {},
10664
+ "type": "objectQuery",
10665
+ },
10666
+ "type": "objectQuery",
10667
+ },
10668
+ "required": {
10669
+ "notRequired": {},
10670
+ "type": "notRequired",
10671
+ },
10672
+ },
10673
+ },
10674
+ },
10675
+ },
10676
+ "sectionValidations": {},
10677
+ },
10678
+ },
10679
+ "metadata": {
10680
+ "apiName": "com.palantir.create-object-employee",
10681
+ "displayMetadata": {
10682
+ "configuration": {
10683
+ "defaultLayout": "FORM",
10684
+ "displayAndFormat": {
10685
+ "table": {
10686
+ "columnWidthByParameterRid": {},
10687
+ "enableFileImport": true,
10688
+ "fitHorizontally": false,
10689
+ "frozenColumnCount": 0,
10690
+ "rowHeightInLines": 1,
10691
+ },
10692
+ },
10693
+ "enableLayoutUserSwitch": false,
10694
+ },
10695
+ "description": "",
10696
+ "displayName": "Create Employee",
10697
+ "icon": {
10698
+ "blueprint": {
10699
+ "color": "#000000",
10700
+ "locator": "edit",
10701
+ },
10702
+ "type": "blueprint",
10703
+ },
10704
+ "successMessage": [],
10705
+ "typeClasses": [],
10706
+ },
10707
+ "entities": {
10708
+ "affectedInterfaceTypes": [],
10709
+ "affectedLinkTypes": [],
10710
+ "affectedObjectTypes": [
10711
+ "com.palantir.employee",
10712
+ ],
10713
+ "typeGroups": [],
10714
+ },
10715
+ "formContentOrdering": [],
10716
+ "parameterOrdering": [
10717
+ "myManager",
10718
+ "id",
10719
+ "managedBy",
10720
+ ],
10721
+ "parameters": {
10722
+ "id": {
10723
+ "displayMetadata": {
10724
+ "description": "",
10725
+ "displayName": "ID",
10726
+ "typeClasses": [],
10727
+ },
10728
+ "id": "id",
10729
+ "type": {
10730
+ "string": {},
10731
+ "type": "string",
10732
+ },
10733
+ },
10734
+ "managedBy": {
10735
+ "displayMetadata": {
10736
+ "description": "",
10737
+ "displayName": "ManagedBy",
10738
+ "typeClasses": [],
10739
+ },
10740
+ "id": "managedBy",
10741
+ "type": {
10742
+ "string": {},
10743
+ "type": "string",
10744
+ },
10745
+ },
10746
+ "myManager": {
10747
+ "displayMetadata": {
10748
+ "description": "",
10749
+ "displayName": "MyManager",
10750
+ "typeClasses": [],
10751
+ },
10752
+ "id": "myManager",
10753
+ "type": {
10754
+ "objectReference": {
10755
+ "objectTypeId": "com.palantir.manager",
10756
+ },
10757
+ "type": "objectReference",
10758
+ },
10759
+ },
10760
+ },
10761
+ "sections": {},
10762
+ "status": {
10763
+ "active": {},
10764
+ "type": "active",
10765
+ },
10766
+ },
10767
+ },
10768
+ },
10769
+ },
10770
+ "blockPermissionInformation": {
10771
+ "actionTypes": {},
10772
+ "linkTypes": {},
10773
+ "objectTypes": {},
10774
+ },
10775
+ "interfaceTypes": {},
10776
+ "linkTypes": {},
10777
+ "objectTypes": {
10778
+ "com.palantir.employee": {
10779
+ "datasources": [
10780
+ {
10781
+ "datasource": {
10782
+ "datasetV2": {
10783
+ "datasetRid": "com.palantir.employee",
10784
+ "propertyMapping": {
10785
+ "id": {
10786
+ "column": "id",
10787
+ "type": "column",
10788
+ },
10789
+ "managedBy": {
10790
+ "column": "managedBy",
10791
+ "type": "column",
10792
+ },
10793
+ },
10794
+ },
10795
+ "type": "datasetV2",
10796
+ },
10797
+ "datasourceName": "com.palantir.employee",
10798
+ "editsConfiguration": {
10799
+ "onlyAllowPrivilegedEdits": false,
10800
+ },
10801
+ "redacted": false,
10802
+ },
10803
+ ],
10804
+ "entityMetadata": {
10805
+ "arePatchesEnabled": false,
10806
+ },
10807
+ "objectType": {
10808
+ "allImplementsInterfaces": {},
10809
+ "apiName": "com.palantir.employee",
10810
+ "displayMetadata": {
10811
+ "description": undefined,
10559
10812
  "displayName": "Employee",
10560
10813
  "groupDisplayName": undefined,
10561
10814
  "icon": {
@@ -13272,5 +13525,563 @@ parameterOrdering:["foo","id"]});}).toThrowErrorMatchingInlineSnapshot(`[Error:
13272
13525
  "valueTypes": [],
13273
13526
  },
13274
13527
  }
13275
- `);});});});
13528
+ `);});it("Group and user parameters 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:"string"},"fizzbuzz":{type:"string"}}});defineCreateObjectAction({objectType:exampleObjectType,parameterConfiguration:{"bar":{allowedValues:{type:"multipassGroup"}},"fizz":{allowedValues:{type:"user",fromGroups:[{type:"parameter",parameter:"bar"}]}},"buzz":{allowedValues:{type:"user"}},"fizzbuzz":{allowedValues:{type:"user",fromGroups:[{type:"static",name:"inputGroup"}]}}}});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
13529
+ {
13530
+ "importedOntology": {
13531
+ "actionTypes": {},
13532
+ "blockPermissionInformation": {
13533
+ "actionTypes": {},
13534
+ "linkTypes": {},
13535
+ "objectTypes": {},
13536
+ },
13537
+ "interfaceTypes": {},
13538
+ "linkTypes": {},
13539
+ "objectTypes": {},
13540
+ "sharedPropertyTypes": {},
13541
+ },
13542
+ "importedValueTypes": {
13543
+ "valueTypes": [],
13544
+ },
13545
+ "ontology": {
13546
+ "actionTypes": {
13547
+ "com.palantir.create-object-foo": {
13548
+ "actionType": {
13549
+ "actionTypeLogic": {
13550
+ "logic": {
13551
+ "rules": [
13552
+ {
13553
+ "addObjectRule": {
13554
+ "objectTypeId": "com.palantir.foo",
13555
+ "propertyValues": {
13556
+ "bar": {
13557
+ "parameterId": "bar",
13558
+ "type": "parameterId",
13559
+ },
13560
+ "buzz": {
13561
+ "parameterId": "buzz",
13562
+ "type": "parameterId",
13563
+ },
13564
+ "fizz": {
13565
+ "parameterId": "fizz",
13566
+ "type": "parameterId",
13567
+ },
13568
+ "fizzbuzz": {
13569
+ "parameterId": "fizzbuzz",
13570
+ "type": "parameterId",
13571
+ },
13572
+ },
13573
+ "structFieldValues": {},
13574
+ },
13575
+ "type": "addObjectRule",
13576
+ },
13577
+ ],
13578
+ },
13579
+ "validation": {
13580
+ "actionTypeLevelValidation": {
13581
+ "rules": {
13582
+ "0": {
13583
+ "condition": {
13584
+ "true": {},
13585
+ "type": "true",
13586
+ },
13587
+ "displayMetadata": {
13588
+ "failureMessage": "",
13589
+ "typeClasses": [],
13590
+ },
13591
+ },
13592
+ },
13593
+ },
13594
+ "parameterValidations": {
13595
+ "bar": {
13596
+ "conditionalOverrides": [],
13597
+ "defaultValidation": {
13598
+ "display": {
13599
+ "renderHint": {
13600
+ "type": "userDropdown",
13601
+ "userDropdown": {},
13602
+ },
13603
+ "visibility": {
13604
+ "editable": {},
13605
+ "type": "editable",
13606
+ },
13607
+ },
13608
+ "validation": {
13609
+ "allowedValues": {
13610
+ "multipassGroup": {
13611
+ "group": {},
13612
+ "type": "group",
13613
+ },
13614
+ "type": "multipassGroup",
13615
+ },
13616
+ "required": {
13617
+ "notRequired": {},
13618
+ "type": "notRequired",
13619
+ },
13620
+ },
13621
+ },
13622
+ },
13623
+ "buzz": {
13624
+ "conditionalOverrides": [],
13625
+ "defaultValidation": {
13626
+ "display": {
13627
+ "renderHint": {
13628
+ "type": "userDropdown",
13629
+ "userDropdown": {},
13630
+ },
13631
+ "visibility": {
13632
+ "editable": {},
13633
+ "type": "editable",
13634
+ },
13635
+ },
13636
+ "validation": {
13637
+ "allowedValues": {
13638
+ "type": "user",
13639
+ "user": {
13640
+ "type": "user",
13641
+ "user": {
13642
+ "filter": [],
13643
+ },
13644
+ },
13645
+ },
13646
+ "required": {
13647
+ "notRequired": {},
13648
+ "type": "notRequired",
13649
+ },
13650
+ },
13651
+ },
13652
+ },
13653
+ "fizz": {
13654
+ "conditionalOverrides": [],
13655
+ "defaultValidation": {
13656
+ "display": {
13657
+ "renderHint": {
13658
+ "type": "userDropdown",
13659
+ "userDropdown": {},
13660
+ },
13661
+ "visibility": {
13662
+ "editable": {},
13663
+ "type": "editable",
13664
+ },
13665
+ },
13666
+ "validation": {
13667
+ "allowedValues": {
13668
+ "type": "user",
13669
+ "user": {
13670
+ "type": "user",
13671
+ "user": {
13672
+ "filter": [
13673
+ {
13674
+ "groupFilter": {
13675
+ "groupId": {
13676
+ "parameterId": "bar",
13677
+ "type": "parameterId",
13678
+ },
13679
+ },
13680
+ "type": "groupFilter",
13681
+ },
13682
+ ],
13683
+ },
13684
+ },
13685
+ },
13686
+ "required": {
13687
+ "notRequired": {},
13688
+ "type": "notRequired",
13689
+ },
13690
+ },
13691
+ },
13692
+ },
13693
+ "fizzbuzz": {
13694
+ "conditionalOverrides": [],
13695
+ "defaultValidation": {
13696
+ "display": {
13697
+ "renderHint": {
13698
+ "type": "userDropdown",
13699
+ "userDropdown": {},
13700
+ },
13701
+ "visibility": {
13702
+ "editable": {},
13703
+ "type": "editable",
13704
+ },
13705
+ },
13706
+ "validation": {
13707
+ "allowedValues": {
13708
+ "type": "user",
13709
+ "user": {
13710
+ "type": "user",
13711
+ "user": {
13712
+ "filter": [
13713
+ {
13714
+ "groupFilter": {
13715
+ "groupId": {
13716
+ "staticValue": {
13717
+ "string": "inputGroup",
13718
+ "type": "string",
13719
+ },
13720
+ "type": "staticValue",
13721
+ },
13722
+ },
13723
+ "type": "groupFilter",
13724
+ },
13725
+ ],
13726
+ },
13727
+ },
13728
+ },
13729
+ "required": {
13730
+ "notRequired": {},
13731
+ "type": "notRequired",
13732
+ },
13733
+ },
13734
+ },
13735
+ },
13736
+ },
13737
+ "sectionValidations": {},
13738
+ },
13739
+ },
13740
+ "metadata": {
13741
+ "apiName": "com.palantir.create-object-foo",
13742
+ "displayMetadata": {
13743
+ "configuration": {
13744
+ "defaultLayout": "FORM",
13745
+ "displayAndFormat": {
13746
+ "table": {
13747
+ "columnWidthByParameterRid": {},
13748
+ "enableFileImport": true,
13749
+ "fitHorizontally": false,
13750
+ "frozenColumnCount": 0,
13751
+ "rowHeightInLines": 1,
13752
+ },
13753
+ },
13754
+ "enableLayoutUserSwitch": false,
13755
+ },
13756
+ "description": "",
13757
+ "displayName": "Create exampleObjectType",
13758
+ "icon": {
13759
+ "blueprint": {
13760
+ "color": "#000000",
13761
+ "locator": "edit",
13762
+ },
13763
+ "type": "blueprint",
13764
+ },
13765
+ "successMessage": [],
13766
+ "typeClasses": [],
13767
+ },
13768
+ "entities": {
13769
+ "affectedInterfaceTypes": [],
13770
+ "affectedLinkTypes": [],
13771
+ "affectedObjectTypes": [
13772
+ "com.palantir.foo",
13773
+ ],
13774
+ "typeGroups": [],
13775
+ },
13776
+ "formContentOrdering": [],
13777
+ "parameterOrdering": [
13778
+ "bar",
13779
+ "fizz",
13780
+ "buzz",
13781
+ "fizzbuzz",
13782
+ ],
13783
+ "parameters": {
13784
+ "bar": {
13785
+ "displayMetadata": {
13786
+ "description": "",
13787
+ "displayName": "Bar",
13788
+ "typeClasses": [],
13789
+ },
13790
+ "id": "bar",
13791
+ "type": {
13792
+ "string": {},
13793
+ "type": "string",
13794
+ },
13795
+ },
13796
+ "buzz": {
13797
+ "displayMetadata": {
13798
+ "description": "",
13799
+ "displayName": "Buzz",
13800
+ "typeClasses": [],
13801
+ },
13802
+ "id": "buzz",
13803
+ "type": {
13804
+ "string": {},
13805
+ "type": "string",
13806
+ },
13807
+ },
13808
+ "fizz": {
13809
+ "displayMetadata": {
13810
+ "description": "",
13811
+ "displayName": "Fizz",
13812
+ "typeClasses": [],
13813
+ },
13814
+ "id": "fizz",
13815
+ "type": {
13816
+ "string": {},
13817
+ "type": "string",
13818
+ },
13819
+ },
13820
+ "fizzbuzz": {
13821
+ "displayMetadata": {
13822
+ "description": "",
13823
+ "displayName": "Fizzbuzz",
13824
+ "typeClasses": [],
13825
+ },
13826
+ "id": "fizzbuzz",
13827
+ "type": {
13828
+ "string": {},
13829
+ "type": "string",
13830
+ },
13831
+ },
13832
+ },
13833
+ "sections": {},
13834
+ "status": {
13835
+ "active": {},
13836
+ "type": "active",
13837
+ },
13838
+ },
13839
+ },
13840
+ },
13841
+ },
13842
+ "blockPermissionInformation": {
13843
+ "actionTypes": {},
13844
+ "linkTypes": {},
13845
+ "objectTypes": {},
13846
+ },
13847
+ "interfaceTypes": {},
13848
+ "linkTypes": {},
13849
+ "objectTypes": {
13850
+ "com.palantir.foo": {
13851
+ "datasources": [
13852
+ {
13853
+ "datasource": {
13854
+ "datasetV2": {
13855
+ "datasetRid": "com.palantir.foo",
13856
+ "propertyMapping": {
13857
+ "bar": {
13858
+ "column": "bar",
13859
+ "type": "column",
13860
+ },
13861
+ "buzz": {
13862
+ "column": "buzz",
13863
+ "type": "column",
13864
+ },
13865
+ "fizz": {
13866
+ "column": "fizz",
13867
+ "type": "column",
13868
+ },
13869
+ "fizzbuzz": {
13870
+ "column": "fizzbuzz",
13871
+ "type": "column",
13872
+ },
13873
+ },
13874
+ },
13875
+ "type": "datasetV2",
13876
+ },
13877
+ "datasourceName": "com.palantir.foo",
13878
+ "editsConfiguration": {
13879
+ "onlyAllowPrivilegedEdits": false,
13880
+ },
13881
+ "redacted": false,
13882
+ },
13883
+ ],
13884
+ "entityMetadata": {
13885
+ "arePatchesEnabled": false,
13886
+ },
13887
+ "objectType": {
13888
+ "allImplementsInterfaces": {},
13889
+ "apiName": "com.palantir.foo",
13890
+ "displayMetadata": {
13891
+ "description": undefined,
13892
+ "displayName": "exampleObjectType",
13893
+ "groupDisplayName": undefined,
13894
+ "icon": {
13895
+ "blueprint": {
13896
+ "color": "#2D72D2",
13897
+ "locator": "cube",
13898
+ },
13899
+ "type": "blueprint",
13900
+ },
13901
+ "pluralDisplayName": "exampleObjectTypes",
13902
+ "visibility": "NORMAL",
13903
+ },
13904
+ "implementsInterfaces2": [],
13905
+ "primaryKeys": [
13906
+ "bar",
13907
+ ],
13908
+ "propertyTypes": {
13909
+ "bar": {
13910
+ "apiName": "bar",
13911
+ "baseFormatter": undefined,
13912
+ "dataConstraints": undefined,
13913
+ "displayMetadata": {
13914
+ "description": undefined,
13915
+ "displayName": "Bar",
13916
+ "visibility": "NORMAL",
13917
+ },
13918
+ "indexedForSearch": true,
13919
+ "inlineAction": undefined,
13920
+ "ruleSetBinding": undefined,
13921
+ "sharedPropertyTypeApiName": undefined,
13922
+ "sharedPropertyTypeRid": undefined,
13923
+ "status": {
13924
+ "active": {},
13925
+ "type": "active",
13926
+ },
13927
+ "type": {
13928
+ "string": {
13929
+ "analyzerOverride": undefined,
13930
+ "enableAsciiFolding": undefined,
13931
+ "isLongText": false,
13932
+ "supportsEfficientLeadingWildcard": false,
13933
+ "supportsExactMatching": true,
13934
+ },
13935
+ "type": "string",
13936
+ },
13937
+ "typeClasses": [
13938
+ {
13939
+ "kind": "render_hint",
13940
+ "name": "SELECTABLE",
13941
+ },
13942
+ {
13943
+ "kind": "render_hint",
13944
+ "name": "SORTABLE",
13945
+ },
13946
+ ],
13947
+ "valueType": undefined,
13948
+ },
13949
+ "buzz": {
13950
+ "apiName": "buzz",
13951
+ "baseFormatter": undefined,
13952
+ "dataConstraints": undefined,
13953
+ "displayMetadata": {
13954
+ "description": undefined,
13955
+ "displayName": "Buzz",
13956
+ "visibility": "NORMAL",
13957
+ },
13958
+ "indexedForSearch": true,
13959
+ "inlineAction": undefined,
13960
+ "ruleSetBinding": undefined,
13961
+ "sharedPropertyTypeApiName": undefined,
13962
+ "sharedPropertyTypeRid": undefined,
13963
+ "status": {
13964
+ "active": {},
13965
+ "type": "active",
13966
+ },
13967
+ "type": {
13968
+ "string": {
13969
+ "analyzerOverride": undefined,
13970
+ "enableAsciiFolding": undefined,
13971
+ "isLongText": false,
13972
+ "supportsEfficientLeadingWildcard": false,
13973
+ "supportsExactMatching": true,
13974
+ },
13975
+ "type": "string",
13976
+ },
13977
+ "typeClasses": [
13978
+ {
13979
+ "kind": "render_hint",
13980
+ "name": "SELECTABLE",
13981
+ },
13982
+ {
13983
+ "kind": "render_hint",
13984
+ "name": "SORTABLE",
13985
+ },
13986
+ ],
13987
+ "valueType": undefined,
13988
+ },
13989
+ "fizz": {
13990
+ "apiName": "fizz",
13991
+ "baseFormatter": undefined,
13992
+ "dataConstraints": undefined,
13993
+ "displayMetadata": {
13994
+ "description": undefined,
13995
+ "displayName": "Fizz",
13996
+ "visibility": "NORMAL",
13997
+ },
13998
+ "indexedForSearch": true,
13999
+ "inlineAction": undefined,
14000
+ "ruleSetBinding": undefined,
14001
+ "sharedPropertyTypeApiName": undefined,
14002
+ "sharedPropertyTypeRid": undefined,
14003
+ "status": {
14004
+ "active": {},
14005
+ "type": "active",
14006
+ },
14007
+ "type": {
14008
+ "string": {
14009
+ "analyzerOverride": undefined,
14010
+ "enableAsciiFolding": undefined,
14011
+ "isLongText": false,
14012
+ "supportsEfficientLeadingWildcard": false,
14013
+ "supportsExactMatching": true,
14014
+ },
14015
+ "type": "string",
14016
+ },
14017
+ "typeClasses": [
14018
+ {
14019
+ "kind": "render_hint",
14020
+ "name": "SELECTABLE",
14021
+ },
14022
+ {
14023
+ "kind": "render_hint",
14024
+ "name": "SORTABLE",
14025
+ },
14026
+ ],
14027
+ "valueType": undefined,
14028
+ },
14029
+ "fizzbuzz": {
14030
+ "apiName": "fizzbuzz",
14031
+ "baseFormatter": undefined,
14032
+ "dataConstraints": undefined,
14033
+ "displayMetadata": {
14034
+ "description": undefined,
14035
+ "displayName": "Fizzbuzz",
14036
+ "visibility": "NORMAL",
14037
+ },
14038
+ "indexedForSearch": true,
14039
+ "inlineAction": undefined,
14040
+ "ruleSetBinding": undefined,
14041
+ "sharedPropertyTypeApiName": undefined,
14042
+ "sharedPropertyTypeRid": undefined,
14043
+ "status": {
14044
+ "active": {},
14045
+ "type": "active",
14046
+ },
14047
+ "type": {
14048
+ "string": {
14049
+ "analyzerOverride": undefined,
14050
+ "enableAsciiFolding": undefined,
14051
+ "isLongText": false,
14052
+ "supportsEfficientLeadingWildcard": false,
14053
+ "supportsExactMatching": true,
14054
+ },
14055
+ "type": "string",
14056
+ },
14057
+ "typeClasses": [
14058
+ {
14059
+ "kind": "render_hint",
14060
+ "name": "SELECTABLE",
14061
+ },
14062
+ {
14063
+ "kind": "render_hint",
14064
+ "name": "SORTABLE",
14065
+ },
14066
+ ],
14067
+ "valueType": undefined,
14068
+ },
14069
+ },
14070
+ "redacted": false,
14071
+ "status": {
14072
+ "active": {},
14073
+ "type": "active",
14074
+ },
14075
+ "titlePropertyTypeRid": "bar",
14076
+ },
14077
+ },
14078
+ },
14079
+ "sharedPropertyTypes": {},
14080
+ },
14081
+ "randomnessKey": undefined,
14082
+ "valueTypes": {
14083
+ "valueTypes": [],
14084
+ },
14085
+ }
14086
+ `);});});});
13276
14087
  //# sourceMappingURL=actions.test.js.map