@osdk/maker 0.14.0-beta.1 → 0.14.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/browser/api/defineAction.js +6 -6
  3. package/build/browser/api/defineAction.js.map +1 -1
  4. package/build/browser/cli/main.js +1 -1
  5. package/build/browser/conversion/toMarketplace/convertActionParameterConditionalOverride.js +2 -2
  6. package/build/browser/conversion/toMarketplace/convertActionParameterConditionalOverride.js.map +1 -1
  7. package/build/browser/conversion/toMarketplace/convertActionValidation.js +2 -16
  8. package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -1
  9. package/build/browser/conversion/toMarketplace/convertConditionDefinition.js +4 -4
  10. package/build/browser/conversion/toMarketplace/convertConditionDefinition.js.map +1 -1
  11. package/build/browser/conversion/toMarketplace/convertSectionConditionalOverride.js +2 -2
  12. package/build/browser/conversion/toMarketplace/convertSectionConditionalOverride.js.map +1 -1
  13. package/build/cjs/index.cjs +17 -31
  14. package/build/cjs/index.cjs.map +1 -1
  15. package/build/esm/api/defineAction.js +6 -6
  16. package/build/esm/api/defineAction.js.map +1 -1
  17. package/build/esm/cli/main.js +1 -1
  18. package/build/esm/conversion/toMarketplace/convertActionParameterConditionalOverride.js +2 -2
  19. package/build/esm/conversion/toMarketplace/convertActionParameterConditionalOverride.js.map +1 -1
  20. package/build/esm/conversion/toMarketplace/convertActionValidation.js +2 -16
  21. package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -1
  22. package/build/esm/conversion/toMarketplace/convertConditionDefinition.js +4 -4
  23. package/build/esm/conversion/toMarketplace/convertConditionDefinition.js.map +1 -1
  24. package/build/esm/conversion/toMarketplace/convertSectionConditionalOverride.js +2 -2
  25. package/build/esm/conversion/toMarketplace/convertSectionConditionalOverride.js.map +1 -1
  26. package/build/types/api/defineAction.d.ts.map +1 -1
  27. package/build/types/conversion/toMarketplace/convertActionParameterConditionalOverride.d.ts +2 -2
  28. package/build/types/conversion/toMarketplace/convertActionParameterConditionalOverride.d.ts.map +1 -1
  29. package/build/types/conversion/toMarketplace/convertActionValidation.d.ts +0 -1
  30. package/build/types/conversion/toMarketplace/convertActionValidation.d.ts.map +1 -1
  31. package/build/types/conversion/toMarketplace/convertConditionDefinition.d.ts +2 -1
  32. package/build/types/conversion/toMarketplace/convertConditionDefinition.d.ts.map +1 -1
  33. package/build/types/conversion/toMarketplace/convertSectionConditionalOverride.d.ts +2 -1
  34. package/build/types/conversion/toMarketplace/convertSectionConditionalOverride.d.ts.map +1 -1
  35. package/package.json +2 -2
