@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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @osdk/generator
2
2
 
3
+ ## 1.13.0-beta.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8c76c1a: Adds VersionBound to actions
8
+
3
9
  ## 1.12.0
4
10
 
5
11
  ### Minor Changes
@@ -378,7 +378,7 @@ async function generatePerActionDataFiles(ontology, fs2, outDir, importExt, v2)
378
378
 
379
379
 
380
380
  // Represents the definition of the action
381
- export interface ${actionDefIdentifier} extends ActionDefinition<"${action.apiName}", ${uniqueApiNamesString}, ${action.apiName}>{
381
+ export interface ${actionDefIdentifier} extends ActionDefinition<"${action.apiName}", ${uniqueApiNamesString}, ${action.apiName}>, VersionBound<$ExpectedClientVersion> {
382
382
  ${Object.entries(actionDefSansParameters).sort((a, b) => a[0].localeCompare(b[0])).map(([key, value]) => {
383
383
  return `${key}: ${JSON.stringify(value)};`;
384
384
  }).join("\n")}
@@ -410,9 +410,10 @@ async function generatePerActionDataFiles(ontology, fs2, outDir, importExt, v2)
410
410
  }
411
411
  const importObjects = referencedObjectDefs.size > 0 ? `import type {${[...referencedObjectDefs].join(",")}} from "../objects${importExt}";` : "";
412
412
  await fs2.writeFile(path16__default.join(outDir, `${action.apiName}.ts`), await formatTs(`
413
- import type { ActionDefinition, ObjectActionDataType, ObjectSetActionDataType } from "@osdk/api";
413
+ import type { ActionDefinition, ObjectActionDataType, ObjectSetActionDataType, VersionBound} from "@osdk/api";
414
414
  import type { ActionSignature, ApplyActionOptions, ApplyBatchActionOptions, OsdkActionParameters,ActionReturnTypeForOptions, NOOP } from '@osdk/client.api';
415
415
  import { $osdkMetadata} from "../../OntologyMetadata${importExt}";
416
+ import type { $ExpectedClientVersion } from "../../OntologyMetadata${importExt}";
416
417
  ${importObjects}
417
418
 
418
419
 
@@ -1751,7 +1752,7 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, ontology,
1751
1752
 
1752
1753
  };`;
1753
1754
  }
1754
- var ExpectedOsdkVersion = "0.20.0";
1755
+ var ExpectedOsdkVersion = "0.21.0";
1755
1756
  async function generateOntologyMetadataFile(ontology, userAgent, fs2, outDir) {
1756
1757
  fs2.writeFile(path16__default.join(outDir, "OntologyMetadata.ts"), await formatTs(`
1757
1758
  import { OntologyMetadata as OM } from "@osdk/api";
@@ -2028,5 +2029,5 @@ async function writeJson(minimalFs, filePath, body) {
2028
2029
  }
2029
2030
 
2030
2031
  export { generateClientSdkPackage as __UNSTABLE_generateClientSdkPackage, generateClientSdkVersionOneDotOne, generateClientSdkVersionTwoPointZero, getExpectedDependencies };
2031
- //# sourceMappingURL=out.js.map
2032
+ //# sourceMappingURL=index.js.map
2032
2033
  //# sourceMappingURL=index.js.map