@osdk/generator 1.2.0 → 1.4.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
- import type { ObjectTypeWithLink } from "@osdk/gateway/types";
1
+ import type { ObjectTypeFullMetadata } from "@osdk/gateway/types";
2
2
  /** @internal */
3
- export declare function wireObjectTypeV2ToSdkObjectConst(object: ObjectTypeWithLink, v2?: boolean): string;
3
+ export declare function wireObjectTypeV2ToSdkObjectConst(object: ObjectTypeFullMetadata, importExt: string, v2?: boolean): string;
@@ -1,3 +1,3 @@
1
1
  import type { ObjectTypeDefinition } from "@osdk/api";
2
- import type { ObjectTypeWithLink } from "@osdk/gateway/types";
3
- export declare function wireObjectTypeV2ToSdkObjectDefinition(objectTypeWithLink: ObjectTypeWithLink, v2: boolean): ObjectTypeDefinition<any, any>;
2
+ import type { ObjectTypeFullMetadata } from "@osdk/gateway/types";
3
+ export declare function wireObjectTypeV2ToSdkObjectDefinition(objectTypeWithLink: ObjectTypeFullMetadata, v2: boolean): ObjectTypeDefinition<any>;
@@ -0,0 +1 @@
1
+ export declare function deleteUndefineds<T extends Record<string, any>>(obj: T): T;
@@ -65,6 +65,8 @@ export declare const TodoWireOntology: {
65
65
  status: "ACTIVE";
66
66
  foreignKeyPropertyApiName: string;
67
67
  }[];
68
+ implementsInterfaces: never[];
69
+ sharedPropertyTypeMapping: {};
68
70
  };
69
71
  Person: {
70
72
  objectType: {
@@ -90,6 +92,8 @@ export declare const TodoWireOntology: {
90
92
  status: "ACTIVE";
91
93
  foreignKeyPropertyApiName: string;
92
94
  }[];
95
+ implementsInterfaces: never[];
96
+ sharedPropertyTypeMapping: {};
93
97
  };
94
98
  };
95
99
  queryTypes: {
@@ -1,3 +1,5 @@
1
+ import type { ActionParameterType } from "@osdk/gateway/types";
1
2
  import type { MinimalFs } from "../MinimalFs";
2
3
  import type { WireOntologyDefinition } from "../WireOntologyDefinition";
3
4
  export declare function generateActions(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, importExt?: string): Promise<void>;
5
+ export declare function getTypeScriptTypeFromDataType(actionParameter: ActionParameterType, importedObjects: Set<string>): string;
@@ -0,0 +1,3 @@
1
+ import type { MinimalFs } from "../MinimalFs";
2
+ import type { WireOntologyDefinition } from "../WireOntologyDefinition";
3
+ export declare function generateBulkActions(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, importExt?: string): Promise<void>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,3 @@
1
1
  import type { MinimalFs } from "../MinimalFs";
2
2
  import type { WireOntologyDefinition } from "../WireOntologyDefinition";
3
- export declare function generateClientSdkVersionOneDotOne(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, packageType?: "commonjs" | "module"): Promise<void>;
3
+ export declare function generateClientSdkVersionOneDotOne(ontology: WireOntologyDefinition, userAgent: string, fs: MinimalFs, outDir: string, packageType?: "commonjs" | "module"): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  import type { MinimalFs } from "../MinimalFs";
2
2
  import type { WireOntologyDefinition } from "../WireOntologyDefinition";
3
- export declare function generateMetadataFile(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, importExt?: string): Promise<void>;
3
+ export declare function generateMetadataFile(ontology: WireOntologyDefinition, userAgent: string, fs: MinimalFs, outDir: string, importExt?: string): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  import type { MinimalFs } from "../MinimalFs";
2
2
  import type { WireOntologyDefinition } from "../WireOntologyDefinition";
3
- export declare function generatePerActionDataFiles(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, importExt?: string): Promise<void>;
3
+ export declare function generatePerActionDataFiles(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, importExt: string, v2: boolean): Promise<void>;
@@ -1,2 +1,3 @@
1
- import type { ObjectTypeWithLink } from "@osdk/gateway/types";
2
- export declare function wireObjectTypeV2ToObjectInterfaceStringV1(objectTypeWithLinks: ObjectTypeWithLink, importExt?: string): string;
1
+ import type { ObjectTypeFullMetadata } from "@osdk/gateway/types";
2
+ export declare function wireObjectTypeV2ToObjectInterfaceStringV1(objectTypeWithLinks: ObjectTypeFullMetadata, importExt?: string): string;
3
+ export declare function getDescriptionIfPresent(description?: string, includeNewline?: boolean): string;
@@ -1,3 +1,3 @@
1
1
  import type { MinimalFs } from "../MinimalFs";
2
2
  import type { WireOntologyDefinition } from "../WireOntologyDefinition";
3
- export declare function generateClientSdkVersionTwoPointZero(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, packageType?: "module" | "commonjs"): Promise<void>;
3
+ export declare function generateClientSdkVersionTwoPointZero(ontology: WireOntologyDefinition, userAgent: string, fs: MinimalFs, outDir: string, packageType?: "module" | "commonjs"): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  import type { MinimalFs } from "../MinimalFs";
2
2
  import type { WireOntologyDefinition } from "../WireOntologyDefinition";
3
- export declare function generateOntologyMetadataFile(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string): Promise<void>;
3
+ export declare function generateOntologyMetadataFile(ontology: WireOntologyDefinition, userAgent: string, fs: MinimalFs, outDir: string): Promise<void>;
@@ -0,0 +1,5 @@
1
+ type: fix
2
+ fix:
3
+ description: Support modules in v1 code generation
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/10
@@ -0,0 +1,5 @@
1
+ type: fix
2
+ fix:
3
+ description: Send consistent UserAgent strings
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/20
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Trying to add shared testing infra for legacy client
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/34
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Prep for new client syntax
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/48
@@ -0,0 +1,5 @@
1
+ type: feature
2
+ feature:
3
+ description: Adding bulk actions to 1.1
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/53
@@ -0,0 +1,5 @@
1
+ type: improvement
2
+ improvement:
3
+ description: Prep for actions
4
+ links:
5
+ - https://github.com/palantir/osdk-ts/pull/65
File without changes
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@osdk/generator",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/palantir/osdk-ts.git"
10
+ },
7
11
  "exports": {
8
12
  ".": {
9
13
  "types": "./build/types/index.d.ts",
@@ -21,14 +25,14 @@
21
25
  "prettier": "^3.0.3",
22
26
  "prettier-plugin-organize-imports": "^3.2.3",
23
27
  "tiny-invariant": "^1.3.1",
24
- "@osdk/api": "1.1.1",
25
- "@osdk/gateway": "1.1.1"
28
+ "@osdk/api": "1.2.0",
29
+ "@osdk/gateway": "1.2.0"
26
30
  },
27
31
  "devDependencies": {
28
32
  "@types/node": "^18.0.0",
29
33
  "ts-expect": "^1.3.0",
30
34
  "typescript": "^5.2.2",
31
- "vitest": "^1.2.1"
35
+ "vitest": "^1.2.2"
32
36
  },
33
37
  "publishConfig": {
34
38
  "access": "public"
@@ -37,8 +41,10 @@
37
41
  "files": [
38
42
  "build/types",
39
43
  "build/js",
40
- "CHANGELOG.md",
44
+ "changelog",
45
+ "CHANGELOG_OLD.md",
41
46
  "package.json",
47
+ "templates",
42
48
  "*.d.ts"
43
49
  ],
44
50
  "main": "./build/js/index.cjs",
File without changes