@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.
@@ -1 +1 @@
1
- {"version":3,"file":"generatePerActionDataFiles.d.ts","sourceRoot":"","sources":["../../../src/v2.0/generatePerActionDataFiles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAU7E,wBAAsB,0BAA0B,CAC9C,EACE,iBAAiB,EAAE,QAAQ,EAC3B,EAAE,EACF,MAAM,EAAE,UAAU,EAClB,SAAc,EACd,QAAQ,EAAE,gBAAgB,GAC3B,EAAE,IAAI,CACL,eAAe,EACb,mBAAmB,GACnB,IAAI,GACJ,QAAQ,GACR,WAAW,GACX,UAAU,CACb,iBAkOF"}
1
+ {"version":3,"file":"generatePerActionDataFiles.d.ts","sourceRoot":"","sources":["../../../src/v2.0/generatePerActionDataFiles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAU7E,wBAAsB,0BAA0B,CAC9C,EACE,iBAAiB,EAAE,QAAQ,EAC3B,EAAE,EACF,MAAM,EAAE,UAAU,EAClB,SAAc,EACd,QAAQ,EAAE,gBAAgB,GAC3B,EAAE,IAAI,CACL,eAAe,EACb,mBAAmB,GACnB,IAAI,GACJ,QAAQ,GACR,WAAW,GACX,UAAU,CACb,iBA4OF"}
@@ -711,6 +711,10 @@ async function generatePerActionDataFiles({
711
711
  }
712
712
  function createV2Types() {
713
713
  `${action.shortApiName}$Params`;
714
+ let jsDocBlock = ["/**"];
715
+ if (action.description != null) {
716
+ jsDocBlock.push(`* ${action.description}`);
717
+ }
714
718
  return `
715
719
 
716
720
  export namespace ${action.shortApiName}{
@@ -723,6 +727,7 @@ async function generatePerActionDataFiles({
723
727
  const key = `${getDescriptionIfPresent(ogValue.description)}
724
728
  readonly "${ogKey}"${ogValue.nullable ? "?" : ""}`;
725
729
  const value = ogValue.multiplicity ? `ReadonlyArray<${getActionParamType(ogValue.type)}>` : `${getActionParamType(ogValue.type)}`;
730
+ jsDocBlock.push(`* @param {${getActionParamType(ogValue.type)}} ${ogValue.nullable ? `[${ogKey}]` : `${ogKey}`} ${ogValue.description ?? ""} `);
726
731
  return [key, value];
727
732
  }
728
733
  })}
@@ -748,7 +753,8 @@ async function generatePerActionDataFiles({
748
753
 
749
754
  }
750
755
 
751
- /** @deprecated Use \`${action.definitionIdentifier}\` **/
756
+ ${jsDocBlock.join("\n")}
757
+ */
752
758
  export type ${action.shortApiName} = ${action.shortApiName}.Signatures;
753
759
  `;
754
760
  }