@osdk/generator 2.2.0-beta.4 → 2.2.0-beta.6

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,26 @@
1
1
  # @osdk/generator
2
2
 
3
+ ## 2.2.0-beta.6
4
+
5
+ ### Minor Changes
6
+
7
+ - b68adea: Add support for inherited interfaces.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b68adea]
12
+ - Updated dependencies [cddfbf9]
13
+ - Updated dependencies [a6e5f89]
14
+ - @osdk/generator-converters@2.2.0-beta.6
15
+ - @osdk/api@2.2.0-beta.6
16
+
17
+ ## 2.2.0-beta.5
18
+
19
+ ### Patch Changes
20
+
21
+ - @osdk/api@2.2.0-beta.5
22
+ - @osdk/generator-converters@2.2.0-beta.5
23
+
3
24
  ## 2.2.0-beta.4
4
25
 
5
26
  ### Patch Changes
@@ -84,8 +84,8 @@ function changeNames(ontology, newNames) {
84
84
  // Handle interface renames
85
85
  changeEachEntry(draft.interfaceTypes, newNames.interfaces, (ifaceType, oldIfaceName, newIfaceName) => {
86
86
  changeValue(ifaceType, "apiName", oldIfaceName, newIfaceName);
87
- ifaceType.extendsInterfaces = ifaceType.extendsInterfaces.map(v => v === oldIfaceName ? newIfaceName : v);
88
- changeEachEntry(ifaceType.properties, newNames.spts, (property, oldSptName, newSptName) => {
87
+ ifaceType.extendsInterfaces = ifaceType.allExtendsInterfaces.map(v => v === oldIfaceName ? newIfaceName : v);
88
+ changeEachEntry(ifaceType.allProperties, newNames.spts, (property, oldSptName, newSptName) => {
89
89
  changeValue(property, "apiName", oldSptName, newSptName);
90
90
  }, true);
91
91
  }, true);
@@ -210,6 +210,14 @@ const referencedOntology = {
210
210
  },
211
211
  displayName: "Some Property",
212
212
  rid: "idk"
213
+ },
214
+ "com.example.dep.spt2": {
215
+ apiName: "com.example.dep.spt2",
216
+ dataType: {
217
+ type: "string"
218
+ },
219
+ displayName: "Some Property 2",
220
+ rid: "idk"
213
221
  }
214
222
  }
215
223
  }
@@ -1876,10 +1884,11 @@ describe("generator", () => {
1876
1884
  export type OsdkObjectLinks$SomeInterface = {};
1877
1885
 
1878
1886
  export namespace SomeInterface {
1879
- export type PropertyKeys = 'spt';
1887
+ export type PropertyKeys = 'spt' | 'spt2';
1880
1888
 
1881
1889
  export interface Props {
1882
1890
  readonly spt: $PropType['string'] | undefined;
1891
+ readonly spt2: $PropType['string'] | undefined;
1883
1892
  }
1884
1893
  export type StrictProps = Props;
1885
1894
 
@@ -1916,6 +1925,10 @@ describe("generator", () => {
1916
1925
  * display name: 'Some Property'
1917
1926
  */
1918
1927
  spt: $PropertyDef<'string', 'nullable', 'single'>;
1928
+ /**
1929
+ * display name: 'Some Property 2'
1930
+ */
1931
+ spt2: $PropertyDef<'string', 'nullable', 'single'>;
1919
1932
  };
1920
1933
  rid: 'idk2';
1921
1934
  type: 'interface';