@osdk/maker 0.12.0-beta.8 → 0.12.0-rc.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +138 -0
  2. package/README.md +88 -62
  3. package/build/browser/api/defineAction.js +403 -106
  4. package/build/browser/api/defineAction.js.map +1 -1
  5. package/build/browser/api/defineLink.js +2 -2
  6. package/build/browser/api/defineLink.js.map +1 -1
  7. package/build/browser/api/defineObject.js +6 -2
  8. package/build/browser/api/defineObject.js.map +1 -1
  9. package/build/browser/api/defineOntology.js +80 -35
  10. package/build/browser/api/defineOntology.js.map +1 -1
  11. package/build/browser/api/defineSpt.js.map +1 -1
  12. package/build/browser/api/ontologyUtils.js +80 -0
  13. package/build/browser/api/ontologyUtils.js.map +1 -1
  14. package/build/browser/api/overall.test.js +4741 -2358
  15. package/build/browser/api/overall.test.js.map +1 -1
  16. package/build/browser/api/types.js +2 -0
  17. package/build/browser/api/types.js.map +1 -1
  18. package/build/browser/cli/main.js +2 -10
  19. package/build/browser/cli/main.js.map +1 -1
  20. package/build/browser/index.js +5 -4
  21. package/build/browser/index.js.map +1 -1
  22. package/build/cjs/index.cjs +575 -153
  23. package/build/cjs/index.cjs.map +1 -1
  24. package/build/cjs/index.d.cts +98 -20
  25. package/build/esm/api/defineAction.js +403 -106
  26. package/build/esm/api/defineAction.js.map +1 -1
  27. package/build/esm/api/defineLink.js +2 -2
  28. package/build/esm/api/defineLink.js.map +1 -1
  29. package/build/esm/api/defineObject.js +6 -2
  30. package/build/esm/api/defineObject.js.map +1 -1
  31. package/build/esm/api/defineOntology.js +80 -35
  32. package/build/esm/api/defineOntology.js.map +1 -1
  33. package/build/esm/api/defineSpt.js.map +1 -1
  34. package/build/esm/api/ontologyUtils.js +80 -0
  35. package/build/esm/api/ontologyUtils.js.map +1 -1
  36. package/build/esm/api/overall.test.js +4741 -2358
  37. package/build/esm/api/overall.test.js.map +1 -1
  38. package/build/esm/api/types.js +2 -0
  39. package/build/esm/api/types.js.map +1 -1
  40. package/build/esm/cli/main.js +2 -10
  41. package/build/esm/cli/main.js.map +1 -1
  42. package/build/esm/index.js +5 -4
  43. package/build/esm/index.js.map +1 -1
  44. package/build/types/api/defineAction.d.ts +7 -6
  45. package/build/types/api/defineAction.d.ts.map +1 -1
  46. package/build/types/api/defineObject.d.ts +2 -2
  47. package/build/types/api/defineObject.d.ts.map +1 -1
  48. package/build/types/api/defineOntology.d.ts +3 -2
  49. package/build/types/api/defineOntology.d.ts.map +1 -1
  50. package/build/types/api/defineSpt.d.ts +2 -2
  51. package/build/types/api/defineSpt.d.ts.map +1 -1
  52. package/build/types/api/ontologyUtils.d.ts +5 -2
  53. package/build/types/api/ontologyUtils.d.ts.map +1 -1
  54. package/build/types/api/types.d.ts +83 -12
  55. package/build/types/api/types.d.ts.map +1 -1
  56. package/build/types/cli/main.d.ts.map +1 -1
  57. package/build/types/index.d.ts +6 -5
  58. package/build/types/index.d.ts.map +1 -1
  59. package/package.json +4 -4
@@ -23,6 +23,8 @@ export let OntologyEntityTypeEnum = /*#__PURE__*/function (OntologyEntityTypeEnu
23
23
  OntologyEntityTypeEnum["VALUE_TYPE"] = "VALUE_TYPE";
24
24
  return OntologyEntityTypeEnum;
25
25
  }({});
26
+ export const MODIFY_OBJECT_PARAMETER = "objectToModifyParameter";
27
+ export const CREATE_OR_MODIFY_OBJECT_PARAMETER = "objectToCreateOrModifyParameter";
26
28
 
27
29
  // TODO(ethana): add more commonly used conditions - parameter matching, organizations, etc.
