@osdk/generator 2.0.0-beta.7 → 2.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -737,6 +737,10 @@ async function generatePerActionDataFiles({
737
737
  }
738
738
  function createV2Types() {
739
739
  `${action.shortApiName}$Params`;
740
+ let jsDocBlock = ["/**"];
741
+ if (action.description != null) {
742
+ jsDocBlock.push(`* ${action.description}`);
743
+ }
740
744
  return `
741
745
 
742
746
  export namespace ${action.shortApiName}{
@@ -749,6 +753,7 @@ async function generatePerActionDataFiles({
749
753
  const key = `${getDescriptionIfPresent(ogValue.description)}
750
754
  readonly "${ogKey}"${ogValue.nullable ? "?" : ""}`;
751
755
  const value = ogValue.multiplicity ? `ReadonlyArray<${getActionParamType(ogValue.type)}>` : `${getActionParamType(ogValue.type)}`;
756
+ jsDocBlock.push(`* @param {${getActionParamType(ogValue.type)}} ${ogValue.nullable ? `[${ogKey}]` : `${ogKey}`} ${ogValue.description ?? ""} `);
752
757
  return [key, value];
753
758
  }
754
759
  })}
@@ -774,7 +779,8 @@ async function generatePerActionDataFiles({
774
779
 
775
780
  }
776
781
 
777
- /** @deprecated Use \`${action.definitionIdentifier}\` **/
782
+ ${jsDocBlock.join("\n")}
783
+ */
778
784
  export type ${action.shortApiName} = ${action.shortApiName}.Signatures;
779
785
  `;
780
786
  }