@osdk/react 0.10.0-beta.7 → 0.10.0-beta.9

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.
Files changed (76) hide show
  1. package/AGENTS.md +46 -222
  2. package/CHANGELOG.md +29 -0
  3. package/build/browser/new/useLinks.js +8 -2
  4. package/build/browser/new/useLinks.js.map +1 -1
  5. package/build/browser/new/useObjectSet.js +4 -2
  6. package/build/browser/new/useObjectSet.js.map +1 -1
  7. package/build/browser/new/useOsdkObject.js +19 -3
  8. package/build/browser/new/useOsdkObject.js.map +1 -1
  9. package/build/browser/new/useOsdkObjects.js +7 -2
  10. package/build/browser/new/useOsdkObjects.js.map +1 -1
  11. package/build/browser/{intellisense.test.helpers/useOsdkObjectsWithPivot.js → public/experimental/admin.js} +4 -19
  12. package/build/browser/public/experimental/admin.js.map +1 -0
  13. package/build/browser/public/experimental.js +0 -3
  14. package/build/browser/public/experimental.js.map +1 -1
  15. package/build/browser/useOsdkMetadata.js.map +1 -1
  16. package/build/cjs/chunk-SVVMLSKN.cjs +111 -0
  17. package/build/cjs/chunk-SVVMLSKN.cjs.map +1 -0
  18. package/build/cjs/index.d.cts +1 -1
  19. package/build/cjs/public/experimental/admin.cjs +146 -0
  20. package/build/cjs/public/experimental/admin.cjs.map +1 -0
  21. package/build/cjs/public/experimental/admin.d.cts +118 -0
  22. package/build/cjs/public/experimental.cjs +114 -328
  23. package/build/cjs/public/experimental.cjs.map +1 -1
  24. package/build/cjs/public/experimental.d.cts +41 -118
  25. package/build/cjs/useOsdkMetadata-BElt3F5s.d.cts +15 -0
  26. package/build/esm/new/useLinks.js +8 -2
  27. package/build/esm/new/useLinks.js.map +1 -1
  28. package/build/esm/new/useObjectSet.js +4 -2
  29. package/build/esm/new/useObjectSet.js.map +1 -1
  30. package/build/esm/new/useOsdkObject.js +19 -3
  31. package/build/esm/new/useOsdkObject.js.map +1 -1
  32. package/build/esm/new/useOsdkObjects.js +7 -2
  33. package/build/esm/new/useOsdkObjects.js.map +1 -1
  34. package/build/esm/{intellisense.test.helpers/useOsdkObjectsWithPivot.js → public/experimental/admin.js} +4 -19
  35. package/build/esm/public/experimental/admin.js.map +1 -0
  36. package/build/esm/public/experimental.js +0 -3
  37. package/build/esm/public/experimental.js.map +1 -1
  38. package/build/esm/useOsdkMetadata.js.map +1 -1
  39. package/build/types/new/useLinks.d.ts +12 -0
  40. package/build/types/new/useLinks.d.ts.map +1 -1
  41. package/build/types/new/useObjectSet.d.ts +6 -0
  42. package/build/types/new/useObjectSet.d.ts.map +1 -1
  43. package/build/types/new/useOsdkObject.d.ts +12 -1
  44. package/build/types/new/useOsdkObject.d.ts.map +1 -1
  45. package/build/types/new/useOsdkObjects.d.ts +10 -0
  46. package/build/types/new/useOsdkObjects.d.ts.map +1 -1
  47. package/build/types/public/experimental/admin.d.ts +3 -0
  48. package/build/types/public/experimental/admin.d.ts.map +1 -0
  49. package/build/types/public/experimental.d.ts +0 -3
  50. package/build/types/public/experimental.d.ts.map +1 -1
  51. package/build/types/useOsdkMetadata.d.ts +5 -4
  52. package/build/types/useOsdkMetadata.d.ts.map +1 -1
  53. package/{build/esm/intellisense.test.helpers/useOsdkObjectsWithProperties.js → experimental/admin.d.ts} +1 -18
  54. package/package.json +16 -5
  55. package/build/browser/intellisense.test.helpers/useOsdkObjectsWithPivot.js.map +0 -1
  56. package/build/browser/intellisense.test.helpers/useOsdkObjectsWithProperties.js +0 -34
  57. package/build/browser/intellisense.test.helpers/useOsdkObjectsWithProperties.js.map +0 -1
  58. package/build/browser/intellisense.test.helpers/useOsdkObjectsWithRids.js +0 -37
  59. package/build/browser/intellisense.test.helpers/useOsdkObjectsWithRids.js.map +0 -1
  60. package/build/browser/intellisense.test.js +0 -172
  61. package/build/browser/intellisense.test.js.map +0 -1
  62. package/build/cjs/useOsdkMetadata-DFZhnhGZ.d.cts +0 -14
  63. package/build/esm/intellisense.test.helpers/useOsdkObjectsWithPivot.js.map +0 -1
  64. package/build/esm/intellisense.test.helpers/useOsdkObjectsWithProperties.js.map +0 -1
  65. package/build/esm/intellisense.test.helpers/useOsdkObjectsWithRids.js +0 -37
  66. package/build/esm/intellisense.test.helpers/useOsdkObjectsWithRids.js.map +0 -1
  67. package/build/esm/intellisense.test.js +0 -172
  68. package/build/esm/intellisense.test.js.map +0 -1
  69. package/build/types/intellisense.test.d.ts +0 -1
  70. package/build/types/intellisense.test.d.ts.map +0 -1
  71. package/build/types/intellisense.test.helpers/useOsdkObjectsWithPivot.d.ts +0 -1
  72. package/build/types/intellisense.test.helpers/useOsdkObjectsWithPivot.d.ts.map +0 -1
  73. package/build/types/intellisense.test.helpers/useOsdkObjectsWithProperties.d.ts +0 -1
  74. package/build/types/intellisense.test.helpers/useOsdkObjectsWithProperties.d.ts.map +0 -1
  75. package/build/types/intellisense.test.helpers/useOsdkObjectsWithRids.d.ts +0 -1
  76. package/build/types/intellisense.test.helpers/useOsdkObjectsWithRids.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/react",
3
- "version": "0.10.0-beta.7",
3
+ "version": "0.10.0-beta.9",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,6 +25,15 @@
25
25
  "require": "./build/cjs/public/experimental.cjs",