28
30
 
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["OntologyEntityTypeEnum"],"sources":["types.ts"],"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 */\n\nimport type {\n ActionTypeApiName,\n ActionTypeStatus_deprecated,\n ApiNameValueTypeReference,\n BaseType,\n DataConstraint,\n ExampleValue,\n FailureMessage,\n ImportedTypes,\n InterfaceTypeApiName,\n InterfaceTypeStatus,\n LinkTypeDisplayMetadata,\n LinkTypeMetadata,\n OntologyIrActionTypeEntities,\n OntologyIrBaseParameterType_decimal,\n OntologyIrBaseParameterType_decimalList,\n OntologyIrBaseParameterType_interfaceReference,\n OntologyIrBaseParameterType_interfaceReferenceList,\n OntologyIrBaseParameterType_objectReference,\n OntologyIrBaseParameterType_objectReferenceList,\n OntologyIrBaseParameterType_objectSetRid,\n OntologyIrBaseParameterType_objectTypeReference,\n OntologyIrBaseParameterType_struct,\n OntologyIrBaseParameterType_structList,\n OntologyIrBaseParameterType_timestamp,\n OntologyIrBaseParameterType_timestampList,\n OntologyIrCondition,\n OntologyIrConditionValue,\n OntologyIrFormContent,\n OntologyIrLabelledValue,\n OntologyIrLinkTypeStatus,\n OntologyIrLogicRule,\n OntologyIrMarketplaceInterfaceType,\n OntologyIrObjectType,\n OntologyIrParameterDateRangeValue,\n OntologyIrPropertyType,\n OntologyIrValidationRule,\n ParameterId,\n SectionId,\n SharedPropertyTypeGothamMapping,\n StructFieldType,\n ValidationRuleDisplayMetadata,\n ValueTypeApiName,\n ValueTypeDataConstraint,\n ValueTypeDisplayMetadata,\n ValueTypeStatus,\n ValueTypeVersion,\n Visibility,\n} from \"@osdk/client.unstable\";\n\nimport type { OntologyFullMetadata } from \"@osdk/foundry.ontologies\";\nimport type { BlueprintIcon } from \"./iconNames.js\";\n\nexport interface Ontology extends\n Omit<\n OntologyFullMetadata,\n | \"ontology\"\n | \"sharedPropertyTypes\"\n | \"interfaceTypes\"\n | \"objectTypes\"\n | \"actionTypes\"\n >\n{\n interfaceTypes: Record<string, InterfaceType>;\n sharedPropertyTypes: Record<string, SharedPropertyType>;\n objectTypes: Record<string, ObjectType>;\n valueTypes: Record<string, ValueTypeDefinitionVersion[]>;\n linkTypes: Record<string, LinkType>;\n actionTypes: Record<string, ActionType>;\n importedTypes: ImportedTypes;\n}\n\nexport interface OntologyEntityBase {\n __type: OntologyEntityTypeEnum;\n apiName: string;\n}\n\nexport enum OntologyEntityTypeEnum {\n OBJECT_TYPE = \"OBJECT_TYPE\",\n LINK_TYPE = \"LINK_TYPE\",\n INTERFACE_TYPE = \"INTERFACE_TYPE\",\n SHARED_PROPERTY_TYPE = \"SHARED_PROPERTY_TYPE\",\n ACTION_TYPE = \"ACTION_TYPE\",\n VALUE_TYPE = \"VALUE_TYPE\",\n}\nexport interface OntologyEntityTypeMapping {\n [OntologyEntityTypeEnum.OBJECT_TYPE]: ObjectType;\n [OntologyEntityTypeEnum.ACTION_TYPE]: ActionType;\n [OntologyEntityTypeEnum.LINK_TYPE]: LinkType;\n [OntologyEntityTypeEnum.INTERFACE_TYPE]: InterfaceType;\n [OntologyEntityTypeEnum.SHARED_PROPERTY_TYPE]: SharedPropertyType;\n [OntologyEntityTypeEnum.VALUE_TYPE]: ValueTypeDefinitionVersion;\n}\n\nexport type OntologyDefinition =\n & {\n [K in Exclude<OntologyEntityTypeEnum, \"VALUE_TYPE\">]: Record<\n string,\n OntologyEntityTypeMapping[K]\n >;\n }\n & {\n VALUE_TYPE: Record<string, ValueTypeDefinitionVersion[]>;\n };\n\nexport type OntologyEntityType =\n OntologyEntityTypeMapping[keyof OntologyEntityTypeMapping];\n\nexport type ActionType =\n & OntologyEntityBase\n & RequiredFields<\n Partial<ActionTypeInner>,\n \"apiName\" | \"displayName\" | \"rules\" | \"status\"\n >\n & {\n __type: OntologyEntityTypeEnum.ACTION_TYPE;\n };\n\nexport type ActionTypeDefinition = Omit<ActionType, \"__type\">;\n\nexport interface ActionParameter {\n id: ParameterId;\n displayName: string;\n type: ActionParameterType;\n validation: ActionParameterValidation;\n description?: string;\n typeClasses?: Array<TypeClass>;\n}\n\nexport interface ActionParameterValidation {\n allowedValues: ActionParameterAllowedValues;\n required: ActionParameterRequirementConstraint;\n defaultVisibility?: \"editable\" | \"disabled\" | \"hidden\";\n conditionalOverrides?: Array<ActionParameterConditionalOverride>;\n}\n\n// TODO(ethana): add more commonly used conditions - parameter matching, organizations, etc.\nexport type ConditionDefinition =\n | UnionCondition\n | OntologyIrCondition\n | GroupValidationRule\n | ParameterValidationRule;\n\nexport type UnionCondition = {\n type: \"and\" | \"or\";\n conditions: Array<ConditionDefinition>;\n};\n\nexport type ActionParameterConditionalOverride =\n | VisibilityOverride\n | DisabledOverride\n | RequiredOverride;\n\nexport type VisibilityOverride = {\n type: \"visibility\";\n condition: ConditionDefinition;\n};\n\nexport type DisabledOverride = {\n type: \"disabled\";\n condition: ConditionDefinition;\n};\n\nexport type RequiredOverride = {\n type: \"required\";\n condition: ConditionDefinition;\n};\n\nexport type ActionParameterRequirementConstraint =\n | boolean\n | { listLength: { min?: number; max?: number } };\n\n// TODO(dpaquin): cleanup? or does \"type: foo\" actually make sense here\nexport type ActionParameterAllowedValues =\n | {\n type: \"oneOf\";\n oneOf: Array<OntologyIrLabelledValue>;\n }\n | {\n type: \"range\";\n min?: OntologyIrConditionValue;\n max?: OntologyIrConditionValue;\n }\n | { type: \"text\"; minLength?: number; maxLength?: number; regex?: string }\n | {\n type: \"datetime\";\n maximum?: OntologyIrParameterDateRangeValue;\n minimum?: OntologyIrParameterDateRangeValue;\n }\n | { type: \"objectTypeReference\"; interfaceTypes: Array<InterfaceTypeApiName> }\n | { type: \"objectQuery\" }\n | { type: \"attachment\" }\n | { type: \"boolean\" }\n | { type: \"objectSetRid\" }\n | { type: \"cbacMarking\" }\n | { type: \"mandatoryMarking\" }\n | { type: \"objectList\" }\n | { type: \"mediaReference\" }\n | { type: \"timeSeriesReference\" }\n | { type: \"geohash\" }\n | { type: \"geoshape\" }\n | { type: \"geotimeSeriesReference\" }\n | { type: \"interfaceObjectQuery\" }\n | { type: \"redacted\" };\n\nexport interface ActionTypeInner {\n apiName: ActionTypeApiName;\n displayName: string;\n description: string;\n icon: { locator: BlueprintIcon; color: string };\n parameters: Array<ActionParameter>;\n rules: Array<OntologyIrLogicRule>;\n sections: Record<SectionId, Array<ParameterId>>;\n status: ActionStatus;\n entities: OntologyIrActionTypeEntities;\n formContentOrdering: Array<OntologyIrFormContent>;\n validation: Array<OntologyIrValidationRule>;\n typeClasses: Array<TypeClass>;\n}\n\nexport type ActionValidationRule = OntologyIrValidationRule;\n\nexport type ActionLevelValidationDefinition = {\n condition: ConditionDefinition;\n displayMetadata?: ValidationRuleDisplayMetadata;\n};\n\nexport type GroupValidationRule = {\n type: \"group\";\n name: string;\n};\n\nexport type ParameterValidationRule = {\n type: \"parameter\";\n parameterId: string;\n matches: OntologyIrConditionValue;\n};\n\nexport type ActionStatus =\n | \"active\"\n | \"experimental\"\n | \"example\"\n | ActionTypeStatus_deprecated;\n\nexport type { InterfaceTypeStatus };\n\nexport type ObjectTypeStatus =\n | \"active\"\n | \"experimental\"\n | {\n type: \"deprecated\";\n message: string;\n deadline: string;\n };\n\nexport type RequiredFields<T, K extends keyof T> = T & Required<Pick<T, K>>;\nexport type OptionalFields<T, K extends keyof T> =\n & Pick<Partial<T>, K>\n & Omit<T, K>;\n\nexport interface ObjectTypeInner extends\n Omit<\n OntologyIrObjectType,\n | \"titlePropertyTypeRid\"\n | \"propertyTypes\"\n | \"allImplementsInterfaces\"\n | \"implementsInterfaces2\"\n | \"displayMetadata\"\n | \"primaryKeys\"\n | \"status\"\n >\n{\n primaryKeyPropertyApiName: string;\n properties: Array<ObjectPropertyType>;\n titlePropertyApiName: string;\n implementsInterfaces: Array<InterfaceImplementation>;\n description: string | undefined;\n icon: { locator: BlueprintIcon; color: string } | undefined;\n displayName: string;\n pluralDisplayName: string;\n visibility: Visibility;\n editsEnabled: boolean;\n status?: ObjectTypeStatus;\n}\n\nexport type InterfaceImplementation = {\n implements: InterfaceType;\n propertyMapping: { interfaceProperty: string; mapsTo: string }[];\n};\n\nexport type ObjectType =\n & OntologyEntityBase\n & RequiredFields<\n Partial<ObjectTypeInner>,\n | \"apiName\"\n | \"primaryKeyPropertyApiName\"\n | \"displayName\"\n | \"pluralDisplayName\"\n | \"titlePropertyApiName\"\n >\n & {\n datasource?: ObjectTypeDatasourceDefinition;\n __type: OntologyEntityTypeEnum.OBJECT_TYPE;\n };\n\nexport type ObjectTypeDefinition = {\n apiName: string;\n primaryKeyPropertyApiName: string;\n displayName: string;\n pluralDisplayName: string;\n titlePropertyApiName: string;\n properties?: { [key: string]: ObjectPropertyTypeUserDefinition };\n implementsInterfaces?: Array<InterfaceImplementation>;\n description?: string;\n icon?: { locator: BlueprintIcon; color: string };\n visibility?: Visibility;\n editsEnabled?: boolean;\n status?: ObjectTypeStatus;\n datasource?: ObjectTypeDatasourceDefinition;\n};\n\nexport interface ObjectPropertyTypeInner extends\n Omit<\n OntologyIrPropertyType,\n | \"sharedPropertyTypeApiName\"\n | \"type\"\n | \"inlineAction\"\n | \"sharedPropertyTypeRid\"\n | \"valueType\"\n | \"ruleSetBinding\"\n | \"displayMetadata\"\n | \"dataConstraints\"\n | \"status\"\n >\n{\n type: PropertyTypeType;\n array?: boolean;\n valueType: ValueTypeDefinitionVersion;\n sharedPropertyType: SharedPropertyType;\n description: string | undefined;\n displayName: string;\n visibility: Visibility;\n nullability?: Nullability;\n status?: ObjectTypeStatus;\n editOnly?: boolean;\n}\n\nexport type ObjectPropertyType = RequiredFields<\n Partial<ObjectPropertyTypeInner>,\n \"apiName\" | \"type\" | \"displayName\"\n>;\n\nexport type ObjectPropertyTypeUserDefinition = RequiredFields<\n Partial<ObjectPropertyTypeInner>,\n \"type\"\n>;\n\nexport interface InterfacePropertyType {\n sharedPropertyType: SharedPropertyType;\n required: boolean;\n}\nexport interface InterfaceType extends\n OntologyEntityBase,\n Omit<\n OntologyIrMarketplaceInterfaceType,\n // we want our simplified representation\n | \"properties\"\n // these things don't need to exist as the system works fine without them (I'm told)\n | \"allProperties\"\n | \"allLinks\"\n | \"extendsInterfaces\"\n | \"allExtendsInterfaces\"\n | \"propertiesV2\"\n | \"allPropertiesV2\"\n | \"propertiesV3\"\n | \"allPropertiesV3\"\n >\n{\n propertiesV2: Record<string, InterfacePropertyType>;\n extendsInterfaces: Array<InterfaceType>;\n status: InterfaceTypeStatus;\n __type: OntologyEntityTypeEnum.INTERFACE_TYPE;\n}\n\nexport interface PropertyType {\n type: PropertyTypeType;\n array?: boolean;\n description?: string;\n displayName?: string;\n valueType?: ApiNameValueTypeReference;\n visibility?: Visibility;\n typeClasses?: TypeClass[];\n nullability?: Nullability;\n}\n\nexport interface Nullability {\n noEmptyCollections: boolean;\n noNulls: boolean;\n}\n\nexport type TypeClass = { kind: string; name: string };\n\nexport interface SharedPropertyType extends OntologyEntityBase, PropertyType {\n apiName: string;\n nonNameSpacedApiName: string;\n gothamMapping?: SharedPropertyTypeGothamMapping;\n __type: OntologyEntityTypeEnum.SHARED_PROPERTY_TYPE;\n}\n\nexport type PropertyTypeType =\n | PropertyTypeTypePrimitive\n | PropertyTypeTypeExotic;\n\nexport type PropertyTypeTypePrimitive =\n | \"boolean\"\n | \"byte\"\n | \"date\"\n | \"decimal\"\n | \"double\"\n | \"float\"\n | \"integer\"\n | \"long\"\n | \"short\"\n | \"string\"\n | \"timestamp\";\n\nexport type PropertyTypeTypeExotic =\n | \"geopoint\"\n | \"geoshape\"\n | \"mediaReference\"\n | \"geotimeSeries\"\n | PropertyTypeTypeMarking\n | PropertyTypeTypeStruct\n | PropertyTypeTypeString;\n\ntype PropertyTypeTypeMarking = {\n type: \"marking\";\n markingType: \"MANDATORY\" | \"CBAC\";\n markingInputGroupName: string;\n};\n\nexport type PropertyTypeTypeStruct = {\n type: \"struct\";\n structDefinition: {\n [api_name: string]:\n | StructPropertyType\n | Exclude<PropertyTypeTypesWithoutStruct, PropertyTypeTypeMarking>;\n };\n};\n\ntype PropertyTypeTypeString = {\n type: \"string\";\n isLongText: boolean;\n supportsEfficientLeadingWildcard: boolean;\n supportsExactMatching: boolean;\n};\n\nexport type PropertyTypeTypesWithoutStruct = Exclude<\n PropertyTypeType,\n PropertyTypeTypeStruct\n>;\n\ntype Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;\n\nexport interface StructPropertyType extends\n Optional<\n Omit<\n StructFieldType,\n \"fieldType\" | \"structFieldRid\" | \"apiName\"\n >,\n \"typeClasses\" | \"aliases\"\n >\n{\n fieldType: PropertyTypeTypesWithoutStruct;\n}\n\nexport type ObjectTypePropertyApiName = string;\nexport type LinkTypeId = string;\n\nexport type LinkType =\n | (OntologyEntityBase & OneToManyLinkTypeDefinition & {\n __type: OntologyEntityTypeEnum.LINK_TYPE;\n })\n | (OntologyEntityBase & ManyToManyLinkTypeDefinition & {\n __type: OntologyEntityTypeEnum.LINK_TYPE;\n });\n\nexport type LinkTypeDefinition =\n | Omit<\n OntologyEntityBase & OneToManyLinkTypeUserDefinition & {\n __type: OntologyEntityTypeEnum.LINK_TYPE;\n },\n \"__type\"\n >\n | Omit<\n OntologyEntityBase & ManyToManyLinkTypeUserDefinition & {\n __type: OntologyEntityTypeEnum.LINK_TYPE;\n },\n \"__type\"\n >;\n\nexport interface OneToManyLinkTypeDefinition {\n apiName: LinkTypeId;\n one: OneToManyObjectLinkReference;\n toMany: OneToManyObjectLinkReference;\n manyForeignKeyProperty: ObjectTypePropertyApiName;\n cardinality: \"OneToMany\" | \"OneToOne\" | undefined;\n editsEnabled?: boolean;\n status?: OntologyIrLinkTypeStatus;\n redacted?: boolean;\n}\n\nexport interface OneToManyObjectLinkReference {\n object: ObjectType;\n metadata: LinkTypeMetadata;\n}\n\nexport interface OneToManyLinkTypeUserDefinition {\n apiName: LinkTypeId;\n one: OneToManyObjectLinkReferenceUserDefinition;\n toMany: OneToManyObjectLinkReferenceUserDefinition;\n manyForeignKeyProperty: ObjectTypePropertyApiName;\n cardinality?: \"OneToMany\" | \"OneToOne\" | undefined;\n}\n\nexport interface OneToManyObjectLinkReferenceUserDefinition {\n object: ObjectType;\n metadata: LinkTypeMetadataUserDefinition;\n}\n\nexport interface ManyToManyLinkTypeDefinition {\n apiName: LinkTypeId;\n many: ManyToManyObjectLinkReference;\n toMany: ManyToManyObjectLinkReference;\n editsEnabled?: boolean;\n status?: OntologyIrLinkTypeStatus;\n redacted?: boolean;\n}\n\nexport interface ManyToManyObjectLinkReference {\n object: ObjectType;\n metadata: LinkTypeMetadata;\n}\n\nexport interface ManyToManyLinkTypeUserDefinition {\n apiName: LinkTypeId;\n many: ManyToManyObjectLinkReferenceUserDefinition;\n toMany: ManyToManyObjectLinkReferenceUserDefinition;\n}\n\nexport interface ManyToManyObjectLinkReferenceUserDefinition {\n object: ObjectType;\n metadata: LinkTypeMetadataUserDefinition;\n}\n\nexport interface LinkTypeMetadataUserDefinition {\n apiName: string;\n displayName?: string;\n pluralDisplayName?: string;\n visibility?: Visibility;\n groupDisplayName?: string;\n}\n\nexport type LinkSideMetadata = OptionalFields<\n RequiredFields<\n Omit<LinkTypeMetadata, \"displayMetadata\"> & LinkTypeDisplayMetadata,\n \"apiName\"\n >,\n \"visibility\" | \"typeClasses\"\n>;\nexport interface ValueTypeType_array {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"array\" }>[\"array\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"array\";\n value: {\n type: \"array\";\n elementType: ValueTypeType[\"value\"];\n };\n}\n\nexport interface ValueTypeType_boolean {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"boolean\" }>[\"boolean\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"boolean\";\n value: \"boolean\";\n}\n\nexport interface ValueTypeType_binary {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"binary\" }>[\"binary\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"binary\";\n value: \"binary\";\n}\n\nexport interface ValueTypeType_byte {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"byte\" }>[\"byte\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"byte\";\n value: \"byte\";\n}\n\nexport interface ValueTypeType_date {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"date\" }>[\"date\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"date\";\n value: \"date\";\n}\n\nexport interface ValueTypeType_decimal {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"decimal\" }>[\"decimal\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"decimal\";\n value: \"decimal\";\n}\n\nexport interface ValueTypeType_double {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"double\" }>[\"double\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"double\";\n value: \"double\";\n}\n\nexport interface ValueTypeType_float {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"float\" }>[\"float\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"float\";\n value: \"float\";\n}\n\nexport interface ValueTypeType_integer {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"integer\" }>[\"integer\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"integer\";\n value: \"integer\";\n}\n\nexport interface ValueTypeType_long {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"long\" }>[\"long\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"long\";\n value: \"long\";\n}\n\nexport interface ValueTypeType_map {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"map\" }>[\"map\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"map\";\n value: {\n type: \"map\";\n keyType: ValueTypeType[\"value\"];\n valueType: ValueTypeType[\"value\"];\n };\n}\n\nexport interface ValueTypeType_optional {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"optional\" }>[\"optional\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"optional\";\n value: {\n type: \"optional\";\n wrappedType: ValueTypeType[\"value\"];\n };\n}\n\nexport interface ValueTypeType_short {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"short\" }>[\"short\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"short\";\n value: \"short\";\n}\n\nexport interface ValueTypeType_string {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"string\" }>[\"string\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"string\";\n value: \"string\";\n}\n\nexport interface ValueTypeType_structV2 {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"structV2\" }>[\"structV2\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"structV2\";\n value: {\n type: \"struct\";\n fields: Array<{\n identifier: string;\n baseType: ValueTypeType[\"value\"];\n }>;\n };\n}\nexport interface ValueTypeType_timestamp {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"timestamp\" }>[\"timestamp\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"timestamp\";\n value: \"timestamp\";\n}\n\nexport type ValueTypeType =\n | ValueTypeType_array\n | ValueTypeType_boolean\n | ValueTypeType_binary\n | ValueTypeType_byte\n | ValueTypeType_date\n | ValueTypeType_decimal\n | ValueTypeType_double\n | ValueTypeType_float\n | ValueTypeType_integer\n | ValueTypeType_long\n | ValueTypeType_map\n | ValueTypeType_optional\n | ValueTypeType_short\n | ValueTypeType_string\n | ValueTypeType_structV2\n | ValueTypeType_timestamp;\n\nexport type ValueTypeDefinitionVersion = OntologyEntityBase & {\n apiName: ValueTypeApiName;\n displayMetadata: ValueTypeDisplayMetadata;\n status: ValueTypeStatus;\n version: ValueTypeVersion;\n baseType: BaseType;\n constraints: ValueTypeDataConstraint[];\n exampleValues: ExampleValue[];\n __type: OntologyEntityTypeEnum.VALUE_TYPE;\n};\n\nexport interface ObjectTypeDatasourceDefinition_dataset {\n type: \"dataset\";\n}\n\nexport interface ObjectTypeDatasourceDefinition_stream {\n type: \"stream\";\n // Retention period must be in ISO 8601 duration format\n retentionPeriod?: string;\n}\n\nexport interface ObjectTypeDatasourceDefinition_restrictedView {\n type: \"restrictedView\";\n}\n\nexport type ObjectTypeDatasourceDefinition =\n | ObjectTypeDatasourceDefinition_stream\n | ObjectTypeDatasourceDefinition_dataset\n | ObjectTypeDatasourceDefinition_restrictedView;\n\nexport type ActionParameterTypePrimitive =\n | \"boolean\"\n | \"booleanList\"\n | \"integer\"\n | \"integerList\"\n | \"long\"\n | \"longList\"\n | \"double\"\n | \"doubleList\"\n | \"string\"\n | \"stringList\"\n | \"decimal\"\n | \"decimalList\"\n | \"timestamp\"\n | \"timestampList\"\n | \"geohash\"\n | \"geohashList\"\n | \"geoshape\"\n | \"geoshapeList\"\n | \"timeSeriesReference\"\n | \"date\"\n | \"dateList\"\n | \"objectTypeReference\"\n | \"objectReference\"\n | \"attachment\"\n | \"attachmentList\"\n | \"marking\"\n | \"markingList\"\n | \"mediaReference\"\n | \"mediaReferenceList\"\n | \"geotimeSeriesReference\"\n | \"geotimeSeriesReferenceList\";\n\nexport type ActionParameterTypeComplex =\n | OntologyIrBaseParameterType_decimal\n | OntologyIrBaseParameterType_decimalList\n | OntologyIrBaseParameterType_timestamp\n | OntologyIrBaseParameterType_timestampList\n | OntologyIrBaseParameterType_objectReference\n | OntologyIrBaseParameterType_objectReferenceList\n | OntologyIrBaseParameterType_objectSetRid\n | OntologyIrBaseParameterType_objectTypeReference\n | OntologyIrBaseParameterType_objectReference\n | OntologyIrBaseParameterType_interfaceReference\n | OntologyIrBaseParameterType_interfaceReferenceList\n | OntologyIrBaseParameterType_struct\n | OntologyIrBaseParameterType_structList;\n\nexport type ActionParameterType =\n | ActionParameterTypePrimitive\n | ActionParameterTypeComplex;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA+EA,WAAYA,sBAAsB,0BAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAA,OAAtBA,sBAAsB;AAAA;;AA2DlC;;AAoCA","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":["OntologyEntityTypeEnum","MODIFY_OBJECT_PARAMETER","CREATE_OR_MODIFY_OBJECT_PARAMETER"],"sources":["types.ts"],"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 */\n\nimport type {\n ActionTypeApiName,\n ActionTypeStatus_deprecated,\n BaseType,\n ButtonDisplayMetadata,\n DataConstraint,\n DisplayMetadataConfigurationDefaultLayout,\n DisplayMetadataConfigurationDisplayAndFormat,\n ExampleValue,\n FailureMessage,\n ImportedTypes,\n InterfaceTypeApiName,\n InterfaceTypeStatus,\n LinkTypeDisplayMetadata,\n LinkTypeMetadata,\n OntologyIrActionTypeEntities,\n OntologyIrBaseParameterType_decimal,\n OntologyIrBaseParameterType_decimalList,\n OntologyIrBaseParameterType_interfaceReference,\n OntologyIrBaseParameterType_interfaceReferenceList,\n OntologyIrBaseParameterType_objectReference,\n OntologyIrBaseParameterType_objectReferenceList,\n OntologyIrBaseParameterType_objectSetRid,\n OntologyIrBaseParameterType_objectTypeReference,\n OntologyIrBaseParameterType_struct,\n OntologyIrBaseParameterType_structList,\n OntologyIrBaseParameterType_timestamp,\n OntologyIrBaseParameterType_timestampList,\n OntologyIrCondition,\n OntologyIrConditionValue,\n OntologyIrFormContent,\n OntologyIrLabelledValue,\n OntologyIrLinkTypeStatus,\n OntologyIrLogicRule,\n OntologyIrLogicRuleValue_interfaceParameterPropertyValue,\n OntologyIrLogicRuleValue_objectParameterPropertyValue,\n OntologyIrLogicRuleValue_parameterId,\n OntologyIrLogicRuleValue_staticValue,\n OntologyIrLogicRuleValue_synchronousWebhookOutput,\n OntologyIrMarketplaceInterfaceType,\n OntologyIrObjectType,\n OntologyIrParameterDateRangeValue,\n OntologyIrParameterPrefill,\n OntologyIrPropertyType,\n OntologyIrValidationRule,\n ParameterId,\n SectionId,\n SharedPropertyTypeGothamMapping,\n StructFieldType,\n ValidationRuleDisplayMetadata,\n ValueTypeApiName,\n ValueTypeApiNameReference,\n ValueTypeDataConstraint,\n ValueTypeDisplayMetadata,\n ValueTypeStatus,\n ValueTypeVersion,\n Visibility,\n} from \"@osdk/client.unstable\";\n\nimport type { OntologyFullMetadata } from \"@osdk/foundry.ontologies\";\nimport type { BlueprintIcon } from \"./iconNames.js\";\n\nexport interface Ontology extends\n Omit<\n OntologyFullMetadata,\n | \"ontology\"\n | \"sharedPropertyTypes\"\n | \"interfaceTypes\"\n | \"objectTypes\"\n | \"actionTypes\"\n >\n{\n interfaceTypes: Record<string, InterfaceType>;\n sharedPropertyTypes: Record<string, SharedPropertyType>;\n objectTypes: Record<string, ObjectType>;\n valueTypes: Record<string, ValueTypeDefinitionVersion[]>;\n linkTypes: Record<string, LinkType>;\n actionTypes: Record<string, ActionType>;\n importedTypes: ImportedTypes;\n}\n\nexport interface OntologyEntityBase {\n __type: OntologyEntityTypeEnum;\n apiName: string;\n}\n\nexport enum OntologyEntityTypeEnum {\n OBJECT_TYPE = \"OBJECT_TYPE\",\n LINK_TYPE = \"LINK_TYPE\",\n INTERFACE_TYPE = \"INTERFACE_TYPE\",\n SHARED_PROPERTY_TYPE = \"SHARED_PROPERTY_TYPE\",\n ACTION_TYPE = \"ACTION_TYPE\",\n VALUE_TYPE = \"VALUE_TYPE\",\n}\nexport interface OntologyEntityTypeMapping {\n [OntologyEntityTypeEnum.OBJECT_TYPE]: ObjectType;\n [OntologyEntityTypeEnum.ACTION_TYPE]: ActionType;\n [OntologyEntityTypeEnum.LINK_TYPE]: LinkType;\n [OntologyEntityTypeEnum.INTERFACE_TYPE]: InterfaceType;\n [OntologyEntityTypeEnum.SHARED_PROPERTY_TYPE]: SharedPropertyType;\n [OntologyEntityTypeEnum.VALUE_TYPE]: ValueTypeDefinitionVersion;\n}\n\nexport type OntologyDefinition =\n & {\n [K in Exclude<OntologyEntityTypeEnum, \"VALUE_TYPE\">]: Record<\n string,\n OntologyEntityTypeMapping[K]\n >;\n }\n & {\n VALUE_TYPE: Record<string, ValueTypeDefinitionVersion[]>;\n };\n\nexport type OntologyEntityType =\n OntologyEntityTypeMapping[keyof OntologyEntityTypeMapping];\n\nexport type ActionType =\n & OntologyEntityBase\n & RequiredFields<\n Partial<ActionTypeInner>,\n \"apiName\" | \"displayName\" | \"rules\" | \"status\"\n >\n & {\n __type: OntologyEntityTypeEnum.ACTION_TYPE;\n };\n\nexport type ActionTypeDefinition = Omit<ActionType, \"__type\">;\n\nexport type ActionTypeUserDefinition = {\n objectType: ObjectTypeDefinition;\n apiName?: string;\n displayName?: string;\n status?: ActionStatus;\n parameterConfiguration?: Record<string, ActionParameterConfiguration>;\n nonParameterMappings?: Record<string, MappingValue>;\n actionLevelValidation?: ActionLevelValidationDefinition;\n excludedProperties?: Array<ParameterId>;\n sections?: Array<ActionSection>;\n defaultFormat?: DisplayMetadataConfigurationDefaultLayout;\n enableLayoutSwitch?: boolean;\n displayAndFormat?: DisplayMetadataConfigurationDisplayAndFormat;\n parameterOrdering?: Array<string>;\n submissionMetadata?: SubmissionMetadata;\n // Used for Create or Modify actions\n primaryKeyOption?: \"autoGenerated\" | \"userInput\";\n};\n\nexport const MODIFY_OBJECT_PARAMETER: string = \"objectToModifyParameter\";\n\nexport const CREATE_OR_MODIFY_OBJECT_PARAMETER: string =\n \"objectToCreateOrModifyParameter\";\n\nexport interface ActionParameter {\n id: ParameterId;\n displayName: string;\n type: ActionParameterType;\n validation: ActionParameterValidation;\n description?: string;\n typeClasses?: Array<TypeClass>;\n defaultValue?: OntologyIrParameterPrefill;\n}\n\nexport type ActionParameterValidation = Omit<\n ActionParameterConfiguration,\n \"displayName\" | \"defaultValue\"\n>;\n\nexport interface ActionParameterConfiguration {\n allowedValues?: ActionParameterAllowedValues;\n required?: ActionParameterRequirementConstraint;\n defaultVisibility?: \"editable\" | \"disabled\" | \"hidden\";\n conditionalOverrides?: Array<ActionParameterConditionalOverride>;\n defaultValue?: OntologyIrParameterPrefill;\n displayName?: string;\n description?: string;\n // should only be used on non-property parameters\n customParameterType?: ActionParameterType;\n}\n\nexport type ActionSection = {\n id: string;\n displayName: string;\n parameters: Array<string>;\n defaultVisibility?: \"visible\" | \"hidden\";\n description?: string;\n columnCount?: 1 | 2;\n showTitleBar?: boolean;\n collapsedByDefault?: boolean;\n style?: \"box\" | \"minimal\";\n conditionalOverrides?: Array<SectionConditionalOverride>;\n};\n\nexport type SubmissionMetadata = {\n submitButtonDisplayMetadata?: ButtonDisplayMetadata;\n successMessage: string;\n undoButtonConfiguration?: boolean;\n};\n\nexport type MappingValue =\n | CustomMapping\n | UuidMappingValue\n | CurrentTimeMappingValue\n | CurrentUserMappingValue;\n\nexport type UuidMappingValue = {\n type: \"uuid\";\n linkId?: string;\n};\n\nexport type CurrentTimeMappingValue = {\n type: \"currentTime\";\n};\n\nexport type CurrentUserMappingValue = {\n type: \"currentUser\";\n};\n\nexport type CustomMapping =\n | OntologyIrLogicRuleValue_parameterId\n | OntologyIrLogicRuleValue_staticValue\n | OntologyIrLogicRuleValue_objectParameterPropertyValue\n | OntologyIrLogicRuleValue_interfaceParameterPropertyValue\n | OntologyIrLogicRuleValue_synchronousWebhookOutput;\n\n// TODO(ethana): add more commonly used conditions - parameter matching, organizations, etc.\nexport type ConditionDefinition =\n | UnionCondition\n | OntologyIrCondition\n | GroupValidationRule\n | ParameterValidationRule;\n\nexport type UnionCondition = {\n type: \"and\" | \"or\";\n conditions: Array<ConditionDefinition>;\n};\n\nexport type ActionParameterConditionalOverride =\n | VisibilityOverride\n | DisabledOverride\n | RequiredOverride\n | DefaultValueOverride\n | ConstraintOverride;\n\nexport type SectionConditionalOverride = VisibilityOverride;\n\nexport type VisibilityOverride = {\n type: \"visibility\";\n condition: ConditionDefinition;\n};\n\nexport type DisabledOverride = {\n type: \"disabled\";\n condition: ConditionDefinition;\n};\n\nexport type RequiredOverride = {\n type: \"required\";\n condition: ConditionDefinition;\n};\n\nexport type DefaultValueOverride = {\n type: \"defaultValue\";\n condition: ConditionDefinition;\n defaultValue: OntologyIrParameterPrefill;\n};\n\nexport type ConstraintOverride = {\n type: \"constraint\";\n condition: ConditionDefinition;\n constraint: ActionParameterAllowedValues;\n};\n\nexport type ActionParameterRequirementConstraint =\n | boolean\n | { listLength: { min?: number; max?: number } };\n\n// TODO(dpaquin): cleanup? or does \"type: foo\" actually make sense here\nexport type ActionParameterAllowedValues =\n | {\n type: \"oneOf\";\n oneOf: Array<OntologyIrLabelledValue>;\n otherValueAllowed?: boolean;\n }\n | {\n type: \"range\";\n min?: OntologyIrConditionValue;\n max?: OntologyIrConditionValue;\n }\n | { type: \"text\"; minLength?: number; maxLength?: number; regex?: string }\n | {\n type: \"datetime\";\n maximum?: OntologyIrParameterDateRangeValue;\n minimum?: OntologyIrParameterDateRangeValue;\n }\n | { type: \"objectTypeReference\"; interfaceTypes: Array<InterfaceTypeApiName> }\n | { type: \"objectQuery\" }\n | { type: \"attachment\" }\n | { type: \"boolean\" }\n | { type: \"objectSetRid\" }\n | { type: \"cbacMarking\" }\n | { type: \"mandatoryMarking\" }\n | { type: \"objectList\" }\n | { type: \"mediaReference\" }\n | { type: \"timeSeriesReference\" }\n | { type: \"geohash\" }\n | { type: \"geoshape\" }\n | { type: \"geotimeSeriesReference\" }\n | { type: \"interfaceObjectQuery\" }\n | { type: \"redacted\" };\n\nexport interface ActionTypeInner {\n apiName: ActionTypeApiName;\n displayName: string;\n description: string;\n icon: { locator: BlueprintIcon; color: string };\n parameters: Array<ActionParameter>;\n rules: Array<OntologyIrLogicRule>;\n sections: Record<SectionId, ActionSection>;\n status: ActionStatus;\n entities: OntologyIrActionTypeEntities;\n parameterOrdering: Array<string>;\n formContentOrdering: Array<OntologyIrFormContent>;\n validation: Array<OntologyIrValidationRule>;\n typeClasses: Array<TypeClass>;\n defaultFormat: DisplayMetadataConfigurationDefaultLayout;\n enableLayoutSwitch: boolean;\n displayAndFormat: DisplayMetadataConfigurationDisplayAndFormat;\n submissionMetadata: SubmissionMetadata;\n}\n\nexport type ActionValidationRule = OntologyIrValidationRule;\n\nexport type ActionLevelValidationDefinition = {\n condition: ConditionDefinition;\n displayMetadata?: ValidationRuleDisplayMetadata;\n};\n\nexport type GroupValidationRule = {\n type: \"group\";\n name: string;\n};\n\nexport type ParameterValidationRule = {\n type: \"parameter\";\n parameterId: string;\n matches: OntologyIrConditionValue;\n};\n\nexport type ActionStatus =\n | \"active\"\n | \"experimental\"\n | \"example\"\n | ActionTypeStatus_deprecated;\n\nexport type { InterfaceTypeStatus };\n\nexport type ObjectTypeStatus =\n | \"active\"\n | \"experimental\"\n | {\n type: \"deprecated\";\n message: string;\n deadline: string;\n };\n\nexport type RequiredFields<T, K extends keyof T> = T & Required<Pick<T, K>>;\nexport type OptionalFields<T, K extends keyof T> =\n & Pick<Partial<T>, K>\n & Omit<T, K>;\n\nexport interface ObjectTypeInner extends\n Omit<\n OntologyIrObjectType,\n | \"titlePropertyTypeRid\"\n | \"propertyTypes\"\n | \"allImplementsInterfaces\"\n | \"implementsInterfaces2\"\n | \"displayMetadata\"\n | \"primaryKeys\"\n | \"status\"\n >\n{\n primaryKeyPropertyApiName: string;\n properties: Array<ObjectPropertyType>;\n titlePropertyApiName: string;\n implementsInterfaces: Array<InterfaceImplementation>;\n description: string | undefined;\n icon: { locator: BlueprintIcon; color: string } | undefined;\n displayName: string;\n pluralDisplayName: string;\n visibility: Visibility;\n editsEnabled: boolean;\n status?: ObjectTypeStatus;\n}\n\nexport type InterfaceImplementation = {\n implements: InterfaceType;\n propertyMapping: { interfaceProperty: string; mapsTo: string }[];\n};\n\nexport type ObjectType =\n & OntologyEntityBase\n & RequiredFields<\n Partial<ObjectTypeInner>,\n | \"apiName\"\n | \"primaryKeyPropertyApiName\"\n | \"displayName\"\n | \"pluralDisplayName\"\n | \"titlePropertyApiName\"\n >\n & {\n datasource?: ObjectTypeDatasourceDefinition;\n __type: OntologyEntityTypeEnum.OBJECT_TYPE;\n };\n\nexport type ObjectTypeDefinition = {\n apiName: string;\n primaryKeyPropertyApiName: string;\n displayName: string;\n pluralDisplayName: string;\n titlePropertyApiName: string;\n properties?: { [key: string]: ObjectPropertyTypeUserDefinition };\n implementsInterfaces?: Array<InterfaceImplementation>;\n description?: string;\n icon?: { locator: BlueprintIcon; color: string };\n visibility?: Visibility;\n editsEnabled?: boolean;\n status?: ObjectTypeStatus;\n datasource?: ObjectTypeDatasourceDefinition;\n};\n\nexport interface ObjectPropertyTypeInner extends\n Omit<\n OntologyIrPropertyType,\n | \"sharedPropertyTypeApiName\"\n | \"type\"\n | \"inlineAction\"\n | \"sharedPropertyTypeRid\"\n | \"valueType\"\n | \"ruleSetBinding\"\n | \"displayMetadata\"\n | \"dataConstraints\"\n | \"status\"\n >\n{\n type: PropertyTypeType;\n array?: boolean;\n valueType: ValueTypeDefinitionVersion;\n sharedPropertyType: SharedPropertyType;\n description: string | undefined;\n displayName: string;\n visibility: Visibility;\n nullability?: Nullability;\n status?: ObjectTypeStatus;\n editOnly?: boolean;\n}\n\nexport type ObjectPropertyType = RequiredFields<\n Partial<ObjectPropertyTypeInner>,\n \"apiName\" | \"type\" | \"displayName\"\n>;\n\nexport type ObjectPropertyTypeUserDefinition = RequiredFields<\n Partial<ObjectPropertyTypeInner>,\n \"type\"\n>;\n\nexport interface InterfacePropertyType {\n sharedPropertyType: SharedPropertyType;\n required: boolean;\n}\nexport interface InterfaceType extends\n OntologyEntityBase,\n Omit<\n OntologyIrMarketplaceInterfaceType,\n // we want our simplified representation\n | \"properties\"\n // these things don't need to exist as the system works fine without them (I'm told)\n | \"allProperties\"\n | \"allLinks\"\n | \"extendsInterfaces\"\n | \"allExtendsInterfaces\"\n | \"propertiesV2\"\n | \"allPropertiesV2\"\n | \"propertiesV3\"\n | \"allPropertiesV3\"\n >\n{\n propertiesV2: Record<string, InterfacePropertyType>;\n extendsInterfaces: Array<InterfaceType>;\n status: InterfaceTypeStatus;\n __type: OntologyEntityTypeEnum.INTERFACE_TYPE;\n}\n\nexport interface PropertyType {\n type: PropertyTypeType;\n array?: boolean;\n description?: string;\n displayName?: string;\n valueType?: ValueTypeApiNameReference;\n visibility?: Visibility;\n typeClasses?: TypeClass[];\n nullability?: Nullability;\n}\n\nexport interface Nullability {\n noEmptyCollections: boolean;\n noNulls: boolean;\n}\n\nexport type TypeClass = { kind: string; name: string };\n\nexport interface SharedPropertyType extends OntologyEntityBase, PropertyType {\n apiName: string;\n nonNameSpacedApiName: string;\n gothamMapping?: SharedPropertyTypeGothamMapping;\n __type: OntologyEntityTypeEnum.SHARED_PROPERTY_TYPE;\n}\n\nexport type PropertyTypeType =\n | PropertyTypeTypePrimitive\n | PropertyTypeTypeExotic;\n\nexport type PropertyTypeTypePrimitive =\n | \"boolean\"\n | \"byte\"\n | \"date\"\n | \"decimal\"\n | \"double\"\n | \"float\"\n | \"integer\"\n | \"long\"\n | \"short\"\n | \"string\"\n | \"timestamp\";\n\nexport type PropertyTypeTypeExotic =\n | \"geopoint\"\n | \"geoshape\"\n | \"mediaReference\"\n | \"geotimeSeries\"\n | PropertyTypeTypeMarking\n | PropertyTypeTypeStruct\n | PropertyTypeTypeString;\n\ntype PropertyTypeTypeMarking = {\n type: \"marking\";\n markingType: \"MANDATORY\" | \"CBAC\";\n markingInputGroupName: string;\n};\n\nexport type PropertyTypeTypeStruct = {\n type: \"struct\";\n structDefinition: {\n [api_name: string]:\n | StructPropertyType\n | Exclude<PropertyTypeTypesWithoutStruct, PropertyTypeTypeMarking>;\n };\n};\n\ntype PropertyTypeTypeString = {\n type: \"string\";\n isLongText: boolean;\n supportsEfficientLeadingWildcard: boolean;\n supportsExactMatching: boolean;\n};\n\nexport type PropertyTypeTypesWithoutStruct = Exclude<\n PropertyTypeType,\n PropertyTypeTypeStruct\n>;\n\ntype Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;\n\nexport interface StructPropertyType extends\n Optional<\n Omit<\n StructFieldType,\n \"fieldType\" | \"structFieldRid\" | \"apiName\"\n >,\n \"typeClasses\" | \"aliases\"\n >\n{\n fieldType: PropertyTypeTypesWithoutStruct;\n}\n\nexport type ObjectTypePropertyApiName = string;\nexport type LinkTypeId = string;\n\nexport type LinkType =\n | (OntologyEntityBase & OneToManyLinkTypeDefinition & {\n __type: OntologyEntityTypeEnum.LINK_TYPE;\n })\n | (OntologyEntityBase & ManyToManyLinkTypeDefinition & {\n __type: OntologyEntityTypeEnum.LINK_TYPE;\n });\n\nexport type LinkTypeDefinition =\n | Omit<\n OntologyEntityBase & OneToManyLinkTypeUserDefinition & {\n __type: OntologyEntityTypeEnum.LINK_TYPE;\n },\n \"__type\"\n >\n | Omit<\n OntologyEntityBase & ManyToManyLinkTypeUserDefinition & {\n __type: OntologyEntityTypeEnum.LINK_TYPE;\n },\n \"__type\"\n >;\n\nexport interface OneToManyLinkTypeDefinition {\n apiName: LinkTypeId;\n one: OneToManyObjectLinkReference;\n toMany: OneToManyObjectLinkReference;\n manyForeignKeyProperty: ObjectTypePropertyApiName;\n cardinality: \"OneToMany\" | \"OneToOne\" | undefined;\n editsEnabled?: boolean;\n status?: OntologyIrLinkTypeStatus;\n redacted?: boolean;\n}\n\nexport interface OneToManyObjectLinkReference {\n object: ObjectTypeDefinition;\n metadata: LinkTypeMetadata;\n}\n\nexport interface OneToManyLinkTypeUserDefinition {\n apiName: LinkTypeId;\n one: OneToManyObjectLinkReferenceUserDefinition;\n toMany: OneToManyObjectLinkReferenceUserDefinition;\n manyForeignKeyProperty: ObjectTypePropertyApiName;\n cardinality?: \"OneToMany\" | \"OneToOne\" | undefined;\n}\n\nexport interface OneToManyObjectLinkReferenceUserDefinition {\n object: ObjectTypeDefinition;\n metadata: LinkTypeMetadataUserDefinition;\n}\n\nexport interface ManyToManyLinkTypeDefinition {\n apiName: LinkTypeId;\n many: ManyToManyObjectLinkReference;\n toMany: ManyToManyObjectLinkReference;\n editsEnabled?: boolean;\n status?: OntologyIrLinkTypeStatus;\n redacted?: boolean;\n}\n\nexport interface ManyToManyObjectLinkReference {\n object: ObjectTypeDefinition;\n metadata: LinkTypeMetadata;\n}\n\nexport interface ManyToManyLinkTypeUserDefinition {\n apiName: LinkTypeId;\n many: ManyToManyObjectLinkReferenceUserDefinition;\n toMany: ManyToManyObjectLinkReferenceUserDefinition;\n}\n\nexport interface ManyToManyObjectLinkReferenceUserDefinition {\n object: ObjectTypeDefinition;\n metadata: LinkTypeMetadataUserDefinition;\n}\n\nexport interface LinkTypeMetadataUserDefinition {\n apiName: string;\n displayName?: string;\n pluralDisplayName?: string;\n visibility?: Visibility;\n groupDisplayName?: string;\n}\n\nexport type LinkSideMetadata = OptionalFields<\n RequiredFields<\n Omit<LinkTypeMetadata, \"displayMetadata\"> & LinkTypeDisplayMetadata,\n \"apiName\"\n >,\n \"visibility\" | \"typeClasses\"\n>;\nexport interface ValueTypeType_array {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"array\" }>[\"array\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"array\";\n value: {\n type: \"array\";\n elementType: ValueTypeType[\"value\"];\n };\n}\n\nexport interface ValueTypeType_boolean {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"boolean\" }>[\"boolean\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"boolean\";\n value: \"boolean\";\n}\n\nexport interface ValueTypeType_binary {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"binary\" }>[\"binary\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"binary\";\n value: \"binary\";\n}\n\nexport interface ValueTypeType_byte {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"byte\" }>[\"byte\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"byte\";\n value: \"byte\";\n}\n\nexport interface ValueTypeType_date {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"date\" }>[\"date\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"date\";\n value: \"date\";\n}\n\nexport interface ValueTypeType_decimal {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"decimal\" }>[\"decimal\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"decimal\";\n value: \"decimal\";\n}\n\nexport interface ValueTypeType_double {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"double\" }>[\"double\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"double\";\n value: \"double\";\n}\n\nexport interface ValueTypeType_float {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"float\" }>[\"float\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"float\";\n value: \"float\";\n}\n\nexport interface ValueTypeType_integer {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"integer\" }>[\"integer\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"integer\";\n value: \"integer\";\n}\n\nexport interface ValueTypeType_long {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"long\" }>[\"long\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"long\";\n value: \"long\";\n}\n\nexport interface ValueTypeType_map {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"map\" }>[\"map\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"map\";\n value: {\n type: \"map\";\n keyType: ValueTypeType[\"value\"];\n valueType: ValueTypeType[\"value\"];\n };\n}\n\nexport interface ValueTypeType_optional {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"optional\" }>[\"optional\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"optional\";\n value: {\n type: \"optional\";\n wrappedType: ValueTypeType[\"value\"];\n };\n}\n\nexport interface ValueTypeType_short {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"short\" }>[\"short\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"short\";\n value: \"short\";\n}\n\nexport interface ValueTypeType_string {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"string\" }>[\"string\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"string\";\n value: \"string\";\n}\n\nexport interface ValueTypeType_structV2 {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"structV2\" }>[\"structV2\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"structV2\";\n value: {\n type: \"struct\";\n fields: Array<{\n identifier: string;\n baseType: ValueTypeType[\"value\"];\n }>;\n };\n}\nexport interface ValueTypeType_timestamp {\n constraints: {\n constraint: Extract<DataConstraint, { type: \"timestamp\" }>[\"timestamp\"];\n failureMessage?: FailureMessage;\n }[];\n type: \"timestamp\";\n value: \"timestamp\";\n}\n\nexport type ValueTypeType =\n | ValueTypeType_array\n | ValueTypeType_boolean\n | ValueTypeType_binary\n | ValueTypeType_byte\n | ValueTypeType_date\n | ValueTypeType_decimal\n | ValueTypeType_double\n | ValueTypeType_float\n | ValueTypeType_integer\n | ValueTypeType_long\n | ValueTypeType_map\n | ValueTypeType_optional\n | ValueTypeType_short\n | ValueTypeType_string\n | ValueTypeType_structV2\n | ValueTypeType_timestamp;\n\nexport type ValueTypeDefinitionVersion = OntologyEntityBase & {\n apiName: ValueTypeApiName;\n displayMetadata: ValueTypeDisplayMetadata;\n status: ValueTypeStatus;\n version: ValueTypeVersion;\n baseType: BaseType;\n constraints: ValueTypeDataConstraint[];\n exampleValues: ExampleValue[];\n __type: OntologyEntityTypeEnum.VALUE_TYPE;\n};\n\nexport interface ObjectTypeDatasourceDefinition_dataset {\n type: \"dataset\";\n}\n\nexport interface ObjectTypeDatasourceDefinition_stream {\n type: \"stream\";\n // Retention period must be in ISO 8601 duration format\n retentionPeriod?: string;\n}\n\nexport interface ObjectTypeDatasourceDefinition_restrictedView {\n type: \"restrictedView\";\n}\n\nexport type ObjectTypeDatasourceDefinition =\n | ObjectTypeDatasourceDefinition_stream\n | ObjectTypeDatasourceDefinition_dataset\n | ObjectTypeDatasourceDefinition_restrictedView;\n\nexport type ActionParameterTypePrimitive =\n | \"boolean\"\n | \"booleanList\"\n | \"integer\"\n | \"integerList\"\n | \"long\"\n | \"longList\"\n | \"double\"\n | \"doubleList\"\n | \"string\"\n | \"stringList\"\n | \"decimal\"\n | \"decimalList\"\n | \"timestamp\"\n | \"timestampList\"\n | \"geohash\"\n | \"geohashList\"\n | \"geoshape\"\n | \"geoshapeList\"\n | \"timeSeriesReference\"\n | \"date\"\n | \"dateList\"\n | \"objectTypeReference\"\n | \"attachment\"\n | \"attachmentList\"\n | \"marking\"\n | \"markingList\"\n | \"mediaReference\"\n | \"mediaReferenceList\"\n | \"geotimeSeriesReference\"\n | \"geotimeSeriesReferenceList\";\n\nexport type ActionParameterTypeComplex =\n | OntologyIrBaseParameterType_decimal\n | OntologyIrBaseParameterType_decimalList\n | OntologyIrBaseParameterType_timestamp\n | OntologyIrBaseParameterType_timestampList\n | OntologyIrBaseParameterType_objectReference\n | OntologyIrBaseParameterType_objectReferenceList\n | OntologyIrBaseParameterType_objectSetRid\n | OntologyIrBaseParameterType_objectTypeReference\n | OntologyIrBaseParameterType_objectReference\n | OntologyIrBaseParameterType_interfaceReference\n | OntologyIrBaseParameterType_interfaceReferenceList\n | OntologyIrBaseParameterType_struct\n | OntologyIrBaseParameterType_structList;\n\nexport type ActionParameterType =\n | ActionParameterTypePrimitive\n | ActionParameterTypeComplex;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAwFA,WAAYA,sBAAsB,0BAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAA,OAAtBA,sBAAsB;AAAA;AA8DlC,OAAO,MAAMC,uBAA+B,GAAG,yBAAyB;AAExE,OAAO,MAAMC,iCAAyC,GACpD,iCAAiC;;AA0EnC;;AAoDA","ignoreList":[]}
@@ -15,7 +15,6 @@
15
15
  */
