@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 +6 -0
- package/build/browser/index.js +5 -4
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +5 -4
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/shared/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.cts +1 -4
- package/build/cjs/shared/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts.map +1 -1
- package/build/cjs/shared/generatePerActionDataFiles.d.ts.map +1 -1
- package/build/cjs/shared/sanitizeMetadata.d.cts +1 -9
- package/build/cjs/shared/sanitizeMetadata.d.ts.map +1 -1
- package/build/cjs/shared/wireObjectTypeV2ToSdkObjectConst.d.cts +0 -3
- package/build/cjs/shared/wireObjectTypeV2ToSdkObjectConst.d.ts.map +1 -1
- package/build/esm/index.js +5 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/shared/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts +1 -4
- package/build/esm/shared/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts.map +1 -1
- package/build/esm/shared/generatePerActionDataFiles.d.ts.map +1 -1
- package/build/esm/shared/sanitizeMetadata.d.ts +1 -9
- package/build/esm/shared/sanitizeMetadata.d.ts.map +1 -1
- package/build/esm/shared/wireObjectTypeV2ToSdkObjectConst.d.ts +0 -3
- package/build/esm/shared/wireObjectTypeV2ToSdkObjectConst.d.ts.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/build/browser/index.js
CHANGED
|
@@ -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.
|
|
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=
|
|
2032
|
+
//# sourceMappingURL=index.js.map
|
|
2032
2033
|
//# sourceMappingURL=index.js.map
|