@osdk/generator 1.3.0 → 1.5.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.
- package/build/js/index.cjs +274 -95
- package/build/js/index.cjs.map +1 -1
- package/build/js/index.mjs +274 -95
- package/build/js/index.mjs.map +1 -1
- package/build/types/shared/wireObjectTypeV2ToSdkObjectConst.d.ts +2 -2
- package/build/types/shared/wireObjectTypeV2ToSdkObjectDefinition.d.ts +2 -2
- package/build/types/util/deleteUndefineds.d.ts +1 -0
- package/build/types/util/test/TodoWireOntology.d.ts +4 -0
- package/build/types/v1.1/generateActions.d.ts +2 -0
- package/build/types/v1.1/generateBulkActions.d.ts +3 -0
- package/build/types/v1.1/generateBulkActions.test.d.ts +1 -0
- package/build/types/v1.1/generatePerActionDataFiles.d.ts +1 -1
- package/build/types/v1.1/wireObjectTypeV2ToV1ObjectInterfaceString.d.ts +3 -2
- package/changelog/1.2.0/pr-10.v2.yml +5 -0
- package/changelog/1.3.0/pr-20.v2.yml +5 -0
- package/changelog/1.4.0/pr-34.v2.yml +5 -0
- package/changelog/1.4.0/pr-48.v2.yml +5 -0
- package/changelog/1.4.0/pr-53.v2.yml +5 -0
- package/changelog/1.4.0/pr-65.v2.yml +5 -0
- package/changelog/@unreleased/.gitkeep +0 -0
- package/package.json +9 -4
- /package/{CHANGELOG.md → CHANGELOG_OLD.md} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ObjectTypeFullMetadata } from "@osdk/gateway/types";
|
|
2
2
|
/** @internal */
|
|
3
|
-
export declare function wireObjectTypeV2ToSdkObjectConst(object:
|
|
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 {
|
|
3
|
-
export declare function wireObjectTypeV2ToSdkObjectDefinition(objectTypeWithLink:
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
|
3
|
+
export declare function generatePerActionDataFiles(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, importExt: string, v2: boolean): Promise<void>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function wireObjectTypeV2ToObjectInterfaceStringV1(objectTypeWithLinks:
|
|
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;
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/generator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.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,8 +25,8 @@
|
|
|
21
25
|
"prettier": "^3.0.3",
|
|
22
26
|
"prettier-plugin-organize-imports": "^3.2.3",
|
|
23
27
|
"tiny-invariant": "^1.3.1",
|
|
24
|
-
"@osdk/
|
|
25
|
-
"@osdk/
|
|
28
|
+
"@osdk/gateway": "1.2.0",
|
|
29
|
+
"@osdk/api": "1.2.0"
|
|
26
30
|
},
|
|
27
31
|
"devDependencies": {
|
|
28
32
|
"@types/node": "^18.0.0",
|
|
@@ -37,7 +41,8 @@
|
|
|
37
41
|
"files": [
|
|
38
42
|
"build/types",
|
|
39
43
|
"build/js",
|
|
40
|
-
"
|
|
44
|
+
"changelog",
|
|
45
|
+
"CHANGELOG_OLD.md",
|
|
41
46
|
"package.json",
|
|
42
47
|
"templates",
|
|
43
48
|
"*.d.ts"
|
|
File without changes
|