26
26
  "default": "./build/browser/public/experimental.js"
27
27
  },
28
+ "./experimental/admin": {
29
+ "browser": "./build/browser/public/experimental/admin.js",
30
+ "import": {
31
+ "types": "./build/types/public/experimental/admin.d.ts",
32
+ "default": "./build/esm/public/experimental/admin.js"
33
+ },
34
+ "require": "./build/cjs/public/experimental/admin.cjs",
35
+ "default": "./build/browser/public/experimental/admin.js"
36
+ },
28
37
  "./*": {
29
38
  "browser": "./build/browser/public/*.js",
30
39
  "import": {
@@ -67,11 +76,11 @@
67
76
  "react": "^18.3.1",
68
77
  "tiny-invariant": "^1.3.3",
69
78
  "typescript": "~5.5.4",
70
- "@osdk/client.test.ontology": "2.8.0-beta.14",
71
- "@osdk/monorepo.tsconfig": "~0.7.0-beta.1",
79
+ "@osdk/api": "2.8.0-beta.21",
80
+ "@osdk/client": "2.8.0-beta.21",
81
+ "@osdk/client.test.ontology": "2.8.0-beta.21",
72
82
  "@osdk/monorepo.api-extractor": "~0.7.0-beta.1",
73
- "@osdk/api": "2.8.0-beta.14",
74
- "@osdk/client": "2.8.0-beta.14"
83
+ "@osdk/monorepo.tsconfig": "~0.7.0-beta.1"
75
84
  },
76
85
  "publishConfig": {
77
86
  "access": "public"
@@ -79,6 +88,7 @@
79
88
  "files": [
80
89
  "AGENTS.md",
81
90
  "docs",
91
+ "experimental",
82
92
  "build/cjs",
83
93
  "build/esm",
84
94
  "build/browser",
@@ -91,6 +101,7 @@
91
101
  "main": "./build/cjs/index.cjs",
92
102
  "module": "./build/esm/index.js",
93
103
  "types": "./build/cjs/index.d.cts",
104
+ "sideEffects": false,
94
105
  "type": "module",
95
106
  "scripts": {
96
107
  "apiDocs": "npx typedoc ",
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOsdkObjectsWithPivot.js","names":["Employee","useOsdkObjects","TestComponent","data","pivotTo"],"sources":["useOsdkObjectsWithPivot.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// WARNING!\n// WARNING!\n// This file is used for tests that check intellisense. Editing this file by hand will likely\n// break tests that have hard coded line numbers and line offsets.\n\nimport { Employee } from \"@osdk/client.test.ontology\";\nimport { useOsdkObjects } from \"@osdk/react/experimental\";\n\ndeclare const MyComponent: () => void;\n\nfunction TestComponent() {\n const { data } = useOsdkObjects(Employee, {\n pivotTo: \"lead\",\n });\n\n // Line 31: Check that data has the correct pivoted type\n const firstItem = data?.[0];\n\n return null;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,4BAA4B;AACrD,SAASC,cAAc,QAAQ,0BAA0B;AAIzD,SAASC,aAAaA,CAAA,EAAG;EACvB,MAAM;IAAEC;EAAK,CAAC,GAAGF,cAAc,CAACD,QAAQ,EAAE;IACxCI,OAAO,EAAE;EACX,CAAC,CAAC;;EAEF;EACkBD,IAAI,GAAG,CAAC,CAAC;EAE3B,OAAO,IAAI;AACb","ignoreList":[]}
@@ -1,34 +0,0 @@
1
- /*
2
- * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- // WARNING!
18
- // WARNING!
19
- // This file is used for tests that check intellisense. Editing this file by hand will likely
20
- // break tests that have hard coded line numbers and line offsets.
21
-
22
- import { Employee } from "@osdk/client.test.ontology";
23
- import { useOsdkObjects } from "@osdk/react/experimental";
24
- function TestComponent() {
25
- const {
26
- data
27
- } = useOsdkObjects(Employee, {
28
- withProperties: {
29
- constantValue: employee => employee.constant.integer(42)
30
- }
31
- });
32
- return null;
33
- }
34
- //# sourceMappingURL=useOsdkObjectsWithProperties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOsdkObjectsWithProperties.js","names":["Employee","useOsdkObjects","TestComponent","data","withProperties","constantValue","employee","constant","integer"],"sources":["useOsdkObjectsWithProperties.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// WARNING!\n// WARNING!\n// This file is used for tests that check intellisense. Editing this file by hand will likely\n// break tests that have hard coded line numbers and line offsets.\n\nimport type { DerivedProperty } from \"@osdk/api\";\nimport { Employee } from \"@osdk/client.test.ontology\";\nimport { useOsdkObjects } from \"@osdk/react/experimental\";\n\nfunction TestComponent() {\n const withProps: DerivedProperty.Clause<typeof Employee> = {\n constantValue: (employee) => employee.constant.integer(42),\n };\n\n const { data } = useOsdkObjects(Employee, {\n withProperties: withProps,\n });\n\n return null;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAGA,SAASA,QAAQ,QAAQ,4BAA4B;AACrD,SAASC,cAAc,QAAQ,0BAA0B;AAEzD,SAASC,aAAaA,CAAA,EAAG;EAKvB,MAAM;IAAEC;EAAK,CAAC,GAAGF,cAAc,CAACD,QAAQ,EAAE;IACxCI,cAAc,EAL2C;MACzDC,aAAa,EAAGC,QAAQ,IAAKA,QAAQ,CAACC,QAAQ,CAACC,OAAO,CAAC,EAAE;IAC3D;EAIA,CAAC,CAAC;EAEF,OAAO,IAAI;AACb","ignoreList":[]}
@@ -1,37 +0,0 @@
1
- /*
2
- * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- // WARNING!
18
- // WARNING!
19
- // This file is used for tests that check intellisense. Editing this file by hand will likely
20
- // break tests that have hard coded line numbers and line offsets.
21
-
22
- import { Employee } from "@osdk/client.test.ontology";
23
- import { useOsdkObjects } from "@osdk/react/experimental";
24
- function TestComponent() {
25
- const {
26
- data: ridsData
27
- } = useOsdkObjects(Employee, {
28
- rids: ["ri.foo.123"]
29
- });
30
- ridsData?.[0];
31
- const {
32
- data: noRidsData
33
- } = useOsdkObjects(Employee);
34
- noRidsData?.[0];
35
- return null;
36
- }
37
- //# sourceMappingURL=useOsdkObjectsWithRids.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOsdkObjectsWithRids.js","names":["Employee","useOsdkObjects","TestComponent","data","ridsData","rids","noRidsData"],"sources":["useOsdkObjectsWithRids.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// WARNING!\n// WARNING!\n// This file is used for tests that check intellisense. Editing this file by hand will likely\n// break tests that have hard coded line numbers and line offsets.\n\nimport { Employee } from \"@osdk/client.test.ontology\";\nimport { useOsdkObjects } from \"@osdk/react/experimental\";\n\nfunction TestComponent() {\n const { data: ridsData } = useOsdkObjects(Employee, {\n rids: [\"ri.foo.123\"],\n });\n\n const ridsItem = ridsData?.[0];\n\n const { data: noRidsData } = useOsdkObjects(Employee);\n\n const noRidsItem = noRidsData?.[0];\n\n return null;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,4BAA4B;AACrD,SAASC,cAAc,QAAQ,0BAA0B;AAEzD,SAASC,aAAaA,CAAA,EAAG;EACvB,MAAM;IAAEC,IAAI,EAAEC;EAAS,CAAC,GAAGH,cAAc,CAACD,QAAQ,EAAE;IAClDK,IAAI,EAAE,CAAC,YAAY;EACrB,CAAC,CAAC;EAEeD,QAAQ,GAAG,CAAC,CAAC;EAE9B,MAAM;IAAED,IAAI,EAAEG;EAAW,CAAC,GAAGL,cAAc,CAACD,QAAQ,CAAC;EAElCM,UAAU,GAAG,CAAC,CAAC;EAElC,OAAO,IAAI;AACb","ignoreList":[]}
@@ -1,172 +0,0 @@
1
- /*
2
- * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import { startTsServer } from "@osdk/client/internal-node";
18
- import { findUpSync } from "find-up";
19
- import * as path from "node:path";
20
- import invariant from "tiny-invariant";
21
- import * as ts from "typescript";
22
- import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
23
-
24
- // it needs to be hoisted because its referenced from our mocked WebSocket
25
- // which must be hoisted to work
26
- const rootLogger = await vi.hoisted(async () => {
27
- const pino = (await import("pino")).pino;
28
- const pinoPretty = await import("pino-pretty");
29
- const {
30
- EventEmitter
31
- } = await import("node:events");
32
- return Promise.resolve(pino({
33
- level: "info"
34
- }, pinoPretty.build({
35
- sync: true,
36
- timestampKey: undefined,
37
- errorLikeObjectKeys: ["error", "err", "exception"],
38
- errorProps: "stack,cause,properties",
39
- ignore: "time,hostname,pid",
40
- destination: new class extends EventEmitter {
41
- write(a) {
42
- // remove trailing newline since console.log adds one
43
- if (a.at(-1) === "\n") a = a.slice(0, -1);
44
-
45
- // This lets the test framework aggregate the logs per test, whereas direct to stdout does not
46
- console.log(a);
47
- }
48
- }()
49
- })));
50
- });
51
-
52
- /**
53
- * @vitest-environment node
54
- * @vitest-pool forks
55
- */
56
- describe("intellisense", () => {
57
- let packagesDir;
58
- let reactPackagePath;
59
- beforeAll(() => {
60
- const reactPackageJson = findUpSync("package.json", {
61
- cwd: import.meta.dirname
62
- });
63
- console.log({
64
- reactPackageJson
65
- });
66
- !(reactPackageJson != null) ? process.env.NODE_ENV !== "production" ? invariant(false) : invariant(false) : void 0;
67
- packagesDir = path.join(path.dirname(reactPackageJson), "..");
68
- reactPackagePath = path.join(packagesDir, "react");
69
- });
70
- let tsServer;
71
- let intellisenseFilePath;
72
- beforeEach(async a => {
73
- intellisenseFilePath = path.join(reactPackagePath, "src", "intellisense.test.helpers", `${a.task.name}.ts`);
74
- console.log(intellisenseFilePath);
75
- expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();
76
- try {
77
- tsServer = await startTsServer(rootLogger);
78
- await tsServer.sendOpenRequest({
79
- file: intellisenseFilePath
80
- });
81
- } catch (error) {
82
- if (tsServer) {
83
- try {
84
- tsServer.stop();
85
- } catch {
86
- // Ignore cleanup errors
87
- }
88
- tsServer = undefined;
89
- }
90
- throw error;
91
- }
92
- });
93
- afterEach(() => {
94
- if (tsServer) {
95
- tsServer.stop();
96
- tsServer = undefined;
97
- }
98
- });
99
- it("useOsdkObjectsWithPivot", {
100
- timeout: 40_000
101
- }, async () => {
102
- expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();
103
- !tsServer ? process.env.NODE_ENV !== "production" ? invariant(false) : invariant(false) : void 0;
104
- const {
105
- resp
106
- } = await tsServer.sendCompletionsRequest({
107
- file: intellisenseFilePath,
108
- line: 29,
109
- offset: 15,
110
- triggerKind: ts.CompletionTriggerKind.Invoked
111
- });
112
- const completions = resp.body?.entries.map(e => e.name) ?? [];
113
- expect(completions).toContain("lead");
114
- const {
115
- resp: typeResp
116
- } = await tsServer.sendQuickInfoRequest({
117
- file: intellisenseFilePath,
118
- line: 33,
119
- offset: 10
120
- });
121
- expect(typeResp.body?.displayString).toBeDefined();
122
- expect(typeResp.body?.displayString).toContain("Employee");
123
- });
124
- it("useOsdkObjectsWithRids", {
125
- timeout: 40_000
126
- }, async () => {
127
- expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();
128
- !tsServer ? process.env.NODE_ENV !== "production" ? invariant(false) : invariant(false) : void 0;
129
- const {
130
- resp: ridsResp
131
- } = await tsServer.sendQuickInfoRequest({
132
- file: intellisenseFilePath,
133
- line: 30,
134
- offset: 9
135
- });
136
- expect(ridsResp.body?.displayString).toBeDefined();
137
- expect(ridsResp.body?.displayString).toContain("$rid");
138
- const {
139
- resp: noRidsResp
140
- } = await tsServer.sendQuickInfoRequest({
141
- file: intellisenseFilePath,
142
- line: 34,
143
- offset: 9
144
- });
145
- expect(noRidsResp.body?.displayString).toBeDefined();
146
- expect(noRidsResp.body?.displayString).not.toContain("$rid");
147
- });
148
- it("useOsdkObjectsWithProperties", {
149
- timeout: 40_000
150
- }, async () => {
151
- expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();
152
- !tsServer ? process.env.NODE_ENV !== "production" ? invariant(false) : invariant(false) : void 0;
153
- const {
154
- resp
155
- } = await tsServer.sendQuickInfoRequest({
156
- file: intellisenseFilePath,
157
- line: 27,
158
- offset: 10
159
- });
160
- expect(resp.body?.displayString).toContain("DerivedProperty.Clause");
161
- const {
162
- resp: dataResp
163
- } = await tsServer.sendQuickInfoRequest({
164
- file: intellisenseFilePath,
165
- line: 31,
166
- offset: 11
167
- });
168
- expect(dataResp.body?.displayString).toBeDefined();
169
- expect(dataResp.body?.displayString).toContain("Osdk.Instance<Employee");
170
- });
171
- });
172
- //# sourceMappingURL=intellisense.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intellisense.test.js","names":["startTsServer","findUpSync","path","invariant","ts","afterEach","beforeAll","beforeEach","describe","expect","it","vi","rootLogger","hoisted","pino","pinoPretty","EventEmitter","Promise","resolve","level","build","sync","timestampKey","undefined","errorLikeObjectKeys","errorProps","ignore","destination","write","a","at","slice","console","log","packagesDir","reactPackagePath","reactPackageJson","cwd","import","meta","dirname","process","env","NODE_ENV","join","tsServer","intellisenseFilePath","task","name","sys","fileExists","toBeTruthy","sendOpenRequest","file","error","stop","timeout","resp","sendCompletionsRequest","line","offset","triggerKind","CompletionTriggerKind","Invoked","completions","body","entries","map","e","toContain","typeResp","sendQuickInfoRequest","displayString","toBeDefined","ridsResp","noRidsResp","not","dataResp"],"sources":["intellisense.test.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Logger } from \"@osdk/api\";\nimport type { TsServer } from \"@osdk/client/internal-node\";\nimport { startTsServer } from \"@osdk/client/internal-node\";\nimport { findUpSync } from \"find-up\";\nimport * as path from \"node:path\";\nimport invariant from \"tiny-invariant\";\nimport * as ts from \"typescript\";\nimport {\n afterEach,\n beforeAll,\n beforeEach,\n describe,\n expect,\n it,\n vi,\n} from \"vitest\";\n\n// it needs to be hoisted because its referenced from our mocked WebSocket\n// which must be hoisted to work\nconst rootLogger = await vi.hoisted(async (): Promise<Logger> => {\n const pino = (await import(\"pino\")).pino;\n const pinoPretty = await import(\"pino-pretty\");\n const { EventEmitter } = await import(\"node:events\");\n class PinoConsoleLogDestination extends EventEmitter {\n write(a: string) {\n // remove trailing newline since console.log adds one\n if (a.at(-1) === \"\\n\") a = a.slice(0, -1);\n\n // This lets the test framework aggregate the logs per test, whereas direct to stdout does not\n console.log(a);\n }\n }\n return Promise.resolve(pino(\n { level: \"info\" },\n (pinoPretty.build)({\n sync: true,\n timestampKey: undefined,\n errorLikeObjectKeys: [\"error\", \"err\", \"exception\"],\n errorProps: \"stack,cause,properties\",\n ignore: \"time,hostname,pid\",\n destination: new PinoConsoleLogDestination(),\n }),\n ));\n});\n\n/**\n * @vitest-environment node\n * @vitest-pool forks\n */\ndescribe(\"intellisense\", () => {\n let packagesDir: string;\n let reactPackagePath: string;\n\n beforeAll(() => {\n const reactPackageJson = findUpSync(\"package.json\", {\n cwd: import.meta.dirname,\n });\n console.log({ reactPackageJson });\n invariant(reactPackageJson != null);\n packagesDir = path.join(\n path.dirname(reactPackageJson),\n \"..\",\n );\n\n reactPackagePath = path.join(packagesDir, \"react\");\n });\n\n let tsServer: TsServer | undefined;\n let intellisenseFilePath: string;\n\n beforeEach(async (a) => {\n intellisenseFilePath = path.join(\n reactPackagePath,\n \"src\",\n \"intellisense.test.helpers\",\n `${a.task.name}.ts`,\n );\n\n console.log(intellisenseFilePath);\n\n expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();\n\n try {\n tsServer = await startTsServer(rootLogger);\n await tsServer.sendOpenRequest({ file: intellisenseFilePath });\n } catch (error) {\n if (tsServer) {\n try {\n tsServer.stop();\n } catch {\n // Ignore cleanup errors\n }\n tsServer = undefined;\n }\n throw error;\n }\n });\n\n afterEach(() => {\n if (tsServer) {\n tsServer.stop();\n tsServer = undefined;\n }\n });\n\n it(\"useOsdkObjectsWithPivot\", { timeout: 40_000 }, async () => {\n expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();\n invariant(tsServer);\n\n const { resp } = await tsServer.sendCompletionsRequest({\n file: intellisenseFilePath,\n line: 29,\n offset: 15,\n triggerKind: ts.CompletionTriggerKind.Invoked,\n });\n\n const completions = resp.body?.entries.map(e => e.name) ?? [];\n expect(completions).toContain(\"lead\");\n\n const { resp: typeResp } = await tsServer.sendQuickInfoRequest({\n file: intellisenseFilePath,\n line: 33,\n offset: 10,\n });\n\n expect(typeResp.body?.displayString).toBeDefined();\n expect(typeResp.body?.displayString).toContain(\"Employee\");\n });\n\n it(\"useOsdkObjectsWithRids\", { timeout: 40_000 }, async () => {\n expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();\n invariant(tsServer);\n\n const { resp: ridsResp } = await tsServer.sendQuickInfoRequest({\n file: intellisenseFilePath,\n line: 30,\n offset: 9,\n });\n\n expect(ridsResp.body?.displayString).toBeDefined();\n expect(ridsResp.body?.displayString).toContain(\"$rid\");\n\n const { resp: noRidsResp } = await tsServer.sendQuickInfoRequest({\n file: intellisenseFilePath,\n line: 34,\n offset: 9,\n });\n\n expect(noRidsResp.body?.displayString).toBeDefined();\n expect(noRidsResp.body?.displayString).not.toContain(\"$rid\");\n });\n\n it(\"useOsdkObjectsWithProperties\", { timeout: 40_000 }, async () => {\n expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();\n invariant(tsServer);\n\n const { resp } = await tsServer.sendQuickInfoRequest({\n file: intellisenseFilePath,\n line: 27,\n offset: 10,\n });\n\n expect(resp.body?.displayString).toContain(\"DerivedProperty.Clause\");\n\n const { resp: dataResp } = await tsServer.sendQuickInfoRequest({\n file: intellisenseFilePath,\n line: 31,\n offset: 11,\n });\n\n expect(dataResp.body?.displayString).toBeDefined();\n expect(dataResp.body?.displayString).toContain(\"Osdk.Instance<Employee\");\n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AE;EAAO,CAAC,EAAE,YAAY;IAClE/C,MAAM,CAACL,EAAE,CAAC6C,GAAG,CAACC,UAAU,CAACJ,oBAAoB,CAAC,CAAC,CAACK,UAAU,CAAC,CAAC;IAC5D,CAAUN,QAAQ,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAlBxC,SAAS,UAATA,SAAS;IAET,MAAM;MAAEsD;IAAK,CAAC,GAAG,MAAMZ,QAAQ,CAAC0B,oBAAoB,CAAC;MACnDlB,IAAI,EAAEP,oBAAoB;MAC1Ba,IAAI,EAAE,EAAE;MACRC,MAAM,EAAE;IACV,CAAC,CAAC;IAEFnD,MAAM,CAACgD,IAAI,CAACQ,IAAI,EAAEO,aAAa,CAAC,CAACH,SAAS,CAAC,wBAAwB,CAAC;IAEpE,MAAM;MAAEZ,IAAI,EAAEoB;IAAS,CAAC,GAAG,MAAMhC,QAAQ,CAAC0B,oBAAoB,CAAC;MAC7DlB,IAAI,EAAEP,oBAAoB;MAC1Ba,IAAI,EAAE,EAAE;MACRC,MAAM,EAAE;IACV,CAAC,CAAC;IAEFnD,MAAM,CAACoE,QAAQ,CAACZ,IAAI,EAAEO,aAAa,CAAC,CAACC,WAAW,CAAC,CAAC;IAClDhE,MAAM,CAACoE,QAAQ,CAACZ,IAAI,EAAEO,aAAa,CAAC,CAACH,SAAS,CAAC,wBAAwB,CAAC;EAC1E,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1,14 +0,0 @@
1
- import { Client } from '@osdk/client';
2
- import { ObjectOrInterfaceDefinition, InterfaceDefinition, InterfaceMetadata, ObjectTypeDefinition, ObjectMetadata } from '@osdk/api';
3
-
4
- declare function useOsdkClient(): Client;
5
-
6
- type MetadataFor<T extends ObjectOrInterfaceDefinition> = T extends InterfaceDefinition ? InterfaceMetadata : T extends ObjectTypeDefinition ? ObjectMetadata : never;
7
- interface UseOsdkMetadataResult<T extends ObjectOrInterfaceDefinition> {
8
- loading: boolean;
9
- metadata?: MetadataFor<T>;
10
- error?: string;
11
- }
12
- declare function useOsdkMetadata<T extends ObjectOrInterfaceDefinition>(type: T): UseOsdkMetadataResult<T>;
13
-
14
- export { type UseOsdkMetadataResult as U, useOsdkMetadata as a, useOsdkClient as u };
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOsdkObjectsWithPivot.js","names":["Employee","useOsdkObjects","TestComponent","data","pivotTo"],"sources":["useOsdkObjectsWithPivot.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// WARNING!\n// WARNING!\n// This file is used for tests that check intellisense. Editing this file by hand will likely\n// break tests that have hard coded line numbers and line offsets.\n\nimport { Employee } from \"@osdk/client.test.ontology\";\nimport { useOsdkObjects } from \"@osdk/react/experimental\";\n\ndeclare const MyComponent: () => void;\n\nfunction TestComponent() {\n const { data } = useOsdkObjects(Employee, {\n pivotTo: \"lead\",\n });\n\n // Line 31: Check that data has the correct pivoted type\n const firstItem = data?.[0];\n\n return null;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,4BAA4B;AACrD,SAASC,cAAc,QAAQ,0BAA0B;AAIzD,SAASC,aAAaA,CAAA,EAAG;EACvB,MAAM;IAAEC;EAAK,CAAC,GAAGF,cAAc,CAACD,QAAQ,EAAE;IACxCI,OAAO,EAAE;EACX,CAAC,CAAC;;EAEF;EACkBD,IAAI,GAAG,CAAC,CAAC;EAE3B,OAAO,IAAI;AACb","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOsdkObjectsWithProperties.js","names":["Employee","useOsdkObjects","TestComponent","data","withProperties","constantValue","employee","constant","integer"],"sources":["useOsdkObjectsWithProperties.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// WARNING!\n// WARNING!\n// This file is used for tests that check intellisense. Editing this file by hand will likely\n// break tests that have hard coded line numbers and line offsets.\n\nimport type { DerivedProperty } from \"@osdk/api\";\nimport { Employee } from \"@osdk/client.test.ontology\";\nimport { useOsdkObjects } from \"@osdk/react/experimental\";\n\nfunction TestComponent() {\n const withProps: DerivedProperty.Clause<typeof Employee> = {\n constantValue: (employee) => employee.constant.integer(42),\n };\n\n const { data } = useOsdkObjects(Employee, {\n withProperties: withProps,\n });\n\n return null;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAGA,SAASA,QAAQ,QAAQ,4BAA4B;AACrD,SAASC,cAAc,QAAQ,0BAA0B;AAEzD,SAASC,aAAaA,CAAA,EAAG;EAKvB,MAAM;IAAEC;EAAK,CAAC,GAAGF,cAAc,CAACD,QAAQ,EAAE;IACxCI,cAAc,EAL2C;MACzDC,aAAa,EAAGC,QAAQ,IAAKA,QAAQ,CAACC,QAAQ,CAACC,OAAO,CAAC,EAAE;IAC3D;EAIA,CAAC,CAAC;EAEF,OAAO,IAAI;AACb","ignoreList":[]}
@@ -1,37 +0,0 @@
1
- /*
2
- * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- // WARNING!
18
- // WARNING!
19
- // This file is used for tests that check intellisense. Editing this file by hand will likely
20
- // break tests that have hard coded line numbers and line offsets.
21
-
22
- import { Employee } from "@osdk/client.test.ontology";
23
- import { useOsdkObjects } from "@osdk/react/experimental";
24
- function TestComponent() {
25
- const {
26
- data: ridsData
27
- } = useOsdkObjects(Employee, {
28
- rids: ["ri.foo.123"]
29
- });
30
- ridsData?.[0];
31
- const {
32
- data: noRidsData
33
- } = useOsdkObjects(Employee);
34
- noRidsData?.[0];
35
- return null;
36
- }
37
- //# sourceMappingURL=useOsdkObjectsWithRids.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOsdkObjectsWithRids.js","names":["Employee","useOsdkObjects","TestComponent","data","ridsData","rids","noRidsData"],"sources":["useOsdkObjectsWithRids.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// WARNING!\n// WARNING!\n// This file is used for tests that check intellisense. Editing this file by hand will likely\n// break tests that have hard coded line numbers and line offsets.\n\nimport { Employee } from \"@osdk/client.test.ontology\";\nimport { useOsdkObjects } from \"@osdk/react/experimental\";\n\nfunction TestComponent() {\n const { data: ridsData } = useOsdkObjects(Employee, {\n rids: [\"ri.foo.123\"],\n });\n\n const ridsItem = ridsData?.[0];\n\n const { data: noRidsData } = useOsdkObjects(Employee);\n\n const noRidsItem = noRidsData?.[0];\n\n return null;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,4BAA4B;AACrD,SAASC,cAAc,QAAQ,0BAA0B;AAEzD,SAASC,aAAaA,CAAA,EAAG;EACvB,MAAM;IAAEC,IAAI,EAAEC;EAAS,CAAC,GAAGH,cAAc,CAACD,QAAQ,EAAE;IAClDK,IAAI,EAAE,CAAC,YAAY;EACrB,CAAC,CAAC;EAEeD,QAAQ,GAAG,CAAC,CAAC;EAE9B,MAAM;IAAED,IAAI,EAAEG;EAAW,CAAC,GAAGL,cAAc,CAACD,QAAQ,CAAC;EAElCM,UAAU,GAAG,CAAC,CAAC;EAElC,OAAO,IAAI;AACb","ignoreList":[]}
@@ -1,172 +0,0 @@
1
- /*
2
- * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import { startTsServer } from "@osdk/client/internal-node";
18
- import { findUpSync } from "find-up";
19
- import * as path from "node:path";
20
- import invariant from "tiny-invariant";
21
- import * as ts from "typescript";
22
- import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
23
-
24
- // it needs to be hoisted because its referenced from our mocked WebSocket
25
- // which must be hoisted to work
26
- const rootLogger = await vi.hoisted(async () => {
27
- const pino = (await import("pino")).pino;
28
- const pinoPretty = await import("pino-pretty");
29
- const {
30
- EventEmitter
31
- } = await import("node:events");
32
- return Promise.resolve(pino({
33
- level: "info"
34
- }, pinoPretty.build({
35
- sync: true,
36
- timestampKey: undefined,
37
- errorLikeObjectKeys: ["error", "err", "exception"],
38
- errorProps: "stack,cause,properties",
39
- ignore: "time,hostname,pid",
40
- destination: new class extends EventEmitter {
41
- write(a) {
42
- // remove trailing newline since console.log adds one
43
- if (a.at(-1) === "\n") a = a.slice(0, -1);
44
-
45
- // This lets the test framework aggregate the logs per test, whereas direct to stdout does not
46
- console.log(a);
47
- }
48
- }()
49
- })));
50
- });
51
-
52
- /**
53
- * @vitest-environment node
54
- * @vitest-pool forks
55
- */
56
- describe("intellisense", () => {
57
- let packagesDir;
58
- let reactPackagePath;
59
- beforeAll(() => {
60
- const reactPackageJson = findUpSync("package.json", {
61
- cwd: import.meta.dirname
62
- });
63
- console.log({
64
- reactPackageJson
65
- });
66
- !(reactPackageJson != null) ? process.env.NODE_ENV !== "production" ? invariant(false) : invariant(false) : void 0;
67
- packagesDir = path.join(path.dirname(reactPackageJson), "..");
68
- reactPackagePath = path.join(packagesDir, "react");
69
- });
70
- let tsServer;
71
- let intellisenseFilePath;
72
- beforeEach(async a => {
73
- intellisenseFilePath = path.join(reactPackagePath, "src", "intellisense.test.helpers", `${a.task.name}.ts`);
74
- console.log(intellisenseFilePath);
75
- expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();
76
- try {
77
- tsServer = await startTsServer(rootLogger);
78
- await tsServer.sendOpenRequest({
79
- file: intellisenseFilePath
80
- });
81
- } catch (error) {
82
- if (tsServer) {
83
- try {
84
- tsServer.stop();
85
- } catch {
86
- // Ignore cleanup errors
87
- }
88
- tsServer = undefined;
89
- }
90
- throw error;
91
- }
92
- });
93
- afterEach(() => {
94
- if (tsServer) {
95
- tsServer.stop();
96
- tsServer = undefined;
97
- }
98
- });
99
- it("useOsdkObjectsWithPivot", {
100
- timeout: 40_000
101
- }, async () => {
102
- expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();
103
- !tsServer ? process.env.NODE_ENV !== "production" ? invariant(false) : invariant(false) : void 0;
104
- const {
105
- resp
106
- } = await tsServer.sendCompletionsRequest({
107
- file: intellisenseFilePath,
108
- line: 29,
109
- offset: 15,
110
- triggerKind: ts.CompletionTriggerKind.Invoked
111
- });
112
- const completions = resp.body?.entries.map(e => e.name) ?? [];
113
- expect(completions).toContain("lead");
114
- const {
115
- resp: typeResp
116
- } = await tsServer.sendQuickInfoRequest({
117
- file: intellisenseFilePath,
118
- line: 33,
119
- offset: 10
120
- });
121
- expect(typeResp.body?.displayString).toBeDefined();
122
- expect(typeResp.body?.displayString).toContain("Employee");
123
- });
124
- it("useOsdkObjectsWithRids", {
125
- timeout: 40_000
126
- }, async () => {
127
- expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();
128
- !tsServer ? process.env.NODE_ENV !== "production" ? invariant(false) : invariant(false) : void 0;
129
- const {
130
- resp: ridsResp
131
- } = await tsServer.sendQuickInfoRequest({
132
- file: intellisenseFilePath,
133
- line: 30,
134
- offset: 9
135
- });
136
- expect(ridsResp.body?.displayString).toBeDefined();
137
- expect(ridsResp.body?.displayString).toContain("$rid");
138
- const {
139
- resp: noRidsResp
140
- } = await tsServer.sendQuickInfoRequest({
141
- file: intellisenseFilePath,
142
- line: 34,
143
- offset: 9
144
- });
145
- expect(noRidsResp.body?.displayString).toBeDefined();
146
- expect(noRidsResp.body?.displayString).not.toContain("$rid");
147
- });
148
- it("useOsdkObjectsWithProperties", {
149
- timeout: 40_000
150
- }, async () => {
151
- expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();
152
- !tsServer ? process.env.NODE_ENV !== "production" ? invariant(false) : invariant(false) : void 0;
153
- const {
154
- resp
155
- } = await tsServer.sendQuickInfoRequest({
156
- file: intellisenseFilePath,
157
- line: 27,
158
- offset: 10
159
- });
160
- expect(resp.body?.displayString).toContain("DerivedProperty.Clause");
161
- const {
162
- resp: dataResp
163
- } = await tsServer.sendQuickInfoRequest({
164
- file: intellisenseFilePath,
165
- line: 31,
166
- offset: 11
167
- });
168
- expect(dataResp.body?.displayString).toBeDefined();
169
- expect(dataResp.body?.displayString).toContain("Osdk.Instance<Employee");
170
- });
171
- });
172
- //# sourceMappingURL=intellisense.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intellisense.test.js","names":["startTsServer","findUpSync","path","invariant","ts","afterEach","beforeAll","beforeEach","describe","expect","it","vi","rootLogger","hoisted","pino","pinoPretty","EventEmitter","Promise","resolve","level","build","sync","timestampKey","undefined","errorLikeObjectKeys","errorProps","ignore","destination","write","a","at","slice","console","log","packagesDir","reactPackagePath","reactPackageJson","cwd","import","meta","dirname","process","env","NODE_ENV","join","tsServer","intellisenseFilePath","task","name","sys","fileExists","toBeTruthy","sendOpenRequest","file","error","stop","timeout","resp","sendCompletionsRequest","line","offset","triggerKind","CompletionTriggerKind","Invoked","completions","body","entries","map","e","toContain","typeResp","sendQuickInfoRequest","displayString","toBeDefined","ridsResp","noRidsResp","not","dataResp"],"sources":["intellisense.test.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Logger } from \"@osdk/api\";\nimport type { TsServer } from \"@osdk/client/internal-node\";\nimport { startTsServer } from \"@osdk/client/internal-node\";\nimport { findUpSync } from \"find-up\";\nimport * as path from \"node:path\";\nimport invariant from \"tiny-invariant\";\nimport * as ts from \"typescript\";\nimport {\n afterEach,\n beforeAll,\n beforeEach,\n describe,\n expect,\n it,\n vi,\n} from \"vitest\";\n\n// it needs to be hoisted because its referenced from our mocked WebSocket\n// which must be hoisted to work\nconst rootLogger = await vi.hoisted(async (): Promise<Logger> => {\n const pino = (await import(\"pino\")).pino;\n const pinoPretty = await import(\"pino-pretty\");\n const { EventEmitter } = await import(\"node:events\");\n class PinoConsoleLogDestination extends EventEmitter {\n write(a: string) {\n // remove trailing newline since console.log adds one\n if (a.at(-1) === \"\\n\") a = a.slice(0, -1);\n\n // This lets the test framework aggregate the logs per test, whereas direct to stdout does not\n console.log(a);\n }\n }\n return Promise.resolve(pino(\n { level: \"info\" },\n (pinoPretty.build)({\n sync: true,\n timestampKey: undefined,\n errorLikeObjectKeys: [\"error\", \"err\", \"exception\"],\n errorProps: \"stack,cause,properties\",\n ignore: \"time,hostname,pid\",\n destination: new PinoConsoleLogDestination(),\n }),\n ));\n});\n\n/**\n * @vitest-environment node\n * @vitest-pool forks\n */\ndescribe(\"intellisense\", () => {\n let packagesDir: string;\n let reactPackagePath: string;\n\n beforeAll(() => {\n const reactPackageJson = findUpSync(\"package.json\", {\n cwd: import.meta.dirname,\n });\n console.log({ reactPackageJson });\n invariant(reactPackageJson != null);\n packagesDir = path.join(\n path.dirname(reactPackageJson),\n \"..\",\n );\n\n reactPackagePath = path.join(packagesDir, \"react\");\n });\n\n let tsServer: TsServer | undefined;\n let intellisenseFilePath: string;\n\n beforeEach(async (a) => {\n intellisenseFilePath = path.join(\n reactPackagePath,\n \"src\",\n \"intellisense.test.helpers\",\n `${a.task.name}.ts`,\n );\n\n console.log(intellisenseFilePath);\n\n expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();\n\n try {\n tsServer = await startTsServer(rootLogger);\n await tsServer.sendOpenRequest({ file: intellisenseFilePath });\n } catch (error) {\n if (tsServer) {\n try {\n tsServer.stop();\n } catch {\n // Ignore cleanup errors\n }\n tsServer = undefined;\n }\n throw error;\n }\n });\n\n afterEach(() => {\n if (tsServer) {\n tsServer.stop();\n tsServer = undefined;\n }\n });\n\n it(\"useOsdkObjectsWithPivot\", { timeout: 40_000 }, async () => {\n expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();\n invariant(tsServer);\n\n const { resp } = await tsServer.sendCompletionsRequest({\n file: intellisenseFilePath,\n line: 29,\n offset: 15,\n triggerKind: ts.CompletionTriggerKind.Invoked,\n });\n\n const completions = resp.body?.entries.map(e => e.name) ?? [];\n expect(completions).toContain(\"lead\");\n\n const { resp: typeResp } = await tsServer.sendQuickInfoRequest({\n file: intellisenseFilePath,\n line: 33,\n offset: 10,\n });\n\n expect(typeResp.body?.displayString).toBeDefined();\n expect(typeResp.body?.displayString).toContain(\"Employee\");\n });\n\n it(\"useOsdkObjectsWithRids\", { timeout: 40_000 }, async () => {\n expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();\n invariant(tsServer);\n\n const { resp: ridsResp } = await tsServer.sendQuickInfoRequest({\n file: intellisenseFilePath,\n line: 30,\n offset: 9,\n });\n\n expect(ridsResp.body?.displayString).toBeDefined();\n expect(ridsResp.body?.displayString).toContain(\"$rid\");\n\n const { resp: noRidsResp } = await tsServer.sendQuickInfoRequest({\n file: intellisenseFilePath,\n line: 34,\n offset: 9,\n });\n\n expect(noRidsResp.body?.displayString).toBeDefined();\n expect(noRidsResp.body?.displayString).not.toContain(\"$rid\");\n });\n\n it(\"useOsdkObjectsWithProperties\", { timeout: 40_000 }, async () => {\n expect(ts.sys.fileExists(intellisenseFilePath)).toBeTruthy();\n invariant(tsServer);\n\n const { resp } = await tsServer.sendQuickInfoRequest({\n file: intellisenseFilePath,\n line: 27,\n offset: 10,\n });\n\n expect(resp.body?.displayString).toContain(\"DerivedProperty.Clause\");\n\n const { resp: dataResp } = await tsServer.sendQuickInfoRequest({\n file: intellisenseFilePath,\n line: 31,\n offset: 11,\n });\n\n expect(dataResp.body?.displayString).toBeDefined();\n expect(dataResp.body?.displayString).toContain(\"Osdk.Instance<Employee\");\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,UAAU,QAAQ,SAAS;AACpC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAOC,SAAS,MAAM,gBAAgB;AACtC,OAAO,KAAKC,EAAE,MAAM,YAAY;AAChC,SACEC,SAAS,EACTC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,MAAM,EACNC,EAAE,EACFC,EAAE,QACG,QAAQ;;AAEf;AACA;AACA,MAAMC,UAAU,GAAG,MAAMD,EAAE,CAACE,OAAO,CAAC,YAA6B;EAC/D,MAAMC,IAAI,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,EAAEA,IAAI;EACxC,MAAMC,UAAU,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC;EAC9C,MAAM;IAAEC;EAAa,CAAC,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC;EAUpD,OAAOC,OAAO,CAACC,OAAO,CAACJ,IAAI,CACzB;IAAEK,KAAK,EAAE;EAAO,CAAC,EAChBJ,UAAU,CAACK,KAAK,CAAE;IACjBC,IAAI,EAAE,IAAI;IACVC,YAAY,EAAEC,SAAS;IACvBC,mBAAmB,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,WAAW,CAAC;IAClDC,UAAU,EAAE,wBAAwB;IACpCC,MAAM,EAAE,mBAAmB;IAC3BC,WAAW,EAAE,IAjBjB,cAAwCX,YAAY,CAAC;MACnDY,KAAKA,CAACC,CAAS,EAAE;QACf;QACA,IAAIA,CAAC,CAACC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAED,CAAC,GAAGA,CAAC,CAACE,KAAK,CAAC,CAAC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,CAACP,SAAS,CAAC,MAAM,CAAC;EAC9D,CAAC,CAAC;EAEF3D,EAAE,CAAC,8BAA8B,EAAE;IAAE8C,OAAO,EAAE;EAAO,CAAC,EAAE,YAAY;IAClE/C,MAAM,CAACL,EAAE,CAAC6C,GAAG,CAACC,UAAU,CAACJ,oBAAoB,CAAC,CAAC,CAACK,UAAU,CAAC,CAAC;IAC5D,CAAUN,QAAQ,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAlBxC,SAAS,UAATA,SAAS;IAET,MAAM;MAAEsD;IAAK,CAAC,GAAG,MAAMZ,QAAQ,CAAC0B,oBAAoB,CAAC;MACnDlB,IAAI,EAAEP,oBAAoB;MAC1Ba,IAAI,EAAE,EAAE;MACRC,MAAM,EAAE;IACV,CAAC,CAAC;IAEFnD,MAAM,CAACgD,IAAI,CAACQ,IAAI,EAAEO,aAAa,CAAC,CAACH,SAAS,CAAC,wBAAwB,CAAC;IAEpE,MAAM;MAAEZ,IAAI,EAAEoB;IAAS,CAAC,GAAG,MAAMhC,QAAQ,CAAC0B,oBAAoB,CAAC;MAC7DlB,IAAI,EAAEP,oBAAoB;MAC1Ba,IAAI,EAAE,EAAE;MACRC,MAAM,EAAE;IACV,CAAC,CAAC;IAEFnD,MAAM,CAACoE,QAAQ,CAACZ,IAAI,EAAEO,aAAa,CAAC,CAACC,WAAW,CAAC,CAAC;IAClDhE,MAAM,CAACoE,QAAQ,CAACZ,IAAI,EAAEO,aAAa,CAAC,CAACH,SAAS,CAAC,wBAAwB,CAAC;EAC1E,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- {"mappings":"","names":[],"sources":["../../src/intellisense.test.ts"],"version":3,"file":"intellisense.test.d.ts"}
@@ -1 +0,0 @@
1
- {"mappings":"","names":[],"sources":["../../../src/intellisense.test.helpers/useOsdkObjectsWithPivot.ts"],"version":3,"file":"useOsdkObjectsWithPivot.d.ts"}
@@ -1 +0,0 @@
1
- {"mappings":"","names":[],"sources":["../../../src/intellisense.test.helpers/useOsdkObjectsWithProperties.ts"],"version":3,"file":"useOsdkObjectsWithProperties.d.ts"}