16
16
 
17
17
  import { consola } from "consola";
18
- import { createJiti } from "jiti";
19
18
  import * as fs from "node:fs/promises";
20
19
  import * as path from "node:path";
21
20
  import invariant from "tiny-invariant";
@@ -24,7 +23,7 @@ import { hideBin } from "yargs/helpers";
24
23
  import { defineOntology } from "../api/defineOntology.js";
25
24
  const apiNamespaceRegex = /^[a-z0-9-]+(\.[a-z0-9-]+)*\.$/;
26
25
  export default async function main(args = process.argv) {
27
- const commandLineOpts = await yargs(hideBin(args)).version("0.12.0-beta.8" ?? "").wrap(Math.min(150, yargs().terminalWidth())).strict().help().options({
26
+ const commandLineOpts = await yargs(hideBin(args)).version("0.12.0-rc.23" ?? "").wrap(Math.min(150, yargs().terminalWidth())).strict().help().options({
28
27
  input: {
29
28
  alias: "i",
30
29
  describe: "Input file",
@@ -85,14 +84,7 @@ export default async function main(args = process.argv) {
85
84
  }
86
85
  }
87
86
  async function loadOntology(input, apiNamespace, outputDir, dependencyFile) {
88
- const q = await defineOntology(apiNamespace, async () => {
89
- const jiti = createJiti(import.meta.filename, {
90
- moduleCache: true,
91
- debug: false,
92
- importMeta: import.meta
93
- });
94
- await jiti.import(input); // await import(input);
95
- }, outputDir, dependencyFile);
87
+ const q = await defineOntology(apiNamespace, async () => await import(input), outputDir, dependencyFile);
96
88
  return q;
97
89
  }
98
90
  //# sourceMappingURL=main.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","names":["consola","createJiti","fs","path","invariant","yargs","hideBin","defineOntology","apiNamespaceRegex","main","args","process","argv","commandLineOpts","version","wrap","Math","min","terminalWidth","strict","help","options","input","alias","describe","type","default","coerce","resolve","output","apiNamespace","snapshotDir","outputDir","valueTypesOutput","dependencies","parseAsync","length","slice","env","NODE_ENV","test","info","ontology","loadOntology","writeFile","JSON","stringify","valueType","valueTypes","dependencyFile","q","jiti","import","meta","filename","moduleCache","debug","importMeta"],"sources":["main.ts"],"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 */\n\nimport { consola } from \"consola\";\nimport { createJiti } from \"jiti\";\nimport * as fs from \"node:fs/promises\";\nimport * as path from \"node:path\";\nimport invariant from \"tiny-invariant\";\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport { defineOntology } from \"../api/defineOntology.js\";\n\nconst apiNamespaceRegex = /^[a-z0-9-]+(\\.[a-z0-9-]+)*\\.$/;\n\nexport default async function main(\n args: string[] = process.argv,\n): Promise<void> {\n const commandLineOpts: {\n input: string;\n output: string;\n apiNamespace: string;\n snapshotDir: string;\n valueTypesOutput: string;\n outputDir?: string;\n dependencies?: string;\n } = await yargs(hideBin(args))\n .version(process.env.PACKAGE_VERSION ?? \"\")\n .wrap(Math.min(150, yargs().terminalWidth()))\n .strict()\n .help()\n .options({\n input: {\n alias: \"i\",\n describe: \"Input file\",\n type: \"string\",\n default: \".ontology/ontology.ts\",\n coerce: path.resolve,\n },\n output: {\n alias: \"o\",\n describe: \"Output file\",\n type: \"string\",\n default: \"ontology.json\",\n coerce: path.resolve,\n },\n apiNamespace: {\n describe: \"Api name prefix for namespaced ontology types\",\n type: \"string\",\n default: \"\",\n },\n snapshotDir: {\n alias: \"s\",\n describe: \"Snapshot directory\",\n type: \"string\",\n default: \"snapshots\",\n coerce: path.resolve,\n },\n outputDir: {\n alias: \"d\",\n describe: \"Directory for generated ontology entities\",\n type: \"string\",\n coerce: path.resolve,\n },\n valueTypesOutput: {\n describe: \"Value Type Output File\",\n type: \"string\",\n default: \"value-types.json\",\n coerce: path.resolve,\n },\n dependencies: {\n describe: \"File to write dependencies to\",\n type: \"string\",\n coerce: path.resolve,\n },\n })\n .parseAsync();\n let apiNamespace = \"\";\n if (commandLineOpts.apiNamespace.length !== 0) {\n apiNamespace = (commandLineOpts.apiNamespace.slice(-1) !== \".\")\n ? commandLineOpts.apiNamespace + \".\"\n : commandLineOpts.apiNamespace;\n invariant(apiNamespace.length < 1024, \"API namespace is too long.\");\n invariant(\n apiNamespaceRegex.test(apiNamespace),\n \"API namespace is invalid! It is expected to conform to ^[a-z0-9-]+(\\.[a-z0-9-]+)*\\.$\",\n );\n }\n consola.info(`Loading ontology from ${commandLineOpts.input}`);\n\n const ontology = await loadOntology(\n commandLineOpts.input,\n apiNamespace,\n commandLineOpts.outputDir,\n commandLineOpts.dependencies,\n );\n\n consola.info(`Saving ontology to ${commandLineOpts.output}`);\n await fs.writeFile(\n commandLineOpts.output,\n JSON.stringify(ontology.ontology, null, 2),\n );\n // No point in generating block if there aren't any value types\n if (ontology.valueType.valueTypes.length > 0) {\n await fs.writeFile(\n commandLineOpts.valueTypesOutput,\n JSON.stringify(ontology.valueType, null, 2),\n );\n }\n}\n\nasync function loadOntology(\n input: string,\n apiNamespace: string,\n outputDir: string | undefined,\n dependencyFile: string | undefined,\n) {\n const q = await defineOntology(\n apiNamespace,\n async () => {\n const jiti = createJiti(import.meta.filename, {\n moduleCache: true,\n debug: false,\n importMeta: import.meta,\n });\n const module = await jiti.import(input);\n\n // await import(input);\n },\n outputDir,\n dependencyFile,\n );\n return q;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,SAAS;AACjC,SAASC,UAAU,QAAQ,MAAM;AACjC,OAAO,KAAKC,EAAE,MAAM,kBAAkB;AACtC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAOC,SAAS,MAAM,gBAAgB;AACtC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,eAAe;AACvC,SAASC,cAAc,QAAQ,0BAA0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ACZ,MAAM,GAAG,CAAC,EAAE;IAC5C,MAAMlC,EAAE,CAAC0C,SAAS,CAChB/B,eAAe,CAACoB,gBAAgB,EAChCY,IAAI,CAACC,SAAS,CAACJ,QAAQ,CAACK,SAAS,EAAE,IAAI,EAAE,CAAC,CAC5C,CAAC;EACH;AACF;AAEA,eAAeJ,YAAYA,CACzBrB,KAAa,EACbQ,YAAoB,EACpBE,SAA6B,EAC7BiB,cAAkC,EAClC;EACA,MAAMC,CAAC,GAAG,MAAM3C,cAAc,CAC5BuB,YAAY,EACZ,YAAY;IACV,MAAMqB,IAAI,GAAGlD,UAAU,CAACmD,MAAM,CAACC,IAAI,CAACC,QAAQ,EAAE;MAC5CC,WAAW,EAAE,IAAI;MACjBC,KAAK,EAAE,KAAK;MACZC,UAAU,EAAEL,MAAM,CAACC;IACrB,CAAC,CAAC;IACa,MAAMF,IAAI,CAACC,MAAM,CAAC9B,KAAK,CAAC,EAEvC;EACF,CAAC,EACDU,SAAS,EACTiB,cACF,CAAC;EACD,OAAOC,CAAC;AACV","ignoreList":[]}
1
+ {"version":3,"file":"main.js","names":["consola","fs","path","invariant","yargs","hideBin","defineOntology","apiNamespaceRegex","main","args","process","argv","commandLineOpts","version","wrap","Math","min","terminalWidth","strict","help","options","input","alias","describe","type","default","coerce","resolve","output","apiNamespace","snapshotDir","outputDir","valueTypesOutput","dependencies","parseAsync","length","slice","env","NODE_ENV","test","info","ontology","loadOntology","writeFile","JSON","stringify","valueType","valueTypes","dependencyFile","q"],"sources":["main.ts"],"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 */\n\nimport { consola } from \"consola\";\nimport * as fs from \"node:fs/promises\";\nimport * as path from \"node:path\";\nimport invariant from \"tiny-invariant\";\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\nimport { defineOntology } from \"../api/defineOntology.js\";\n\nconst apiNamespaceRegex = /^[a-z0-9-]+(\\.[a-z0-9-]+)*\\.$/;\n\nexport default async function main(\n args: string[] = process.argv,\n): Promise<void> {\n const commandLineOpts: {\n input: string;\n output: string;\n apiNamespace: string;\n snapshotDir: string;\n valueTypesOutput: string;\n outputDir?: string;\n dependencies?: string;\n } = await yargs(hideBin(args))\n .version(process.env.PACKAGE_VERSION ?? \"\")\n .wrap(Math.min(150, yargs().terminalWidth()))\n .strict()\n .help()\n .options({\n input: {\n alias: \"i\",\n describe: \"Input file\",\n type: \"string\",\n default: \".ontology/ontology.ts\",\n coerce: path.resolve,\n },\n output: {\n alias: \"o\",\n describe: \"Output file\",\n type: \"string\",\n default: \"ontology.json\",\n coerce: path.resolve,\n },\n apiNamespace: {\n describe: \"Api name prefix for namespaced ontology types\",\n type: \"string\",\n default: \"\",\n },\n snapshotDir: {\n alias: \"s\",\n describe: \"Snapshot directory\",\n type: \"string\",\n default: \"snapshots\",\n coerce: path.resolve,\n },\n outputDir: {\n alias: \"d\",\n describe: \"Directory for generated ontology entities\",\n type: \"string\",\n coerce: path.resolve,\n },\n valueTypesOutput: {\n describe: \"Value Type Output File\",\n type: \"string\",\n default: \"value-types.json\",\n coerce: path.resolve,\n },\n dependencies: {\n describe: \"File to write dependencies to\",\n type: \"string\",\n coerce: path.resolve,\n },\n })\n .parseAsync();\n let apiNamespace = \"\";\n if (commandLineOpts.apiNamespace.length !== 0) {\n apiNamespace = (commandLineOpts.apiNamespace.slice(-1) !== \".\")\n ? commandLineOpts.apiNamespace + \".\"\n : commandLineOpts.apiNamespace;\n invariant(apiNamespace.length < 1024, \"API namespace is too long.\");\n invariant(\n apiNamespaceRegex.test(apiNamespace),\n \"API namespace is invalid! It is expected to conform to ^[a-z0-9-]+(\\.[a-z0-9-]+)*\\.$\",\n );\n }\n consola.info(`Loading ontology from ${commandLineOpts.input}`);\n\n const ontology = await loadOntology(\n commandLineOpts.input,\n apiNamespace,\n commandLineOpts.outputDir,\n commandLineOpts.dependencies,\n );\n\n consola.info(`Saving ontology to ${commandLineOpts.output}`);\n await fs.writeFile(\n commandLineOpts.output,\n JSON.stringify(ontology.ontology, null, 2),\n );\n // No point in generating block if there aren't any value types\n if (ontology.valueType.valueTypes.length > 0) {\n await fs.writeFile(\n commandLineOpts.valueTypesOutput,\n JSON.stringify(ontology.valueType, null, 2),\n );\n }\n}\n\nasync function loadOntology(\n input: string,\n apiNamespace: string,\n outputDir: string | undefined,\n dependencyFile: string | undefined,\n) {\n const q = await defineOntology(\n apiNamespace,\n async () => await import(input),\n outputDir,\n dependencyFile,\n );\n return q;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,SAAS;AACjC,OAAO,KAAKC,EAAE,MAAM,kBAAkB;AACtC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAOC,SAAS,MAAM,gBAAgB;AACtC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,eAAe;AACvC,SAASC,cAAc,QAAQ,0BAA0B;AAEzD,MAAMC,iBAAiB,GAAG,+BAA+B;AAEzD,eAAe,eAAeC,IAAIA,CAChCC,IAAc,GAAGC,OAAO,CAACC,IAAI,EACd;EACf,MAAMC,eAQL,GAAG,MAAMR,KAAK,CAACC,OAAO,CAACI,IAAI,CAAC,CAAC,CAC3BI,OAAO,CAAC,kBAA+B,EAAE,CAAC,CAC1CC,IAAI,CAACC,IAAI,CAACC,GAAG,CAAC,GAAG,EAAEZ,KAAK,CAAC,CAAC,CAACa,aAAa,CAAC,CAAC,CAAC,CAAC,CAC5CC,MAAM,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MAAM,CAACR,KAAK,CAAC,EAC/BU,SAAS,EACTiB,cACF,CAAC;EACD,OAAOC,CAAC;AACV","ignoreList":[]}
@@ -16,16 +16,17 @@
16
16
 
17
17
  export { default } from "./cli/main.js";
18
18
  export { addDependency } from "./api/addDependency.js";
19
- export { defineAction, defineCreateInterfaceObjectAction, defineCreateObjectAction, defineDeleteObjectAction, defineModifyInterfaceObjectAction, defineModifyObjectAction } from "./api/defineAction.js";
19
+ export { defineAction, defineCreateInterfaceObjectAction, defineCreateObjectAction, defineCreateOrModifyObjectAction, defineDeleteObjectAction, defineModifyInterfaceObjectAction, defineModifyObjectAction } from "./api/defineAction.js";
20
20
  export { importSharedPropertyType } from "./api/defineImportSpt.js";
21
21
  export { defineInterface } from "./api/defineInterface.js";
22
22
  export { defineInterfaceLinkConstraint } from "./api/defineInterfaceLinkConstraint.js";
23
23
  export { defineLink } from "./api/defineLink.js";
24
- export { defineObject } from "./api/defineObject.js";
25
- export { defineOntology } from "./api/defineOntology.js";
24
+ export { convertToDisplayName, convertToPluralDisplayName, defineObject } from "./api/defineObject.js";
25
+ export { addNamespaceIfNone, defineOntology, dumpOntologyFullMetadata } from "./api/defineOntology.js";
26
26
  export { defineSharedPropertyType } from "./api/defineSpt.js";
27
27
  export { defineValueType } from "./api/defineValueType.js";
28
28
  export { importOntologyEntity } from "./api/importOntologyEntity.js";
29
- export { OntologyEntityTypeEnum } from "./api/types.js";
29
+ export { convertType } from "./api/propertyConversionUtils.js";
30
+ export { CREATE_OR_MODIFY_OBJECT_PARAMETER, MODIFY_OBJECT_PARAMETER, OntologyEntityTypeEnum } from "./api/types.js";
30
31
  export { wrapWithProxy } from "./api/wrapWithProxy.js";
31
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","addDependency","defineAction","defineCreateInterfaceObjectAction","defineCreateObjectAction","defineDeleteObjectAction","defineModifyInterfaceObjectAction","defineModifyObjectAction","importSharedPropertyType","defineInterface","defineInterfaceLinkConstraint","defineLink","defineObject","defineOntology","defineSharedPropertyType","defineValueType","importOntologyEntity","OntologyEntityTypeEnum","wrapWithProxy"],"sources":["index.ts"],"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 */\n\nexport { default as default } from \"./cli/main.js\";\n\nexport { addDependency } from \"./api/addDependency.js\";\nexport {\n defineAction,\n defineCreateInterfaceObjectAction,\n defineCreateObjectAction,\n defineDeleteObjectAction,\n defineModifyInterfaceObjectAction,\n defineModifyObjectAction,\n} from \"./api/defineAction.js\";\nexport { importSharedPropertyType } from \"./api/defineImportSpt.js\";\nexport { defineInterface } from \"./api/defineInterface.js\";\nexport { defineInterfaceLinkConstraint } from \"./api/defineInterfaceLinkConstraint.js\";\nexport { defineLink } from \"./api/defineLink.js\";\nexport { defineObject } from \"./api/defineObject.js\";\nexport { defineOntology } from \"./api/defineOntology.js\";\nexport { defineSharedPropertyType } from \"./api/defineSpt.js\";\nexport { defineValueType } from \"./api/defineValueType.js\";\nexport { importOntologyEntity } from \"./api/importOntologyEntity.js\";\nexport type {\n ActionType,\n ConditionDefinition,\n InterfaceType,\n LinkType,\n ObjectType,\n SharedPropertyType,\n ValueTypeDefinitionVersion,\n} from \"./api/types.js\";\nexport { OntologyEntityTypeEnum } from \"./api/types.js\";\nexport { wrapWithProxy } from \"./api/wrapWithProxy.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAkB,QAAQ,eAAe;AAElD,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SACEC,YAAY,EACZC,iCAAiC,EACjCC,wBAAwB,EACxBC,wBAAwB,EACxBC,iCAAiC,EACjCC,wBAAwB,QACnB,uBAAuB;AAC9B,SAASC,wBAAwB,QAAQ,0BAA0B;AACnE,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,SAASC,6BAA6B,QAAQ,wCAAwC;AACtF,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,YAAY,QAAQ,uBAAuB;AACpD,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,SAASC,oBAAoB,QAAQ,+BAA+B;AAUpE,SAASC,sBAAsB,QAAQ,gBAAgB;AACvD,SAASC,aAAa,QAAQ,wBAAwB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["default","addDependency","defineAction","defineCreateInterfaceObjectAction","defineCreateObjectAction","defineCreateOrModifyObjectAction","defineDeleteObjectAction","defineModifyInterfaceObjectAction","defineModifyObjectAction","importSharedPropertyType","defineInterface","defineInterfaceLinkConstraint","defineLink","convertToDisplayName","convertToPluralDisplayName","defineObject","addNamespaceIfNone","defineOntology","dumpOntologyFullMetadata","defineSharedPropertyType","defineValueType","importOntologyEntity","convertType","CREATE_OR_MODIFY_OBJECT_PARAMETER","MODIFY_OBJECT_PARAMETER","OntologyEntityTypeEnum","wrapWithProxy"],"sources":["index.ts"],"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 */\n\nexport { default as default } from \"./cli/main.js\";\n\nexport { addDependency } from \"./api/addDependency.js\";\nexport {\n defineAction,\n defineCreateInterfaceObjectAction,\n defineCreateObjectAction,\n defineCreateOrModifyObjectAction,\n defineDeleteObjectAction,\n defineModifyInterfaceObjectAction,\n defineModifyObjectAction,\n} from \"./api/defineAction.js\";\nexport { importSharedPropertyType } from \"./api/defineImportSpt.js\";\nexport { defineInterface } from \"./api/defineInterface.js\";\nexport { defineInterfaceLinkConstraint } from \"./api/defineInterfaceLinkConstraint.js\";\nexport { defineLink } from \"./api/defineLink.js\";\nexport {\n convertToDisplayName,\n convertToPluralDisplayName,\n defineObject,\n} from \"./api/defineObject.js\";\nexport {\n addNamespaceIfNone,\n defineOntology,\n dumpOntologyFullMetadata,\n} from \"./api/defineOntology.js\";\nexport { defineSharedPropertyType } from \"./api/defineSpt.js\";\nexport { defineValueType } from \"./api/defineValueType.js\";\nexport { importOntologyEntity } from \"./api/importOntologyEntity.js\";\nexport { convertType } from \"./api/propertyConversionUtils.js\";\nexport type {\n ActionParameterAllowedValues,\n ActionParameterConditionalOverride,\n ActionParameterConfiguration,\n ActionParameterValidation,\n ActionSection,\n ActionType,\n ConditionDefinition,\n CurrentTimeMappingValue,\n CurrentUserMappingValue,\n CustomMapping,\n InterfaceType,\n LinkType,\n MappingValue,\n ObjectPropertyType,\n ObjectType,\n PropertyTypeType,\n SectionConditionalOverride,\n SharedPropertyType,\n SubmissionMetadata,\n UuidMappingValue,\n ValueTypeDefinitionVersion,\n} from \"./api/types.js\";\nexport {\n CREATE_OR_MODIFY_OBJECT_PARAMETER,\n MODIFY_OBJECT_PARAMETER,\n OntologyEntityTypeEnum,\n} from \"./api/types.js\";\nexport { wrapWithProxy } from \"./api/wrapWithProxy.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAkB,QAAQ,eAAe;AAElD,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SACEC,YAAY,EACZC,iCAAiC,EACjCC,wBAAwB,EACxBC,gCAAgC,EAChCC,wBAAwB,EACxBC,iCAAiC,EACjCC,wBAAwB,QACnB,uBAAuB;AAC9B,SAASC,wBAAwB,QAAQ,0BAA0B;AACnE,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,SAASC,6BAA6B,QAAQ,wCAAwC;AACtF,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SACEC,oBAAoB,EACpBC,0BAA0B,EAC1BC,YAAY,QACP,uBAAuB;AAC9B,SACEC,kBAAkB,EAClBC,cAAc,EACdC,wBAAwB,QACnB,yBAAyB;AAChC,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,SAASC,oBAAoB,QAAQ,+BAA+B;AACpE,SAASC,WAAW,QAAQ,kCAAkC;AAwB9D,SACEC,iCAAiC,EACjCC,uBAAuB,EACvBC,sBAAsB,QACjB,gBAAgB;AACvB,SAASC,aAAa,QAAQ,wBAAwB","ignoreList":[]}
@@ -1,7 +1,8 @@
1
- import { type ActionLevelValidationDefinition, type ActionType, type ActionTypeDefinition, type InterfaceType, type ObjectType } from "./types.js";
2
- export declare function defineCreateInterfaceObjectAction(interfaceType: InterfaceType, objectType?: ObjectType, validation?: ActionLevelValidationDefinition): ActionType;
3
- export declare function defineCreateObjectAction(objectType: ObjectType, validation?: ActionLevelValidationDefinition): ActionType;
4
- export declare function defineModifyInterfaceObjectAction(interfaceType: InterfaceType, objectType?: ObjectType, validation?: ActionLevelValidationDefinition): ActionType;
5
- export declare function defineModifyObjectAction(objectType: ObjectType, validation?: ActionLevelValidationDefinition): ActionType;
6
- export declare function defineDeleteObjectAction(objectType: ObjectType, validation?: ActionLevelValidationDefinition): ActionType;
1
+ import { type ActionLevelValidationDefinition, type ActionType, type ActionTypeDefinition, type ActionTypeUserDefinition, type InterfaceType, type ObjectTypeDefinition } from "./types.js";
2
+ export declare function defineCreateInterfaceObjectAction(interfaceType: InterfaceType, objectType?: ObjectTypeDefinition, validation?: ActionLevelValidationDefinition): ActionType;
3
+ export declare function defineCreateObjectAction(def: ActionTypeUserDefinition): ActionType;
4
+ export declare function defineModifyInterfaceObjectAction(interfaceType: InterfaceType, objectType?: ObjectTypeDefinition, validation?: ActionLevelValidationDefinition): ActionType;
5
+ export declare function defineModifyObjectAction(def: ActionTypeUserDefinition): ActionType;
6
+ export declare function defineDeleteObjectAction(def: ActionTypeUserDefinition): ActionType;
7
+ export declare function defineCreateOrModifyObjectAction(def: ActionTypeUserDefinition): ActionType;
7
8
  export declare function defineAction(actionDef: ActionTypeDefinition): ActionType;
@@ -1 +1 @@
1
- {"mappings":"AA0BA,cACO,sCAKA,iBACA,2BAGA,oBAEA,kBAKA,YAAa;AAEpB,OAAO,iBAAS,kCACdA,eAAe,eACfC,aAAa,YACbC,aAAa,kCACZ;AAkGH,OAAO,iBAAS,yBACdC,YAAY,YACZD,aAAa,kCACZ;AAgEH,OAAO,iBAAS,kCACdF,eAAe,eACfC,aAAa,YACbC,aAAa,kCACZ;AA8FH,OAAO,iBAAS,yBACdC,YAAY,YACZD,aAAa,kCACZ;AAqFH,OAAO,iBAAS,yBACdC,YAAY,YACZD,aAAa,kCACZ;AA6CH,OAAO,iBAAS,aAAaE,WAAW,uBAAuB","names":["interfaceType: InterfaceType","objectType?: ObjectType","validation?: ActionLevelValidationDefinition","objectType: ObjectType","actionDef: ActionTypeDefinition"],"sources":["../../../src/api/defineAction.ts"],"version":3,"file":"defineAction.d.ts"}
1
+ {"mappings":"AAmCA,cACO,sCAKA,iBACA,2BACA,+BAIA,oBAIA,4BAKA,YAAa;AAEpB,OAAO,iBAAS,kCACdA,eAAe,eACfC,aAAa,sBACbC,aAAa,kCACZ;AAkGH,OAAO,iBAAS,yBACdC,KAAK,2BACJ;AAiFH,OAAO,iBAAS,kCACdH,eAAe,eACfC,aAAa,sBACbC,aAAa,kCACZ;AA8FH,OAAO,iBAAS,yBACdC,KAAK,2BACJ;AA2GH,OAAO,iBAAS,yBACdA,KAAK,2BACJ;AA4CH,OAAO,iBAAS,iCACdA,KAAK,2BACJ;AA8GH,OAAO,iBAAS,aAAaC,WAAW,uBAAuB","names":["interfaceType: InterfaceType","objectType?: ObjectTypeDefinition","validation?: ActionLevelValidationDefinition","def: ActionTypeUserDefinition","actionDef: ActionTypeDefinition"],"sources":["../../../src/api/defineAction.ts"],"version":3,"file":"defineAction.d.ts"}
@@ -1,5 +1,5 @@
1
- import type { InterfacePropertyType, InterfaceType, ObjectType, ObjectTypeDefinition, PropertyTypeType, PropertyTypeTypeExotic } from "./types.js";
2
- export declare function defineObject(objectDef: ObjectTypeDefinition): ObjectType;
1
+ import type { InterfacePropertyType, InterfaceType, ObjectTypeDefinition, PropertyTypeType, PropertyTypeTypeExotic } from "./types.js";
2
+ export declare function defineObject(objectDef: ObjectTypeDefinition): ObjectTypeDefinition;
3
3
  export declare function isExotic(type: PropertyTypeType | undefined): type is PropertyTypeTypeExotic;
4
4
  export declare function convertToDisplayName(s: string | undefined | null): string;
5
5
  export declare function convertToPluralDisplayName(s: string | undefined | null): string;
@@ -1 +1 @@
1
- {"mappings":"AAuBA,cACE,uBACA,eAGA,YACA,sBACA,kBACA,8BAEK,YAAa;AAWpB,OAAO,iBAAS,aACdA,WAAW,uBACV;AAgJH,OAAO,iBAAS,SACdC,MAAM,+BACL,QAAQ;AA+CX,OAAO,iBAAS,qBAAqBC;AAOrC,OAAO,iBAAS,2BACdA;AASF,OAAO,iBAAS,0BACdC,eAAe,gBACd,eAAe","names":["objectDef: ObjectTypeDefinition","type: PropertyTypeType | undefined","s: string | undefined | null","interfaceType: InterfaceType"],"sources":["../../../src/api/defineObject.ts"],"version":3,"file":"defineObject.d.ts"}
1
+ {"mappings":"AAuBA,cACE,uBACA,eAIA,sBACA,kBACA,8BAEK,YAAa;AAWpB,OAAO,iBAAS,aACdA,WAAW,uBACV;AAiJH,OAAO,iBAAS,SACdC,MAAM,+BACL,QAAQ;AA+CX,OAAO,iBAAS,qBAAqBC;AAOrC,OAAO,iBAAS,2BACdA;AASF,OAAO,iBAAS,0BACdC,eAAe,gBACd,eAAe","names":["objectDef: ObjectTypeDefinition","type: PropertyTypeType | undefined","s: string | undefined | null","interfaceType: InterfaceType"],"sources":["../../../src/api/defineObject.ts"],"version":3,"file":"defineObject.d.ts"}
@@ -1,5 +1,5 @@
1
- import type { OntologyIr, OntologyIrValueTypeBlockData } from "@osdk/client.unstable";
2
- import type { OntologyEntityType } from "./types.js";
1
+ import type { OntologyIr, OntologyIrAllowedParameterValues, OntologyIrValueTypeBlockData } from "@osdk/client.unstable";
2
+ import type { ActionParameterAllowedValues, OntologyEntityType } from "./types.js";
3
3
  type OntologyAndValueTypeIrs = {
4
4
  ontology: OntologyIr
5
5
  valueType: OntologyIrValueTypeBlockData
@@ -9,6 +9,7 @@ export declare function defineOntology(ns: string, body: () => void | Promise<vo
9
9
  export declare function writeStaticObjects(outputDir: string): void;
10
10
  export declare function dumpOntologyFullMetadata(): OntologyIr;
11
11
  export declare function dumpValueTypeWireType(): OntologyIrValueTypeBlockData;
12
+ export declare function extractAllowedValues(allowedValues: ActionParameterAllowedValues): OntologyIrAllowedParameterValues;
12
13
  export declare function sanitize(namespace: string, s: string): string;
13
14
  export declare function extractNamespace(apiName: string): string;
14
15
  export declare function withoutNamespace(apiName: string): string;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAGE,YAqBA,oCAQK,uBAAwB;AAmB/B,cAUE,0BAEK,YAAa;KAkBf,0BAA0B;CAC7B,UAAU;CACV,WAAW;AACZ;AAED,OAAO,iBAAS,eACd,UAAU,oBAEVA,QAAQ;AAiBV,OAAO,iBAAe,eACpBC,YACAC,mBAAmB,eACnBC,+BACAC,0BACC,QAAQ;AA0CX,OAAO,iBAAS,mBAAmBC;AAmsBnC,OAAO,iBAAS,4BAA4B;AAI5C,OAAO,iBAAS,yBAAyB;AAiZzC,OAAO,iBAAS,SAASC,mBAAmBC;AAI5C,OAAO,iBAAS,iBAAiBC;AAIjC,OAAO,iBAAS,iBAAiBA;AA8CjC,OAAO,iBAAS,mBAAmBA","names":["entity: T","ns: string","body: () => void | Promise<void>","outputDir: string | undefined","dependencyFile?: string","outputDir: string","namespace: string","s: string","apiName: string"],"sources":["../../../src/api/defineOntology.ts"],"version":3,"file":"defineOntology.d.ts"}
1
+ {"mappings":"AAgBA,cAGE,YAGA,kCAkBA,oCAQK,uBAAwB;AAqB/B,cAEE,8BASA,0BAEK,YAAa;KAkBf,0BAA0B;CAC7B,UAAU;CACV,WAAW;AACZ;AAED,OAAO,iBAAS,eACd,UAAU,oBAEVA,QAAQ;AAiBV,OAAO,iBAAe,eACpBC,YACAC,mBAAmB,eACnBC,+BACAC,0BACC,QAAQ;AA0CX,OAAO,iBAAS,mBAAmBC;AAysBnC,OAAO,iBAAS,4BAA4B;AAI5C,OAAO,iBAAS,yBAAyB;AA2RzC,OAAO,iBAAS,qBACdC,eAAe,+BACd;AAqLH,OAAO,iBAAS,SAASC,mBAAmBC;AAI5C,OAAO,iBAAS,iBAAiBC;AAIjC,OAAO,iBAAS,iBAAiBA;AA8CjC,OAAO,iBAAS,mBAAmBA","names":["entity: T","ns: string","body: () => void | Promise<void>","outputDir: string | undefined","dependencyFile?: string","outputDir: string","allowedValues: ActionParameterAllowedValues","namespace: string","s: string","apiName: string"],"sources":["../../../src/api/defineOntology.ts"],"version":3,"file":"defineOntology.d.ts"}
@@ -1,4 +1,4 @@
1
- import type { ApiNameValueTypeReference, SharedPropertyTypeGothamMapping, Visibility } from "@osdk/client.unstable";
1
+ import type { SharedPropertyTypeGothamMapping, ValueTypeApiNameReference, Visibility } from "@osdk/client.unstable";
2
2
  import { type PropertyTypeType, type SharedPropertyType } from "./types.js";
3
3
  export interface SharedPropertyTypeDefinition {
4
4
  apiName: string;
@@ -6,7 +6,7 @@ export interface SharedPropertyTypeDefinition {
6
6
  array?: boolean;
7
7
  description?: string;
8
8
  displayName?: string;
9
- valueType?: ApiNameValueTypeReference;
9
+ valueType?: ValueTypeApiNameReference;
10
10
  visibility?: Visibility;
11
11
  typeClasses?: SharedPropertyType["typeClasses"];
12
12
  gothamMapping?: SharedPropertyTypeGothamMapping;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,2BACA,iCACA,kBACK,uBAAwB;AAa/B,cAEO,uBACA,0BACA,YAAa;AAEpB,iBAAiB,6BAA6B;CAC5C;CACA,MAAM;CACN;CACA;CACA;CACA,YAAY;CACZ,aAAa;CACb,cAAc,mBAAmB;CACjC,gBAAgB;AACjB;AAED,OAAO,iBAAS,yBACdA,QAAQ,+BACP","names":["sptDef: SharedPropertyTypeDefinition"],"sources":["../../../src/api/defineSpt.ts"],"version":3,"file":"defineSpt.d.ts"}
1
+ {"mappings":"AAgBA,cACE,iCACA,2BACA,kBACK,uBAAwB;AAa/B,cAEO,uBACA,0BACA,YAAa;AAEpB,iBAAiB,6BAA6B;CAC5C;CACA,MAAM;CACN;CACA;CACA;CACA,YAAY;CACZ,aAAa;CACb,cAAc,mBAAmB;CACjC,gBAAgB;AACjB;AAED,OAAO,iBAAS,yBACdA,QAAQ,+BACP","names":["sptDef: SharedPropertyTypeDefinition"],"sources":["../../../src/api/defineSpt.ts"],"version":3,"file":"defineSpt.d.ts"}
@@ -1,5 +1,8 @@
1
- import type { OntologyIrCondition, OntologyIrConditionalOverride, ParameterVisibility } from "@osdk/client.unstable";
2
- import type { ActionParameterConditionalOverride, ActionParameterValidation, ConditionDefinition } from "./types.js";
1
+ import type { OntologyIrCondition, OntologyIrConditionalOverride, OntologyIrFormContent, OntologyIrLogicRuleValue, OntologyIrSectionConditionalOverride, ParameterVisibility } from "@osdk/client.unstable";
2
+ import type { ActionParameterConditionalOverride, ActionParameterValidation, ActionType, ConditionDefinition, MappingValue, SectionConditionalOverride } from "./types.js";
3
3
  export declare function convertActionVisibility(visibility: "editable" | "disabled" | "hidden" | undefined): ParameterVisibility;
4
4
  export declare function convertActionParameterConditionalOverride(override: ActionParameterConditionalOverride, validation: ActionParameterValidation): OntologyIrConditionalOverride;
5
+ export declare function convertSectionConditionalOverride(override: SectionConditionalOverride, defaultVisibility: "visible" | "hidden"): OntologyIrSectionConditionalOverride;
5
6
  export declare function convertConditionDefinition(condition: ConditionDefinition): OntologyIrCondition;
7
+ export declare function getFormContentOrdering(action: ActionType, parameterOrdering: string[]): OntologyIrFormContent[];
8
+ export declare function convertMappingValue(value: MappingValue): OntologyIrLogicRuleValue;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,qBACA,+BAEA,2BACK,uBAAwB;AAE/B,cACE,oCACA,2BACA,2BACK,YAAa;AAEpB,OAAO,iBAAS,wBACdA,YAAY,aAAa,aAAa,uBACrC;AAyBH,OAAO,iBAAS,0CACdC,UAAU,oCACVC,YAAY,4BACX;AA4DH,OAAO,iBAAS,2BACdC,WAAW,sBACV","names":["visibility: \"editable\" | \"disabled\" | \"hidden\" | undefined","override: ActionParameterConditionalOverride","validation: ActionParameterValidation","condition: ConditionDefinition"],"sources":["../../../src/api/ontologyUtils.ts"],"version":3,"file":"ontologyUtils.d.ts"}
1
+ {"mappings":"AAgBA,cACE,qBACA,+BACA,uBACA,0BAEA,sCACA,2BACK,uBAAwB;AAI/B,cACE,oCACA,2BACA,YACA,qBACA,cACA,kCACK,YAAa;AAEpB,OAAO,iBAAS,wBACdA,YAAY,aAAa,aAAa,uBACrC;AAyBH,OAAO,iBAAS,0CACdC,UAAU,oCACVC,YAAY,4BACX;AA4EH,OAAO,iBAAS,kCACdC,UAAU,4BACVC,mBAAmB,YAAY,WAC9B;AAsBH,OAAO,iBAAS,2BACdC,WAAW,sBACV;AA4EH,OAAO,iBAAS,uBACdC,QAAQ,YACRC,8BACC;AA8BH,OAAO,iBAAS,oBACdC,OAAO,eACN","names":["visibility: \"editable\" | \"disabled\" | \"hidden\" | undefined","override: ActionParameterConditionalOverride","validation: ActionParameterValidation","override: SectionConditionalOverride","defaultVisibility: \"visible\" | \"hidden\"","condition: ConditionDefinition","action: ActionType","parameterOrdering: string[]","value: MappingValue"],"sources":["../../../src/api/ontologyUtils.ts"],"version":3,"file":"ontologyUtils.d.ts"}
@@ -1,4 +1,4 @@
1
- import type { ActionTypeApiName, ActionTypeStatus_deprecated, ApiNameValueTypeReference, BaseType, DataConstraint, ExampleValue, FailureMessage, ImportedTypes, InterfaceTypeApiName, InterfaceTypeStatus, LinkTypeDisplayMetadata, LinkTypeMetadata, OntologyIrActionTypeEntities, OntologyIrBaseParameterType_decimal, OntologyIrBaseParameterType_decimalList, OntologyIrBaseParameterType_interfaceReference, OntologyIrBaseParameterType_interfaceReferenceList, OntologyIrBaseParameterType_objectReference, OntologyIrBaseParameterType_objectReferenceList, OntologyIrBaseParameterType_objectSetRid, OntologyIrBaseParameterType_objectTypeReference, OntologyIrBaseParameterType_struct, OntologyIrBaseParameterType_structList, OntologyIrBaseParameterType_timestamp, OntologyIrBaseParameterType_timestampList, OntologyIrCondition, OntologyIrConditionValue, OntologyIrFormContent, OntologyIrLabelledValue, OntologyIrLinkTypeStatus, OntologyIrLogicRule, OntologyIrMarketplaceInterfaceType, OntologyIrObjectType, OntologyIrParameterDateRangeValue, OntologyIrPropertyType, OntologyIrValidationRule, ParameterId, SectionId, SharedPropertyTypeGothamMapping, StructFieldType, ValidationRuleDisplayMetadata, ValueTypeApiName, ValueTypeDataConstraint, ValueTypeDisplayMetadata, ValueTypeStatus, ValueTypeVersion, Visibility } from "@osdk/client.unstable";
1
+ import type { ActionTypeApiName, ActionTypeStatus_deprecated, BaseType, ButtonDisplayMetadata, DataConstraint, DisplayMetadataConfigurationDefaultLayout, DisplayMetadataConfigurationDisplayAndFormat, ExampleValue, FailureMessage, ImportedTypes, InterfaceTypeApiName, InterfaceTypeStatus, LinkTypeDisplayMetadata, LinkTypeMetadata, OntologyIrActionTypeEntities, OntologyIrBaseParameterType_decimal, OntologyIrBaseParameterType_decimalList, OntologyIrBaseParameterType_interfaceReference, OntologyIrBaseParameterType_interfaceReferenceList, OntologyIrBaseParameterType_objectReference, OntologyIrBaseParameterType_objectReferenceList, OntologyIrBaseParameterType_objectSetRid, OntologyIrBaseParameterType_objectTypeReference, OntologyIrBaseParameterType_struct, OntologyIrBaseParameterType_structList, OntologyIrBaseParameterType_timestamp, OntologyIrBaseParameterType_timestampList, OntologyIrCondition, OntologyIrConditionValue, OntologyIrFormContent, OntologyIrLabelledValue, OntologyIrLinkTypeStatus, OntologyIrLogicRule, OntologyIrLogicRuleValue_interfaceParameterPropertyValue, OntologyIrLogicRuleValue_objectParameterPropertyValue, OntologyIrLogicRuleValue_parameterId, OntologyIrLogicRuleValue_staticValue, OntologyIrLogicRuleValue_synchronousWebhookOutput, OntologyIrMarketplaceInterfaceType, OntologyIrObjectType, OntologyIrParameterDateRangeValue, OntologyIrParameterPrefill, OntologyIrPropertyType, OntologyIrValidationRule, ParameterId, SectionId, SharedPropertyTypeGothamMapping, StructFieldType, ValidationRuleDisplayMetadata, ValueTypeApiName, ValueTypeApiNameReference, ValueTypeDataConstraint, ValueTypeDisplayMetadata, ValueTypeStatus, ValueTypeVersion, Visibility } from "@osdk/client.unstable";
2
2
  import type { OntologyFullMetadata } from "@osdk/foundry.ontologies";
3
3
  import type { BlueprintIcon } from "./iconNames.js";
4
4
  export interface Ontology extends Omit<OntologyFullMetadata, "ontology" | "sharedPropertyTypes" | "interfaceTypes" | "objectTypes" | "actionTypes"> {
@@ -38,6 +38,25 @@ export type ActionType = OntologyEntityBase & RequiredFields<Partial<ActionTypeI
38
38
  __type: OntologyEntityTypeEnum.ACTION_TYPE
39
39
  };
40
40
  export type ActionTypeDefinition = Omit<ActionType, "__type">;
41
+ export type ActionTypeUserDefinition = {
42
+ objectType: ObjectTypeDefinition
43
+ apiName?: string
44
+ displayName?: string
45
+ status?: ActionStatus
46
+ parameterConfiguration?: Record<string, ActionParameterConfiguration>
47
+ nonParameterMappings?: Record<string, MappingValue>
48
+ actionLevelValidation?: ActionLevelValidationDefinition
49
+ excludedProperties?: Array<ParameterId>
50
+ sections?: Array<ActionSection>
51
+ defaultFormat?: DisplayMetadataConfigurationDefaultLayout
52
+ enableLayoutSwitch?: boolean
53
+ displayAndFormat?: DisplayMetadataConfigurationDisplayAndFormat
54
+ parameterOrdering?: Array<string>
55
+ submissionMetadata?: SubmissionMetadata
56
+ primaryKeyOption?: "autoGenerated" | "userInput"
57
+ };
58
+ export declare const MODIFY_OBJECT_PARAMETER: string;
59
+ export declare const CREATE_OR_MODIFY_OBJECT_PARAMETER: string;
41
60
  export interface ActionParameter {
42
61
  id: ParameterId;
43
62
  displayName: string;
@@ -45,19 +64,55 @@ export interface ActionParameter {
45
64
  validation: ActionParameterValidation;
46
65
  description?: string;
47
66
  typeClasses?: Array<TypeClass>;
67
+ defaultValue?: OntologyIrParameterPrefill;
48
68
  }
49
- export interface ActionParameterValidation {
50
- allowedValues: ActionParameterAllowedValues;
51
- required: ActionParameterRequirementConstraint;
69
+ export type ActionParameterValidation = Omit<ActionParameterConfiguration, "displayName" | "defaultValue">;
70
+ export interface ActionParameterConfiguration {
71
+ allowedValues?: ActionParameterAllowedValues;
72
+ required?: ActionParameterRequirementConstraint;
52
73
  defaultVisibility?: "editable" | "disabled" | "hidden";
53
74
  conditionalOverrides?: Array<ActionParameterConditionalOverride>;
75
+ defaultValue?: OntologyIrParameterPrefill;
76
+ displayName?: string;
77
+ description?: string;
78
+ customParameterType?: ActionParameterType;
54
79
  }
80
+ export type ActionSection = {
81
+ id: string
82
+ displayName: string
83
+ parameters: Array<string>
84
+ defaultVisibility?: "visible" | "hidden"
85
+ description?: string
86
+ columnCount?: 1 | 2
87
+ showTitleBar?: boolean
88
+ collapsedByDefault?: boolean
89
+ style?: "box" | "minimal"
90
+ conditionalOverrides?: Array<SectionConditionalOverride>
91
+ };
92
+ export type SubmissionMetadata = {
93
+ submitButtonDisplayMetadata?: ButtonDisplayMetadata
94
+ successMessage: string
95
+ undoButtonConfiguration?: boolean
96
+ };
97
+ export type MappingValue = CustomMapping | UuidMappingValue | CurrentTimeMappingValue | CurrentUserMappingValue;
98
+ export type UuidMappingValue = {
99
+ type: "uuid"
100
+ linkId?: string
101
+ };
102
+ export type CurrentTimeMappingValue = {
103
+ type: "currentTime"
104
+ };
105
+ export type CurrentUserMappingValue = {
106
+ type: "currentUser"
107
+ };
108
+ export type CustomMapping = OntologyIrLogicRuleValue_parameterId | OntologyIrLogicRuleValue_staticValue | OntologyIrLogicRuleValue_objectParameterPropertyValue | OntologyIrLogicRuleValue_interfaceParameterPropertyValue | OntologyIrLogicRuleValue_synchronousWebhookOutput;
55
109
  export type ConditionDefinition = UnionCondition | OntologyIrCondition | GroupValidationRule | ParameterValidationRule;
56
110
  export type UnionCondition = {
57
111
  type: "and" | "or"
58
112
  conditions: Array<ConditionDefinition>
59
113
  };
60
- export type ActionParameterConditionalOverride = VisibilityOverride | DisabledOverride | RequiredOverride;
114
+ export type ActionParameterConditionalOverride = VisibilityOverride | DisabledOverride | RequiredOverride | DefaultValueOverride | ConstraintOverride;
115
+ export type SectionConditionalOverride = VisibilityOverride;
61
116
  export type VisibilityOverride = {
62
117
  type: "visibility"
63
118
  condition: ConditionDefinition
@@ -70,6 +125,16 @@ export type RequiredOverride = {
70
125
  type: "required"
71
126
  condition: ConditionDefinition
72
127
  };
128
+ export type DefaultValueOverride = {
129
+ type: "defaultValue"
130
+ condition: ConditionDefinition
131
+ defaultValue: OntologyIrParameterPrefill
132
+ };
133
+ export type ConstraintOverride = {
134
+ type: "constraint"
135
+ condition: ConditionDefinition
136
+ constraint: ActionParameterAllowedValues
137
+ };
73
138
  export type ActionParameterRequirementConstraint = boolean | {
74
139
  listLength: {
75
140
  min?: number
@@ -79,6 +144,7 @@ export type ActionParameterRequirementConstraint = boolean | {
79
144
  export type ActionParameterAllowedValues = {
80
145
  type: "oneOf"
81
146
  oneOf: Array<OntologyIrLabelledValue>
147
+ otherValueAllowed?: boolean
82
148
  } | {
83
149
  type: "range"
84
150
  min?: OntologyIrConditionValue
@@ -134,12 +200,17 @@ export interface ActionTypeInner {
134
200
  };
135
201
  parameters: Array<ActionParameter>;
136
202
  rules: Array<OntologyIrLogicRule>;
137
- sections: Record<SectionId, Array<ParameterId>>;
203
+ sections: Record<SectionId, ActionSection>;
138
204
  status: ActionStatus;
139
205
  entities: OntologyIrActionTypeEntities;
206
+ parameterOrdering: Array<string>;
140
207
  formContentOrdering: Array<OntologyIrFormContent>;
141
208
  validation: Array<OntologyIrValidationRule>;
142
209
  typeClasses: Array<TypeClass>;
210
+ defaultFormat: DisplayMetadataConfigurationDefaultLayout;
211
+ enableLayoutSwitch: boolean;
212
+ displayAndFormat: DisplayMetadataConfigurationDisplayAndFormat;
213
+ submissionMetadata: SubmissionMetadata;
143
214
  }
144
215
  export type ActionValidationRule = OntologyIrValidationRule;
145
216
  export type ActionLevelValidationDefinition = {
@@ -246,7 +317,7 @@ export interface PropertyType {
246
317
  array?: boolean;
247
318
  description?: string;
248
319
  displayName?: string;
249
- valueType?: ApiNameValueTypeReference;
320
+ valueType?: ValueTypeApiNameReference;
250
321
  visibility?: Visibility;
251
322
  typeClasses?: TypeClass[];
252
323
  nullability?: Nullability;
@@ -316,7 +387,7 @@ export interface OneToManyLinkTypeDefinition {
316
387
  redacted?: boolean;
317
388
  }
318
389
  export interface OneToManyObjectLinkReference {
319
- object: ObjectType;
390
+ object: ObjectTypeDefinition;
320
391
  metadata: LinkTypeMetadata;
321
392
  }
322
393
  export interface OneToManyLinkTypeUserDefinition {
@@ -327,7 +398,7 @@ export interface OneToManyLinkTypeUserDefinition {
327
398
  cardinality?: "OneToMany" | "OneToOne" | undefined;
328
399
  }
329
400
  export interface OneToManyObjectLinkReferenceUserDefinition {
330
- object: ObjectType;
401
+ object: ObjectTypeDefinition;
331
402
  metadata: LinkTypeMetadataUserDefinition;
332
403
  }
333
404
  export interface ManyToManyLinkTypeDefinition {
@@ -339,7 +410,7 @@ export interface ManyToManyLinkTypeDefinition {
339
410
  redacted?: boolean;
340
411
  }
341
412
  export interface ManyToManyObjectLinkReference {
342
- object: ObjectType;
413
+ object: ObjectTypeDefinition;
343
414
  metadata: LinkTypeMetadata;
344
415
  }
345
416
  export interface ManyToManyLinkTypeUserDefinition {
@@ -348,7 +419,7 @@ export interface ManyToManyLinkTypeUserDefinition {
348
419
  toMany: ManyToManyObjectLinkReferenceUserDefinition;
349
420
  }
350
421
  export interface ManyToManyObjectLinkReferenceUserDefinition {
351
- object: ObjectType;
422
+ object: ObjectTypeDefinition;
352
423
  metadata: LinkTypeMetadataUserDefinition;
353
424
  }
354
425
  export interface LinkTypeMetadataUserDefinition {
@@ -557,6 +628,6 @@ export interface ObjectTypeDatasourceDefinition_restrictedView {
557
628
  type: "restrictedView";
558
629
  }
559
630
  export type ObjectTypeDatasourceDefinition = ObjectTypeDatasourceDefinition_stream | ObjectTypeDatasourceDefinition_dataset | ObjectTypeDatasourceDefinition_restrictedView;
560
- export type ActionParameterTypePrimitive = "boolean" | "booleanList" | "integer" | "integerList" | "long" | "longList" | "double" | "doubleList" | "string" | "stringList" | "decimal" | "decimalList" | "timestamp" | "timestampList" | "geohash" | "geohashList" | "geoshape" | "geoshapeList" | "timeSeriesReference" | "date" | "dateList" | "objectTypeReference" | "objectReference" | "attachment" | "attachmentList" | "marking" | "markingList" | "mediaReference" | "mediaReferenceList" | "geotimeSeriesReference" | "geotimeSeriesReferenceList";
631
+ export type ActionParameterTypePrimitive = "boolean" | "booleanList" | "integer" | "integerList" | "long" | "longList" | "double" | "doubleList" | "string" | "stringList" | "decimal" | "decimalList" | "timestamp" | "timestampList" | "geohash" | "geohashList" | "geoshape" | "geoshapeList" | "timeSeriesReference" | "date" | "dateList" | "objectTypeReference" | "attachment" | "attachmentList" | "marking" | "markingList" | "mediaReference" | "mediaReferenceList" | "geotimeSeriesReference" | "geotimeSeriesReferenceList";
561
632
  export type ActionParameterTypeComplex = OntologyIrBaseParameterType_decimal | OntologyIrBaseParameterType_decimalList | OntologyIrBaseParameterType_timestamp | OntologyIrBaseParameterType_timestampList | OntologyIrBaseParameterType_objectReference | OntologyIrBaseParameterType_objectReferenceList | OntologyIrBaseParameterType_objectSetRid | OntologyIrBaseParameterType_objectTypeReference | OntologyIrBaseParameterType_objectReference | OntologyIrBaseParameterType_interfaceReference | OntologyIrBaseParameterType_interfaceReferenceList | OntologyIrBaseParameterType_struct | OntologyIrBaseParameterType_structList;
562
633
  export type ActionParameterType = ActionParameterTypePrimitive | ActionParameterTypeComplex;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,mBACA,6BACA,2BACA,UACA,gBACA,cACA,gBACA,eACA,sBACA,qBACA,yBACA,kBACA,8BACA,qCACA,yCACA,gDACA,oDACA,6CACA,iDACA,0CACA,iDACA,oCACA,wCACA,uCACA,2CACA,qBACA,0BACA,uBACA,yBACA,0BACA,qBACA,oCACA,sBACA,mCACA,wBACA,0BACA,aACA,WACA,iCACA,iBACA,+BACA,kBACA,yBACA,0BACA,iBACA,kBACA,kBACK,uBAAwB;AAE/B,cAAc,4BAA4B,0BAA2B;AACrE,cAAc,qBAAqB,gBAAiB;AAEpD,iBAAiB,iBACf,KACE,sBACE,aACA,wBACA,mBACA,gBACA,eAEN;CACE,gBAAgB,eAAe;CAC/B,qBAAqB,eAAe;CACpC,aAAa,eAAe;CAC5B,YAAY,eAAe;CAC3B,WAAW,eAAe;CAC1B,aAAa,eAAe;CAC5B,eAAe;AAChB;AAED,iBAAiB,mBAAmB;CAClC,QAAQ;CACR;AACD;AAED,oBAAY,uBAAuB;CACjC;CACA;CACA;CACA;CACA;CACA;AACD;AACD,iBAAiB,0BAA0B;EACxC,uBAAuB,cAAc;EACrC,uBAAuB,cAAc;EACrC,uBAAuB,YAAY;EACnC,uBAAuB,iBAAiB;EACxC,uBAAuB,uBAAuB;EAC9C,uBAAuB,aAAa;AACtC;AAED,YAAY,wBAEP,KAAK,QAAQ,wBAAwB,iBAAgB,eAEpD,0BAA0B,QAG5B;CACA,YAAY,eAAe;AAC5B;AAEH,YAAY,qBACV,gCAAgC;AAElC,YAAY,aACR,qBACA,eAC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WACA,eACA,WACA,eACA,YACA,gBACA,cACA,kBACA,YACA,gBACA,aACA,iBACA,wBACA,SACA,aACA,wBACA,oBACA,eACA,mBACA,YACA,gBACA,mBACA,uBACA,2BACA;AAEJ,YAAY,6BACR,sCACA,0CACA,wCACA,4CACA,8CACA,kDACA,2CACA,kDACA,8CACA,iDACA,qDACA,qCACA;AAEJ,YAAY,sBACR,+BACA","names":[],"sources":["../../../src/api/types.ts"],"version":3,"file":"types.d.ts"}
1
+ {"mappings":"AAgBA,cACE,mBACA,6BACA,UACA,uBACA,gBACA,2CACA,8CACA,cACA,gBACA,eACA,sBACA,qBACA,yBACA,kBACA,8BACA,qCACA,yCACA,gDACA,oDACA,6CACA,iDACA,0CACA,iDACA,oCACA,wCACA,uCACA,2CACA,qBACA,0BACA,uBACA,yBACA,0BACA,qBACA,0DACA,uDACA,sCACA,sCACA,mDACA,oCACA,sBACA,mCACA,4BACA,wBACA,0BACA,aACA,WACA,iCACA,iBACA,+BACA,kBACA,2BACA,yBACA,0BACA,iBACA,kBACA,kBACK,uBAAwB;AAE/B,cAAc,4BAA4B,0BAA2B;AACrE,cAAc,qBAAqB,gBAAiB;AAEpD,iBAAiB,iBACf,KACE,sBACE,aACA,wBACA,mBACA,gBACA,eAEN;CACE,gBAAgB,eAAe;CAC/B,qBAAqB,eAAe;CACpC,aAAa,eAAe;CAC5B,YAAY,eAAe;CAC3B,WAAW,eAAe;CAC1B,aAAa,eAAe;CAC5B,eAAe;AAChB;AAED,iBAAiB,mBAAmB;CAClC,QAAQ;CACR;AACD;AAED,oBAAY,uBAAuB;CACjC;CACA;CACA;CACA;CACA;CACA;AACD;AACD,iBAAiB,0BAA0B;EACxC,uBAAuB,cAAc;EACrC,uBAAuB,cAAc;EACrC,uBAAuB,YAAY;EACnC,uBAAuB,iBAAiB;EACxC,uBAAuB,uBAAuB;EAC9C,uBAAuB,aAAa;AACtC;AAED,YAAY,wBAEP,KAAK,QAAQ,wBAAwB,iBAAgB,eAEpD,0BAA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A,2CACA,kDACA,8CACA,iDACA,qDACA,qCACA;AAEJ,YAAY,sBACR,+BACA","names":["MODIFY_OBJECT_PARAMETER: string","CREATE_OR_MODIFY_OBJECT_PARAMETER: string"],"sources":["../../../src/api/types.ts"],"version":3,"file":"types.d.ts"}