@osdk/generator 1.0.4 → 1.1.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 +21 -0
- package/build/js/index.cjs +3 -3
- package/build/js/index.cjs.map +1 -1
- package/build/js/index.mjs +3 -3
- package/build/js/index.mjs.map +1 -1
- package/build/types/WireOntologyDefinition.d.ts +0 -6
- package/build/types/shared/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts +2 -2
- package/build/types/shared/sanitizeMetadata.d.ts +2 -2
- package/build/types/util/test/TodoWireOntology.d.ts +2 -1
- package/build/types/v2.0/generateClientSdkVersionTwoPointZero.d.ts +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @osdk/generator
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e1a94f22: Revert change to how we generate the built package types
|
|
8
|
+
- Updated dependencies [e1a94f22]
|
|
9
|
+
- @osdk/gateway@1.1.1
|
|
10
|
+
- @osdk/api@1.1.1
|
|
11
|
+
|
|
12
|
+
## 1.1.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- a0d5e431: Update build to ship packages compliant with @arethetypeswrong/cli
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [a0d5e431]
|
|
21
|
+
- @osdk/gateway@1.1.0
|
|
22
|
+
- @osdk/api@1.1.0
|
|
23
|
+
|
|
3
24
|
## 1.0.4
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/build/js/index.cjs
CHANGED
|
@@ -1516,7 +1516,7 @@ async function generateClientSdkVersionTwoPointZero(ontology, fs, outDir, packag
|
|
|
1516
1516
|
const sanitizedOntology = sanitizeMetadata(ontology);
|
|
1517
1517
|
const objectNames = Object.keys(sanitizedOntology.objectTypes);
|
|
1518
1518
|
const actionNames = Object.keys(sanitizedOntology.actionTypes);
|
|
1519
|
-
const interfaceNames = Object.keys(sanitizedOntology.
|
|
1519
|
+
const interfaceNames = Object.keys(sanitizedOntology.interfaceTypes ?? {});
|
|
1520
1520
|
const importExt = packageType === "module" ? ".js" : "";
|
|
1521
1521
|
await fs.mkdir(outDir, {
|
|
1522
1522
|
recursive: true
|
|
@@ -1602,7 +1602,7 @@ async function generateOntologyInterfaces(fs, outDir, interfaceNames, ontology,
|
|
|
1602
1602
|
recursive: true
|
|
1603
1603
|
});
|
|
1604
1604
|
for (const name of interfaceNames) {
|
|
1605
|
-
const obj = ontology.
|
|
1605
|
+
const obj = ontology.interfaceTypes[name];
|
|
1606
1606
|
await fs.writeFile(path15__namespace.default.join(interfacesDir, `${name}.ts`), await formatTs(`
|
|
1607
1607
|
|
|
1608
1608
|
import type { InterfaceDefinition } from "@osdk/api";
|
|
@@ -1611,7 +1611,7 @@ async function generateOntologyInterfaces(fs, outDir, interfaceNames, ontology,
|
|
|
1611
1611
|
`));
|
|
1612
1612
|
}
|
|
1613
1613
|
await fs.writeFile(interfacesDir + ".ts", await formatTs(`
|
|
1614
|
-
${Object.keys(ontology.
|
|
1614
|
+
${Object.keys(ontology.interfaceTypes ?? {}).map((apiName) => `export * from "./interfaces/${apiName}${importExt}";`).join("\n")}
|
|
1615
1615
|
`));
|
|
1616
1616
|
}
|
|
1617
1617
|
|