@osdk/generator 1.4.0 → 1.6.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 @@
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 {};
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/generator",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -25,8 +25,9 @@
25
25
  "prettier": "^3.0.3",
26
26
  "prettier-plugin-organize-imports": "^3.2.3",
27
27
  "tiny-invariant": "^1.3.1",
28
- "@osdk/api": "1.2.0",
29
- "@osdk/gateway": "1.2.0"
28
+ "@osdk/api": "1.3.0",
29
+ "@osdk/gateway": "1.2.0",
30
+ "@osdk/generator-converters": "0.1.0"
30
31
  },
31
32
  "devDependencies": {
32
33
  "@types/node": "^18.0.0",
@@ -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;