@osdk/maker 0.15.0-beta.3 → 0.15.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/build/browser/api/action/ActionParameterAllowedValues.js.map +1 -1
- package/build/browser/api/defineAction.js +84 -3
- package/build/browser/api/defineAction.js.map +1 -1
- package/build/browser/api/defineDeleteObjectAction.js +3 -18
- package/build/browser/api/defineDeleteObjectAction.js.map +1 -1
- package/build/browser/api/defineOntology.js +41 -1
- package/build/browser/api/defineOntology.js.map +1 -1
- package/build/browser/api/test/actions.test.js +2129 -1318
- package/build/browser/api/test/actions.test.js.map +1 -1
- package/build/browser/cli/main.js +1 -1
- package/build/browser/conversion/toMarketplace/convertActionValidation.js +1 -1
- package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -1
- package/build/browser/index.js +1 -1
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +130 -23
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +16 -1
- package/build/esm/api/action/ActionParameterAllowedValues.js.map +1 -1
- package/build/esm/api/defineAction.js +84 -3
- package/build/esm/api/defineAction.js.map +1 -1
- package/build/esm/api/defineDeleteObjectAction.js +3 -18
- package/build/esm/api/defineDeleteObjectAction.js.map +1 -1
- package/build/esm/api/defineOntology.js +41 -1
- package/build/esm/api/defineOntology.js.map +1 -1
- package/build/esm/api/test/actions.test.js +2129 -1318
- package/build/esm/api/test/actions.test.js.map +1 -1
- package/build/esm/cli/main.js +1 -1
- package/build/esm/conversion/toMarketplace/convertActionValidation.js +1 -1
- package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/types/api/action/ActionParameterAllowedValues.d.ts +14 -0
- package/build/types/api/action/ActionParameterAllowedValues.d.ts.map +1 -1
- package/build/types/api/defineAction.d.ts +1 -0
- package/build/types/api/defineAction.d.ts.map +1 -1
- package/build/types/api/defineDeleteObjectAction.d.ts.map +1 -1
- package/build/types/api/defineOntology.d.ts +2 -2
- package/build/types/api/defineOntology.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/package.json +4 -4
package/build/esm/cli/main.js
CHANGED
|
@@ -24,7 +24,7 @@ import { defineOntology } from "../api/defineOntology.js";
|
|
|
24
24
|
const apiNamespaceRegex = /^[a-z0-9-]+(\.[a-z0-9-]+)*\.$/;
|
|
25
25
|
const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
26
26
|
export default async function main(args = process.argv) {
|
|
27
|
-
const commandLineOpts = await yargs(hideBin(args)).version("0.15.0-beta.
|
|
27
|
+
const commandLineOpts = await yargs(hideBin(args)).version("0.15.0-beta.4" ?? "").wrap(Math.min(150, yargs().terminalWidth())).strict().help().options({
|
|
28
28
|
input: {
|
|
29
29
|
alias: "i",
|
|
30
30
|
describe: "Input file",
|
|
@@ -36,7 +36,7 @@ export function convertActionValidation(action) {
|
|
|
36
36
|
return [p.id, {
|
|
37
37
|
defaultValidation: {
|
|
38
38
|
display: {
|
|
39
|
-
renderHint: renderHintFromBaseType(p),
|
|
39
|
+
renderHint: renderHintFromBaseType(p, p.validation),
|
|
40
40
|
visibility: convertActionVisibility(p.validation.defaultVisibility),
|
|
41
41
|
...(p.defaultValue && {
|
|
42
42
|
prefill: p.defaultValue
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertActionValidation.js","names":["extractAllowedValues","renderHintFromBaseType","convertActionParameterConditionalOverride","convertActionVisibility","convertSectionConditionalOverride","convertActionValidation","action","actionTypeLevelValidation","rules","Object","fromEntries","validation","condition","type","true","displayMetadata","failureMessage","typeClasses","map","rule","idx","parameterValidations","parameters","p","id","defaultValidation","display","renderHint","visibility","defaultVisibility","defaultValue","prefill","allowedValues","required","convertParameterRequirementConstraint","conditionalOverrides","override","sectionValidations","entries","sections","sectionId","section","defaultDisplayMetadata","hidden","visible","notRequired","min","max","listLength","listLengthValidation","minLength","maxLength"],"sources":["convertActionValidation.ts"],"sourcesContent":["/*\n * Copyright 2025 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 OntologyIrActionValidation,\n ParameterRequiredConfiguration,\n} from \"@osdk/client.unstable\";\nimport type { ActionParameterRequirementConstraint } from \"../../api/action/ActionParameterConfiguration.js\";\nimport type { ActionType } from \"../../api/action/ActionType.js\";\nimport {\n extractAllowedValues,\n renderHintFromBaseType,\n} from \"../../api/defineOntology.js\";\nimport { convertActionParameterConditionalOverride } from \"./convertActionParameterConditionalOverride.js\";\nimport { convertActionVisibility } from \"./convertActionVisibility.js\";\nimport { convertSectionConditionalOverride } from \"./convertSectionConditionalOverride.js\";\n\nexport function convertActionValidation(\n action: ActionType,\n): OntologyIrActionValidation {\n return {\n actionTypeLevelValidation: {\n rules: Object.fromEntries(\n (action.validation\n ?? [{\n condition: { type: \"true\", true: {} },\n displayMetadata: { failureMessage: \"\", typeClasses: [] },\n }]).map((rule, idx) => [idx, rule]),\n ),\n },\n parameterValidations: Object.fromEntries(\n (action.parameters ?? []).map(p => {\n return [\n p.id,\n {\n defaultValidation: {\n display: {\n renderHint: renderHintFromBaseType(p),\n visibility: convertActionVisibility(\n p.validation.defaultVisibility,\n ),\n ...p.defaultValue\n && { prefill: p.defaultValue },\n },\n validation: {\n allowedValues: extractAllowedValues(\n p.validation.allowedValues!,\n ),\n required: convertParameterRequirementConstraint(\n p.validation.required!,\n ),\n },\n },\n conditionalOverrides: p.validation.conditionalOverrides?.map(\n (override) =>\n convertActionParameterConditionalOverride(\n override,\n p.validation,\n action.parameters,\n ),\n ) ?? [],\n },\n ];\n }),\n ),\n sectionValidations: {\n ...Object.fromEntries(\n Object.entries(action.sections ?? {}).map((\n [sectionId, section],\n ) => [\n section.id,\n {\n defaultDisplayMetadata: section.defaultVisibility === \"hidden\"\n ? {\n visibility: {\n type: \"hidden\",\n hidden: {},\n },\n }\n : {\n visibility: {\n type: \"visible\",\n visible: {},\n },\n },\n conditionalOverrides: section.conditionalOverrides?.map(\n (override) =>\n convertSectionConditionalOverride(\n override,\n section.defaultVisibility ?? \"visible\",\n action.parameters,\n ),\n ) ?? [],\n },\n ]),\n ),\n },\n };\n}\n\nfunction convertParameterRequirementConstraint(\n required: ActionParameterRequirementConstraint,\n): ParameterRequiredConfiguration {\n if (typeof required === \"boolean\") {\n return required\n ? { type: \"required\", required: {} }\n : { type: \"notRequired\", notRequired: {} };\n }\n const { min, max } = required.listLength;\n return {\n type: \"listLengthValidation\",\n listLengthValidation: { minLength: min, maxLength: max },\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA,SACEA,oBAAoB,EACpBC,sBAAsB,QACjB,6BAA6B;AACpC,SAASC,yCAAyC,QAAQ,gDAAgD;AAC1G,SAASC,uBAAuB,QAAQ,8BAA8B;AACtE,SAASC,iCAAiC,QAAQ,wCAAwC;AAE1F,OAAO,SAASC,uBAAuBA,CACrCC,MAAkB,EACU;EAC5B,OAAO;IACLC,yBAAyB,EAAE;MACzBC,KAAK,EAAEC,MAAM,CAACC,WAAW,CACvB,CAACJ,MAAM,CAACK,UAAU,IACb,CAAC;QACFC,SAAS,EAAE;UAAEC,IAAI,EAAE,MAAM;UAAEC,IAAI,EAAE,CAAC;QAAE,CAAC;QACrCC,eAAe,EAAE;UAAEC,cAAc,EAAE,EAAE;UAAEC,WAAW,EAAE;QAAG;MACzD,CAAC,CAAC,EAAEC,GAAG,CAAC,CAACC,IAAI,EAAEC,GAAG,KAAK,CAACA,GAAG,EAAED,IAAI,CAAC,CACtC;IACF,CAAC;IACDE,oBAAoB,EAAEZ,MAAM,CAACC,WAAW,CACtC,CAACJ,MAAM,CAACgB,UAAU,IAAI,EAAE,EAAEJ,GAAG,CAACK,CAAC,IAAI;MACjC,OAAO,CACLA,CAAC,CAACC,EAAE,EACJ;QACEC,iBAAiB,EAAE;UACjBC,OAAO,EAAE;YACPC,UAAU,EAAE1B,sBAAsB,CAACsB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"convertActionValidation.js","names":["extractAllowedValues","renderHintFromBaseType","convertActionParameterConditionalOverride","convertActionVisibility","convertSectionConditionalOverride","convertActionValidation","action","actionTypeLevelValidation","rules","Object","fromEntries","validation","condition","type","true","displayMetadata","failureMessage","typeClasses","map","rule","idx","parameterValidations","parameters","p","id","defaultValidation","display","renderHint","visibility","defaultVisibility","defaultValue","prefill","allowedValues","required","convertParameterRequirementConstraint","conditionalOverrides","override","sectionValidations","entries","sections","sectionId","section","defaultDisplayMetadata","hidden","visible","notRequired","min","max","listLength","listLengthValidation","minLength","maxLength"],"sources":["convertActionValidation.ts"],"sourcesContent":["/*\n * Copyright 2025 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 OntologyIrActionValidation,\n ParameterRequiredConfiguration,\n} from \"@osdk/client.unstable\";\nimport type { ActionParameterRequirementConstraint } from \"../../api/action/ActionParameterConfiguration.js\";\nimport type { ActionType } from \"../../api/action/ActionType.js\";\nimport {\n extractAllowedValues,\n renderHintFromBaseType,\n} from \"../../api/defineOntology.js\";\nimport { convertActionParameterConditionalOverride } from \"./convertActionParameterConditionalOverride.js\";\nimport { convertActionVisibility } from \"./convertActionVisibility.js\";\nimport { convertSectionConditionalOverride } from \"./convertSectionConditionalOverride.js\";\n\nexport function convertActionValidation(\n action: ActionType,\n): OntologyIrActionValidation {\n return {\n actionTypeLevelValidation: {\n rules: Object.fromEntries(\n (action.validation\n ?? [{\n condition: { type: \"true\", true: {} },\n displayMetadata: { failureMessage: \"\", typeClasses: [] },\n }]).map((rule, idx) => [idx, rule]),\n ),\n },\n parameterValidations: Object.fromEntries(\n (action.parameters ?? []).map(p => {\n return [\n p.id,\n {\n defaultValidation: {\n display: {\n renderHint: renderHintFromBaseType(p, p.validation),\n visibility: convertActionVisibility(\n p.validation.defaultVisibility,\n ),\n ...p.defaultValue\n && { prefill: p.defaultValue },\n },\n validation: {\n allowedValues: extractAllowedValues(\n p.validation.allowedValues!,\n ),\n required: convertParameterRequirementConstraint(\n p.validation.required!,\n ),\n },\n },\n conditionalOverrides: p.validation.conditionalOverrides?.map(\n (override) =>\n convertActionParameterConditionalOverride(\n override,\n p.validation,\n action.parameters,\n ),\n ) ?? [],\n },\n ];\n }),\n ),\n sectionValidations: {\n ...Object.fromEntries(\n Object.entries(action.sections ?? {}).map((\n [sectionId, section],\n ) => [\n section.id,\n {\n defaultDisplayMetadata: section.defaultVisibility === \"hidden\"\n ? {\n visibility: {\n type: \"hidden\",\n hidden: {},\n },\n }\n : {\n visibility: {\n type: \"visible\",\n visible: {},\n },\n },\n conditionalOverrides: section.conditionalOverrides?.map(\n (override) =>\n convertSectionConditionalOverride(\n override,\n section.defaultVisibility ?? \"visible\",\n action.parameters,\n ),\n ) ?? [],\n },\n ]),\n ),\n },\n };\n}\n\nfunction convertParameterRequirementConstraint(\n required: ActionParameterRequirementConstraint,\n): ParameterRequiredConfiguration {\n if (typeof required === \"boolean\") {\n return required\n ? { type: \"required\", required: {} }\n : { type: \"notRequired\", notRequired: {} };\n }\n const { min, max } = required.listLength;\n return {\n type: \"listLengthValidation\",\n listLengthValidation: { minLength: min, maxLength: max },\n };\n}\n"],"mappings":"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","ignoreList":[]}
|
package/build/esm/index.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
export { default } from "./cli/main.js";
|
|
18
18
|
export { addDependency } from "./api/addDependency.js";
|
|
19
19
|
export { OntologyEntityTypeEnum } from "./api/common/OntologyEntityTypeEnum.js";
|
|
20
|
-
export { CREATE_INTERFACE_OBJECT_PARAMETER, CREATE_OR_MODIFY_OBJECT_PARAMETER, defineAction, MODIFY_INTERFACE_OBJECT_PARAMETER, MODIFY_OBJECT_PARAMETER } from "./api/defineAction.js";
|
|
20
|
+
export { CREATE_INTERFACE_OBJECT_PARAMETER, CREATE_OR_MODIFY_OBJECT_PARAMETER, defineAction, DELETE_OBJECT_PARAMETER, MODIFY_INTERFACE_OBJECT_PARAMETER, MODIFY_OBJECT_PARAMETER } from "./api/defineAction.js";
|
|
21
21
|
export { defineCreateInterfaceObjectAction } from "./api/defineCreateInterfaceObjectAction.js";
|
|
22
22
|
export { defineCreateObjectAction } from "./api/defineCreateObjectAction.js";
|
|
23
23
|
export { defineCreateOrModifyObjectAction } from "./api/defineCreateOrModifyObjectAction.js";
|
package/build/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","addDependency","OntologyEntityTypeEnum","CREATE_INTERFACE_OBJECT_PARAMETER","CREATE_OR_MODIFY_OBJECT_PARAMETER","defineAction","MODIFY_INTERFACE_OBJECT_PARAMETER","MODIFY_OBJECT_PARAMETER","defineCreateInterfaceObjectAction","defineCreateObjectAction","defineCreateOrModifyObjectAction","defineDeleteInterfaceObjectAction","defineDeleteObjectAction","defineInterface","defineInterfaceLinkConstraint","defineLink","defineModifyInterfaceObjectAction","defineModifyObjectAction","convertToPluralDisplayName","defineObject","uppercaseFirstLetter","convertToDisplayName","addNamespaceIfNone","defineOntology","dumpOntologyFullMetadata","defineSharedPropertyType","defineValueType","importOntologyEntity","importSharedPropertyType","wrapWithProxy","propertyTypeTypeToOntologyIrType","convertType"],"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 type { ActionParameterValidation } from \"./api/action/ActionParameter.js\";\nexport type {\n ActionParameterAllowedValues,\n} from \"./api/action/ActionParameterAllowedValues.js\";\nexport type { ActionParameterConditionalOverride } from \"./api/action/ActionParameterConditionalOverride.js\";\nexport type { ActionParameterConfiguration } from \"./api/action/ActionParameterConfiguration.js\";\nexport type { ActionSection } from \"./api/action/ActionSection.js\";\nexport type { ActionType } from \"./api/action/ActionType.js\";\nexport type { ConditionDefinition } from \"./api/action/ConditionDefinition.js\";\nexport type {\n CurrentTimeMappingValue,\n CurrentUserMappingValue,\n CustomMapping,\n MappingValue,\n UuidMappingValue,\n} from \"./api/action/MappingValue.js\";\nexport type { SectionConditionalOverride } from \"./api/action/SectionConditionalOverride.js\";\nexport type { SubmissionMetadata } from \"./api/action/SubmissionMetadata.js\";\nexport { addDependency } from \"./api/addDependency.js\";\nexport { OntologyEntityTypeEnum } from \"./api/common/OntologyEntityTypeEnum.js\";\nexport {\n CREATE_INTERFACE_OBJECT_PARAMETER,\n CREATE_OR_MODIFY_OBJECT_PARAMETER,\n defineAction,\n MODIFY_INTERFACE_OBJECT_PARAMETER,\n MODIFY_OBJECT_PARAMETER,\n} from \"./api/defineAction.js\";\nexport { defineCreateInterfaceObjectAction } from \"./api/defineCreateInterfaceObjectAction.js\";\nexport { defineCreateObjectAction } from \"./api/defineCreateObjectAction.js\";\nexport { defineCreateOrModifyObjectAction } from \"./api/defineCreateOrModifyObjectAction.js\";\nexport { defineDeleteInterfaceObjectAction } from \"./api/defineDeleteInterfaceObjectAction.js\";\nexport { defineDeleteObjectAction } from \"./api/defineDeleteObjectAction.js\";\nexport { defineInterface } from \"./api/defineInterface.js\";\nexport { defineInterfaceLinkConstraint } from \"./api/defineInterfaceLinkConstraint.js\";\nexport { defineLink } from \"./api/defineLink.js\";\nexport { defineModifyInterfaceObjectAction } from \"./api/defineModifyInterfaceObjectAction.js\";\nexport { defineModifyObjectAction } from \"./api/defineModifyObjectAction.js\";\nexport {\n convertToPluralDisplayName,\n defineObject,\n uppercaseFirstLetter as convertToDisplayName,\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 { importSharedPropertyType } from \"./api/importSharedPropertyType.js\";\nexport type { InterfaceType } from \"./api/interface/InterfaceType.js\";\nexport type { LinkType } from \"./api/links/LinkType.js\";\nexport type { ObjectPropertyType } from \"./api/object/ObjectPropertyType.js\";\nexport type { ObjectType } from \"./api/object/ObjectType.js\";\nexport type { PropertyTypeType } from \"./api/properties/PropertyTypeType.js\";\nexport type { SharedPropertyType } from \"./api/properties/SharedPropertyType.js\";\nexport type { ValueTypeDefinitionVersion } from \"./api/values/ValueTypeDefinitionVersion.js\";\nexport { wrapWithProxy } from \"./api/wrapWithProxy.js\";\nexport { propertyTypeTypeToOntologyIrType as convertType } from \"./conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAkB,QAAQ,eAAe;AAoBlD,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,sBAAsB,QAAQ,wCAAwC;AAC/E,SACEC,iCAAiC,EACjCC,iCAAiC,EACjCC,YAAY,EACZC,iCAAiC,EACjCC,uBAAuB,QAClB,uBAAuB;AAC9B,SAASC,iCAAiC,QAAQ,4CAA4C;AAC9F,SAASC,wBAAwB,QAAQ,mCAAmC;AAC5E,SAASC,gCAAgC,QAAQ,2CAA2C;AAC5F,SAASC,iCAAiC,QAAQ,4CAA4C;AAC9F,SAASC,wBAAwB,QAAQ,mCAAmC;AAC5E,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,SAASC,6BAA6B,QAAQ,wCAAwC;AACtF,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,iCAAiC,QAAQ,4CAA4C;AAC9F,SAASC,wBAAwB,QAAQ,mCAAmC;AAC5E,SACEC,0BAA0B,EAC1BC,YAAY,EACZC,oBAAoB,IAAIC,oBAAoB,QACvC,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,wBAAwB,QAAQ,mCAAmC;AAQ5E,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,gCAAgC,IAAIC,WAAW,QAAQ,gEAAgE","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","addDependency","OntologyEntityTypeEnum","CREATE_INTERFACE_OBJECT_PARAMETER","CREATE_OR_MODIFY_OBJECT_PARAMETER","defineAction","DELETE_OBJECT_PARAMETER","MODIFY_INTERFACE_OBJECT_PARAMETER","MODIFY_OBJECT_PARAMETER","defineCreateInterfaceObjectAction","defineCreateObjectAction","defineCreateOrModifyObjectAction","defineDeleteInterfaceObjectAction","defineDeleteObjectAction","defineInterface","defineInterfaceLinkConstraint","defineLink","defineModifyInterfaceObjectAction","defineModifyObjectAction","convertToPluralDisplayName","defineObject","uppercaseFirstLetter","convertToDisplayName","addNamespaceIfNone","defineOntology","dumpOntologyFullMetadata","defineSharedPropertyType","defineValueType","importOntologyEntity","importSharedPropertyType","wrapWithProxy","propertyTypeTypeToOntologyIrType","convertType"],"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 type { ActionParameterValidation } from \"./api/action/ActionParameter.js\";\nexport type {\n ActionParameterAllowedValues,\n} from \"./api/action/ActionParameterAllowedValues.js\";\nexport type { ActionParameterConditionalOverride } from \"./api/action/ActionParameterConditionalOverride.js\";\nexport type { ActionParameterConfiguration } from \"./api/action/ActionParameterConfiguration.js\";\nexport type { ActionSection } from \"./api/action/ActionSection.js\";\nexport type { ActionType } from \"./api/action/ActionType.js\";\nexport type { ConditionDefinition } from \"./api/action/ConditionDefinition.js\";\nexport type {\n CurrentTimeMappingValue,\n CurrentUserMappingValue,\n CustomMapping,\n MappingValue,\n UuidMappingValue,\n} from \"./api/action/MappingValue.js\";\nexport type { SectionConditionalOverride } from \"./api/action/SectionConditionalOverride.js\";\nexport type { SubmissionMetadata } from \"./api/action/SubmissionMetadata.js\";\nexport { addDependency } from \"./api/addDependency.js\";\nexport { OntologyEntityTypeEnum } from \"./api/common/OntologyEntityTypeEnum.js\";\nexport {\n CREATE_INTERFACE_OBJECT_PARAMETER,\n CREATE_OR_MODIFY_OBJECT_PARAMETER,\n defineAction,\n DELETE_OBJECT_PARAMETER,\n MODIFY_INTERFACE_OBJECT_PARAMETER,\n MODIFY_OBJECT_PARAMETER,\n} from \"./api/defineAction.js\";\nexport { defineCreateInterfaceObjectAction } from \"./api/defineCreateInterfaceObjectAction.js\";\nexport { defineCreateObjectAction } from \"./api/defineCreateObjectAction.js\";\nexport { defineCreateOrModifyObjectAction } from \"./api/defineCreateOrModifyObjectAction.js\";\nexport { defineDeleteInterfaceObjectAction } from \"./api/defineDeleteInterfaceObjectAction.js\";\nexport { defineDeleteObjectAction } from \"./api/defineDeleteObjectAction.js\";\nexport { defineInterface } from \"./api/defineInterface.js\";\nexport { defineInterfaceLinkConstraint } from \"./api/defineInterfaceLinkConstraint.js\";\nexport { defineLink } from \"./api/defineLink.js\";\nexport { defineModifyInterfaceObjectAction } from \"./api/defineModifyInterfaceObjectAction.js\";\nexport { defineModifyObjectAction } from \"./api/defineModifyObjectAction.js\";\nexport {\n convertToPluralDisplayName,\n defineObject,\n uppercaseFirstLetter as convertToDisplayName,\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 { importSharedPropertyType } from \"./api/importSharedPropertyType.js\";\nexport type { InterfaceType } from \"./api/interface/InterfaceType.js\";\nexport type { LinkType } from \"./api/links/LinkType.js\";\nexport type { ObjectPropertyType } from \"./api/object/ObjectPropertyType.js\";\nexport type { ObjectType } from \"./api/object/ObjectType.js\";\nexport type { PropertyTypeType } from \"./api/properties/PropertyTypeType.js\";\nexport type { SharedPropertyType } from \"./api/properties/SharedPropertyType.js\";\nexport type { ValueTypeDefinitionVersion } from \"./api/values/ValueTypeDefinitionVersion.js\";\nexport { wrapWithProxy } from \"./api/wrapWithProxy.js\";\nexport { propertyTypeTypeToOntologyIrType as convertType } from \"./conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAkB,QAAQ,eAAe;AAoBlD,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,sBAAsB,QAAQ,wCAAwC;AAC/E,SACEC,iCAAiC,EACjCC,iCAAiC,EACjCC,YAAY,EACZC,uBAAuB,EACvBC,iCAAiC,EACjCC,uBAAuB,QAClB,uBAAuB;AAC9B,SAASC,iCAAiC,QAAQ,4CAA4C;AAC9F,SAASC,wBAAwB,QAAQ,mCAAmC;AAC5E,SAASC,gCAAgC,QAAQ,2CAA2C;AAC5F,SAASC,iCAAiC,QAAQ,4CAA4C;AAC9F,SAASC,wBAAwB,QAAQ,mCAAmC;AAC5E,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,SAASC,6BAA6B,QAAQ,wCAAwC;AACtF,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,iCAAiC,QAAQ,4CAA4C;AAC9F,SAASC,wBAAwB,QAAQ,mCAAmC;AAC5E,SACEC,0BAA0B,EAC1BC,YAAY,EACZC,oBAAoB,IAAIC,oBAAoB,QACvC,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,wBAAwB,QAAQ,mCAAmC;AAQ5E,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,gCAAgC,IAAIC,WAAW,QAAQ,gEAAgE","ignoreList":[]}
|
|
@@ -47,4 +47,18 @@ export type ActionParameterAllowedValues = {
|
|
|
47
47
|
type: "interfaceObjectQuery"
|
|
48
48
|
} | {
|
|
49
49
|
type: "redacted"
|
|
50
|
+
} | {
|
|
51
|
+
type: "multipassGroup"
|
|
52
|
+
} | {
|
|
53
|
+
type: "user"
|
|
54
|
+
fromGroups?: Array<UserGroup>
|
|
55
|
+
};
|
|
56
|
+
export type UserGroup = ParameterUserGroup | StaticUserGroup;
|
|
57
|
+
export type ParameterUserGroup = {
|
|
58
|
+
type: "parameter"
|
|
59
|
+
parameter: string
|
|
60
|
+
};
|
|
61
|
+
export type StaticUserGroup = {
|
|
62
|
+
type: "static"
|
|
63
|
+
name: string
|
|
50
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,sBACA,0BACA,yBACA,yCACK,uBAAwB;AAI/B,YAAY,+BACR;CACA,MAAM;CACN,OAAO,MAAM;CACb;AACD,IACC;CACA,MAAM;CACN,MAAM;CACN,MAAM;AACP,IACC;CAAE,MAAM;CAAQ;CAAoB;CAAoB;AAAgB,IACxE;CACA,MAAM;CACN,UAAU;CACV,UAAU;AACX,IACC;CAAE,MAAM;CAAuB,gBAAgB,MAAM;AAAuB,IAC5E;CAAE,MAAM;AAAe,IACvB;CAAE,MAAM;AAAc,IACtB;CAAE,MAAM;AAAW,IACnB;CAAE,MAAM;AAAgB,IACxB;CAAE,MAAM;AAAe,IACvB;CAAE,MAAM;AAAoB,IAC5B;CAAE,MAAM;AAAc,IACtB;CAAE,MAAM;AAAkB,IAC1B;CAAE,MAAM;AAAuB,IAC/B;CAAE,MAAM;AAAW,IACnB;CAAE,MAAM;AAAY,IACpB;CAAE,MAAM;AAA0B,IAClC;CAAE,MAAM;AAAwB,IAChC;CAAE,MAAM;AAAY","names":[],"sources":["../../../../src/api/action/ActionParameterAllowedValues.ts"],"version":3,"file":"ActionParameterAllowedValues.d.ts"}
|
|
1
|
+
{"mappings":"AAgBA,cACE,sBACA,0BACA,yBACA,yCACK,uBAAwB;AAI/B,YAAY,+BACR;CACA,MAAM;CACN,OAAO,MAAM;CACb;AACD,IACC;CACA,MAAM;CACN,MAAM;CACN,MAAM;AACP,IACC;CAAE,MAAM;CAAQ;CAAoB;CAAoB;AAAgB,IACxE;CACA,MAAM;CACN,UAAU;CACV,UAAU;AACX,IACC;CAAE,MAAM;CAAuB,gBAAgB,MAAM;AAAuB,IAC5E;CAAE,MAAM;AAAe,IACvB;CAAE,MAAM;AAAc,IACtB;CAAE,MAAM;AAAW,IACnB;CAAE,MAAM;AAAgB,IACxB;CAAE,MAAM;AAAe,IACvB;CAAE,MAAM;AAAoB,IAC5B;CAAE,MAAM;AAAc,IACtB;CAAE,MAAM;AAAkB,IAC1B;CAAE,MAAM;AAAuB,IAC/B;CAAE,MAAM;AAAW,IACnB;CAAE,MAAM;AAAY,IACpB;CAAE,MAAM;AAA0B,IAClC;CAAE,MAAM;AAAwB,IAChC;CAAE,MAAM;AAAY,IACpB;CAAE,MAAM;AAAkB,IAC1B;CACA,MAAM;CACN,aAAa,MAAM;AACpB;AAEH,YAAY,YACR,qBACA;AAEJ,YAAY,qBAAqB;CAC/B,MAAM;CACN;AACD;AAED,YAAY,kBAAkB;CAC5B,MAAM;CACN;AACD","names":[],"sources":["../../../../src/api/action/ActionParameterAllowedValues.ts"],"version":3,"file":"ActionParameterAllowedValues.d.ts"}
|
|
@@ -18,6 +18,7 @@ import { type PropertyTypeType } from "./properties/PropertyTypeType.js";
|
|
|
18
18
|
import type { SharedPropertyType } from "./properties/SharedPropertyType.js";
|
|
19
19
|
export declare const MODIFY_OBJECT_PARAMETER: string;
|
|
20
20
|
export declare const CREATE_OR_MODIFY_OBJECT_PARAMETER: string;
|
|
21
|
+
export declare const DELETE_OBJECT_PARAMETER: string;
|
|
21
22
|
export declare const CREATE_INTERFACE_OBJECT_PARAMETER: string;
|
|
22
23
|
export declare const MODIFY_INTERFACE_OBJECT_PARAMETER: string;
|
|
23
24
|
export type ActionTypeDefinition = Omit<ActionType, "__type">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAEE,mBACK,uBAAwB;AAG/B,cAAc,uCAAuC,6CAA8C;AACnG,cAAc,uBAAuB,6BAA8B;AAEnE,cAAc,oCAAoC,0CAA2C;AAM7F,cAAc,qBAAqB,2BAA4B;AAC/D,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,4BAA4B,kCAAmC;AAE7E,cAAc,qBAAqB,2BAA4B;AAC/D,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,0BAA0B,gCAAiC;AACzE,cAAc,0BAA0B,gCAAiC;AACzE,cAAc,qBAAqB,4BAA6B;AAWhE,cAAc,qBAAqB,8BAA+B;AAElE,cAAc,wCAAwC,8CAA+C;AACrG,cAAc,4BAA4B,kCAAmC;AAC7E,cAEO,wBACA,kCAAmC;AAC1C,cAAc,0BAA0B,oCAAqC;AAE7E,OAAO,cAAMA;AAEb,OAAO,cAAMC;AAGb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AAGb,YAAY,uBAAuB,KAAK,YAAY;AAEpD,YAAY,2BAA2B;CACrC,YAAY;CACZ;CACA;CACA,SAAS;CACT,yBAAyB,eAAe;CACxC,uBAAuB,eAAe;CACtC,wBAAwB;CACxB,qBAAqB,MAAM;CAC3B,WAAW,MAAM;CACjB,gBAAgB;CAChB;CACA,qBAAqB;CACrB,oBAAoB;CACpB,qBAAqB;CAErB,mBAAmB,kBAAkB;CACrC,OAAO;EAAE,SAAS;EAAe;CAAe;AACjD;AAED,YAAY,oCAAoC;CAC9C,eAAe;CACf,aAAa;CACb;CACA;CACA,SAAS;CACT,yBAAyB,eAAe;CACxC,uBAAuB,eAAe;CACtC,wBAAwB;CACxB,qBAAqB;CACrB,WAAW,MAAM;CACjB,gBAAgB;CAChB;CACA,qBAAqB;CACrB,oBAAoB;CACpB,qBAAqB;CAErB;CACA,gCAAgC;CAChC,OAAO;EAAE,SAAS;EAAe;CAAe;AACjD;AAED,OAAO,iBAAS,aAAaC,WAAW,uBAAuB;AAmI/D,OAAO,iBAAS,oBACdC,KAAK,2BAA2B,mCAChCC,cACAC,MAAM;AASR,OAAO,iBAAS,iBACdF,KAAK,2BAA2B,mCAChCG,aACI,eAAe,oCACf,eAAe,qBACnBC,cAAc,aACdC,cAAc,0BACb,MAAM;
|
|
1
|
+
{"mappings":"AAgBA,cAEE,mBACK,uBAAwB;AAG/B,cAAc,uCAAuC,6CAA8C;AACnG,cAAc,uBAAuB,6BAA8B;AAEnE,cAAc,oCAAoC,0CAA2C;AAM7F,cAAc,qBAAqB,2BAA4B;AAC/D,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,4BAA4B,kCAAmC;AAE7E,cAAc,qBAAqB,2BAA4B;AAC/D,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,0BAA0B,gCAAiC;AACzE,cAAc,0BAA0B,gCAAiC;AACzE,cAAc,qBAAqB,4BAA6B;AAWhE,cAAc,qBAAqB,8BAA+B;AAElE,cAAc,wCAAwC,8CAA+C;AACrG,cAAc,4BAA4B,kCAAmC;AAC7E,cAEO,wBACA,kCAAmC;AAC1C,cAAc,0BAA0B,oCAAqC;AAE7E,OAAO,cAAMA;AAEb,OAAO,cAAMC;AAGb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AAGb,YAAY,uBAAuB,KAAK,YAAY;AAEpD,YAAY,2BAA2B;CACrC,YAAY;CACZ;CACA;CACA,SAAS;CACT,yBAAyB,eAAe;CACxC,uBAAuB,eAAe;CACtC,wBAAwB;CACxB,qBAAqB,MAAM;CAC3B,WAAW,MAAM;CACjB,gBAAgB;CAChB;CACA,qBAAqB;CACrB,oBAAoB;CACpB,qBAAqB;CAErB,mBAAmB,kBAAkB;CACrC,OAAO;EAAE,SAAS;EAAe;CAAe;AACjD;AAED,YAAY,oCAAoC;CAC9C,eAAe;CACf,aAAa;CACb;CACA;CACA,SAAS;CACT,yBAAyB,eAAe;CACxC,uBAAuB,eAAe;CACtC,wBAAwB;CACxB,qBAAqB;CACrB,WAAW,MAAM;CACjB,gBAAgB;CAChB;CACA,qBAAqB;CACrB,oBAAoB;CACpB,qBAAqB;CAErB;CACA,gCAAgC;CAChC,OAAO;EAAE,SAAS;EAAe;CAAe;AACjD;AAED,OAAO,iBAAS,aAAaC,WAAW,uBAAuB;AAmI/D,OAAO,iBAAS,oBACdC,KAAK,2BAA2B,mCAChCC,cACAC,MAAM;AASR,OAAO,iBAAS,iBACdF,KAAK,2BAA2B,mCAChCG,aACI,eAAe,oCACf,eAAe,qBACnBC,cAAc,aACdC,cAAc,0BACb,MAAM;AAygBT,OAAO,iBAAS,MAAMC;AAYtB,OAAO,iBAAS,sBACdC,kBAAkB,iCAClBC,mBAAmB,oBAClB,MAAM;AAiJT,OAAO,iBAAS,yBACdR,KAAK,2BAA2B,mCAChCS,YAAY,eACZR;AA4BF,OAAO,iBAAS,+BACdD,KAAK,2BAA2B,mCAChCS,YAAY,eACZC,YAAY,mBACZC;AAaF,OAAO,iBAAS,0BACdC,6BACAR,cAAc,aACdS;AAgBF,OAAO,iBAAS,kBAAkBC;AAOlC,OAAO,iBAAS,+BACdC,KAAK;AAqBP,OAAO,iBAAS,0BACdA,KAAK,mCACLC;AAaF,OAAO,iBAAS,8BACdD,KAAK,mCACLC","names":["MODIFY_OBJECT_PARAMETER: string","CREATE_OR_MODIFY_OBJECT_PARAMETER: string","DELETE_OBJECT_PARAMETER: string","CREATE_INTERFACE_OBJECT_PARAMETER: string","MODIFY_INTERFACE_OBJECT_PARAMETER: string","actionDef: ActionTypeDefinition","def: ActionTypeUserDefinition | InterfaceActionTypeUserDefinition","name: string","type: PropertyTypeType","propertyMap:\n | Record<string, ObjectPropertyTypeUserDefinition>\n | Record<string, SharedPropertyType>","parameterSet: Set<string>","requiredMap?: Record<string, boolean>","s: string","actionValidation: ActionLevelValidationDefinition","actionParameters?: ActionParameter[]","properties: Array<string>","parameters: ActionParameter[]","priorityId?: string","parameterOrdering: string[]","actionApiName: string","parameterId: string","def: InterfaceActionTypeUserDefinition","parameter: string"],"sources":["../../../src/api/defineAction.ts"],"version":3,"file":"defineAction.d.ts"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,gCAAgC,mBAAoB;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,gCAAgC,mBAAoB;AASlE,OAAO,iBAAS,yBACdA,KAAK,2BACJ","names":["def: ActionTypeUserDefinition"],"sources":["../../../src/api/defineDeleteObjectAction.ts"],"version":3,"file":"defineDeleteObjectAction.d.ts"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OntologyIr, OntologyIrActionTypeBlockDataV2, OntologyIrAllowedParameterValues, OntologyIrObjectTypeDatasource, OntologyIrObjectTypeDatasourceDefinition, OntologyIrValueTypeBlockData, ParameterRenderHint } from "@osdk/client.unstable";
|
|
2
|
-
import type { ActionParameter } from "./action/ActionParameter.js";
|
|
2
|
+
import type { ActionParameter, ActionParameterValidation } from "./action/ActionParameter.js";
|
|
3
3
|
import type { ActionParameterAllowedValues } from "./action/ActionParameterAllowedValues.js";
|
|
4
4
|
import type { ActionType } from "./action/ActionType.js";
|
|
5
5
|
import type { OntologyEntityType } from "./common/OntologyEntityTypeMapping.js";
|
|
@@ -13,7 +13,7 @@ export declare function dumpValueTypeWireType(): OntologyIrValueTypeBlockData;
|
|
|
13
13
|
export declare function convertObjectStatus(status: any): any;
|
|
14
14
|
export declare function convertAction(action: ActionType): OntologyIrActionTypeBlockDataV2;
|
|
15
15
|
export declare function extractAllowedValues(allowedValues: ActionParameterAllowedValues): OntologyIrAllowedParameterValues;
|
|
16
|
-
export declare function renderHintFromBaseType(parameter: ActionParameter): ParameterRenderHint;
|
|
16
|
+
export declare function renderHintFromBaseType(parameter: ActionParameter, validation?: ActionParameterValidation): ParameterRenderHint;
|
|
17
17
|
export declare function extractNamespace(apiName: string): string;
|
|
18
18
|
export declare function withoutNamespace(apiName: string): string;
|
|
19
19
|
export declare function addNamespaceIfNone(apiName: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAEE,YACA,iCACA,kCACA,gCACA,0CAGA,8BAEA,2BAEK,uBAAwB;AAS/B,
|
|
1
|
+
{"mappings":"AAgBA,cAEE,YACA,iCACA,kCACA,gCACA,0CAGA,8BAEA,2BAEK,uBAAwB;AAS/B,cACE,iBACA,iCACK,6BAA8B;AACrC,cAAc,oCAAoC,0CAA2C;AAC7F,cAAc,kBAAkB,wBAAyB;AAIzD,cAAc,0BAA0B,uCAAwC;AAiBhF,OAAO,iBAAS,eACd,UAAU,oBAEVA,QAAQ;AAiBV,OAAO,iBAAe,eACpBC,YACAC,mBAAmB,eACnBC,+BACAC,yBACAC,4BACAC,6BACAC,+BACAC,yBACC,QAAQ;AA8CX,OAAO,iBAAS,mBAAmBC;AAgFnC,OAAO,iBAAS,gBACdC,iBACAC,YAAY,0CACZC,yCACAC,qCACC;AA6BH,OAAO,iBAAS,2BAA2BH;AAkB3C,OAAO,iBAAS,4BAA4B;AAI5C,OAAO,iBAAS,yBAAyB;AAIzC,OAAO,iBAAS,oBAAoBI;AAoCpC,OAAO,iBAAS,cACdC,QAAQ,aACP;AAwEH,OAAO,iBAAS,qBACdC,eAAe,+BACd;AAwIH,OAAO,iBAAS,uBACdC,WAAW,iBACXC,aAAa,4BACZ;AAsEH,OAAO,iBAAS,iBAAiBR;AAIjC,OAAO,iBAAS,iBAAiBA;AA8CjC,OAAO,iBAAS,mBAAmBA","names":["entity: T","ns: string","body: () => void | Promise<void>","outputDir: string | undefined","dependencyFile?: string","codeSnippetFiles?: boolean","snippetPackageName?: string","snippetFileOutputDir?: string","randomnessKey?: string","outputDir: string","apiName: string","definition: OntologyIrObjectTypeDatasourceDefinition","classificationMarkingGroupName?: string","mandatoryMarkingGroupName?: string","status: any","action: ActionType","allowedValues: ActionParameterAllowedValues","parameter: ActionParameter","validation?: ActionParameterValidation"],"sources":["../../../src/api/defineOntology.ts"],"version":3,"file":"defineOntology.d.ts"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export type { SectionConditionalOverride } from "./api/action/SectionConditional
|
|
|
11
11
|
export type { SubmissionMetadata } from "./api/action/SubmissionMetadata.js";
|
|
12
12
|
export { addDependency } from "./api/addDependency.js";
|
|
13
13
|
export { OntologyEntityTypeEnum } from "./api/common/OntologyEntityTypeEnum.js";
|
|
14
|
-
export { CREATE_INTERFACE_OBJECT_PARAMETER, CREATE_OR_MODIFY_OBJECT_PARAMETER, defineAction, MODIFY_INTERFACE_OBJECT_PARAMETER, MODIFY_OBJECT_PARAMETER } from "./api/defineAction.js";
|
|
14
|
+
export { CREATE_INTERFACE_OBJECT_PARAMETER, CREATE_OR_MODIFY_OBJECT_PARAMETER, defineAction, DELETE_OBJECT_PARAMETER, MODIFY_INTERFACE_OBJECT_PARAMETER, MODIFY_OBJECT_PARAMETER } from "./api/defineAction.js";
|
|
15
15
|
export { defineCreateInterfaceObjectAction } from "./api/defineCreateInterfaceObjectAction.js";
|
|
16
16
|
export { defineCreateObjectAction } from "./api/defineCreateObjectAction.js";
|
|
17
17
|
export { defineCreateOrModifyObjectAction } from "./api/defineCreateOrModifyObjectAction.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,SAAS,eAA0B;AAEnC,cAAc,iCAAiC;AAC/C,cACE,oCACK;AACP,cAAc,0CAA0C;AACxD,cAAc,oCAAoC;AAClD,cAAc,qBAAqB;AACnC,cAAc,kBAAkB;AAChC,cAAc,2BAA2B;AACzC,cACE,yBACA,yBACA,eACA,cACA,wBACK;AACP,cAAc,kCAAkC;AAChD,cAAc,0BAA0B;AACxC,SAAS,qBAAqB;AAC9B,SAAS,8BAA8B;AACvC,SACE,mCACA,mCACA,cACA,mCACA,+BACK;AACP,SAAS,yCAAyC;AAClD,SAAS,gCAAgC;AACzC,SAAS,wCAAwC;AACjD,SAAS,yCAAyC;AAClD,SAAS,gCAAgC;AACzC,SAAS,uBAAuB;AAChC,SAAS,qCAAqC;AAC9C,SAAS,kBAAkB;AAC3B,SAAS,yCAAyC;AAClD,SAAS,gCAAgC;AACzC,SACE,4BACA,cACA,wBAAwB,4BACnB;AACP,SACE,oBACA,gBACA,gCACK;AACP,SAAS,gCAAgC;AACzC,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,gCAAgC;AACzC,cAAc,qBAAqB;AACnC,cAAc,gBAAgB;AAC9B,cAAc,0BAA0B;AACxC,cAAc,kBAAkB;AAChC,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,kCAAkC;AAChD,SAAS,qBAAqB;AAC9B,SAAS,oCAAoC,mBAAmB","names":[],"sources":["../../src/index.ts"],"version":3,"file":"index.d.ts"}
|
|
1
|
+
{"mappings":"AAgBA,SAAS,eAA0B;AAEnC,cAAc,iCAAiC;AAC/C,cACE,oCACK;AACP,cAAc,0CAA0C;AACxD,cAAc,oCAAoC;AAClD,cAAc,qBAAqB;AACnC,cAAc,kBAAkB;AAChC,cAAc,2BAA2B;AACzC,cACE,yBACA,yBACA,eACA,cACA,wBACK;AACP,cAAc,kCAAkC;AAChD,cAAc,0BAA0B;AACxC,SAAS,qBAAqB;AAC9B,SAAS,8BAA8B;AACvC,SACE,mCACA,mCACA,cACA,yBACA,mCACA,+BACK;AACP,SAAS,yCAAyC;AAClD,SAAS,gCAAgC;AACzC,SAAS,wCAAwC;AACjD,SAAS,yCAAyC;AAClD,SAAS,gCAAgC;AACzC,SAAS,uBAAuB;AAChC,SAAS,qCAAqC;AAC9C,SAAS,kBAAkB;AAC3B,SAAS,yCAAyC;AAClD,SAAS,gCAAgC;AACzC,SACE,4BACA,cACA,wBAAwB,4BACnB;AACP,SACE,oBACA,gBACA,gCACK;AACP,SAAS,gCAAgC;AACzC,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,gCAAgC;AACzC,cAAc,qBAAqB;AACnC,cAAc,gBAAgB;AAC9B,cAAc,0BAA0B;AACxC,cAAc,kBAAkB;AAChC,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,kCAAkC;AAChD,SAAS,qBAAqB;AAC9B,SAAS,oCAAoC,mBAAmB","names":[],"sources":["../../src/index.ts"],"version":3,"file":"index.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/maker",
|
|
3
|
-
"version": "0.15.0-beta.
|
|
3
|
+
"version": "0.15.0-beta.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"tiny-invariant": "^1.3.3",
|
|
36
36
|
"ts-node": "^10.9.2",
|
|
37
37
|
"yargs": "^17.7.2",
|
|
38
|
-
"@osdk/api": "~2.7.0-beta.
|
|
38
|
+
"@osdk/api": "~2.7.0-beta.6"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/mustache": "^4.2.6",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@types/yargs": "^17.0.33",
|
|
44
44
|
"typescript": "~5.5.4",
|
|
45
45
|
"vitest": "^3.2.4",
|
|
46
|
+
"@osdk/client.unstable": "~2.7.0-beta.6",
|
|
46
47
|
"@osdk/monorepo.api-extractor": "~0.6.0-beta.1",
|
|
47
|
-
"@osdk/monorepo.tsconfig": "~0.6.0-beta.1"
|
|
48
|
-
"@osdk/client.unstable": "~2.7.0-beta.4"
|
|
48
|
+
"@osdk/monorepo.tsconfig": "~0.6.0-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|