@osdk/maker 0.12.0-rc.23 → 0.13.0-beta.2

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.
@@ -4782,7 +4782,7 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
4782
4782
  "sharedPropertyTypes": [],
4783
4783
  },
4784
4784
  }
4785
- `);});it("Simple concrete actions are properly defined",()=>{const exampleObjectType=defineObject({titlePropertyApiName:"bar",displayName:"exampleObjectType",pluralDisplayName:"exampleObjectTypes",apiName:"foo",primaryKeyPropertyApiName:"bar",properties:{"bar":{type:"string"},"structProp":{type:{type:"struct",structDefinition:{simpleProperty:"string"}}}}});defineCreateObjectAction({objectType:exampleObjectType});defineModifyObjectAction({objectType:exampleObjectType});defineDeleteObjectAction({objectType:exampleObjectType});defineCreateOrModifyObjectAction({objectType:exampleObjectType});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
4785
+ `);});it("Simple concrete actions are properly defined",()=>{const exampleObjectType=defineObject({titlePropertyApiName:"bar",displayName:"exampleObjectType",pluralDisplayName:"exampleObjectTypes",apiName:"foo",primaryKeyPropertyApiName:"bar",properties:{"bar":{type:"string"},"structProp":{type:{type:"struct",structDefinition:{simpleProperty:"string"}}},"optionalProp":{type:"string"}}});defineCreateObjectAction({objectType:exampleObjectType});defineModifyObjectAction({objectType:exampleObjectType});defineDeleteObjectAction({objectType:exampleObjectType});defineCreateOrModifyObjectAction({objectType:exampleObjectType});expect(dumpOntologyFullMetadata()).toMatchInlineSnapshot(`
4786
4786
  {
4787
4787
  "blockData": {
4788
4788
  "actionTypes": {
@@ -4799,6 +4799,10 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
4799
4799
  "parameterId": "bar",
4800
4800
  "type": "parameterId",
4801
4801
  },
4802
+ "optionalProp": {
4803
+ "parameterId": "optionalProp",
4804
+ "type": "parameterId",
4805
+ },
4802
4806
  },
4803
4807
  "structFieldValues": {},
4804
4808
  },
@@ -4844,8 +4848,36 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
4844
4848
  "type": "text",
4845
4849
  },
4846
4850
  "required": {
4847
- "required": {},
4848
- "type": "required",
4851
+ "notRequired": {},
4852
+ "type": "notRequired",
4853
+ },
4854
+ },
4855
+ },
4856
+ },
4857
+ "optionalProp": {
4858
+ "conditionalOverrides": [],
4859
+ "defaultValidation": {
4860
+ "display": {
4861
+ "renderHint": {
4862
+ "textInput": {},
4863
+ "type": "textInput",
4864
+ },
4865
+ "visibility": {
4866
+ "editable": {},
4867
+ "type": "editable",
4868
+ },
4869
+ },
4870
+ "validation": {
4871
+ "allowedValues": {
4872
+ "text": {
4873
+ "text": {},
4874
+ "type": "text",
4875
+ },
4876
+ "type": "text",
4877
+ },
4878
+ "required": {
4879
+ "notRequired": {},
4880
+ "type": "notRequired",
4849
4881
  },
4850
4882
  },
4851
4883
  },
@@ -4893,6 +4925,7 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
4893
4925
  "formContentOrdering": [],
4894
4926
  "parameterOrdering": [
4895
4927
  "bar",
4928
+ "optionalProp",
4896
4929
  ],
4897
4930
  "parameters": {
4898
4931
  "bar": {
@@ -4907,6 +4940,18 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
4907
4940
  "type": "string",
4908
4941
  },
4909
4942
  },
4943
+ "optionalProp": {
4944
+ "displayMetadata": {
4945
+ "description": "",
4946
+ "displayName": "OptionalProp",
4947
+ "typeClasses": [],
4948
+ },
4949
+ "id": "optionalProp",
4950
+ "type": {
4951
+ "string": {},
4952
+ "type": "string",
4953
+ },
4954
+ },
4910
4955
  },
4911
4956
  "sections": {},
4912
4957
  "status": {
@@ -4924,7 +4969,12 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
4924
4969
  {
4925
4970
  "addOrModifyObjectRuleV2": {
4926
4971
  "objectToModify": "objectToCreateOrModifyParameter",
4927
- "propertyValues": {},
4972
+ "propertyValues": {
4973
+ "optionalProp": {
4974
+ "parameterId": "optionalProp",
4975
+ "type": "parameterId",
4976
+ },
4977
+ },
4928
4978
  "structFieldValues": {},
4929
4979
  },
4930
4980
  "type": "addOrModifyObjectRuleV2",
@@ -4975,6 +5025,41 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
4975
5025
  },
4976
5026
  },
4977
5027
  },
5028
+ "optionalProp": {
5029
+ "conditionalOverrides": [],
5030
+ "defaultValidation": {
5031
+ "display": {
5032
+ "prefill": {
5033
+ "objectParameterPropertyValue": {
5034
+ "parameterId": "objectToCreateOrModifyParameter",
5035
+ "propertyTypeId": "optionalProp",
5036
+ },
5037
+ "type": "objectParameterPropertyValue",
5038
+ },
5039
+ "renderHint": {
5040
+ "textInput": {},
5041
+ "type": "textInput",
5042
+ },
5043
+ "visibility": {
5044
+ "editable": {},
5045
+ "type": "editable",
5046
+ },
5047
+ },
5048
+ "validation": {
5049
+ "allowedValues": {
5050
+ "text": {
5051
+ "text": {},
5052
+ "type": "text",
5053
+ },
5054
+ "type": "text",
5055
+ },
5056
+ "required": {
5057
+ "notRequired": {},
5058
+ "type": "notRequired",
5059
+ },
5060
+ },
5061
+ },
5062
+ },
4978
5063
  },
4979
5064
  "sectionValidations": {},
4980
5065
  },
@@ -5018,6 +5103,7 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
5018
5103
  "formContentOrdering": [],
5019
5104
  "parameterOrdering": [
5020
5105
  "objectToCreateOrModifyParameter",
5106
+ "optionalProp",
5021
5107
  ],
5022
5108
  "parameters": {
5023
5109
  "objectToCreateOrModifyParameter": {
@@ -5038,6 +5124,18 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
5038
5124
  "type": "objectReference",
5039
5125
  },
5040
5126
  },
5127
+ "optionalProp": {
5128
+ "displayMetadata": {
5129
+ "description": "",
5130
+ "displayName": "OptionalProp",
5131
+ "typeClasses": [],
5132
+ },
5133
+ "id": "optionalProp",
5134
+ "type": {
5135
+ "string": {},
5136
+ "type": "string",
5137
+ },
5138
+ },
5041
5139
  },
5042
5140
  "sections": {},
5043
5141
  "status": {
@@ -5180,7 +5278,12 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
5180
5278
  {
5181
5279
  "modifyObjectRule": {
5182
5280
  "objectToModify": "objectToModifyParameter",
5183
- "propertyValues": {},
5281
+ "propertyValues": {
5282
+ "optionalProp": {
5283
+ "parameterId": "optionalProp",
5284
+ "type": "parameterId",
5285
+ },
5286
+ },
5184
5287
  "structFieldValues": {},
5185
5288
  },
5186
5289
  "type": "modifyObjectRule",
@@ -5231,6 +5334,41 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
5231
5334
  },
5232
5335
  },
5233
5336
  },
5337
+ "optionalProp": {
5338
+ "conditionalOverrides": [],
5339
+ "defaultValidation": {
5340
+ "display": {
5341
+ "prefill": {
5342
+ "objectParameterPropertyValue": {
5343
+ "parameterId": "objectToModifyParameter",
5344
+ "propertyTypeId": "optionalProp",
5345
+ },
5346
+ "type": "objectParameterPropertyValue",
5347
+ },
5348
+ "renderHint": {
5349
+ "textInput": {},
5350
+ "type": "textInput",
5351
+ },
5352
+ "visibility": {
5353
+ "editable": {},
5354
+ "type": "editable",
5355
+ },
5356
+ },
5357
+ "validation": {
5358
+ "allowedValues": {
5359
+ "text": {
5360
+ "text": {},
5361
+ "type": "text",
5362
+ },
5363
+ "type": "text",
5364
+ },
5365
+ "required": {
5366
+ "notRequired": {},
5367
+ "type": "notRequired",
5368
+ },
5369
+ },
5370
+ },
5371
+ },
5234
5372
  },
5235
5373
  "sectionValidations": {},
5236
5374
  },
@@ -5274,6 +5412,7 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
5274
5412
  "formContentOrdering": [],
5275
5413
  "parameterOrdering": [
5276
5414
  "objectToModifyParameter",
5415
+ "optionalProp",
5277
5416
  ],
5278
5417
  "parameters": {
5279
5418
  "objectToModifyParameter": {
@@ -5290,6 +5429,18 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
5290
5429
  "type": "objectReference",
5291
5430
  },
5292
5431
  },
5432
+ "optionalProp": {
5433
+ "displayMetadata": {
5434
+ "description": "",
5435
+ "displayName": "OptionalProp",
5436
+ "typeClasses": [],
5437
+ },
5438
+ "id": "optionalProp",
5439
+ "type": {
5440
+ "string": {},
5441
+ "type": "string",
5442
+ },
5443
+ },
5293
5444
  },
5294
5445
  "sections": {},
5295
5446
  "status": {
@@ -5319,6 +5470,10 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
5319
5470
  "column": "bar",
5320
5471
  "type": "column",
5321
5472
  },
5473
+ "optionalProp": {
5474
+ "column": "optionalProp",
5475
+ "type": "column",
5476
+ },
5322
5477
  "structProp": {
5323
5478
  "struct": {
5324
5479
  "column": "structProp",
@@ -5407,6 +5562,46 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
5407
5562
  ],
5408
5563
  "valueType": undefined,
5409
5564
  },
5565
+ "optionalProp": {
5566
+ "apiName": "optionalProp",
5567
+ "baseFormatter": undefined,
5568
+ "dataConstraints": undefined,
5569
+ "displayMetadata": {
5570
+ "description": undefined,
5571
+ "displayName": "OptionalProp",
5572
+ "visibility": "NORMAL",
5573
+ },
5574
+ "indexedForSearch": true,
5575
+ "inlineAction": undefined,
5576
+ "ruleSetBinding": undefined,
5577
+ "sharedPropertyTypeApiName": undefined,
5578
+ "sharedPropertyTypeRid": undefined,
5579
+ "status": {
5580
+ "active": {},
5581
+ "type": "active",
5582
+ },
5583
+ "type": {
5584
+ "string": {
5585
+ "analyzerOverride": undefined,
5586
+ "enableAsciiFolding": undefined,
5587
+ "isLongText": false,
5588
+ "supportsEfficientLeadingWildcard": false,
5589
+ "supportsExactMatching": true,
5590
+ },
5591
+ "type": "string",
5592
+ },
5593
+ "typeClasses": [
5594
+ {
5595
+ "kind": "render_hint",
5596
+ "name": "SELECTABLE",
5597
+ },
5598
+ {
5599
+ "kind": "render_hint",
5600
+ "name": "SORTABLE",
5601
+ },
5602
+ ],
5603
+ "valueType": undefined,
5604
+ },
5410
5605
  "structProp": {
5411
5606
  "apiName": "structProp",
5412
5607
  "baseFormatter": undefined,
@@ -5570,8 +5765,8 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
5570
5765
  "type": "text",
5571
5766
  },
5572
5767
  "required": {
5573
- "required": {},
5574
- "type": "required",
5768
+ "notRequired": {},
5769
+ "type": "notRequired",
5575
5770
  },
5576
5771
  },
5577
5772
  },
@@ -5701,8 +5896,8 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
5701
5896
  "type": "text",
5702
5897
  },
5703
5898
  "required": {
5704
- "required": {},
5705
- "type": "required",
5899
+ "notRequired": {},
5900
+ "type": "notRequired",
5706
5901
  },
5707
5902
  },
5708
5903
  },
@@ -6825,8 +7020,8 @@ defineOntology("com.palantir.",()=>{},"/tmp/");});describe("Interfaces",()=>{it(
6825
7020
  "type": "text",
6826
7021
  },
6827
7022
  "required": {
6828
- "required": {},
6829
- "type": "required",
7023
+ "notRequired": {},
7024
+ "type": "notRequired",
6830
7025
  },
6831
7026
  },
6832
7027
  },
@@ -8059,8 +8254,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
8059
8254
  "type": "text",
8060
8255
  },
8061
8256
  "required": {
8062
- "required": {},
8063
- "type": "required",
8257
+ "notRequired": {},
8258
+ "type": "notRequired",
8064
8259
  },
8065
8260
  },
8066
8261
  },
@@ -8094,8 +8289,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
8094
8289
  "type": "text",
8095
8290
  },
8096
8291
  "required": {
8097
- "required": {},
8098
- "type": "required",
8292
+ "notRequired": {},
8293
+ "type": "notRequired",
8099
8294
  },
8100
8295
  },
8101
8296
  },
@@ -8122,8 +8317,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
8122
8317
  "type": "objectQuery",
8123
8318
  },
8124
8319
  "required": {
8125
- "required": {},
8126
- "type": "required",
8320
+ "notRequired": {},
8321
+ "type": "notRequired",
8127
8322
  },
8128
8323
  },
8129
8324
  },
@@ -9040,8 +9235,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
9040
9235
  "type": "text",
9041
9236
  },
9042
9237
  "required": {
9043
- "required": {},
9044
- "type": "required",
9238
+ "notRequired": {},
9239
+ "type": "notRequired",
9045
9240
  },
9046
9241
  },
9047
9242
  },
@@ -9068,8 +9263,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
9068
9263
  "type": "text",
9069
9264
  },
9070
9265
  "required": {
9071
- "required": {},
9072
- "type": "required",
9266
+ "notRequired": {},
9267
+ "type": "notRequired",
9073
9268
  },
9074
9269
  },
9075
9270
  },
@@ -9413,8 +9608,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
9413
9608
  "type": "text",
9414
9609
  },
9415
9610
  "required": {
9416
- "required": {},
9417
- "type": "required",
9611
+ "notRequired": {},
9612
+ "type": "notRequired",
9418
9613
  },
9419
9614
  },
9420
9615
  },
@@ -9441,8 +9636,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
9441
9636
  "type": "text",
9442
9637
  },
9443
9638
  "required": {
9444
- "required": {},
9445
- "type": "required",
9639
+ "notRequired": {},
9640
+ "type": "notRequired",
9446
9641
  },
9447
9642
  },
9448
9643
  },
@@ -9768,8 +9963,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
9768
9963
  "type": "text",
9769
9964
  },
9770
9965
  "required": {
9771
- "required": {},
9772
- "type": "required",
9966
+ "notRequired": {},
9967
+ "type": "notRequired",
9773
9968
  },
9774
9969
  },
9775
9970
  },
@@ -9827,8 +10022,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
9827
10022
  "type": "text",
9828
10023
  },
9829
10024
  "required": {
9830
- "required": {},
9831
- "type": "required",
10025
+ "notRequired": {},
10026
+ "type": "notRequired",
9832
10027
  },
9833
10028
  },
9834
10029
  },
@@ -10577,8 +10772,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
10577
10772
  "type": "text",
10578
10773
  },
10579
10774
  "required": {
10580
- "required": {},
10581
- "type": "required",
10775
+ "notRequired": {},
10776
+ "type": "notRequired",
10582
10777
  },
10583
10778
  },
10584
10779
  },
@@ -10605,8 +10800,8 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
10605
10800
  "type": "text",
10606
10801
  },
10607
10802
  "required": {
10608
- "required": {},
10609
- "type": "required",
10803
+ "notRequired": {},
10804
+ "type": "notRequired",
10610
10805
  },
10611
10806
  },
10612
10807
  },
@@ -11005,8 +11200,8 @@ parameterOrdering:["foo","id"]});}).toThrowErrorMatchingInlineSnapshot(`[Error:
11005
11200
  "type": "text",
11006
11201
  },
11007
11202
  "required": {
11008
- "required": {},
11009
- "type": "required",
11203
+ "notRequired": {},
11204
+ "type": "notRequired",
11010
11205
  },
11011
11206
  },
11012
11207
  },
@@ -11033,8 +11228,8 @@ parameterOrdering:["foo","id"]});}).toThrowErrorMatchingInlineSnapshot(`[Error:
11033
11228
  "type": "text",
11034
11229
  },
11035
11230
  "required": {
11036
- "required": {},
11037
- "type": "required",
11231
+ "notRequired": {},
11232
+ "type": "notRequired",
11038
11233
  },
11039
11234
  },
11040
11235
  },
@@ -11092,8 +11287,8 @@ parameterOrdering:["foo","id"]});}).toThrowErrorMatchingInlineSnapshot(`[Error:
11092
11287
  "type": "text",
11093
11288
  },
11094
11289
  "required": {
11095
- "required": {},
11096
- "type": "required",
11290
+ "notRequired": {},
11291
+ "type": "notRequired",
11097
11292
  },
11098
11293
  },
11099
11294
  },