@osdk/maker 0.15.0-beta.6 → 0.15.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +26 -22
- package/build/browser/api/action/ActionParameter.js.map +1 -1
- package/build/browser/api/action/ActionParameterConfiguration.js.map +1 -1
- package/build/browser/api/defineAction.js +65 -22
- package/build/browser/api/defineAction.js.map +1 -1
- package/build/browser/api/defineCreateInterfaceObjectAction.js +28 -8
- package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineInterface.js +40 -34
- package/build/browser/api/defineInterface.js.map +1 -1
- package/build/browser/api/defineModifyInterfaceObjectAction.js +31 -8
- package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineObject.js +13 -9
- package/build/browser/api/defineObject.js.map +1 -1
- package/build/browser/api/defineOntology.js +6 -0
- package/build/browser/api/defineOntology.js.map +1 -1
- package/build/browser/api/defineSpt.js.map +1 -1
- package/build/browser/api/defineValueType.js +17 -4
- package/build/browser/api/defineValueType.js.map +1 -1
- package/build/browser/api/interface/InterfacePropertyType.js +22 -1
- package/build/browser/api/interface/InterfacePropertyType.js.map +1 -1
- package/build/browser/api/interface/InterfaceType.js.map +1 -1
- package/build/browser/api/interface/getFlattenedInterfaceProperties.js +9 -3
- package/build/browser/api/interface/getFlattenedInterfaceProperties.js.map +1 -1
- package/build/browser/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js +5 -0
- package/build/browser/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js.map +1 -1
- package/build/browser/api/links/LinkType.js.map +1 -1
- package/build/browser/api/object/ObjectType.js.map +1 -1
- package/build/browser/api/object/ObjectTypeDefinition.js.map +1 -1
- package/build/browser/api/object/ObjectTypeStatus.js.map +1 -1
- package/build/browser/api/properties/PropertyTypeType.js +1 -1
- package/build/browser/api/properties/PropertyTypeType.js.map +1 -1
- package/build/browser/api/properties/SharedPropertyType.js.map +1 -1
- package/build/browser/api/test/actions.test.js +6105 -5850
- package/build/browser/api/test/actions.test.js.map +1 -1
- package/build/browser/api/test/interfaces.test.js +757 -492
- package/build/browser/api/test/interfaces.test.js.map +1 -1
- package/build/browser/api/test/links.test.js +1334 -1325
- package/build/browser/api/test/links.test.js.map +1 -1
- package/build/browser/api/test/misc.test.js +262 -11
- package/build/browser/api/test/misc.test.js.map +1 -1
- package/build/browser/api/test/objects.test.js +1019 -960
- package/build/browser/api/test/objects.test.js.map +1 -1
- package/build/browser/api/test/spt.test.js +250 -103
- package/build/browser/api/test/spt.test.js.map +1 -1
- package/build/browser/api/test/valueTypes.test.js +69 -0
- package/build/browser/api/test/valueTypes.test.js.map +1 -1
- package/build/browser/cli/main.js +1 -1
- package/build/browser/conversion/toMarketplace/convertActionValidation.js +1 -1
- package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertInterface.js +2 -2
- package/build/browser/conversion/toMarketplace/convertInterface.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js +66 -0
- package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertLink.js +30 -4
- package/build/browser/conversion/toMarketplace/convertLink.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertMappingValue.js +35 -0
- package/build/browser/conversion/toMarketplace/convertMappingValue.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertObject.js +4 -2
- package/build/browser/conversion/toMarketplace/convertObject.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js +2 -1
- package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertSpt.js +4 -2
- package/build/browser/conversion/toMarketplace/convertSpt.js.map +1 -1
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +143 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +444 -117
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +53 -17
- package/build/esm/api/action/ActionParameter.js.map +1 -1
- package/build/esm/api/action/ActionParameterConfiguration.js.map +1 -1
- package/build/esm/api/defineAction.js +65 -22
- package/build/esm/api/defineAction.js.map +1 -1
- package/build/esm/api/defineCreateInterfaceObjectAction.js +28 -8
- package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineInterface.js +40 -34
- package/build/esm/api/defineInterface.js.map +1 -1
- package/build/esm/api/defineModifyInterfaceObjectAction.js +31 -8
- package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineObject.js +13 -9
- package/build/esm/api/defineObject.js.map +1 -1
- package/build/esm/api/defineOntology.js +6 -0
- package/build/esm/api/defineOntology.js.map +1 -1
- package/build/esm/api/defineSpt.js.map +1 -1
- package/build/esm/api/defineValueType.js +17 -4
- package/build/esm/api/defineValueType.js.map +1 -1
- package/build/esm/api/interface/InterfacePropertyType.js +22 -1
- package/build/esm/api/interface/InterfacePropertyType.js.map +1 -1
- package/build/esm/api/interface/InterfaceType.js.map +1 -1
- package/build/esm/api/interface/getFlattenedInterfaceProperties.js +9 -3
- package/build/esm/api/interface/getFlattenedInterfaceProperties.js.map +1 -1
- package/build/esm/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js +5 -0
- package/build/esm/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js.map +1 -1
- package/build/esm/api/links/LinkType.js.map +1 -1
- package/build/esm/api/object/ObjectType.js.map +1 -1
- package/build/esm/api/object/ObjectTypeDefinition.js.map +1 -1
- package/build/esm/api/object/ObjectTypeStatus.js.map +1 -1
- package/build/esm/api/properties/PropertyTypeType.js +1 -1
- package/build/esm/api/properties/PropertyTypeType.js.map +1 -1
- package/build/esm/api/properties/SharedPropertyType.js.map +1 -1
- package/build/esm/api/test/actions.test.js +6105 -5850
- package/build/esm/api/test/actions.test.js.map +1 -1
- package/build/esm/api/test/interfaces.test.js +757 -492
- package/build/esm/api/test/interfaces.test.js.map +1 -1
- package/build/esm/api/test/links.test.js +1334 -1325
- package/build/esm/api/test/links.test.js.map +1 -1
- package/build/esm/api/test/misc.test.js +262 -11
- package/build/esm/api/test/misc.test.js.map +1 -1
- package/build/esm/api/test/objects.test.js +1019 -960
- package/build/esm/api/test/objects.test.js.map +1 -1
- package/build/esm/api/test/spt.test.js +250 -103
- package/build/esm/api/test/spt.test.js.map +1 -1
- package/build/esm/api/test/valueTypes.test.js +69 -0
- package/build/esm/api/test/valueTypes.test.js.map +1 -1
- package/build/esm/cli/main.js +1 -1
- package/build/esm/conversion/toMarketplace/convertActionValidation.js +1 -1
- package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertInterface.js +2 -2
- package/build/esm/conversion/toMarketplace/convertInterface.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js +66 -0
- package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertLink.js +30 -4
- package/build/esm/conversion/toMarketplace/convertLink.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertMappingValue.js +35 -0
- package/build/esm/conversion/toMarketplace/convertMappingValue.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertObject.js +4 -2
- package/build/esm/conversion/toMarketplace/convertObject.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js +2 -1
- package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertSpt.js +4 -2
- package/build/esm/conversion/toMarketplace/convertSpt.js.map +1 -1
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +143 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/types/api/action/ActionParameter.d.ts +2 -1
- package/build/types/api/action/ActionParameter.d.ts.map +1 -1
- package/build/types/api/action/ActionParameterConfiguration.d.ts +2 -1
- package/build/types/api/action/ActionParameterConfiguration.d.ts.map +1 -1
- package/build/types/api/defineAction.d.ts +4 -3
- package/build/types/api/defineAction.d.ts.map +1 -1
- package/build/types/api/defineCreateInterfaceObjectAction.d.ts.map +1 -1
- package/build/types/api/defineInterface.d.ts +7 -5
- package/build/types/api/defineInterface.d.ts.map +1 -1
- package/build/types/api/defineModifyInterfaceObjectAction.d.ts.map +1 -1
- package/build/types/api/defineObject.d.ts.map +1 -1
- package/build/types/api/defineOntology.d.ts.map +1 -1
- package/build/types/api/defineSpt.d.ts +3 -0
- package/build/types/api/defineSpt.d.ts.map +1 -1
- package/build/types/api/defineValueType.d.ts +9 -0
- package/build/types/api/defineValueType.d.ts.map +1 -1
- package/build/types/api/interface/InterfacePropertyType.d.ts +12 -2
- package/build/types/api/interface/InterfacePropertyType.d.ts.map +1 -1
- package/build/types/api/interface/InterfaceType.d.ts +3 -2
- package/build/types/api/interface/InterfaceType.d.ts.map +1 -1
- package/build/types/api/interface/getFlattenedInterfaceProperties.d.ts +1 -1
- package/build/types/api/interface/getFlattenedInterfaceProperties.d.ts.map +1 -1
- package/build/types/api/links/LinkType.d.ts +16 -4
- package/build/types/api/links/LinkType.d.ts.map +1 -1
- package/build/types/api/object/ObjectType.d.ts +1 -0
- package/build/types/api/object/ObjectType.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeDefinition.d.ts +1 -0
- package/build/types/api/object/ObjectTypeDefinition.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeStatus.d.ts +1 -1
- package/build/types/api/object/ObjectTypeStatus.d.ts.map +1 -1
- package/build/types/api/properties/PropertyTypeType.d.ts +1 -0
- package/build/types/api/properties/PropertyTypeType.d.ts.map +1 -1
- package/build/types/api/properties/SharedPropertyType.d.ts +1 -0
- package/build/types/api/properties/SharedPropertyType.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertInterface.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts +3 -0
- package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertLink.d.ts +3 -2
- package/build/types/conversion/toMarketplace/convertLink.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertMappingValue.d.ts +2 -1
- package/build/types/conversion/toMarketplace/convertMappingValue.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertObject.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertSpt.d.ts +1 -1
- package/build/types/conversion/toMarketplace/convertSpt.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts +3 -0
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts.map +1 -0
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -143,7 +143,39 @@ describe("Miscellaneous Tests", () => {
|
|
|
143
143
|
},
|
|
144
144
|
},
|
|
145
145
|
},
|
|
146
|
-
"propertiesV3": {
|
|
146
|
+
"propertiesV3": {
|
|
147
|
+
"com.palantir.core.ontology.types.id": {
|
|
148
|
+
"sharedPropertyBasedPropertyType": {
|
|
149
|
+
"requireImplementation": true,
|
|
150
|
+
"sharedPropertyType": {
|
|
151
|
+
"aliases": [],
|
|
152
|
+
"apiName": "com.palantir.core.ontology.types.id",
|
|
153
|
+
"baseFormatter": undefined,
|
|
154
|
+
"dataConstraints": undefined,
|
|
155
|
+
"displayMetadata": {
|
|
156
|
+
"description": undefined,
|
|
157
|
+
"displayName": "com.palantir.core.ontology.types.id",
|
|
158
|
+
"visibility": "NORMAL",
|
|
159
|
+
},
|
|
160
|
+
"gothamMapping": undefined,
|
|
161
|
+
"indexedForSearch": true,
|
|
162
|
+
"type": {
|
|
163
|
+
"string": {
|
|
164
|
+
"analyzerOverride": undefined,
|
|
165
|
+
"enableAsciiFolding": undefined,
|
|
166
|
+
"isLongText": false,
|
|
167
|
+
"supportsEfficientLeadingWildcard": false,
|
|
168
|
+
"supportsExactMatching": true,
|
|
169
|
+
},
|
|
170
|
+
"type": "string",
|
|
171
|
+
},
|
|
172
|
+
"typeClasses": [],
|
|
173
|
+
"valueType": undefined,
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
"type": "sharedPropertyBasedPropertyType",
|
|
177
|
+
},
|
|
178
|
+
},
|
|
147
179
|
"searchable": true,
|
|
148
180
|
"status": {
|
|
149
181
|
"active": {},
|
|
@@ -278,7 +310,39 @@ describe("Miscellaneous Tests", () => {
|
|
|
278
310
|
},
|
|
279
311
|
},
|
|
280
312
|
},
|
|
281
|
-
"propertiesV3": {
|
|
313
|
+
"propertiesV3": {
|
|
314
|
+
"com.other.package.spt": {
|
|
315
|
+
"sharedPropertyBasedPropertyType": {
|
|
316
|
+
"requireImplementation": true,
|
|
317
|
+
"sharedPropertyType": {
|
|
318
|
+
"aliases": [],
|
|
319
|
+
"apiName": "com.other.package.spt",
|
|
320
|
+
"baseFormatter": undefined,
|
|
321
|
+
"dataConstraints": undefined,
|
|
322
|
+
"displayMetadata": {
|
|
323
|
+
"description": undefined,
|
|
324
|
+
"displayName": "com.other.package.spt",
|
|
325
|
+
"visibility": "NORMAL",
|
|
326
|
+
},
|
|
327
|
+
"gothamMapping": undefined,
|
|
328
|
+
"indexedForSearch": true,
|
|
329
|
+
"type": {
|
|
330
|
+
"string": {
|
|
331
|
+
"analyzerOverride": undefined,
|
|
332
|
+
"enableAsciiFolding": undefined,
|
|
333
|
+
"isLongText": false,
|
|
334
|
+
"supportsEfficientLeadingWildcard": false,
|
|
335
|
+
"supportsExactMatching": true,
|
|
336
|
+
},
|
|
337
|
+
"type": "string",
|
|
338
|
+
},
|
|
339
|
+
"typeClasses": [],
|
|
340
|
+
"valueType": undefined,
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
"type": "sharedPropertyBasedPropertyType",
|
|
344
|
+
},
|
|
345
|
+
},
|
|
282
346
|
"searchable": true,
|
|
283
347
|
"status": {
|
|
284
348
|
"active": {},
|
|
@@ -371,6 +435,28 @@ describe("Miscellaneous Tests", () => {
|
|
|
371
435
|
}
|
|
372
436
|
}
|
|
373
437
|
},
|
|
438
|
+
"propertiesV3": {
|
|
439
|
+
"mySpt": {
|
|
440
|
+
"required": true,
|
|
441
|
+
"sharedPropertyType": {
|
|
442
|
+
"apiName": "com.my.package.mySpt",
|
|
443
|
+
"type": "string",
|
|
444
|
+
"nonNameSpacedApiName": "mySpt",
|
|
445
|
+
"displayName": "mySpt",
|
|
446
|
+
"typeClasses": [
|
|
447
|
+
{
|
|
448
|
+
"kind": "render_hint",
|
|
449
|
+
"name": "SELECTABLE"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"kind": "render_hint",
|
|
453
|
+
"name": "SORTABLE"
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"__type": OntologyEntityTypeEnum.SHARED_PROPERTY_TYPE
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
},
|
|
374
460
|
"searchable": true,
|
|
375
461
|
"__type": OntologyEntityTypeEnum.INTERFACE_TYPE
|
|
376
462
|
} as unknown as InterfaceType;
|
|
@@ -433,6 +519,28 @@ describe("Miscellaneous Tests", () => {
|
|
|
433
519
|
}
|
|
434
520
|
}
|
|
435
521
|
},
|
|
522
|
+
"propertiesV3": {
|
|
523
|
+
"mySpt": {
|
|
524
|
+
"required": true,
|
|
525
|
+
"sharedPropertyType": {
|
|
526
|
+
"apiName": "com.my.package.mySpt",
|
|
527
|
+
"type": "string",
|
|
528
|
+
"nonNameSpacedApiName": "mySpt",
|
|
529
|
+
"displayName": "mySpt",
|
|
530
|
+
"typeClasses": [
|
|
531
|
+
{
|
|
532
|
+
"kind": "render_hint",
|
|
533
|
+
"name": "SELECTABLE"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"kind": "render_hint",
|
|
537
|
+
"name": "SORTABLE"
|
|
538
|
+
}
|
|
539
|
+
],
|
|
540
|
+
"__type": OntologyEntityTypeEnum.SHARED_PROPERTY_TYPE
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
},
|
|
436
544
|
"searchable": true,
|
|
437
545
|
"__type": OntologyEntityTypeEnum.INTERFACE_TYPE
|
|
438
546
|
},
|
|
@@ -485,16 +593,24 @@ describe("Miscellaneous Tests", () => {
|
|
|
485
593
|
it("Extended interfaces are propagated to the static objects", async () => {
|
|
486
594
|
const generatedDir = path.resolve(path.join(__dirname, "..", "generatedNoCheck", "extended_interfaces_are_propagated_to_the_static_objects"));
|
|
487
595
|
await defineOntology("com.palantir.", () => {
|
|
596
|
+
const property1 = defineSharedPropertyType({
|
|
597
|
+
apiName: "property1",
|
|
598
|
+
type: "string"
|
|
599
|
+
});
|
|
600
|
+
const property2 = defineSharedPropertyType({
|
|
601
|
+
apiName: "property2",
|
|
602
|
+
type: "string"
|
|
603
|
+
});
|
|
488
604
|
const parentInterface = defineInterface({
|
|
489
605
|
apiName: "parentInterface",
|
|
490
606
|
properties: {
|
|
491
|
-
property1:
|
|
607
|
+
property1: property1
|
|
492
608
|
}
|
|
493
609
|
});
|
|
494
610
|
defineInterface({
|
|
495
611
|
apiName: "childInterface",
|
|
496
612
|
properties: {
|
|
497
|
-
property2:
|
|
613
|
+
property2: property2
|
|
498
614
|
},
|
|
499
615
|
extends: [parentInterface]
|
|
500
616
|
});
|
|
@@ -529,10 +645,31 @@ describe("Miscellaneous Tests", () => {
|
|
|
529
645
|
"required": true,
|
|
530
646
|
"sharedPropertyType": {
|
|
531
647
|
"apiName": "com.palantir.property1",
|
|
648
|
+
"type": "string",
|
|
649
|
+
"nonNameSpacedApiName": "property1",
|
|
532
650
|
"displayName": "property1",
|
|
651
|
+
"typeClasses": [
|
|
652
|
+
{
|
|
653
|
+
"kind": "render_hint",
|
|
654
|
+
"name": "SELECTABLE"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"kind": "render_hint",
|
|
658
|
+
"name": "SORTABLE"
|
|
659
|
+
}
|
|
660
|
+
],
|
|
661
|
+
"__type": OntologyEntityTypeEnum.SHARED_PROPERTY_TYPE
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"propertiesV3": {
|
|
666
|
+
"property1": {
|
|
667
|
+
"required": true,
|
|
668
|
+
"sharedPropertyType": {
|
|
669
|
+
"apiName": "com.palantir.property1",
|
|
533
670
|
"type": "string",
|
|
534
|
-
"array": false,
|
|
535
671
|
"nonNameSpacedApiName": "property1",
|
|
672
|
+
"displayName": "property1",
|
|
536
673
|
"typeClasses": [
|
|
537
674
|
{
|
|
538
675
|
"kind": "render_hint",
|
|
@@ -561,10 +698,31 @@ describe("Miscellaneous Tests", () => {
|
|
|
561
698
|
"required": true,
|
|
562
699
|
"sharedPropertyType": {
|
|
563
700
|
"apiName": "com.palantir.property2",
|
|
701
|
+
"type": "string",
|
|
702
|
+
"nonNameSpacedApiName": "property2",
|
|
564
703
|
"displayName": "property2",
|
|
704
|
+
"typeClasses": [
|
|
705
|
+
{
|
|
706
|
+
"kind": "render_hint",
|
|
707
|
+
"name": "SELECTABLE"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"kind": "render_hint",
|
|
711
|
+
"name": "SORTABLE"
|
|
712
|
+
}
|
|
713
|
+
],
|
|
714
|
+
"__type": OntologyEntityTypeEnum.SHARED_PROPERTY_TYPE
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
"propertiesV3": {
|
|
719
|
+
"property2": {
|
|
720
|
+
"required": true,
|
|
721
|
+
"sharedPropertyType": {
|
|
722
|
+
"apiName": "com.palantir.property2",
|
|
565
723
|
"type": "string",
|
|
566
|
-
"array": false,
|
|
567
724
|
"nonNameSpacedApiName": "property2",
|
|
725
|
+
"displayName": "property2",
|
|
568
726
|
"typeClasses": [
|
|
569
727
|
{
|
|
570
728
|
"kind": "render_hint",
|
|
@@ -592,16 +750,24 @@ describe("Miscellaneous Tests", () => {
|
|
|
592
750
|
});
|
|
593
751
|
});
|
|
594
752
|
it("Extended interface properties are checked in object type property mapping", () => {
|
|
753
|
+
const iProperty1 = defineSharedPropertyType({
|
|
754
|
+
apiName: "iProperty1",
|
|
755
|
+
type: "string"
|
|
756
|
+
});
|
|
757
|
+
const iProperty2 = defineSharedPropertyType({
|
|
758
|
+
apiName: "iProperty2",
|
|
759
|
+
type: "string"
|
|
760
|
+
});
|
|
595
761
|
const parentInterface = defineInterface({
|
|
596
762
|
apiName: "parentInterface",
|
|
597
763
|
properties: {
|
|
598
|
-
iProperty1:
|
|
764
|
+
iProperty1: iProperty1
|
|
599
765
|
}
|
|
600
766
|
});
|
|
601
767
|
const childInterface = defineInterface({
|
|
602
768
|
apiName: "childInterface",
|
|
603
769
|
properties: {
|
|
604
|
-
iProperty2:
|
|
770
|
+
iProperty2: iProperty2
|
|
605
771
|
},
|
|
606
772
|
extends: [parentInterface]
|
|
607
773
|
});
|
|
@@ -715,7 +881,48 @@ describe("Miscellaneous Tests", () => {
|
|
|
715
881
|
},
|
|
716
882
|
},
|
|
717
883
|
},
|
|
718
|
-
"propertiesV3": {
|
|
884
|
+
"propertiesV3": {
|
|
885
|
+
"com.palantir.iProperty2": {
|
|
886
|
+
"sharedPropertyBasedPropertyType": {
|
|
887
|
+
"requireImplementation": true,
|
|
888
|
+
"sharedPropertyType": {
|
|
889
|
+
"aliases": [],
|
|
890
|
+
"apiName": "com.palantir.iProperty2",
|
|
891
|
+
"baseFormatter": undefined,
|
|
892
|
+
"dataConstraints": undefined,
|
|
893
|
+
"displayMetadata": {
|
|
894
|
+
"description": undefined,
|
|
895
|
+
"displayName": "iProperty2",
|
|
896
|
+
"visibility": "NORMAL",
|
|
897
|
+
},
|
|
898
|
+
"gothamMapping": undefined,
|
|
899
|
+
"indexedForSearch": true,
|
|
900
|
+
"type": {
|
|
901
|
+
"string": {
|
|
902
|
+
"analyzerOverride": undefined,
|
|
903
|
+
"enableAsciiFolding": undefined,
|
|
904
|
+
"isLongText": false,
|
|
905
|
+
"supportsEfficientLeadingWildcard": false,
|
|
906
|
+
"supportsExactMatching": true,
|
|
907
|
+
},
|
|
908
|
+
"type": "string",
|
|
909
|
+
},
|
|
910
|
+
"typeClasses": [
|
|
911
|
+
{
|
|
912
|
+
"kind": "render_hint",
|
|
913
|
+
"name": "SELECTABLE",
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"kind": "render_hint",
|
|
917
|
+
"name": "SORTABLE",
|
|
918
|
+
},
|
|
919
|
+
],
|
|
920
|
+
"valueType": undefined,
|
|
921
|
+
},
|
|
922
|
+
},
|
|
923
|
+
"type": "sharedPropertyBasedPropertyType",
|
|
924
|
+
},
|
|
925
|
+
},
|
|
719
926
|
"searchable": true,
|
|
720
927
|
"status": {
|
|
721
928
|
"active": {},
|
|
@@ -779,7 +986,48 @@ describe("Miscellaneous Tests", () => {
|
|
|
779
986
|
},
|
|
780
987
|
},
|
|
781
988
|
},
|
|
782
|
-
"propertiesV3": {
|
|
989
|
+
"propertiesV3": {
|
|
990
|
+
"com.palantir.iProperty1": {
|
|
991
|
+
"sharedPropertyBasedPropertyType": {
|
|
992
|
+
"requireImplementation": true,
|
|
993
|
+
"sharedPropertyType": {
|
|
994
|
+
"aliases": [],
|
|
995
|
+
"apiName": "com.palantir.iProperty1",
|
|
996
|
+
"baseFormatter": undefined,
|
|
997
|
+
"dataConstraints": undefined,
|
|
998
|
+
"displayMetadata": {
|
|
999
|
+
"description": undefined,
|
|
1000
|
+
"displayName": "iProperty1",
|
|
1001
|
+
"visibility": "NORMAL",
|
|
1002
|
+
},
|
|
1003
|
+
"gothamMapping": undefined,
|
|
1004
|
+
"indexedForSearch": true,
|
|
1005
|
+
"type": {
|
|
1006
|
+
"string": {
|
|
1007
|
+
"analyzerOverride": undefined,
|
|
1008
|
+
"enableAsciiFolding": undefined,
|
|
1009
|
+
"isLongText": false,
|
|
1010
|
+
"supportsEfficientLeadingWildcard": false,
|
|
1011
|
+
"supportsExactMatching": true,
|
|
1012
|
+
},
|
|
1013
|
+
"type": "string",
|
|
1014
|
+
},
|
|
1015
|
+
"typeClasses": [
|
|
1016
|
+
{
|
|
1017
|
+
"kind": "render_hint",
|
|
1018
|
+
"name": "SELECTABLE",
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"kind": "render_hint",
|
|
1022
|
+
"name": "SORTABLE",
|
|
1023
|
+
},
|
|
1024
|
+
],
|
|
1025
|
+
"valueType": undefined,
|
|
1026
|
+
},
|
|
1027
|
+
},
|
|
1028
|
+
"type": "sharedPropertyBasedPropertyType",
|
|
1029
|
+
},
|
|
1030
|
+
},
|
|
783
1031
|
"searchable": true,
|
|
784
1032
|
"status": {
|
|
785
1033
|
"active": {},
|
|
@@ -817,6 +1065,7 @@ describe("Miscellaneous Tests", () => {
|
|
|
817
1065
|
},
|
|
818
1066
|
],
|
|
819
1067
|
"entityMetadata": {
|
|
1068
|
+
"aliases": [],
|
|
820
1069
|
"arePatchesEnabled": false,
|
|
821
1070
|
},
|
|
822
1071
|
"objectType": {
|
|
@@ -1036,7 +1285,9 @@ describe("Miscellaneous Tests", () => {
|
|
|
1036
1285
|
defineInterface({
|
|
1037
1286
|
apiName: "myInterface",
|
|
1038
1287
|
properties: {
|
|
1039
|
-
property1:
|
|
1288
|
+
property1: {
|
|
1289
|
+
type: "string"
|
|
1290
|
+
}
|
|
1040
1291
|
}
|
|
1041
1292
|
});
|
|
1042
1293
|
}, generatedDir, path.join(generatedDir, "dependencies.json"));
|