@osdk/generator 2.0.0-beta.12 → 2.0.0-beta.14
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 +40 -0
- package/build/browser/GenerateContext/EnhanceCommon.d.ts +9 -0
- package/build/browser/GenerateContext/EnhanceCommon.d.ts.map +1 -0
- package/build/browser/GenerateContext/EnhanceCommon.js +17 -0
- package/build/browser/GenerateContext/EnhanceCommon.js.map +1 -0
- package/build/browser/GenerateContext/EnhancedAction.d.ts +14 -0
- package/build/browser/GenerateContext/EnhancedAction.d.ts.map +1 -0
- package/build/browser/GenerateContext/EnhancedAction.js +42 -0
- package/build/browser/GenerateContext/EnhancedAction.js.map +1 -0
- package/build/browser/GenerateContext/EnhancedBase.d.ts +23 -0
- package/build/browser/GenerateContext/EnhancedBase.d.ts.map +1 -0
- package/build/browser/GenerateContext/EnhancedBase.js +72 -0
- package/build/browser/GenerateContext/EnhancedBase.js.map +1 -0
- package/build/browser/GenerateContext/EnhancedInterfaceType.d.ts +13 -0
- package/build/browser/GenerateContext/EnhancedInterfaceType.d.ts.map +1 -0
- package/build/browser/GenerateContext/EnhancedInterfaceType.js +38 -0
- package/build/browser/GenerateContext/EnhancedInterfaceType.js.map +1 -0
- package/build/browser/GenerateContext/EnhancedObjectType.d.ts +12 -0
- package/build/browser/GenerateContext/EnhancedObjectType.d.ts.map +1 -0
- package/build/browser/GenerateContext/EnhancedObjectType.js +35 -0
- package/build/browser/GenerateContext/EnhancedObjectType.js.map +1 -0
- package/build/browser/GenerateContext/EnhancedOntologyDefinition.d.ts +27 -0
- package/build/browser/GenerateContext/EnhancedOntologyDefinition.d.ts.map +1 -0
- package/build/browser/GenerateContext/EnhancedOntologyDefinition.js +77 -0
- package/build/browser/GenerateContext/EnhancedOntologyDefinition.js.map +1 -0
- package/build/browser/GenerateContext/EnhancedQuery.d.ts +14 -0
- package/build/browser/GenerateContext/EnhancedQuery.d.ts.map +1 -0
- package/build/browser/GenerateContext/EnhancedQuery.js +42 -0
- package/build/browser/GenerateContext/EnhancedQuery.js.map +1 -0
- package/build/browser/GenerateContext/EnhancedSharedPropertyType.d.ts +8 -0
- package/build/browser/GenerateContext/EnhancedSharedPropertyType.d.ts.map +1 -0
- package/build/browser/GenerateContext/EnhancedSharedPropertyType.js +24 -0
- package/build/browser/GenerateContext/EnhancedSharedPropertyType.js.map +1 -0
- package/build/browser/GenerateContext/ForeignType.d.ts +10 -0
- package/build/browser/GenerateContext/ForeignType.d.ts.map +1 -0
- package/build/browser/GenerateContext/ForeignType.js +36 -0
- package/build/browser/GenerateContext/ForeignType.js.map +1 -0
- package/build/browser/GenerateContext/GenerateContext.d.ts +13 -0
- package/build/browser/GenerateContext/GenerateContext.d.ts.map +1 -0
- package/build/browser/GenerateContext/GenerateContext.js +17 -0
- package/build/browser/GenerateContext/GenerateContext.js.map +1 -0
- package/build/browser/GenerateContext/enhanceOntology.d.ts +4 -0
- package/build/browser/GenerateContext/enhanceOntology.d.ts.map +1 -0
- package/build/browser/GenerateContext/enhanceOntology.js +20 -0
- package/build/browser/GenerateContext/enhanceOntology.js.map +1 -0
- package/build/browser/MinimalFs.d.ts +10 -0
- package/build/browser/MinimalFs.d.ts.map +1 -0
- package/build/browser/MinimalFs.js +17 -0
- package/build/browser/MinimalFs.js.map +1 -0
- package/build/browser/WireOntologyDefinition.d.ts +4 -0
- package/build/browser/WireOntologyDefinition.d.ts.map +1 -0
- package/build/browser/WireOntologyDefinition.js +17 -0
- package/build/browser/WireOntologyDefinition.js.map +1 -0
- package/build/browser/generateClientSdkPackage.d.ts +47 -0
- package/build/browser/generateClientSdkPackage.d.ts.map +1 -0
- package/build/browser/generateClientSdkPackage.js +126 -0
- package/build/browser/generateClientSdkPackage.js.map +1 -0
- package/build/browser/generateClientSdkPackage.test.d.ts +2 -0
- package/build/browser/generateClientSdkPackage.test.d.ts.map +1 -0
- package/build/browser/generateClientSdkPackage.test.js +67 -0
- package/build/browser/generateClientSdkPackage.test.js.map +1 -0
- package/build/browser/index.d.ts +5 -0
- package/build/browser/index.d.ts.map +1 -0
- package/build/browser/index.js +17 -1311
- package/build/browser/index.js.map +1 -1
- package/build/browser/shared/apiNamespaces/startsWithApiNamespace.d.ts +2 -0
- package/build/browser/shared/apiNamespaces/startsWithApiNamespace.d.ts.map +1 -0
- package/build/browser/shared/apiNamespaces/startsWithApiNamespace.js +23 -0
- package/build/browser/shared/apiNamespaces/startsWithApiNamespace.js.map +1 -0
- package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.d.ts +2 -0
- package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.d.ts.map +1 -0
- package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.js +46 -0
- package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.js.map +1 -0
- package/build/browser/shared/getObjectImports.d.ts +4 -0
- package/build/browser/shared/getObjectImports.d.ts.map +1 -0
- package/build/browser/shared/getObjectImports.js +24 -0
- package/build/browser/shared/getObjectImports.js.map +1 -0
- package/build/browser/shared/getObjectTypeApiNamesFromQuery.d.ts +4 -0
- package/build/browser/shared/getObjectTypeApiNamesFromQuery.d.ts.map +1 -0
- package/build/browser/shared/getObjectTypeApiNamesFromQuery.js +27 -0
- package/build/browser/shared/getObjectTypeApiNamesFromQuery.js.map +1 -0
- package/build/browser/shared/getObjectTypesFromQueryDataType.d.ts +3 -0
- package/build/browser/shared/getObjectTypesFromQueryDataType.d.ts.map +1 -0
- package/build/browser/shared/getObjectTypesFromQueryDataType.js +57 -0
- package/build/browser/shared/getObjectTypesFromQueryDataType.js.map +1 -0
- package/build/browser/shared/propertyJsdoc.d.ts +6 -0
- package/build/browser/shared/propertyJsdoc.d.ts.map +1 -0
- package/build/browser/shared/propertyJsdoc.js +38 -0
- package/build/browser/shared/propertyJsdoc.js.map +1 -0
- package/build/browser/shared/sanitizeMetadata.d.ts +2 -0
- package/build/browser/shared/sanitizeMetadata.d.ts.map +1 -0
- package/build/browser/shared/sanitizeMetadata.js +33 -0
- package/build/browser/shared/sanitizeMetadata.js.map +1 -0
- package/build/browser/shared/sanitizeMetadata.test.d.ts +2 -0
- package/build/browser/shared/sanitizeMetadata.test.d.ts.map +1 -0
- package/build/browser/shared/sanitizeMetadata.test.js +44 -0
- package/build/browser/shared/sanitizeMetadata.test.js.map +1 -0
- package/build/browser/util/InMemoryFs.d.ts +7 -0
- package/build/browser/util/InMemoryFs.d.ts.map +1 -0
- package/build/browser/util/InMemoryFs.js +30 -0
- package/build/browser/util/InMemoryFs.js.map +1 -0
- package/build/browser/util/commaSeparatedIdentifiers.d.ts +2 -0
- package/build/browser/util/commaSeparatedIdentifiers.d.ts.map +1 -0
- package/build/browser/util/commaSeparatedIdentifiers.js +25 -0
- package/build/browser/util/commaSeparatedIdentifiers.js.map +1 -0
- package/build/browser/util/commaSeparatedTypeIdentifiers.d.ts +2 -0
- package/build/browser/util/commaSeparatedTypeIdentifiers.d.ts.map +1 -0
- package/build/browser/util/commaSeparatedTypeIdentifiers.js +19 -0
- package/build/browser/util/commaSeparatedTypeIdentifiers.js.map +1 -0
- package/build/browser/util/deleteUndefineds.d.ts +2 -0
- package/build/browser/util/deleteUndefineds.d.ts.map +1 -0
- package/build/browser/util/deleteUndefineds.js +19 -0
- package/build/browser/util/deleteUndefineds.js.map +1 -0
- package/build/browser/util/reservedKeywords.d.ts +2 -0
- package/build/browser/util/reservedKeywords.d.ts.map +1 -0
- package/build/browser/util/reservedKeywords.js +21 -0
- package/build/browser/util/reservedKeywords.js.map +1 -0
- package/build/browser/util/stringUnionFrom.d.ts +2 -0
- package/build/browser/util/stringUnionFrom.d.ts.map +1 -0
- package/build/browser/util/stringUnionFrom.js +23 -0
- package/build/browser/util/stringUnionFrom.js.map +1 -0
- package/build/browser/util/stringify.d.ts +20 -0
- package/build/browser/util/stringify.d.ts.map +1 -0
- package/build/browser/util/stringify.js +36 -0
- package/build/browser/util/stringify.js.map +1 -0
- package/build/browser/util/test/TodoWireOntology.d.ts +217 -0
- package/build/browser/util/test/TodoWireOntology.d.ts.map +1 -0
- package/build/browser/util/test/TodoWireOntology.js +232 -0
- package/build/browser/util/test/TodoWireOntology.js.map +1 -0
- package/build/browser/util/test/compileThis.d.ts +3 -0
- package/build/browser/util/test/compileThis.d.ts.map +1 -0
- package/build/browser/util/test/compileThis.js +41 -0
- package/build/browser/util/test/compileThis.js.map +1 -0
- package/build/browser/util/test/createMockMinimalFiles.d.ts +13 -0
- package/build/browser/util/test/createMockMinimalFiles.d.ts.map +1 -0
- package/build/browser/util/test/createMockMinimalFiles.js +37 -0
- package/build/browser/util/test/createMockMinimalFiles.js.map +1 -0
- package/build/browser/util/test/formatTs.d.ts +2 -0
- package/build/browser/util/test/formatTs.d.ts.map +1 -0
- package/build/browser/util/test/formatTs.js +32 -0
- package/build/browser/util/test/formatTs.js.map +1 -0
- package/build/browser/util/verifyOutDir.d.ts +9 -0
- package/build/browser/util/verifyOutDir.d.ts.map +1 -0
- package/build/browser/util/verifyOutDir.js +35 -0
- package/build/browser/util/verifyOutDir.js.map +1 -0
- package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts +2 -0
- package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts.map +1 -0
- package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js +114 -0
- package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js.map +1 -0
- package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts +2 -0
- package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts.map +1 -0
- package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js +273 -0
- package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js.map +1 -0
- package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.d.ts +4 -0
- package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.d.ts.map +1 -0
- package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.js +119 -0
- package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.js.map +1 -0
- package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts +2 -0
- package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts.map +1 -0
- package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.js +1949 -0
- package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.js.map +1 -0
- package/build/browser/v2.0/generateMetadata.d.ts +3 -0
- package/build/browser/v2.0/generateMetadata.d.ts.map +1 -0
- package/build/browser/v2.0/generateMetadata.js +35 -0
- package/build/browser/v2.0/generateMetadata.js.map +1 -0
- package/build/browser/v2.0/generatePerActionDataFiles.d.ts +3 -0
- package/build/browser/v2.0/generatePerActionDataFiles.d.ts.map +1 -0
- package/build/browser/v2.0/generatePerActionDataFiles.js +240 -0
- package/build/browser/v2.0/generatePerActionDataFiles.js.map +1 -0
- package/build/browser/v2.0/generatePerActionDataFiles.test.d.ts +2 -0
- package/build/browser/v2.0/generatePerActionDataFiles.test.d.ts.map +1 -0
- package/build/browser/v2.0/generatePerActionDataFiles.test.js +51 -0
- package/build/browser/v2.0/generatePerActionDataFiles.test.js.map +1 -0
- package/build/browser/v2.0/generatePerQueryDataFiles.d.ts +9 -0
- package/build/browser/v2.0/generatePerQueryDataFiles.d.ts.map +1 -0
- package/build/browser/v2.0/generatePerQueryDataFiles.js +194 -0
- package/build/browser/v2.0/generatePerQueryDataFiles.js.map +1 -0
- package/build/browser/v2.0/generatePerQueryDataFiles.test.d.ts +2 -0
- package/build/browser/v2.0/generatePerQueryDataFiles.test.d.ts.map +1 -0
- package/build/browser/v2.0/generatePerQueryDataFiles.test.js +199 -0
- package/build/browser/v2.0/generatePerQueryDataFiles.test.js.map +1 -0
- package/build/browser/v2.0/getDescriptionIfPresent.d.ts +2 -0
- package/build/browser/v2.0/getDescriptionIfPresent.d.ts.map +1 -0
- package/build/browser/v2.0/getDescriptionIfPresent.js +24 -0
- package/build/browser/v2.0/getDescriptionIfPresent.js.map +1 -0
- package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts +13 -0
- package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts.map +1 -0
- package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js +205 -0
- package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js.map +1 -0
- package/build/browser/validateWireOntologyAssumptions.d.ts +3 -0
- package/build/browser/validateWireOntologyAssumptions.d.ts.map +1 -0
- package/build/browser/validateWireOntologyAssumptions.js +33 -0
- package/build/browser/validateWireOntologyAssumptions.js.map +1 -0
- package/build/esm/GenerateContext/EnhanceCommon.js +17 -0
- package/build/esm/GenerateContext/EnhanceCommon.js.map +1 -0
- package/build/esm/GenerateContext/EnhancedAction.js +42 -0
- package/build/esm/GenerateContext/EnhancedAction.js.map +1 -0
- package/build/esm/GenerateContext/EnhancedBase.d.ts.map +1 -1
- package/build/esm/GenerateContext/EnhancedBase.js +72 -0
- package/build/esm/GenerateContext/EnhancedBase.js.map +1 -0
- package/build/esm/GenerateContext/EnhancedInterfaceType.d.ts +2 -2
- package/build/esm/GenerateContext/EnhancedInterfaceType.d.ts.map +1 -1
- package/build/esm/GenerateContext/EnhancedInterfaceType.js +38 -0
- package/build/esm/GenerateContext/EnhancedInterfaceType.js.map +1 -0
- package/build/esm/GenerateContext/EnhancedObjectType.d.ts +2 -2
- package/build/esm/GenerateContext/EnhancedObjectType.d.ts.map +1 -1
- package/build/esm/GenerateContext/EnhancedObjectType.js +35 -0
- package/build/esm/GenerateContext/EnhancedObjectType.js.map +1 -0
- package/build/esm/GenerateContext/EnhancedOntologyDefinition.js +77 -0
- package/build/esm/GenerateContext/EnhancedOntologyDefinition.js.map +1 -0
- package/build/esm/GenerateContext/EnhancedQuery.js +42 -0
- package/build/esm/GenerateContext/EnhancedQuery.js.map +1 -0
- package/build/esm/GenerateContext/EnhancedSharedPropertyType.js +24 -0
- package/build/esm/GenerateContext/EnhancedSharedPropertyType.js.map +1 -0
- package/build/esm/GenerateContext/ForeignType.js +36 -0
- package/build/esm/GenerateContext/ForeignType.js.map +1 -0
- package/build/esm/GenerateContext/GenerateContext.js +17 -0
- package/build/esm/GenerateContext/GenerateContext.js.map +1 -0
- package/build/esm/GenerateContext/enhanceOntology.js +20 -0
- package/build/esm/GenerateContext/enhanceOntology.js.map +1 -0
- package/build/esm/MinimalFs.js +17 -0
- package/build/esm/MinimalFs.js.map +1 -0
- package/build/esm/WireOntologyDefinition.js +17 -0
- package/build/esm/WireOntologyDefinition.js.map +1 -0
- package/build/esm/generateClientSdkPackage.d.ts +1 -6
- package/build/esm/generateClientSdkPackage.d.ts.map +1 -1
- package/build/esm/generateClientSdkPackage.js +126 -0
- package/build/esm/generateClientSdkPackage.js.map +1 -0
- package/build/esm/generateClientSdkPackage.test.js +67 -0
- package/build/esm/generateClientSdkPackage.test.js.map +1 -0
- package/build/esm/index.js +17 -1311
- package/build/esm/index.js.map +1 -1
- package/build/esm/shared/apiNamespaces/startsWithApiNamespace.js +23 -0
- package/build/esm/shared/apiNamespaces/startsWithApiNamespace.js.map +1 -0
- package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.js +46 -0
- package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.js.map +1 -0
- package/build/esm/shared/getObjectImports.js +24 -0
- package/build/esm/shared/getObjectImports.js.map +1 -0
- package/build/esm/shared/getObjectTypeApiNamesFromQuery.js +27 -0
- package/build/esm/shared/getObjectTypeApiNamesFromQuery.js.map +1 -0
- package/build/esm/shared/getObjectTypesFromQueryDataType.js +57 -0
- package/build/esm/shared/getObjectTypesFromQueryDataType.js.map +1 -0
- package/build/esm/shared/propertyJsdoc.js +38 -0
- package/build/esm/shared/propertyJsdoc.js.map +1 -0
- package/build/esm/shared/sanitizeMetadata.js +33 -0
- package/build/esm/shared/sanitizeMetadata.js.map +1 -0
- package/build/esm/shared/sanitizeMetadata.test.js +44 -0
- package/build/esm/shared/sanitizeMetadata.test.js.map +1 -0
- package/build/esm/util/InMemoryFs.js +30 -0
- package/build/esm/util/InMemoryFs.js.map +1 -0
- package/build/esm/util/commaSeparatedIdentifiers.js +25 -0
- package/build/esm/util/commaSeparatedIdentifiers.js.map +1 -0
- package/build/esm/util/commaSeparatedTypeIdentifiers.js +19 -0
- package/build/esm/util/commaSeparatedTypeIdentifiers.js.map +1 -0
- package/build/esm/util/deleteUndefineds.js +19 -0
- package/build/esm/util/deleteUndefineds.js.map +1 -0
- package/build/esm/util/reservedKeywords.js +21 -0
- package/build/esm/util/reservedKeywords.js.map +1 -0
- package/build/esm/util/stringUnionFrom.js +23 -0
- package/build/esm/util/stringUnionFrom.js.map +1 -0
- package/build/esm/util/stringify.js +36 -0
- package/build/esm/util/stringify.js.map +1 -0
- package/build/esm/util/test/TodoWireOntology.js +232 -0
- package/build/esm/util/test/TodoWireOntology.js.map +1 -0
- package/build/esm/util/test/compileThis.js +41 -0
- package/build/esm/util/test/compileThis.js.map +1 -0
- package/build/esm/util/test/createMockMinimalFiles.js +37 -0
- package/build/esm/util/test/createMockMinimalFiles.js.map +1 -0
- package/build/esm/util/test/formatTs.js +32 -0
- package/build/esm/util/test/formatTs.js.map +1 -0
- package/build/esm/util/verifyOutDir.js +35 -0
- package/build/esm/util/verifyOutDir.js.map +1 -0
- package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js +114 -0
- package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js.map +1 -0
- package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js +273 -0
- package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js.map +1 -0
- package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.js +119 -0
- package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.js.map +1 -0
- package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.js +1949 -0
- package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.js.map +1 -0
- package/build/esm/v2.0/generateMetadata.js +35 -0
- package/build/esm/v2.0/generateMetadata.js.map +1 -0
- package/build/esm/v2.0/generatePerActionDataFiles.d.ts.map +1 -1
- package/build/esm/v2.0/generatePerActionDataFiles.js +240 -0
- package/build/esm/v2.0/generatePerActionDataFiles.js.map +1 -0
- package/build/esm/v2.0/generatePerActionDataFiles.test.js +51 -0
- package/build/esm/v2.0/generatePerActionDataFiles.test.js.map +1 -0
- package/build/esm/v2.0/generatePerQueryDataFiles.d.ts.map +1 -1
- package/build/esm/v2.0/generatePerQueryDataFiles.js +194 -0
- package/build/esm/v2.0/generatePerQueryDataFiles.js.map +1 -0
- package/build/esm/v2.0/generatePerQueryDataFiles.test.js +199 -0
- package/build/esm/v2.0/generatePerQueryDataFiles.test.js.map +1 -0
- package/build/esm/v2.0/getDescriptionIfPresent.js +24 -0
- package/build/esm/v2.0/getDescriptionIfPresent.js.map +1 -0
- package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts.map +1 -1
- package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js +205 -0
- package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js.map +1 -0
- package/build/esm/validateWireOntologyAssumptions.js +33 -0
- package/build/esm/validateWireOntologyAssumptions.js.map +1 -0
- package/package.json +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @osdk/generator
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.14
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1f633f7: Removed dependency on @osdk/client.api
|
|
8
|
+
- d4d6605: Audited and cleaned up deps
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [5d6d5ab]
|
|
13
|
+
- Updated dependencies [a2c7b37]
|
|
14
|
+
- Updated dependencies [fe9547e]
|
|
15
|
+
- Updated dependencies [1f633f7]
|
|
16
|
+
- Updated dependencies [d4d6605]
|
|
17
|
+
- @osdk/internal.foundry.core@0.2.0-beta.9
|
|
18
|
+
- @osdk/api@2.0.0-beta.14
|
|
19
|
+
- @osdk/generator-converters@2.0.0-beta.14
|
|
20
|
+
|
|
21
|
+
## 2.0.0-beta.13
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- 1488144: Renamed definition types to metadata
|
|
26
|
+
- bbfebfd: Fix generation of actions with full api names
|
|
27
|
+
- f6e2880: Fixes query type generation
|
|
28
|
+
- c28792e: Modified return type of fetchMetadata to return Object/Interface Definitions
|
|
29
|
+
- 26ee3bd: Updates return types of fetchMetadata to be Action and Query Definitions
|
|
30
|
+
- 6ab5d2e: Renamed Min_Definition to \_Definition
|
|
31
|
+
- 885c8e4: Fixing bug for codegen on windows machines, where we would use backslashes instead of forward slashes for import paths, which should be OS agnostic.
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Updated dependencies [1488144]
|
|
36
|
+
- Updated dependencies [c28792e]
|
|
37
|
+
- Updated dependencies [26ee3bd]
|
|
38
|
+
- Updated dependencies [6ab5d2e]
|
|
39
|
+
- @osdk/generator-converters@2.0.0-beta.13
|
|
40
|
+
- @osdk/api@2.0.0-beta.13
|
|
41
|
+
- @osdk/internal.foundry.core@0.2.0-beta.8
|
|
42
|
+
|
|
3
43
|
## 2.0.0-beta.12
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EnhancedOntologyDefinition } from "./EnhancedOntologyDefinition.js";
|
|
2
|
+
export interface EnhanceCommon {
|
|
3
|
+
ontologyApiNamespace: string | undefined;
|
|
4
|
+
apiNamespacePackageMap: Map<string, string>;
|
|
5
|
+
importExt: string;
|
|
6
|
+
/** DO NOT USE THIS IN THE CONSTRUCTOR(S) */
|
|
7
|
+
enhancedOntology: EnhancedOntologyDefinition;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=EnhanceCommon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhanceCommon.d.ts","sourceRoot":"","sources":["../../../src/GenerateContext/EnhanceCommon.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAElF,MAAM,WAAW,aAAa;IAC5B,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,sBAAsB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,gBAAgB,EAAE,0BAA0B,CAAC;CAC9C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=EnhanceCommon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhanceCommon.js","names":[],"sources":["EnhanceCommon.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ActionTypeV2 } from "@osdk/internal.foundry.core";
|
|
2
|
+
import type { EnhanceCommon } from "./EnhanceCommon.js";
|
|
3
|
+
import { EnhancedBase } from "./EnhancedBase.js";
|
|
4
|
+
export declare class EnhancedAction extends EnhancedBase<ActionTypeV2> {
|
|
5
|
+
raw: ActionTypeV2;
|
|
6
|
+
constructor(common: EnhanceCommon, raw: ActionTypeV2);
|
|
7
|
+
get description(): string | undefined;
|
|
8
|
+
get parameters(): Record<import("@osdk/internal.foundry.core").ParameterId, import("@osdk/internal.foundry.core").ActionParameterV2>;
|
|
9
|
+
get operations(): import("@osdk/internal.foundry.core").LogicRule[];
|
|
10
|
+
get paramsIdentifier(): string;
|
|
11
|
+
get definitionIdentifier(): string;
|
|
12
|
+
get definitionParamsIdentifier(): string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=EnhancedAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedAction.d.ts","sourceRoot":"","sources":["../../../src/GenerateContext/EnhancedAction.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,cAAe,SAAQ,YAAY,CAAC,YAAY,CAAC;IAClB,GAAG,EAAE,YAAY;gBAA/C,MAAM,EAAE,aAAa,EAAS,GAAG,EAAE,YAAY;IAI3D,IAAI,WAAW,uBAEd;IAED,IAAI,UAAU,uHAEb;IAED,IAAI,UAAU,sDAEb;IAED,IAAI,gBAAgB,WAEnB;IAED,IAAI,oBAAoB,WAEvB;IAED,IAAI,0BAA0B,WAE7B;CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { EnhancedBase } from "./EnhancedBase.js";
|
|
17
|
+
export class EnhancedAction extends EnhancedBase {
|
|
18
|
+
raw;
|
|
19
|
+
constructor(common, raw) {
|
|
20
|
+
super(common, raw, raw.apiName, "./ontology/actions");
|
|
21
|
+
this.raw = raw;
|
|
22
|
+
}
|
|
23
|
+
get description() {
|
|
24
|
+
return this.raw.description;
|
|
25
|
+
}
|
|
26
|
+
get parameters() {
|
|
27
|
+
return this.raw.parameters;
|
|
28
|
+
}
|
|
29
|
+
get operations() {
|
|
30
|
+
return this.raw.operations;
|
|
31
|
+
}
|
|
32
|
+
get paramsIdentifier() {
|
|
33
|
+
return `${this.shortApiName}.Params`;
|
|
34
|
+
}
|
|
35
|
+
get definitionIdentifier() {
|
|
36
|
+
return `${this.shortApiName}.Definition`;
|
|
37
|
+
}
|
|
38
|
+
get definitionParamsIdentifier() {
|
|
39
|
+
return `${this.shortApiName}.ParamsDefinition`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=EnhancedAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedAction.js","names":["EnhancedBase","EnhancedAction","raw","constructor","common","apiName","description","parameters","operations","paramsIdentifier","shortApiName","definitionIdentifier","definitionParamsIdentifier"],"sources":["EnhancedAction.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { EnhancedBase } from \"./EnhancedBase.js\";\nexport class EnhancedAction extends EnhancedBase {\n raw;\n constructor(common, raw) {\n super(common, raw, raw.apiName, \"./ontology/actions\");\n this.raw = raw;\n }\n get description() {\n return this.raw.description;\n }\n get parameters() {\n return this.raw.parameters;\n }\n get operations() {\n return this.raw.operations;\n }\n get paramsIdentifier() {\n return `${this.shortApiName}.Params`;\n }\n get definitionIdentifier() {\n return `${this.shortApiName}.Definition`;\n }\n get definitionParamsIdentifier() {\n return `${this.shortApiName}.ParamsDefinition`;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,YAAY,QAAQ,mBAAmB;AAChD,OAAO,MAAMC,cAAc,SAASD,YAAY,CAAC;EAC7CE,GAAG;EACHC,WAAWA,CAACC,MAAM,EAAEF,GAAG,EAAE;IACrB,KAAK,CAACE,MAAM,EAAEF,GAAG,EAAEA,GAAG,CAACG,OAAO,EAAE,oBAAoB,CAAC;IACrD,IAAI,CAACH,GAAG,GAAGA,GAAG;EAClB;EACA,IAAII,WAAWA,CAAA,EAAG;IACd,OAAO,IAAI,CAACJ,GAAG,CAACI,WAAW;EAC/B;EACA,IAAIC,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACL,GAAG,CAACK,UAAU;EAC9B;EACA,IAAIC,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACN,GAAG,CAACM,UAAU;EAC9B;EACA,IAAIC,gBAAgBA,CAAA,EAAG;IACnB,OAAO,GAAG,IAAI,CAACC,YAAY,SAAS;EACxC;EACA,IAAIC,oBAAoBA,CAAA,EAAG;IACvB,OAAO,GAAG,IAAI,CAACD,YAAY,aAAa;EAC5C;EACA,IAAIE,0BAA0BA,CAAA,EAAG;IAC7B,OAAO,GAAG,IAAI,CAACF,YAAY,mBAAmB;EAClD;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { EnhanceCommon } from "./EnhanceCommon.js";
|
|
2
|
+
export declare abstract class AbstractImportable {
|
|
3
|
+
protected _common: EnhanceCommon;
|
|
4
|
+
shortApiName: string;
|
|
5
|
+
fullApiName: string;
|
|
6
|
+
apiNamespace: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Either a path relative to the ourDir (e.g. "./ontology/objects/foo.js") or a normal
|
|
9
|
+
* module import (e.g. "@something/foo")/
|
|
10
|
+
*/
|
|
11
|
+
importPath: string;
|
|
12
|
+
uniqueImportName: string;
|
|
13
|
+
readonly isLocal: boolean;
|
|
14
|
+
readonly sourcePackage: string | undefined;
|
|
15
|
+
constructor(common: EnhanceCommon, fullApiName: string, basePath: string);
|
|
16
|
+
getImportPathRelTo: (filePath: string) => string;
|
|
17
|
+
}
|
|
18
|
+
export declare abstract class EnhancedBase<T> extends AbstractImportable {
|
|
19
|
+
raw: T;
|
|
20
|
+
constructor(common: EnhanceCommon, raw: T, fullApiName: string, basePath: string);
|
|
21
|
+
}
|
|
22
|
+
export declare function extractNamespace(fqApiName: string): [string | undefined, string];
|
|
23
|
+
//# sourceMappingURL=EnhancedBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedBase.d.ts","sourceRoot":"","sources":["../../../src/GenerateContext/EnhancedBase.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,8BAAsB,kBAAkB;IACtC,SAAS,CAAC,OAAO,EAAE,aAAa,CAAC;IAEjC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;gBAGzC,MAAM,EAAE,aAAa,EACrB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM;IAqBlB,kBAAkB,aAAc,MAAM,YAapC;CACH;AAED,8BAAsB,YAAY,CAAC,CAAC,CAAE,SAAQ,kBAAkB;IAC9D,GAAG,EAAE,CAAC,CAAC;gBAGL,MAAM,EAAE,aAAa,EACrB,GAAG,EAAE,CAAC,EACN,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM;CAWnB;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,GAChB,CAAC,MAAM,GAAG,SAAS,EAAE,MAAM,CAAC,CAI9B"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import * as path from "node:path";
|
|
17
|
+
export class AbstractImportable {
|
|
18
|
+
_common;
|
|
19
|
+
shortApiName;
|
|
20
|
+
fullApiName;
|
|
21
|
+
apiNamespace;
|
|
22
|
+
/**
|
|
23
|
+
* Either a path relative to the ourDir (e.g. "./ontology/objects/foo.js") or a normal
|
|
24
|
+
* module import (e.g. "@something/foo")/
|
|
25
|
+
*/
|
|
26
|
+
importPath;
|
|
27
|
+
uniqueImportName;
|
|
28
|
+
isLocal;
|
|
29
|
+
sourcePackage;
|
|
30
|
+
constructor(common, fullApiName, basePath) {
|
|
31
|
+
this._common = common;
|
|
32
|
+
this.fullApiName = fullApiName;
|
|
33
|
+
[this.apiNamespace, this.shortApiName] = extractNamespace(this.fullApiName);
|
|
34
|
+
const {
|
|
35
|
+
ontologyApiNamespace,
|
|
36
|
+
apiNamespacePackageMap,
|
|
37
|
+
importExt
|
|
38
|
+
} = common;
|
|
39
|
+
this.isLocal = ontologyApiNamespace === this.apiNamespace;
|
|
40
|
+
this.sourcePackage = this.apiNamespace && !this.isLocal ? apiNamespacePackageMap.get(this.apiNamespace) : undefined;
|
|
41
|
+
this.importPath = this.isLocal ? `${basePath}/${this.shortApiName}${importExt}` : this.sourcePackage;
|
|
42
|
+
this.uniqueImportName = this.shortApiName;
|
|
43
|
+
}
|
|
44
|
+
getImportPathRelTo = filePath => {
|
|
45
|
+
if (this.importPath.startsWith(".")) {
|
|
46
|
+
const result = path.relative(path.dirname(filePath), this.importPath).split(path.sep).join("/");
|
|
47
|
+
if (result.startsWith(".")) {
|
|
48
|
+
return result;
|
|
49
|
+
} else {
|
|
50
|
+
return `./${result}`;
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
return this.importPath;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export class EnhancedBase extends AbstractImportable {
|
|
58
|
+
raw;
|
|
59
|
+
constructor(common, raw, fullApiName, basePath) {
|
|
60
|
+
super(common, fullApiName, basePath);
|
|
61
|
+
this.raw = raw;
|
|
62
|
+
if (!this.isLocal && !this.sourcePackage) {
|
|
63
|
+
throw new Error(`Expected { ns:'${this.apiNamespace}', shortName: '${this.shortApiName}'} to be in namespace '${common.ontologyApiNamespace}' or in a provided package mapping`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export function extractNamespace(fqApiName) {
|
|
68
|
+
const last = fqApiName.lastIndexOf(".");
|
|
69
|
+
if (last === -1) return [undefined, fqApiName];
|
|
70
|
+
return [fqApiName.slice(0, last), fqApiName.slice(last + 1)];
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=EnhancedBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedBase.js","names":["path","AbstractImportable","_common","shortApiName","fullApiName","apiNamespace","importPath","uniqueImportName","isLocal","sourcePackage","constructor","common","basePath","extractNamespace","ontologyApiNamespace","apiNamespacePackageMap","importExt","get","undefined","getImportPathRelTo","filePath","startsWith","result","relative","dirname","split","sep","join","EnhancedBase","raw","Error","fqApiName","last","lastIndexOf","slice"],"sources":["EnhancedBase.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport * as path from \"node:path\";\nexport class AbstractImportable {\n _common;\n shortApiName;\n fullApiName;\n apiNamespace;\n /**\n * Either a path relative to the ourDir (e.g. \"./ontology/objects/foo.js\") or a normal\n * module import (e.g. \"@something/foo\")/\n */\n importPath;\n uniqueImportName;\n isLocal;\n sourcePackage;\n constructor(common, fullApiName, basePath) {\n this._common = common;\n this.fullApiName = fullApiName;\n [this.apiNamespace, this.shortApiName] = extractNamespace(this.fullApiName);\n const { ontologyApiNamespace, apiNamespacePackageMap, importExt } = common;\n this.isLocal = ontologyApiNamespace === this.apiNamespace;\n this.sourcePackage = this.apiNamespace && !this.isLocal\n ? apiNamespacePackageMap.get(this.apiNamespace)\n : undefined;\n this.importPath = this.isLocal\n ? `${basePath}/${this.shortApiName}${importExt}`\n : this.sourcePackage;\n this.uniqueImportName = this.shortApiName;\n }\n getImportPathRelTo = (filePath) => {\n if (this.importPath.startsWith(\".\")) {\n const result = path.relative(path.dirname(filePath), this.importPath)\n .split(path.sep).join(\"/\");\n if (result.startsWith(\".\")) {\n return result;\n }\n else {\n return `./${result}`;\n }\n }\n else {\n return this.importPath;\n }\n };\n}\nexport class EnhancedBase extends AbstractImportable {\n raw;\n constructor(common, raw, fullApiName, basePath) {\n super(common, fullApiName, basePath);\n this.raw = raw;\n if (!this.isLocal && !this.sourcePackage) {\n throw new Error(`Expected { ns:'${this.apiNamespace}', shortName: '${this.shortApiName}'} to be in namespace '${common.ontologyApiNamespace}' or in a provided package mapping`);\n }\n }\n}\nexport function extractNamespace(fqApiName) {\n const last = fqApiName.lastIndexOf(\".\");\n if (last === -1)\n return [undefined, fqApiName];\n return [fqApiName.slice(0, last), fqApiName.slice(last + 1)];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,IAAI,MAAM,WAAW;AACjC,OAAO,MAAMC,kBAAkB,CAAC;EAC5BC,OAAO;EACPC,YAAY;EACZC,WAAW;EACXC,YAAY;EACZ;AACJ;AACA;AACA;EACIC,UAAU;EACVC,gBAAgB;EAChBC,OAAO;EACPC,aAAa;EACbC,WAAWA,CAACC,MAAM,EAAEP,WAAW,EAAEQ,QAAQ,EAAE;IACvC,IAAI,CAACV,OAAO,GAAGS,MAAM;IACrB,IAAI,CAACP,WAAW,GAAGA,WAAW;IAC9B,CAAC,IAAI,CAACC,YAAY,EAAE,IAAI,CAACF,YAAY,CAAC,GAAGU,gBAAgB,CAAC,IAAI,CAACT,WAAW,CAAC;IAC3E,MAAM;MAAEU,oBAAoB;MAAEC,sBAAsB;MAAEC;IAAU,CAAC,GAAGL,MAAM;IAC1E,IAAI,CAACH,OAAO,GAAGM,oBAAoB,KAAK,IAAI,CAACT,YAAY;IACzD,IAAI,CAACI,aAAa,GAAG,IAAI,CAACJ,YAAY,IAAI,CAAC,IAAI,CAACG,OAAO,GACjDO,sBAAsB,CAACE,GAAG,CAAC,IAAI,CAACZ,YAAY,CAAC,GAC7Ca,SAAS;IACf,IAAI,CAACZ,UAAU,GAAG,IAAI,CAACE,OAAO,GACxB,GAAGI,QAAQ,IAAI,IAAI,CAACT,YAAY,GAAGa,SAAS,EAAE,GAC9C,IAAI,CAACP,aAAa;IACxB,IAAI,CAACF,gBAAgB,GAAG,IAAI,CAACJ,YAAY;EAC7C;EACAgB,kBAAkB,GAAIC,QAAQ,IAAK;IAC/B,IAAI,IAAI,CAACd,UAAU,CAACe,UAAU,CAAC,GAAG,CAAC,EAAE;MACjC,MAAMC,MAAM,GAAGtB,IAAI,CAACuB,QAAQ,CAACvB,IAAI,CAACwB,OAAO,CAACJ,QAAQ,CAAC,EAAE,IAAI,CAACd,UAAU,CAAC,CAChEmB,KAAK,CAACzB,IAAI,CAAC0B,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;MAC9B,IAAIL,MAAM,CAACD,UAAU,CAAC,GAAG,CAAC,EAAE;QACxB,OAAOC,MAAM;MACjB,CAAC,MACI;QACD,OAAO,KAAKA,MAAM,EAAE;MACxB;IACJ,CAAC,MACI;MACD,OAAO,IAAI,CAAChB,UAAU;IAC1B;EACJ,CAAC;AACL;AACA,OAAO,MAAMsB,YAAY,SAAS3B,kBAAkB,CAAC;EACjD4B,GAAG;EACHnB,WAAWA,CAACC,MAAM,EAAEkB,GAAG,EAAEzB,WAAW,EAAEQ,QAAQ,EAAE;IAC5C,KAAK,CAACD,MAAM,EAAEP,WAAW,EAAEQ,QAAQ,CAAC;IACpC,IAAI,CAACiB,GAAG,GAAGA,GAAG;IACd,IAAI,CAAC,IAAI,CAACrB,OAAO,IAAI,CAAC,IAAI,CAACC,aAAa,EAAE;MACtC,MAAM,IAAIqB,KAAK,CAAC,kBAAkB,IAAI,CAACzB,YAAY,kBAAkB,IAAI,CAACF,YAAY,0BAA0BQ,MAAM,CAACG,oBAAoB,oCAAoC,CAAC;IACpL;EACJ;AACJ;AACA,OAAO,SAASD,gBAAgBA,CAACkB,SAAS,EAAE;EACxC,MAAMC,IAAI,GAAGD,SAAS,CAACE,WAAW,CAAC,GAAG,CAAC;EACvC,IAAID,IAAI,KAAK,CAAC,CAAC,EACX,OAAO,CAACd,SAAS,EAAEa,SAAS,CAAC;EACjC,OAAO,CAACA,SAAS,CAACG,KAAK,CAAC,CAAC,EAAEF,IAAI,CAAC,EAAED,SAAS,CAACG,KAAK,CAACF,IAAI,GAAG,CAAC,CAAC,CAAC;AAChE","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InterfaceMetadata } from "@osdk/api";
|
|
2
|
+
import type { InterfaceType } from "@osdk/internal.foundry.core";
|
|
3
|
+
import type { EnhanceCommon } from "./EnhanceCommon.js";
|
|
4
|
+
import { EnhancedBase } from "./EnhancedBase.js";
|
|
5
|
+
export declare class EnhancedInterfaceType extends EnhancedBase<InterfaceType> {
|
|
6
|
+
raw: InterfaceType;
|
|
7
|
+
constructor(common: EnhanceCommon, raw: InterfaceType);
|
|
8
|
+
getDefinitionIdentifier(v2: boolean): string;
|
|
9
|
+
getImportedDefinitionIdentifier(v2: boolean): string;
|
|
10
|
+
get properties(): Record<import("@osdk/internal.foundry.core").SharedPropertyTypeApiName, import("@osdk/internal.foundry.core").SharedPropertyType>;
|
|
11
|
+
getCleanedUpDefinition(v2: boolean): InterfaceMetadata<any, any>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=EnhancedInterfaceType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedInterfaceType.d.ts","sourceRoot":"","sources":["../../../src/GenerateContext/EnhancedInterfaceType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,qBAAsB,SAAQ,YAAY,CAAC,aAAa,CAAC;IAC1B,GAAG,EAAE,aAAa;gBAAhD,MAAM,EAAE,aAAa,EAAS,GAAG,EAAE,aAAa;IAI5D,uBAAuB,CAAC,EAAE,EAAE,OAAO;IAInC,+BAA+B,CAAC,EAAE,EAAE,OAAO;IAI3C,IAAI,UAAU,sIAEb;IAED,sBAAsB,CAAC,EAAE,EAAE,OAAO,GAAG,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC;CAQjE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from "@osdk/generator-converters";
|
|
17
|
+
import { deleteUndefineds } from "../util/deleteUndefineds.js";
|
|
18
|
+
import { EnhancedBase } from "./EnhancedBase.js";
|
|
19
|
+
export class EnhancedInterfaceType extends EnhancedBase {
|
|
20
|
+
raw;
|
|
21
|
+
constructor(common, raw) {
|
|
22
|
+
super(common, raw, raw.apiName, "./ontology/interfaces");
|
|
23
|
+
this.raw = raw;
|
|
24
|
+
}
|
|
25
|
+
getDefinitionIdentifier(v2) {
|
|
26
|
+
return v2 ? this.shortApiName : `${this.shortApiName}Def`;
|
|
27
|
+
}
|
|
28
|
+
getImportedDefinitionIdentifier(v2) {
|
|
29
|
+
return this.getDefinitionIdentifier(v2);
|
|
30
|
+
}
|
|
31
|
+
get properties() {
|
|
32
|
+
return this.raw.properties;
|
|
33
|
+
}
|
|
34
|
+
getCleanedUpDefinition(v2) {
|
|
35
|
+
return deleteUndefineds(__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(this.raw, v2));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=EnhancedInterfaceType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedInterfaceType.js","names":["__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition","deleteUndefineds","EnhancedBase","EnhancedInterfaceType","raw","constructor","common","apiName","getDefinitionIdentifier","v2","shortApiName","getImportedDefinitionIdentifier","properties","getCleanedUpDefinition"],"sources":["EnhancedInterfaceType.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from \"@osdk/generator-converters\";\nimport { deleteUndefineds } from \"../util/deleteUndefineds.js\";\nimport { EnhancedBase } from \"./EnhancedBase.js\";\nexport class EnhancedInterfaceType extends EnhancedBase {\n raw;\n constructor(common, raw) {\n super(common, raw, raw.apiName, \"./ontology/interfaces\");\n this.raw = raw;\n }\n getDefinitionIdentifier(v2) {\n return v2 ? this.shortApiName : `${this.shortApiName}Def`;\n }\n getImportedDefinitionIdentifier(v2) {\n return this.getDefinitionIdentifier(v2);\n }\n get properties() {\n return this.raw.properties;\n }\n getCleanedUpDefinition(v2) {\n return deleteUndefineds(__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(this.raw, v2));\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,mDAAmD,QAAQ,4BAA4B;AAChG,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,YAAY,QAAQ,mBAAmB;AAChD,OAAO,MAAMC,qBAAqB,SAASD,YAAY,CAAC;EACpDE,GAAG;EACHC,WAAWA,CAACC,MAAM,EAAEF,GAAG,EAAE;IACrB,KAAK,CAACE,MAAM,EAAEF,GAAG,EAAEA,GAAG,CAACG,OAAO,EAAE,uBAAuB,CAAC;IACxD,IAAI,CAACH,GAAG,GAAGA,GAAG;EAClB;EACAI,uBAAuBA,CAACC,EAAE,EAAE;IACxB,OAAOA,EAAE,GAAG,IAAI,CAACC,YAAY,GAAG,GAAG,IAAI,CAACA,YAAY,KAAK;EAC7D;EACAC,+BAA+BA,CAACF,EAAE,EAAE;IAChC,OAAO,IAAI,CAACD,uBAAuB,CAACC,EAAE,CAAC;EAC3C;EACA,IAAIG,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACR,GAAG,CAACQ,UAAU;EAC9B;EACAC,sBAAsBA,CAACJ,EAAE,EAAE;IACvB,OAAOR,gBAAgB,CAACD,mDAAmD,CAAC,IAAI,CAACI,GAAG,EAAEK,EAAE,CAAC,CAAC;EAC9F;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ObjectMetadata } from "@osdk/api";
|
|
2
|
+
import type { ObjectTypeFullMetadata } from "@osdk/internal.foundry.core";
|
|
3
|
+
import type { EnhanceCommon } from "./EnhanceCommon.js";
|
|
4
|
+
import { EnhancedBase } from "./EnhancedBase.js";
|
|
5
|
+
export declare class EnhancedObjectType extends EnhancedBase<ObjectTypeFullMetadata> {
|
|
6
|
+
raw: ObjectTypeFullMetadata;
|
|
7
|
+
constructor(common: EnhanceCommon, raw: ObjectTypeFullMetadata);
|
|
8
|
+
getDefinitionIdentifier(v2: boolean): string;
|
|
9
|
+
getImportedDefinitionIdentifier(v2: boolean): string;
|
|
10
|
+
getCleanedUpDefinition(v2: boolean): ObjectMetadata<any>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=EnhancedObjectType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedObjectType.d.ts","sourceRoot":"","sources":["../../../src/GenerateContext/EnhancedObjectType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,kBAAmB,SAAQ,YAAY,CAAC,sBAAsB,CAAC;IAChC,GAAG,EAAE,sBAAsB;gBAAzD,MAAM,EAAE,aAAa,EAAS,GAAG,EAAE,sBAAsB;IAIrE,uBAAuB,CAAC,EAAE,EAAE,OAAO;IAInC,+BAA+B,CAAC,EAAE,EAAE,OAAO;IAI3C,sBAAsB,CAAC,EAAE,EAAE,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC;CAQzD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { wireObjectTypeFullMetadataToSdkObjectMetadata } from "@osdk/generator-converters";
|
|
17
|
+
import { deleteUndefineds } from "../util/deleteUndefineds.js";
|
|
18
|
+
import { EnhancedBase } from "./EnhancedBase.js";
|
|
19
|
+
export class EnhancedObjectType extends EnhancedBase {
|
|
20
|
+
raw;
|
|
21
|
+
constructor(common, raw) {
|
|
22
|
+
super(common, raw, raw.objectType.apiName, "./ontology/objects");
|
|
23
|
+
this.raw = raw;
|
|
24
|
+
}
|
|
25
|
+
getDefinitionIdentifier(v2) {
|
|
26
|
+
return v2 ? `${this.shortApiName}` : `${this.shortApiName}Def`;
|
|
27
|
+
}
|
|
28
|
+
getImportedDefinitionIdentifier(v2) {
|
|
29
|
+
return this.getDefinitionIdentifier(v2);
|
|
30
|
+
}
|
|
31
|
+
getCleanedUpDefinition(v2) {
|
|
32
|
+
return deleteUndefineds(wireObjectTypeFullMetadataToSdkObjectMetadata(this.raw, v2));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=EnhancedObjectType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedObjectType.js","names":["wireObjectTypeFullMetadataToSdkObjectMetadata","deleteUndefineds","EnhancedBase","EnhancedObjectType","raw","constructor","common","objectType","apiName","getDefinitionIdentifier","v2","shortApiName","getImportedDefinitionIdentifier","getCleanedUpDefinition"],"sources":["EnhancedObjectType.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { wireObjectTypeFullMetadataToSdkObjectMetadata } from \"@osdk/generator-converters\";\nimport { deleteUndefineds } from \"../util/deleteUndefineds.js\";\nimport { EnhancedBase } from \"./EnhancedBase.js\";\nexport class EnhancedObjectType extends EnhancedBase {\n raw;\n constructor(common, raw) {\n super(common, raw, raw.objectType.apiName, \"./ontology/objects\");\n this.raw = raw;\n }\n getDefinitionIdentifier(v2) {\n return v2 ? `${this.shortApiName}` : `${this.shortApiName}Def`;\n }\n getImportedDefinitionIdentifier(v2) {\n return this.getDefinitionIdentifier(v2);\n }\n getCleanedUpDefinition(v2) {\n return deleteUndefineds(wireObjectTypeFullMetadataToSdkObjectMetadata(this.raw, v2));\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,6CAA6C,QAAQ,4BAA4B;AAC1F,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,YAAY,QAAQ,mBAAmB;AAChD,OAAO,MAAMC,kBAAkB,SAASD,YAAY,CAAC;EACjDE,GAAG;EACHC,WAAWA,CAACC,MAAM,EAAEF,GAAG,EAAE;IACrB,KAAK,CAACE,MAAM,EAAEF,GAAG,EAAEA,GAAG,CAACG,UAAU,CAACC,OAAO,EAAE,oBAAoB,CAAC;IAChE,IAAI,CAACJ,GAAG,GAAGA,GAAG;EAClB;EACAK,uBAAuBA,CAACC,EAAE,EAAE;IACxB,OAAOA,EAAE,GAAG,GAAG,IAAI,CAACC,YAAY,EAAE,GAAG,GAAG,IAAI,CAACA,YAAY,KAAK;EAClE;EACAC,+BAA+BA,CAACF,EAAE,EAAE;IAChC,OAAO,IAAI,CAACD,uBAAuB,CAACC,EAAE,CAAC;EAC3C;EACAG,sBAAsBA,CAACH,EAAE,EAAE;IACvB,OAAOT,gBAAgB,CAACD,6CAA6C,CAAC,IAAI,CAACI,GAAG,EAAEM,EAAE,CAAC,CAAC;EACxF;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { OntologyV2 } from "@osdk/internal.foundry.core";
|
|
2
|
+
import type { WireOntologyDefinition } from "../WireOntologyDefinition.js";
|
|
3
|
+
import type { EnhanceCommon } from "./EnhanceCommon.js";
|
|
4
|
+
import { EnhancedAction } from "./EnhancedAction.js";
|
|
5
|
+
import { EnhancedInterfaceType } from "./EnhancedInterfaceType.js";
|
|
6
|
+
import { EnhancedObjectType } from "./EnhancedObjectType.js";
|
|
7
|
+
import { EnhancedQuery } from "./EnhancedQuery.js";
|
|
8
|
+
import { EnhancedSharedPropertyType } from "./EnhancedSharedPropertyType.js";
|
|
9
|
+
import { ForeignType } from "./ForeignType.js";
|
|
10
|
+
export declare class EnhancedOntologyDefinition {
|
|
11
|
+
#private;
|
|
12
|
+
ontology: OntologyV2;
|
|
13
|
+
objectTypes: Record<string, EnhancedObjectType>;
|
|
14
|
+
actionTypes: Record<string, EnhancedAction>;
|
|
15
|
+
queryTypes: Record<string, EnhancedQuery>;
|
|
16
|
+
interfaceTypes: Record<string, EnhancedInterfaceType>;
|
|
17
|
+
sharedPropertyTypes: Record<string, EnhancedSharedPropertyType>;
|
|
18
|
+
raw: WireOntologyDefinition;
|
|
19
|
+
common: EnhanceCommon;
|
|
20
|
+
constructor(raw: WireOntologyDefinition, ontologyApiNamespace: string | undefined, apiNamespacePackageMap: Map<string, string>, importExt: string);
|
|
21
|
+
requireObjectType: <L extends boolean = false>(fullApiName: string, localOnly?: L | undefined) => L extends true ? this["objectTypes"][string] : ForeignType;
|
|
22
|
+
requireInterfaceType: <L extends boolean = false>(fullApiName: string, localOnly?: L | undefined) => L extends true ? this["interfaceTypes"][string] : ForeignType;
|
|
23
|
+
requireActionType: <L extends boolean = false>(fullApiName: string, localOnly?: L | undefined) => L extends true ? this["actionTypes"][string] : ForeignType;
|
|
24
|
+
requireQueryType: <L extends boolean = false>(fullApiName: string, localOnly?: L | undefined) => L extends true ? this["queryTypes"][string] : ForeignType;
|
|
25
|
+
requireSharedPropertyType: <L extends boolean = false>(fullApiName: string, localOnly?: L | undefined) => L extends true ? this["sharedPropertyTypes"][string] : ForeignType;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=EnhancedOntologyDefinition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedOntologyDefinition.d.ts","sourceRoot":"","sources":["../../../src/GenerateContext/EnhancedOntologyDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,qBAAa,0BAA0B;;IACrC,QAAQ,EAAE,UAAU,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAChD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IACtD,mBAAmB,EAAE,MAAM,CACzB,MAAM,EACN,0BAA0B,CAC3B,CAAC;IAGF,GAAG,EAAE,sBAAsB,CAAC;IAC5B,MAAM,EAAE,aAAa,CAAC;gBAGpB,GAAG,EAAE,sBAAsB,EAC3B,oBAAoB,EAAE,MAAM,GAAG,SAAS,EACxC,sBAAsB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3C,SAAS,EAAE,MAAM;IAkFZ,iBAAiB,GAnCd,CAAC,SAAS,OAAO,uBACV,MAAM,2FAkC2C;IAC3D,oBAAoB,GApCjB,CAAC,SAAS,OAAO,uBACV,MAAM,8FAmCiD;IACjE,iBAAiB,GArCd,CAAC,SAAS,OAAO,uBACV,MAAM,2FAoC2C;IAC3D,gBAAgB,GAtCb,CAAC,SAAS,OAAO,uBACV,MAAM,0FAqCyC;IACzD,yBAAyB,GAvCtB,CAAC,SAAS,OAAO,uBACV,MAAM,mGAwCrB;CACH"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { EnhancedAction } from "./EnhancedAction.js";
|
|
17
|
+
import { extractNamespace } from "./EnhancedBase.js";
|
|
18
|
+
import { EnhancedInterfaceType } from "./EnhancedInterfaceType.js";
|
|
19
|
+
import { EnhancedObjectType } from "./EnhancedObjectType.js";
|
|
20
|
+
import { EnhancedQuery } from "./EnhancedQuery.js";
|
|
21
|
+
import { EnhancedSharedPropertyType } from "./EnhancedSharedPropertyType.js";
|
|
22
|
+
import { ForeignType } from "./ForeignType.js";
|
|
23
|
+
export class EnhancedOntologyDefinition {
|
|
24
|
+
ontology;
|
|
25
|
+
objectTypes;
|
|
26
|
+
actionTypes;
|
|
27
|
+
queryTypes;
|
|
28
|
+
interfaceTypes;
|
|
29
|
+
sharedPropertyTypes;
|
|
30
|
+
#foreignTypes = {};
|
|
31
|
+
raw;
|
|
32
|
+
common;
|
|
33
|
+
constructor(raw, ontologyApiNamespace, apiNamespacePackageMap, importExt) {
|
|
34
|
+
this.common = {
|
|
35
|
+
apiNamespacePackageMap,
|
|
36
|
+
enhancedOntology: this,
|
|
37
|
+
importExt,
|
|
38
|
+
ontologyApiNamespace
|
|
39
|
+
};
|
|
40
|
+
this.raw = raw;
|
|
41
|
+
this.ontology = raw.ontology;
|
|
42
|
+
this.objectTypes = remap(raw.objectTypes, this.common, EnhancedObjectType);
|
|
43
|
+
this.actionTypes = remap(raw.actionTypes, this.common, EnhancedAction);
|
|
44
|
+
this.queryTypes = remap(raw.queryTypes, this.common, EnhancedQuery);
|
|
45
|
+
this.interfaceTypes = remap(raw.interfaceTypes, this.common, EnhancedInterfaceType);
|
|
46
|
+
this.sharedPropertyTypes = remap(raw.sharedPropertyTypes, this.common, EnhancedSharedPropertyType);
|
|
47
|
+
}
|
|
48
|
+
#createRequireType = type => {
|
|
49
|
+
return (fullApiName, localOnly) => {
|
|
50
|
+
const ret = this[type][fullApiName];
|
|
51
|
+
if (!ret) {
|
|
52
|
+
const [apiNamespace, shortApiName] = extractNamespace(fullApiName);
|
|
53
|
+
if (localOnly || !apiNamespace) {
|
|
54
|
+
throw new Error(`Unable to find ${type}: No entry for '${fullApiName}`);
|
|
55
|
+
}
|
|
56
|
+
if (!this.common.apiNamespacePackageMap.has(apiNamespace)) {
|
|
57
|
+
throw new Error(`Unable to find ${type}: Unknown namespace '${apiNamespace}'`);
|
|
58
|
+
}
|
|
59
|
+
const ret = this.#foreignTypes[fullApiName] ?? new ForeignType(this.common, type, apiNamespace, shortApiName);
|
|
60
|
+
this.#foreignTypes[fullApiName] = ret;
|
|
61
|
+
return ret;
|
|
62
|
+
}
|
|
63
|
+
return ret;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
requireObjectType = this.#createRequireType("objectTypes");
|
|
67
|
+
requireInterfaceType = this.#createRequireType("interfaceTypes");
|
|
68
|
+
requireActionType = this.#createRequireType("actionTypes");
|
|
69
|
+
requireQueryType = this.#createRequireType("queryTypes");
|
|
70
|
+
requireSharedPropertyType = this.#createRequireType("sharedPropertyTypes");
|
|
71
|
+
}
|
|
72
|
+
function remap(r, common, Constructor) {
|
|
73
|
+
return Object.fromEntries(Object.entries(r ?? {}).map(([fullApiName, v]) => {
|
|
74
|
+
return [fullApiName, new Constructor(common, v)];
|
|
75
|
+
}).sort((a, b) => a[0].localeCompare(b[0])));
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=EnhancedOntologyDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedOntologyDefinition.js","names":["EnhancedAction","extractNamespace","EnhancedInterfaceType","EnhancedObjectType","EnhancedQuery","EnhancedSharedPropertyType","ForeignType","EnhancedOntologyDefinition","ontology","objectTypes","actionTypes","queryTypes","interfaceTypes","sharedPropertyTypes","foreignTypes","raw","common","constructor","ontologyApiNamespace","apiNamespacePackageMap","importExt","enhancedOntology","remap","createRequireType","type","fullApiName","localOnly","ret","apiNamespace","shortApiName","Error","has","requireObjectType","requireInterfaceType","requireActionType","requireQueryType","requireSharedPropertyType","r","Constructor","Object","fromEntries","entries","map","v","sort","a","b","localeCompare"],"sources":["EnhancedOntologyDefinition.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { EnhancedAction } from \"./EnhancedAction.js\";\nimport { extractNamespace } from \"./EnhancedBase.js\";\nimport { EnhancedInterfaceType } from \"./EnhancedInterfaceType.js\";\nimport { EnhancedObjectType } from \"./EnhancedObjectType.js\";\nimport { EnhancedQuery } from \"./EnhancedQuery.js\";\nimport { EnhancedSharedPropertyType } from \"./EnhancedSharedPropertyType.js\";\nimport { ForeignType } from \"./ForeignType.js\";\nexport class EnhancedOntologyDefinition {\n ontology;\n objectTypes;\n actionTypes;\n queryTypes;\n interfaceTypes;\n sharedPropertyTypes;\n #foreignTypes = {};\n raw;\n common;\n constructor(raw, ontologyApiNamespace, apiNamespacePackageMap, importExt) {\n this.common = {\n apiNamespacePackageMap,\n enhancedOntology: this,\n importExt,\n ontologyApiNamespace,\n };\n this.raw = raw;\n this.ontology = raw.ontology;\n this.objectTypes = remap(raw.objectTypes, this.common, EnhancedObjectType);\n this.actionTypes = remap(raw.actionTypes, this.common, EnhancedAction);\n this.queryTypes = remap(raw.queryTypes, this.common, EnhancedQuery);\n this.interfaceTypes = remap(raw.interfaceTypes, this.common, EnhancedInterfaceType);\n this.sharedPropertyTypes = remap(raw.sharedPropertyTypes, this.common, EnhancedSharedPropertyType);\n }\n #createRequireType = (type) => {\n return (fullApiName, localOnly) => {\n const ret = this[type][fullApiName];\n if (!ret) {\n const [apiNamespace, shortApiName] = extractNamespace(fullApiName);\n if (localOnly || !apiNamespace) {\n throw new Error(`Unable to find ${type}: No entry for '${fullApiName}`);\n }\n if (!this.common.apiNamespacePackageMap.has(apiNamespace)) {\n throw new Error(`Unable to find ${type}: Unknown namespace '${apiNamespace}'`);\n }\n const ret = this.#foreignTypes[fullApiName] ?? new ForeignType(this.common, type, apiNamespace, shortApiName);\n this.#foreignTypes[fullApiName] = ret;\n return ret;\n }\n return ret;\n };\n };\n requireObjectType = this.#createRequireType(\"objectTypes\");\n requireInterfaceType = this.#createRequireType(\"interfaceTypes\");\n requireActionType = this.#createRequireType(\"actionTypes\");\n requireQueryType = this.#createRequireType(\"queryTypes\");\n requireSharedPropertyType = this.#createRequireType(\"sharedPropertyTypes\");\n}\nfunction remap(r, common, Constructor) {\n return Object.fromEntries(Object.entries(r ?? {}).map(([fullApiName, v]) => {\n return [\n fullApiName,\n new Constructor(common, v),\n ];\n }).sort((a, b) => a[0].localeCompare(b[0])));\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,cAAc,QAAQ,qBAAqB;AACpD,SAASC,gBAAgB,QAAQ,mBAAmB;AACpD,SAASC,qBAAqB,QAAQ,4BAA4B;AAClE,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,0BAA0B,QAAQ,iCAAiC;AAC5E,SAASC,WAAW,QAAQ,kBAAkB;AAC9C,OAAO,MAAMC,0BAA0B,CAAC;EACpCC,QAAQ;EACRC,WAAW;EACXC,WAAW;EACXC,UAAU;EACVC,cAAc;EACdC,mBAAmB;EACnB,CAACC,YAAY,GAAG,CAAC,CAAC;EAClBC,GAAG;EACHC,MAAM;EACNC,WAAWA,CAACF,GAAG,EAAEG,oBAAoB,EAAEC,sBAAsB,EAAEC,SAAS,EAAE;IACtE,IAAI,CAACJ,MAAM,GAAG;MACVG,sBAAsB;MACtBE,gBAAgB,EAAE,IAAI;MACtBD,SAAS;MACTF;IACJ,CAAC;IACD,IAAI,CAACH,GAAG,GAAGA,GAAG;IACd,IAAI,CAACP,QAAQ,GAAGO,GAAG,CAACP,QAAQ;IAC5B,IAAI,CAACC,WAAW,GAAGa,KAAK,CAACP,GAAG,CAACN,WAAW,EAAE,IAAI,CAACO,MAAM,EAAEb,kBAAkB,CAAC;IAC1E,IAAI,CAACO,WAAW,GAAGY,KAAK,CAACP,GAAG,CAACL,WAAW,EAAE,IAAI,CAACM,MAAM,EAAEhB,cAAc,CAAC;IACtE,IAAI,CAACW,UAAU,GAAGW,KAAK,CAACP,GAAG,CAACJ,UAAU,EAAE,IAAI,CAACK,MAAM,EAAEZ,aAAa,CAAC;IACnE,IAAI,CAACQ,cAAc,GAAGU,KAAK,CAACP,GAAG,CAACH,cAAc,EAAE,IAAI,CAACI,MAAM,EAAEd,qBAAqB,CAAC;IACnF,IAAI,CAACW,mBAAmB,GAAGS,KAAK,CAACP,GAAG,CAACF,mBAAmB,EAAE,IAAI,CAACG,MAAM,EAAEX,0BAA0B,CAAC;EACtG;EACA,CAACkB,iBAAiB,GAAIC,IAAI,IAAK;IAC3B,OAAO,CAACC,WAAW,EAAEC,SAAS,KAAK;MAC/B,MAAMC,GAAG,GAAG,IAAI,CAACH,IAAI,CAAC,CAACC,WAAW,CAAC;MACnC,IAAI,CAACE,GAAG,EAAE;QACN,MAAM,CAACC,YAAY,EAAEC,YAAY,CAAC,GAAG5B,gBAAgB,CAACwB,WAAW,CAAC;QAClE,IAAIC,SAAS,IAAI,CAACE,YAAY,EAAE;UAC5B,MAAM,IAAIE,KAAK,CAAC,kBAAkBN,IAAI,mBAAmBC,WAAW,EAAE,CAAC;QAC3E;QACA,IAAI,CAAC,IAAI,CAACT,MAAM,CAACG,sBAAsB,CAACY,GAAG,CAACH,YAAY,CAAC,EAAE;UACvD,MAAM,IAAIE,KAAK,CAAC,kBAAkBN,IAAI,wBAAwBI,YAAY,GAAG,CAAC;QAClF;QACA,MAAMD,GAAG,GAAG,IAAI,CAAC,CAACb,YAAY,CAACW,WAAW,CAAC,IAAI,IAAInB,WAAW,CAAC,IAAI,CAACU,MAAM,EAAEQ,IAAI,EAAEI,YAAY,EAAEC,YAAY,CAAC;QAC7G,IAAI,CAAC,CAACf,YAAY,CAACW,WAAW,CAAC,GAAGE,GAAG;QACrC,OAAOA,GAAG;MACd;MACA,OAAOA,GAAG;IACd,CAAC;EACL,CAAC;EACDK,iBAAiB,GAAG,IAAI,CAAC,CAACT,iBAAiB,CAAC,aAAa,CAAC;EAC1DU,oBAAoB,GAAG,IAAI,CAAC,CAACV,iBAAiB,CAAC,gBAAgB,CAAC;EAChEW,iBAAiB,GAAG,IAAI,CAAC,CAACX,iBAAiB,CAAC,aAAa,CAAC;EAC1DY,gBAAgB,GAAG,IAAI,CAAC,CAACZ,iBAAiB,CAAC,YAAY,CAAC;EACxDa,yBAAyB,GAAG,IAAI,CAAC,CAACb,iBAAiB,CAAC,qBAAqB,CAAC;AAC9E;AACA,SAASD,KAAKA,CAACe,CAAC,EAAErB,MAAM,EAAEsB,WAAW,EAAE;EACnC,OAAOC,MAAM,CAACC,WAAW,CAACD,MAAM,CAACE,OAAO,CAACJ,CAAC,IAAI,CAAC,CAAC,CAAC,CAACK,GAAG,CAAC,CAAC,CAACjB,WAAW,EAAEkB,CAAC,CAAC,KAAK;IACxE,OAAO,CACHlB,WAAW,EACX,IAAIa,WAAW,CAACtB,MAAM,EAAE2B,CAAC,CAAC,CAC7B;EACL,CAAC,CAAC,CAACC,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAAC,CAAC,CAAC,CAACE,aAAa,CAACD,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChD","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { QueryTypeV2 } from "@osdk/internal.foundry.core";
|
|
2
|
+
import type { EnhanceCommon } from "./EnhanceCommon.js";
|
|
3
|
+
import { EnhancedBase } from "./EnhancedBase.js";
|
|
4
|
+
export declare class EnhancedQuery extends EnhancedBase<QueryTypeV2> {
|
|
5
|
+
raw: QueryTypeV2;
|
|
6
|
+
constructor(common: EnhanceCommon, raw: QueryTypeV2);
|
|
7
|
+
get description(): string | undefined;
|
|
8
|
+
get parameters(): Record<import("@osdk/internal.foundry.core").ParameterId, import("@osdk/internal.foundry.core").QueryParameterV2>;
|
|
9
|
+
get output(): import("@osdk/internal.foundry.core").QueryDataType;
|
|
10
|
+
get paramsIdentifier(): string;
|
|
11
|
+
get definitionIdentifier(): string;
|
|
12
|
+
get definitionParamsIdentifier(): string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=EnhancedQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedQuery.d.ts","sourceRoot":"","sources":["../../../src/GenerateContext/EnhancedQuery.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,aAAc,SAAQ,YAAY,CAAC,WAAW,CAAC;IAChB,GAAG,EAAE,WAAW;gBAA9C,MAAM,EAAE,aAAa,EAAS,GAAG,EAAE,WAAW;IAI1D,IAAI,WAAW,uBAEd;IAED,IAAI,UAAU,sHAEb;IAED,IAAI,MAAM,wDAET;IAED,IAAI,gBAAgB,WAEnB;IAED,IAAI,oBAAoB,WAEvB;IAED,IAAI,0BAA0B,WAE7B;CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { EnhancedBase } from "./EnhancedBase.js";
|
|
17
|
+
export class EnhancedQuery extends EnhancedBase {
|
|
18
|
+
raw;
|
|
19
|
+
constructor(common, raw) {
|
|
20
|
+
super(common, raw, raw.apiName, "./ontology/queries");
|
|
21
|
+
this.raw = raw;
|
|
22
|
+
}
|
|
23
|
+
get description() {
|
|
24
|
+
return this.raw.description;
|
|
25
|
+
}
|
|
26
|
+
get parameters() {
|
|
27
|
+
return this.raw.parameters;
|
|
28
|
+
}
|
|
29
|
+
get output() {
|
|
30
|
+
return this.raw.output;
|
|
31
|
+
}
|
|
32
|
+
get paramsIdentifier() {
|
|
33
|
+
return `${this.shortApiName}.Parameters`;
|
|
34
|
+
}
|
|
35
|
+
get definitionIdentifier() {
|
|
36
|
+
return `${this.shortApiName}`;
|
|
37
|
+
}
|
|
38
|
+
get definitionParamsIdentifier() {
|
|
39
|
+
return `${this.definitionIdentifier}$Params`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=EnhancedQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedQuery.js","names":["EnhancedBase","EnhancedQuery","raw","constructor","common","apiName","description","parameters","output","paramsIdentifier","shortApiName","definitionIdentifier","definitionParamsIdentifier"],"sources":["EnhancedQuery.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { EnhancedBase } from \"./EnhancedBase.js\";\nexport class EnhancedQuery extends EnhancedBase {\n raw;\n constructor(common, raw) {\n super(common, raw, raw.apiName, \"./ontology/queries\");\n this.raw = raw;\n }\n get description() {\n return this.raw.description;\n }\n get parameters() {\n return this.raw.parameters;\n }\n get output() {\n return this.raw.output;\n }\n get paramsIdentifier() {\n return `${this.shortApiName}.Parameters`;\n }\n get definitionIdentifier() {\n return `${this.shortApiName}`;\n }\n get definitionParamsIdentifier() {\n return `${this.definitionIdentifier}$Params`;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,YAAY,QAAQ,mBAAmB;AAChD,OAAO,MAAMC,aAAa,SAASD,YAAY,CAAC;EAC5CE,GAAG;EACHC,WAAWA,CAACC,MAAM,EAAEF,GAAG,EAAE;IACrB,KAAK,CAACE,MAAM,EAAEF,GAAG,EAAEA,GAAG,CAACG,OAAO,EAAE,oBAAoB,CAAC;IACrD,IAAI,CAACH,GAAG,GAAGA,GAAG;EAClB;EACA,IAAII,WAAWA,CAAA,EAAG;IACd,OAAO,IAAI,CAACJ,GAAG,CAACI,WAAW;EAC/B;EACA,IAAIC,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACL,GAAG,CAACK,UAAU;EAC9B;EACA,IAAIC,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACN,GAAG,CAACM,MAAM;EAC1B;EACA,IAAIC,gBAAgBA,CAAA,EAAG;IACnB,OAAO,GAAG,IAAI,CAACC,YAAY,aAAa;EAC5C;EACA,IAAIC,oBAAoBA,CAAA,EAAG;IACvB,OAAO,GAAG,IAAI,CAACD,YAAY,EAAE;EACjC;EACA,IAAIE,0BAA0BA,CAAA,EAAG;IAC7B,OAAO,GAAG,IAAI,CAACD,oBAAoB,SAAS;EAChD;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SharedPropertyType } from "@osdk/internal.foundry.core";
|
|
2
|
+
import type { EnhanceCommon } from "./EnhanceCommon.js";
|
|
3
|
+
import { EnhancedBase } from "./EnhancedBase.js";
|
|
4
|
+
export declare class EnhancedSharedPropertyType extends EnhancedBase<SharedPropertyType> {
|
|
5
|
+
raw: SharedPropertyType;
|
|
6
|
+
constructor(common: EnhanceCommon, raw: SharedPropertyType);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=EnhancedSharedPropertyType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnhancedSharedPropertyType.d.ts","sourceRoot":"","sources":["../../../src/GenerateContext/EnhancedSharedPropertyType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,0BACX,SAAQ,YAAY,CAAC,kBAAkB,CAAC;IAEE,GAAG,EAAE,kBAAkB;gBAArD,MAAM,EAAE,aAAa,EAAS,GAAG,EAAE,kBAAkB;CAGlE"}
|