@@ -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","getActionTypeObjectParameters","sectionValidations","entries","sections","sectionId","section","defaultDisplayMetadata","hidden","visible","notRequired","min","max","listLength","listLengthValidation","minLength","maxLength","actionType","keys","addObjectRule","propertyValues","modifyObjectRule","addOrModifyObjectRuleV2","undefined"],"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 getActionTypeObjectParameters(action),\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 getActionTypeObjectParameters(action),\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\nexport function getActionTypeObjectParameters(\n actionType: ActionType,\n): Array<String> | undefined {\n switch (actionType.rules[0].type) {\n case \"addObjectRule\":\n return Object.keys(actionType.rules[0].addObjectRule.propertyValues);\n case \"modifyObjectRule\":\n return Object.keys(actionType.rules[0].modifyObjectRule.propertyValues);\n case \"addOrModifyObjectRuleV2\":\n return Object.keys(\n actionType.rules[0].addOrModifyObjectRuleV2.propertyValues,\n );\n case \"deleteObjectRule\":\n return [];\n default:\n return undefined;\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,E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AC,CAACkD,uBAAuB,CAACF,cAC9C,CAAC;IACH,KAAK,kBAAkB;MACrB,OAAO,EAAE;IACX;MACE,OAAOG,SAAS;EACpB;AACF","ignoreList":[]}
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,SAAS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,SAAS,EAAEJ;IAAI;EACzD,CAAC;AACH","ignoreList":[]}
@@ -15,14 +15,14 @@
15
15
  */
16
16
 
17
17
  import invariant from "tiny-invariant";
18
- export function convertConditionDefinition(condition, objectProperties) {
18
+ export function convertConditionDefinition(condition, actionParameters) {
19
19
  switch (condition.type) {
20
20
  case "and":
21
21
  if ("conditions" in condition) {
22
22
  return {
23
23
  type: "and",
24
24
  and: {
25
- conditions: condition.conditions.map(c => convertConditionDefinition(c, objectProperties))
25
+ conditions: condition.conditions.map(c => convertConditionDefinition(c, actionParameters))
26
26
  }
27
27
  };
28
28
  } else {
@@ -33,7 +33,7 @@ export function convertConditionDefinition(condition, objectProperties) {
33
33
  return {
34
34
  type: "or",
35
35
  or: {
36
- conditions: condition.conditions.map(c => convertConditionDefinition(c, objectProperties))
36
+ conditions: condition.conditions.map(c => convertConditionDefinition(c, actionParameters))
37
37
  }
38
38
  };
39
39
  } else {
@@ -69,7 +69,7 @@ export function convertConditionDefinition(condition, objectProperties) {
69
69
  }
70
70
  };
71
71
  case "parameter":
72
- !objectProperties?.includes(condition.parameterId) ? process.env.NODE_ENV !== "production" ? invariant(false, `Action parameter condition references unknown parameter ${condition.parameterId}`) : invariant(false) : void 0;
72
+ !actionParameters?.some(param => param.id === condition.parameterId) ? process.env.NODE_ENV !== "production" ? invariant(false, `Action parameter condition references unknown parameter ${condition.parameterId}`) : invariant(false) : void 0;
73
73
  return {
74
74
  type: "comparison",
75
75
  comparison: {
@@ -1 +1 @@
1
- {"version":3,"file":"convertConditionDefinition.js","names":["invariant","convertConditionDefinition","condition","objectProperties","type","and","conditions","map","c","or","comparison","operator","left","userProperty","userId","currentUser","propertyValue","groupIds","right","staticValue","stringList","strings","name","includes","parameterId","process","env","NODE_ENV","matches"],"sources":["convertConditionDefinition.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 { OntologyIrCondition } from \"@osdk/client.unstable\";\nimport invariant from \"tiny-invariant\";\nimport type { ConditionDefinition } from \"../../api/action/ConditionDefinition.js\";\n\nexport function convertConditionDefinition(\n condition: ConditionDefinition,\n objectProperties?: Array<String>,\n): OntologyIrCondition {\n switch (condition.type) {\n case \"and\":\n if (\"conditions\" in condition) {\n return {\n type: \"and\",\n and: {\n conditions: condition.conditions.map(c =>\n convertConditionDefinition(c, objectProperties)\n ),\n },\n };\n } else {\n return condition;\n }\n case \"or\":\n if (\"conditions\" in condition) {\n return {\n type: \"or\",\n or: {\n conditions: condition.conditions.map(c =>\n convertConditionDefinition(c, objectProperties)\n ),\n },\n };\n } else {\n return condition;\n }\n case \"group\":\n return {\n type: \"comparison\",\n comparison: {\n operator: \"INTERSECTS\",\n left: {\n type: \"userProperty\",\n userProperty: {\n userId: {\n type: \"currentUser\",\n currentUser: {},\n },\n propertyValue: {\n type: \"groupIds\",\n groupIds: {},\n },\n },\n },\n right: {\n type: \"staticValue\",\n staticValue: {\n type: \"stringList\",\n stringList: {\n strings: [\n condition.name,\n ],\n },\n },\n },\n },\n };\n case \"parameter\":\n invariant(\n objectProperties?.includes(condition.parameterId),\n `Action parameter condition references unknown parameter ${condition.parameterId}`,\n );\n return {\n type: \"comparison\",\n comparison: {\n operator: \"EQUALS\",\n left: {\n type: \"parameterId\",\n parameterId: condition.parameterId,\n },\n right: condition.matches,\n },\n };\n default:\n return condition;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAOA,SAAS,MAAM,gBAAgB;AAGtC,OAAO,SA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AAC,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBADnD3B,SAAS,QAEP,2DAA2DE,SAAS,CAACsB,WAAW,EAAE,IAFpFxB,SAAS;MAIT,OAAO;QACLI,IAAI,EAAE,YAAY;QAClBM,UAAU,EAAE;UACVC,QAAQ,EAAE,QAAQ;UAClBC,IAAI,EAAE;YACJR,IAAI,EAAE,aAAa;YACnBoB,WAAW,EAAEtB,SAAS,CAACsB;UACzB,CAAC;UACDN,KAAK,EAAEhB,SAAS,CAAC0B;QACnB;MACF,CAAC;IACH;MACE,OAAO1B,SAAS;EACpB;AACF","ignoreList":[]}
1
+ {"version":3,"file":"convertConditionDefinition.js","names":["invariant","convertConditionDefinition","condition","actionParameters","type","and","conditions","map","c","or","comparison","operator","left","userProperty","userId","currentUser","propertyValue","groupIds","right","staticValue","stringList","strings","name","some","param","id","parameterId","process","env","NODE_ENV","matches"],"sources":["convertConditionDefinition.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 { OntologyIrCondition } from \"@osdk/client.unstable\";\nimport invariant from \"tiny-invariant\";\nimport type { ActionParameter } from \"../../api/action/ActionParameter.js\";\nimport type { ConditionDefinition } from \"../../api/action/ConditionDefinition.js\";\n\nexport function convertConditionDefinition(\n condition: ConditionDefinition,\n actionParameters?: ActionParameter[],\n): OntologyIrCondition {\n switch (condition.type) {\n case \"and\":\n if (\"conditions\" in condition) {\n return {\n type: \"and\",\n and: {\n conditions: condition.conditions.map(c =>\n convertConditionDefinition(c, actionParameters)\n ),\n },\n };\n } else {\n return condition;\n }\n case \"or\":\n if (\"conditions\" in condition) {\n return {\n type: \"or\",\n or: {\n conditions: condition.conditions.map(c =>\n convertConditionDefinition(c, actionParameters)\n ),\n },\n };\n } else {\n return condition;\n }\n case \"group\":\n return {\n type: \"comparison\",\n comparison: {\n operator: \"INTERSECTS\",\n left: {\n type: \"userProperty\",\n userProperty: {\n userId: {\n type: \"currentUser\",\n currentUser: {},\n },\n propertyValue: {\n type: \"groupIds\",\n groupIds: {},\n },\n },\n },\n right: {\n type: \"staticValue\",\n staticValue: {\n type: \"stringList\",\n stringList: {\n strings: [\n condition.name,\n ],\n },\n },\n },\n },\n };\n case \"parameter\":\n invariant(\n actionParameters?.some(param => param.id === condition.parameterId),\n `Action parameter condition references unknown parameter ${condition.parameterId}`,\n );\n return {\n type: \"comparison\",\n comparison: {\n operator: \"EQUALS\",\n left: {\n type: \"parameterId\",\n parameterId: condition.parameterId,\n },\n right: condition.matches,\n },\n };\n default:\n return condition;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAOA,SAAS,MAAM,gBAAgB;AAItC,OAAO,SAASC,0BAA0BA,CACxCC,SAA8B,EAC9BC,gBAAoC,EACf;EACrB,QAAQD,SAAS,CAACE,IAAI;IACpB,KAAK,KAAK;MACR,IAAI,YAAY,IAAIF,SAAS,EAAE;QAC7B,OAAO;UACLE,IAAI,EAAE,KAAK;UACXC,GAAG,EAAE;YACHC,UAAU,EAAEJ,SAAS,CAACI,UAAU,CAACC,GAAG,CAACC,CAAC,IACpCP,0BAA0B,CAACO,CAAC,EAAEL,gBAAgB,CAChD;UACF;QACF,CAAC;MACH,CAAC,MAAM;QACL,OAAOD,SAAS;MAClB;IACF,KAAK,IAAI;MACP,IAAI,YAAY,IAAIA,SAAS,EAAE;QAC7B,OAAO;UACLE,IAAI,EAAE,IAAI;UACVK,EAAE,EAAE;YACFH,UAAU,EAAEJ,SAAS,CAACI,UAAU,CAACC,GAAG,CAACC,CAAC,IACpCP,0BAA0B,CAACO,CAAC,EAAEL,gBAAgB,CAChD;UACF;QACF,CAAC;MACH,CAAC,MAAM;QACL,OAAOD,SAAS;MAClB;IACF,KAAK,OAAO;MACV,OAAO;QACLE,IAAI,EAAE,YAAY;QAClBM,UAAU,EAAE;UACVC,QAAQ,EAAE,YAAY;UACtBC,IAAI,EAAE;YACJR,IAAI,EAAE,cAAc;YACpBS,YAAY,EAAE;cACZC,MAAM,EAAE;gBACNV,IAAI,EAAE,aAAa;gBACnBW,WAAW,EAAE,CAAC;cAChB,CAAC;cACDC,aAAa,EAAE;gBACbZ,IAAI,EAAE,UAAU;gBAChBa,QAAQ,EAAE,CAAC;cACb;YACF;UACF,CAAC;UACDC,KAAK,EAAE;YACLd,IAAI,EAAE,aAAa;YACnBe,WAAW,EAAE;cACXf,IAAI,EAAE,YAAY;cAClBgB,UAAU,EAAE;gBACVC,OAAO,EAAE,CACPnB,SAAS,CAACoB,IAAI;cAElB;YACF;UACF;QACF;MACF,CAAC;IACH,KAAK,WAAW;MACd,CACEnB,gBAAgB,EAAEoB,IAAI,CAACC,KAAK,IAAIA,KAAK,CAACC,EAAE,KAAKvB,SAAS,CAACwB,WAAW,CAAC,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBADrE7B,SAAS,QAEP,2DAA2DE,SAAS,CAACwB,WAAW,EAAE,IAFpF1B,SAAS;MAIT,OAAO;QACLI,IAAI,EAAE,YAAY;QAClBM,UAAU,EAAE;UACVC,QAAQ,EAAE,QAAQ;UAClBC,IAAI,EAAE;YACJR,IAAI,EAAE,aAAa;YACnBsB,WAAW,EAAExB,SAAS,CAACwB;UACzB,CAAC;UACDR,KAAK,EAAEhB,SAAS,CAAC4B;QACnB;MACF,CAAC;IACH;MACE,OAAO5B,SAAS;EACpB;AACF","ignoreList":[]}
@@ -15,9 +15,9 @@
15
15
  */
16
16
 
17
17
  import { convertConditionDefinition } from "./convertConditionDefinition.js";
18
- export function convertSectionConditionalOverride(override, defaultVisibility, objectProperties) {
18
+ export function convertSectionConditionalOverride(override, defaultVisibility, actionParameters) {
19
19
  return {
20
- condition: convertConditionDefinition(override.condition, objectProperties),
20
+ condition: convertConditionDefinition(override.condition, actionParameters),
21
21
  sectionBlockOverrides: [{
22
22
  type: "visibility",
23
23
  visibility: {
@@ -1 +1 @@
1
- {"version":3,"file":"convertSectionConditionalOverride.js","names":["convertConditionDefinition","convertSectionConditionalOverride","override","defaultVisibility","objectProperties","condition","sectionBlockOverrides","type","visibility","hidden","visible"],"sources":["convertSectionConditionalOverride.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 { OntologyIrSectionConditionalOverride } from \"@osdk/client.unstable\";\nimport type { SectionConditionalOverride } from \"../../api/action/SectionConditionalOverride.js\";\nimport { convertConditionDefinition } from \"./convertConditionDefinition.js\";\n\nexport function convertSectionConditionalOverride(\n override: SectionConditionalOverride,\n defaultVisibility: \"visible\" | \"hidden\",\n objectProperties?: Array<String>,\n): OntologyIrSectionConditionalOverride {\n return {\n condition: convertConditionDefinition(override.condition, objectProperties),\n sectionBlockOverrides: [\n {\n type: \"visibility\",\n visibility: {\n visibility: defaultVisibility === \"visible\"\n ? {\n type: \"hidden\",\n hidden: {},\n }\n : {\n type: \"visible\",\n visible: {},\n },\n },\n },\n ],\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,0BAA0B,QAAQ,iCAAiC;AAE5E,OAAO,SAASC,iCAAiCA,CAC/CC,QAAoC,EACpCC,iBAAuC,EACvCC,gBAAgC,EACM;EACtC,OAAO;IACLC,SAAS,EAAEL,0BAA0B,CAACE,QAAQ,CAACG,SAAS,EAAED,gBAAgB,CAAC;IAC3EE,qBAAqB,EAAE,CACrB;MACEC,IAAI,EAAE,YAAY;MAClBC,UAAU,EAAE;QACVA,UAAU,EAAEL,iBAAiB,KAAK,SAAS,GACvC;UACAI,IAAI,EAAE,QAAQ;UACdE,MAAM,EAAE,CAAC;QACX,CAAC,GACC;UACAF,IAAI,EAAE,SAAS;UACfG,OAAO,EAAE,CAAC;QACZ;MACJ;IACF,CAAC;EAEL,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"file":"convertSectionConditionalOverride.js","names":["convertConditionDefinition","convertSectionConditionalOverride","override","defaultVisibility","actionParameters","condition","sectionBlockOverrides","type","visibility","hidden","visible"],"sources":["convertSectionConditionalOverride.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 { OntologyIrSectionConditionalOverride } from \"@osdk/client.unstable\";\nimport type { ActionParameter } from \"../../api/action/ActionParameter.js\";\nimport type { SectionConditionalOverride } from \"../../api/action/SectionConditionalOverride.js\";\nimport { convertConditionDefinition } from \"./convertConditionDefinition.js\";\n\nexport function convertSectionConditionalOverride(\n override: SectionConditionalOverride,\n defaultVisibility: \"visible\" | \"hidden\",\n actionParameters?: ActionParameter[],\n): OntologyIrSectionConditionalOverride {\n return {\n condition: convertConditionDefinition(override.condition, actionParameters),\n sectionBlockOverrides: [\n {\n type: \"visibility\",\n visibility: {\n visibility: defaultVisibility === \"visible\"\n ? {\n type: \"hidden\",\n hidden: {},\n }\n : {\n type: \"visible\",\n visible: {},\n },\n },\n },\n ],\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA,SAASA,0BAA0B,QAAQ,iCAAiC;AAE5E,OAAO,SAASC,iCAAiCA,CAC/CC,QAAoC,EACpCC,iBAAuC,EACvCC,gBAAoC,EACE;EACtC,OAAO;IACLC,SAAS,EAAEL,0BAA0B,CAACE,QAAQ,CAACG,SAAS,EAAED,gBAAgB,CAAC;IAC3EE,qBAAqB,EAAE,CACrB;MACEC,IAAI,EAAE,YAAY;MAClBC,UAAU,EAAE;QACVA,UAAU,EAAEL,iBAAiB,KAAK,SAAS,GACvC;UACAI,IAAI,EAAE,QAAQ;UACdE,MAAM,EAAE,CAAC;QACX,CAAC,GACC;UACAF,IAAI,EAAE,SAAS;UACfG,OAAO,EAAE,CAAC;QACZ;MACJ;IACF,CAAC;EAEL,CAAC;AACH","ignoreList":[]}
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,2CACA,8CAEA,mBACK,uBAAwB;AAK/B,cAAc,uCAAuC,6CAA8C;AAGnG,cAAc,oCAAoC,0CAA2C;AAM7F,cAAc,qBAAqB,2BAA4B;AAC/D,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,kBAAkB,wBAAyB;AAGzD,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,0BAA0B,gCAAiC;AAUzE,cAAc,qBAAqB,8BAA+B;AAGlE,cAAc,4BAA4B,kCAAmC;AAO7E,OAAO,cAAMA;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;CAEjB,gBAAgB;CAChB;CAEA,mBAAmB;CACnB,oBAAoB;CACpB,qBAAqB;CAErB,mBAAmB,kBAAkB;AACtC;AAED,YAAY,oCAAoC;CAC9C,eAAe;CACf,aAAa;CACb,aAAa;CACb,qBAAqB;AACtB;AAED,OAAO,iBAAS,kCACdC,KAAK,oCACJ;AAgHH,OAAO,iBAAS,yBACdC,KAAK,2BACJ;AAkFH,OAAO,iBAAS,kCACdD,KAAK,oCACJ;AAyGH,OAAO,iBAAS,yBACdC,KAAK,2BACJ;AA4GH,OAAO,iBAAS,yBACdA,KAAK,2BACJ;AA6CH,OAAO,iBAAS,iCACdA,KAAK,2BACJ;AA+GH,OAAO,iBAAS,aAAaC,WAAW,uBAAuB","names":["MODIFY_OBJECT_PARAMETER: string","CREATE_OR_MODIFY_OBJECT_PARAMETER: string","def: InterfaceActionTypeUserDefinition","def: ActionTypeUserDefinition","actionDef: ActionTypeDefinition"],"sources":["../../../src/api/defineAction.ts"],"version":3,"file":"defineAction.d.ts"}
1
+ {"mappings":"AAgBA,cACE,2CACA,8CAEA,mBACK,uBAAwB;AAK/B,cAAc,uCAAuC,6CAA8C;AAGnG,cAAc,oCAAoC,0CAA2C;AAM7F,cAAc,qBAAqB,2BAA4B;AAC/D,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,kBAAkB,wBAAyB;AAGzD,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,0BAA0B,gCAAiC;AAUzE,cAAc,qBAAqB,8BAA+B;AAGlE,cAAc,4BAA4B,kCAAmC;AAO7E,OAAO,cAAMA;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;CAEjB,gBAAgB;CAChB;CAEA,mBAAmB;CACnB,oBAAoB;CACpB,qBAAqB;CAErB,mBAAmB,kBAAkB;AACtC;AAED,YAAY,oCAAoC;CAC9C,eAAe;CACf,aAAa;CACb,aAAa;CACb,qBAAqB;AACtB;AAED,OAAO,iBAAS,kCACdC,KAAK,oCACJ;AAgHH,OAAO,iBAAS,yBACdC,KAAK,2BACJ;AAkFH,OAAO,iBAAS,kCACdD,KAAK,oCACJ;AAyGH,OAAO,iBAAS,yBACdC,KAAK,2BACJ;AA4GH,OAAO,iBAAS,yBACdA,KAAK,2BACJ;AA4CH,OAAO,iBAAS,iCACdA,KAAK,2BACJ;AA+GH,OAAO,iBAAS,aAAaC,WAAW,uBAAuB","names":["MODIFY_OBJECT_PARAMETER: string","CREATE_OR_MODIFY_OBJECT_PARAMETER: string","def: InterfaceActionTypeUserDefinition","def: ActionTypeUserDefinition","actionDef: ActionTypeDefinition"],"sources":["../../../src/api/defineAction.ts"],"version":3,"file":"defineAction.d.ts"}
@@ -1,4 +1,4 @@
1
1
  import type { OntologyIrConditionalOverride } from "@osdk/client.unstable";
2
- import type { ActionParameterValidation } from "../../api/action/ActionParameter.js";
2
+ import type { ActionParameter, ActionParameterValidation } from "../../api/action/ActionParameter.js";
3
3
  import type { ActionParameterConditionalOverride } from "../../api/action/ActionParameterConditionalOverride.js";
4
- export declare function convertActionParameterConditionalOverride(override: ActionParameterConditionalOverride, validation: ActionParameterValidation, objectProperties?: Array<String>): OntologyIrConditionalOverride;
4
+ export declare function convertActionParameterConditionalOverride(override: ActionParameterConditionalOverride, validation: ActionParameterValidation, actionParameters?: ActionParameter[]): OntologyIrConditionalOverride;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,qCAEK,uBAAwB;AAC/B,cAAc,iCAAiC,qCAAsC;AACrF,cAAc,0CAA0C,wDAAyD;AAIjH,OAAO,iBAAS,0CACdA,UAAU,oCACVC,YAAY,2BACZC,mBAAmB,MAAM,UACxB","names":["override: ActionParameterConditionalOverride","validation: ActionParameterValidation","objectProperties?: Array<String>"],"sources":["../../../../src/conversion/toMarketplace/convertActionParameterConditionalOverride.ts"],"version":3,"file":"convertActionParameterConditionalOverride.d.ts"}
1
+ {"mappings":"AAgBA,cACE,qCAEK,uBAAwB;AAC/B,cACE,iBACA,iCACK,qCAAsC;AAC7C,cAAc,0CAA0C,wDAAyD;AAIjH,OAAO,iBAAS,0CACdA,UAAU,oCACVC,YAAY,2BACZC,mBAAmB,oBAClB","names":["override: ActionParameterConditionalOverride","validation: ActionParameterValidation","actionParameters?: ActionParameter[]"],"sources":["../../../../src/conversion/toMarketplace/convertActionParameterConditionalOverride.ts"],"version":3,"file":"convertActionParameterConditionalOverride.d.ts"}
@@ -1,4 +1,3 @@
1
1
  import type { OntologyIrActionValidation } from "@osdk/client.unstable";
2
2
  import type { ActionType } from "../../api/action/ActionType.js";
3
3
  export declare function convertActionValidation(action: ActionType): OntologyIrActionValidation;
4
- export declare function getActionTypeObjectParameters(actionType: ActionType): Array<String> | undefined;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,kCAEK,uBAAwB;AAE/B,cAAc,kBAAkB,gCAAiC;AASjE,OAAO,iBAAS,wBACdA,QAAQ,aACP;AAgGH,OAAO,iBAAS,8BACdC,YAAY,aACX,MAAM","names":["action: ActionType","actionType: ActionType"],"sources":["../../../../src/conversion/toMarketplace/convertActionValidation.ts"],"version":3,"file":"convertActionValidation.d.ts"}
1
+ {"mappings":"AAgBA,cACE,kCAEK,uBAAwB;AAE/B,cAAc,kBAAkB,gCAAiC;AASjE,OAAO,iBAAS,wBACdA,QAAQ,aACP","names":["action: ActionType"],"sources":["../../../../src/conversion/toMarketplace/convertActionValidation.ts"],"version":3,"file":"convertActionValidation.d.ts"}
@@ -1,3 +1,4 @@
1
1
  import type { OntologyIrCondition } from "@osdk/client.unstable";
2
+ import type { ActionParameter } from "../../api/action/ActionParameter.js";
2
3
  import type { ConditionDefinition } from "../../api/action/ConditionDefinition.js";
3
- export declare function convertConditionDefinition(condition: ConditionDefinition, objectProperties?: Array<String>): OntologyIrCondition;
4
+ export declare function convertConditionDefinition(condition: ConditionDefinition, actionParameters?: ActionParameter[]): OntologyIrCondition;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,2BAA2B,uBAAwB;AAEjE,cAAc,2BAA2B,yCAA0C;AAEnF,OAAO,iBAAS,2BACdA,WAAW,qBACXC,mBAAmB,MAAM,UACxB","names":["condition: ConditionDefinition","objectProperties?: Array<String>"],"sources":["../../../../src/conversion/toMarketplace/convertConditionDefinition.ts"],"version":3,"file":"convertConditionDefinition.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,2BAA2B,uBAAwB;AAEjE,cAAc,uBAAuB,qCAAsC;AAC3E,cAAc,2BAA2B,yCAA0C;AAEnF,OAAO,iBAAS,2BACdA,WAAW,qBACXC,mBAAmB,oBAClB","names":["condition: ConditionDefinition","actionParameters?: ActionParameter[]"],"sources":["../../../../src/conversion/toMarketplace/convertConditionDefinition.ts"],"version":3,"file":"convertConditionDefinition.d.ts"}
@@ -1,3 +1,4 @@
1
1
  import type { OntologyIrSectionConditionalOverride } from "@osdk/client.unstable";
2
+ import type { ActionParameter } from "../../api/action/ActionParameter.js";
2
3
  import type { SectionConditionalOverride } from "../../api/action/SectionConditionalOverride.js";
3
- export declare function convertSectionConditionalOverride(override: SectionConditionalOverride, defaultVisibility: "visible" | "hidden", objectProperties?: Array<String>): OntologyIrSectionConditionalOverride;
4
+ export declare function convertSectionConditionalOverride(override: SectionConditionalOverride, defaultVisibility: "visible" | "hidden", actionParameters?: ActionParameter[]): OntologyIrSectionConditionalOverride;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,4CAA4C,uBAAwB;AAClF,cAAc,kCAAkC,gDAAiD;AAGjG,OAAO,iBAAS,kCACdA,UAAU,4BACVC,mBAAmB,YAAY,UAC/BC,mBAAmB,MAAM,UACxB","names":["override: SectionConditionalOverride","defaultVisibility: \"visible\" | \"hidden\"","objectProperties?: Array<String>"],"sources":["../../../../src/conversion/toMarketplace/convertSectionConditionalOverride.ts"],"version":3,"file":"convertSectionConditionalOverride.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,4CAA4C,uBAAwB;AAClF,cAAc,uBAAuB,qCAAsC;AAC3E,cAAc,kCAAkC,gDAAiD;AAGjG,OAAO,iBAAS,kCACdA,UAAU,4BACVC,mBAAmB,YAAY,UAC/BC,mBAAmB,oBAClB","names":["override: SectionConditionalOverride","defaultVisibility: \"visible\" | \"hidden\"","actionParameters?: ActionParameter[]"],"sources":["../../../../src/conversion/toMarketplace/convertSectionConditionalOverride.ts"],"version":3,"file":"convertSectionConditionalOverride.d.ts"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/maker",
3
- "version": "0.14.0-beta.1",
3
+ "version": "0.14.0-beta.2",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,8 +40,8 @@
40
40
  "@types/yargs": "^17.0.33",
41
41
  "typescript": "~5.5.4",
42
42
  "vitest": "^3.2.4",
43
- "@osdk/client.unstable": "~2.6.0-beta.1",
44
43
  "@osdk/monorepo.api-extractor": "~0.5.0-beta.1",
44
+ "@osdk/client.unstable": "~2.6.0-beta.1",
45
45
  "@osdk/monorepo.tsconfig": "~0.5.0-beta.1"
46
46
  },
47
47
  "publishConfig": {