@osdk/generator 1.12.0 → 1.13.0-beta.0

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.
@@ -405,7 +405,7 @@ async function generatePerActionDataFiles(ontology, fs2, outDir, importExt, v2)
405
405
 
406
406
 
407
407
  // Represents the definition of the action
408
- export interface ${actionDefIdentifier} extends ActionDefinition<"${action.apiName}", ${uniqueApiNamesString}, ${action.apiName}>{
408
+ export interface ${actionDefIdentifier} extends ActionDefinition<"${action.apiName}", ${uniqueApiNamesString}, ${action.apiName}>, VersionBound<$ExpectedClientVersion> {
409
409
  ${Object.entries(actionDefSansParameters).sort((a, b) => a[0].localeCompare(b[0])).map(([key, value]) => {
410
410
  return `${key}: ${JSON.stringify(value)};`;
411
411
  }).join("\n")}
@@ -437,9 +437,10 @@ async function generatePerActionDataFiles(ontology, fs2, outDir, importExt, v2)
437
437
  }
438
438
  const importObjects = referencedObjectDefs.size > 0 ? `import type {${[...referencedObjectDefs].join(",")}} from "../objects${importExt}";` : "";
439
439
  await fs2.writeFile(path16__namespace.default.join(outDir, `${action.apiName}.ts`), await formatTs(`
440
- import type { ActionDefinition, ObjectActionDataType, ObjectSetActionDataType } from "@osdk/api";
440
+ import type { ActionDefinition, ObjectActionDataType, ObjectSetActionDataType, VersionBound} from "@osdk/api";
441
441
  import type { ActionSignature, ApplyActionOptions, ApplyBatchActionOptions, OsdkActionParameters,ActionReturnTypeForOptions, NOOP } from '@osdk/client.api';
442
442
  import { $osdkMetadata} from "../../OntologyMetadata${importExt}";
443
+ import type { $ExpectedClientVersion } from "../../OntologyMetadata${importExt}";
443
444
  ${importObjects}
444
445
 
445
446
 
@@ -1778,7 +1779,7 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, ontology,
1778
1779
 
1779
1780
  };`;
1780
1781
  }
1781
- var ExpectedOsdkVersion = "0.20.0";
1782
+ var ExpectedOsdkVersion = "0.21.0";
1782
1783
  async function generateOntologyMetadataFile(ontology, userAgent, fs2, outDir) {
1783
1784
  fs2.writeFile(path16__namespace.default.join(outDir, "OntologyMetadata.ts"), await formatTs(`
1784
1785
  import { OntologyMetadata as OM } from "@osdk/api";
@@ -2058,5 +2059,5 @@ exports.__UNSTABLE_generateClientSdkPackage = generateClientSdkPackage;
2058
2059
  exports.generateClientSdkVersionOneDotOne = generateClientSdkVersionOneDotOne;
2059
2060
  exports.generateClientSdkVersionTwoPointZero = generateClientSdkVersionTwoPointZero;
2060
2061
  exports.getExpectedDependencies = getExpectedDependencies;
2061
- //# sourceMappingURL=out.js.map
2062
+ //# sourceMappingURL=index.cjs.map
2062
2063
  //# sourceMappingURL=index.cjs.map