@osdk/generator 1.5.0 → 1.7.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.
@@ -1,3 +1,3 @@
1
1
  import type { InterfaceType } from "@osdk/gateway/types";
2
2
  /** @internal */
3
- export declare function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceType: InterfaceType, v2?: boolean): string;
3
+ export declare function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst(interfaceDef: InterfaceType, v2?: boolean): string;
@@ -1,3 +1 @@
1
1
  export * from "./generateMetadata";
2
- export * from "./wireObjectTypeV2ToSdkObjectDefinition";
3
- export * from "./wirePropertyV2ToSdkPropertyDefinition";
@@ -1,3 +1,4 @@
1
1
  import type { ObjectTypeFullMetadata } from "@osdk/gateway/types";
2
+ export declare function getObjectDefIdentifier(name: string, v2: boolean): string;
2
3
  /** @internal */
3
4
  export declare function wireObjectTypeV2ToSdkObjectConst(object: ObjectTypeFullMetadata, importExt: string, v2?: boolean): string;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * A function for changing the stringified key/value pairs of an object.
3
+ *
4
+ * @param value The value of the key/value pair.
5
+ * @param defaultValueFormatter The function that would be called if this customizer wasnt used
6
+ * @param key The key of the key/value pair.
7
+ * @param defaultKeyFormatter The function that would be called if this customizer wasnt used
8
+ *
9
+ * @returns A string, a tuple of strings, or undefined.
10
+ * If a string is returned, it will be used as the value of the key/value pair.
11
+ * If a tuple of strings is returned, the first string will be used as the key of the key/value pair
12
+ * and the second string will be used as the value of the key/value pair.
13
+ * If undefined is returned, the pair will be removed
14
+ */
15
+ type Customizer<K, V extends {}> = (value: V, defaultValueFormatter: (value: any) => string, key: K, defaultKeyFormatter: (key: string) => string) => [string, string] | string | undefined;
16
+ export declare function stringify<T extends Record<string, any>>(obj: T, customizer?: {
17
+ [K in keyof T | "*"]?: Customizer<K, T[K]>;
18
+ }, separator?: string): string;
19
+ export {};
@@ -35,6 +35,7 @@ export declare const TodoWireOntology: {
35
35
  primaryKey: string;
36
36
  displayName: string;
37
37
  description: string;
38
+ titleProperty: string;
38
39
  properties: {
39
40
  id: {
40
41
  dataType: {
@@ -74,6 +75,7 @@ export declare const TodoWireOntology: {
74
75
  primaryKey: string;
75
76
  displayName: string;
76
77
  description: string;
78
+ titleProperty: string;
77
79
  properties: {
78
80
  email: {
79
81
  dataType: {
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Finish future client types
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/67
@@ -0,0 +1,5 @@
1
+ type: feature
2
+ feature:
3
+ description: Add new client invocation syntax
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/83
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Add ObjectSet .get(pk) syntax for 2.0
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/88
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Dynamic ontology data loading
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/89
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Initial Interfaces Support
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/101
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Tweak openapi gen
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/102
@@ -0,0 +1,5 @@
1
+ type: fix
2
+ fix:
3
+ description: Fix long and decimal types to correctly be strings in legacy-client
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/113
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Bump TS and make writing test network mocks easier
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/120
@@ -0,0 +1,5 @@
1
+ type: fix
2
+ fix:
3
+ description: Defend against empty action or object needing an export
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/121
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Sort keys in generated files for smaller (future) diffs
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/124
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/generator",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -25,13 +25,14 @@
25
25
  "prettier": "^3.0.3",
26
26
  "prettier-plugin-organize-imports": "^3.2.3",
27
27
  "tiny-invariant": "^1.3.1",
28
- "@osdk/gateway": "1.2.0",
29
- "@osdk/api": "1.2.0"
28
+ "@osdk/api": "1.4.0",
29
+ "@osdk/gateway": "2.0.0",
30
+ "@osdk/generator-converters": "0.2.0"
30
31
  },
31
32
  "devDependencies": {
32
33
  "@types/node": "^18.0.0",
33
34
  "ts-expect": "^1.3.0",
34
- "typescript": "^5.2.2",
35
+ "typescript": "^5.4.2",
35
36
  "vitest": "^1.2.2"
36
37
  },
37
38
  "publishConfig": {
@@ -1,3 +0,0 @@
1
- import type { ObjectTypeDefinition } from "@osdk/api";
2
- import type { ObjectTypeFullMetadata } from "@osdk/gateway/types";
3
- export declare function wireObjectTypeV2ToSdkObjectDefinition(objectTypeWithLink: ObjectTypeFullMetadata, v2: boolean): ObjectTypeDefinition<any>;
@@ -1,3 +0,0 @@
1
- import type { WirePropertyTypes } from "@osdk/api";
2
- import type { PropertyV2 } from "@osdk/gateway/types";
3
- export declare function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input: PropertyV2): keyof WirePropertyTypes;
@@ -1,3 +0,0 @@
1
- import type { ObjectTypePropertyDefinition } from "@osdk/api";
2
- import type { PropertyV2 } from "@osdk/gateway/types";
3
- export declare function wirePropertyV2ToSdkPropertyDefinition(input: PropertyV2, isNullable?: boolean): ObjectTypePropertyDefinition;
@@ -1,2 +0,0 @@
1
- import type { ObjectTypeV2 } from "@osdk/gateway/types";
2
- export declare function wireObjectTypeV2ToObjectDefinitionInterfaceString(input: ObjectTypeV2): string;