@osdk/generator 1.10.0-main-20240424195251 → 1.10.1
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,19 +1,30 @@
|
|
|
1
1
|
# @osdk/generator
|
|
2
2
|
|
|
3
|
-
## 1.10.
|
|
3
|
+
## 1.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b3f64d9: Modify name passed to TS user agent
|
|
8
|
+
- 111f928: Update searchAround deprecation message
|
|
9
|
+
|
|
10
|
+
- Add quotes around link API name, and convert to camelCase
|
|
11
|
+
|
|
12
|
+
ex) pivotTo(Assignee) -> pivotTo("assignee")
|
|
13
|
+
|
|
14
|
+
## 1.10.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
6
17
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
18
|
+
- 11434b9: Deprecated bulk actions with renamed batchActions functionality
|
|
19
|
+
- 948c634: Add pivot to functionality and deprecate searchAround calls
|
|
20
|
+
- 9906a41: Extract package generation
|
|
21
|
+
- 9906a41: Compatible version checks now use versions that are both embedded in the code and updated automatically as part of the release process.
|
|
22
|
+
- f7287ae: For 2.0, fixes codegen version matching in snapshot builds
|
|
9
23
|
|
|
10
24
|
### Patch Changes
|
|
11
25
|
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
- f7287ae8: For 2.0, fixes codegen version matching in snapshot builds
|
|
15
|
-
- @osdk/api@1.6.2-main-20240424195251
|
|
16
|
-
- @osdk/generator-converters@0.4.1-main-20240424195251
|
|
26
|
+
- @osdk/api@1.7.0
|
|
27
|
+
- @osdk/generator-converters@0.5.0
|
|
17
28
|
|
|
18
29
|
## 1.1.1
|
|
19
30
|
|
package/build/js/index.cjs
CHANGED
|
@@ -85,7 +85,7 @@ ${Array.from(uniqueLinkTargets).map((linkTarget) => `import type { ${linkTarget}
|
|
|
85
85
|
export interface ${objectTypeWithLinks.objectType.apiName} extends OntologyObject {
|
|
86
86
|
/** @deprecated please migrate to $apiName instead */
|
|
87
87
|
readonly __apiName: "${objectTypeWithLinks.objectType.apiName}" & {${objectTypeWithLinks.linkTypes.map((linkType) => {
|
|
88
|
-
return `/** @deprecated please migrate to pivotTo(${linkType.apiName}) instead */ searchAround${linkType.apiName.charAt(0).toUpperCase() + linkType.apiName.slice(1)}?: never`;
|
|
88
|
+
return `/** @deprecated please migrate to pivotTo("${linkType.apiName.charAt(0).toLowerCase() + linkType.apiName.slice(1)}") instead */ searchAround${linkType.apiName.charAt(0).toUpperCase() + linkType.apiName.slice(1)}?: never`;
|
|
89
89
|
})}};
|
|
90
90
|
/** @deprecated please migrate to $primaryKey instead */
|
|
91
91
|
readonly __primaryKey: ${wirePropertyTypeV2ToTypeScriptType(objectTypeWithLinks.objectType.properties[objectTypeWithLinks.objectType.primaryKey].dataType)};
|
|
@@ -1681,7 +1681,7 @@ function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef, v2 = false
|
|
|
1681
1681
|
|
|
1682
1682
|
};`;
|
|
1683
1683
|
}
|
|
1684
|
-
var ExpectedOsdkVersion = "0.
|
|
1684
|
+
var ExpectedOsdkVersion = "0.16.1";
|
|
1685
1685
|
async function generateOntologyMetadataFile(ontology, userAgent, fs2, outDir) {
|
|
1686
1686
|
fs2.writeFile(path16__namespace.default.join(outDir, "OntologyMetadata.ts"), await formatTs(`
|
|
1687
1687
|
import { OntologyMetadata as OM } from "@osdk/api";
|
|
@@ -1814,7 +1814,7 @@ async function generateClientSdkPackage(packageName, packageVersion, sdkVersion,
|
|
|
1814
1814
|
throw new Error("Package name is require");
|
|
1815
1815
|
for (const packageType of ["module", "commonjs"]) {
|
|
1816
1816
|
const outDir = path16__namespace.join(baseOutDir, "dist", packageType);
|
|
1817
|
-
await (sdkVersion === "1.1" ? generateClientSdkVersionOneDotOne : sdkVersion === "2.0" ? generateClientSdkVersionTwoPointZero : void 0)(ontology, `typescript-
|
|
1817
|
+
await (sdkVersion === "1.1" ? generateClientSdkVersionOneDotOne : sdkVersion === "2.0" ? generateClientSdkVersionTwoPointZero : void 0)(ontology, `typescript-osdk/${packageVersion} osdk-cli/${cliVersion}`, minimalFs, outDir, packageType);
|
|
1818
1818
|
await fs__namespace.promises.mkdir(outDir, {
|
|
1819
1819
|
recursive: true
|
|
1820
1820
|
});
|