@osdk/react 2.29.0-main-958f6e01fe951479788017671047fcf3340d4f6b → 2.29.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/CHANGELOG.md +3 -5
- package/build/browser/new/useLinks.js +3 -1
- package/build/browser/new/useLinks.js.map +1 -1
- package/build/browser/util/UserAgent.js +1 -1
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-MVADXECG.cjs → chunk-U56S3FGG.cjs} +6 -4
- package/build/cjs/chunk-U56S3FGG.cjs.map +1 -0
- package/build/cjs/index.cjs +15 -15
- package/build/cjs/public/experimental.cjs +16 -16
- package/build/cjs/public/experimental.d.cts +200 -199
- package/build/esm/new/useLinks.js +3 -1
- package/build/esm/new/useLinks.js.map +1 -1
- package/build/esm/util/UserAgent.js +1 -1
- package/build/esm/util/UserAgent.js.map +1 -1
- package/build/types/new/useLinks.d.ts +4 -1
- package/build/types/new/useLinks.d.ts.map +1 -1
- package/package.json +8 -8
- package/build/cjs/chunk-MVADXECG.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
# @osdkkit/react
|
|
2
2
|
|
|
3
|
-
## 2.29.0
|
|
3
|
+
## 2.29.0
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Minor Changes
|
|
6
6
|
|
|
7
7
|
- 08e921c: Bump `foundry-platform-typescript` catalog to 2.63.0 and surface the new CBAC/MANDATORY marking subtype on `ObjectMetadata.Property` via a new `typeMetadata` discriminated-union field. For marking properties, `typeMetadata` is `{ type: "marking"; subtype?: "CBAC" | "MANDATORY" }`, letting consumers distinguish classification-based markings from mandatory markings on object property columns. Future per-`type` metadata should be added as additional variants of `typeMetadata` rather than as new top-level optionals on `Property`.
|
|
8
|
-
-
|
|
9
|
-
- @osdk/api@2.29.0-main-958f6e01fe951479788017671047fcf3340d4f6b
|
|
10
|
-
- @osdk/client@2.29.0-main-958f6e01fe951479788017671047fcf3340d4f6b
|
|
8
|
+
- 4b38963: extend resolveToObjectType support to useLinks for interface link targets
|
|
11
9
|
|
|
12
10
|
## 2.28.0
|
|
13
11
|
|
|
@@ -36,6 +36,7 @@ export function useLinks(objects, linkName, options = {}) {
|
|
|
36
36
|
const {
|
|
37
37
|
enabled = true,
|
|
38
38
|
$includeAllBaseObjectProperties,
|
|
39
|
+
resolveToObjectType,
|
|
39
40
|
...otherOptions
|
|
40
41
|
} = options;
|
|
41
42
|
const canonOptions = observableClient.canonicalizeOptions({
|
|
@@ -74,6 +75,7 @@ export function useLinks(objects, linkName, options = {}) {
|
|
|
74
75
|
mode: otherOptions.mode,
|
|
75
76
|
dedupeInterval: otherOptions.dedupeIntervalMs ?? 2_000,
|
|
76
77
|
$includeAllBaseObjectProperties,
|
|
78
|
+
resolveToObjectType,
|
|
77
79
|
...(canonOptions.$select ? {
|
|
78
80
|
select: canonOptions.$select
|
|
79
81
|
} : {})
|
|
@@ -82,7 +84,7 @@ export function useLinks(objects, linkName, options = {}) {
|
|
|
82
84
|
sourceObjectType: objectsArray[0]?.$apiName,
|
|
83
85
|
linkName
|
|
84
86
|
}));
|
|
85
|
-
}, [enabled, observableClient, objectsArray, objectsKey, linkName, canonOptions.where, otherOptions.pageSize, canonOptions.orderBy, otherOptions.mode, otherOptions.dedupeIntervalMs, canonOptions.$select, $includeAllBaseObjectProperties]);
|
|
87
|
+
}, [enabled, observableClient, objectsArray, objectsKey, linkName, canonOptions.where, otherOptions.pageSize, canonOptions.orderBy, otherOptions.mode, otherOptions.dedupeIntervalMs, canonOptions.$select, $includeAllBaseObjectProperties, !!resolveToObjectType]);
|
|
86
88
|
const payload = React.useSyncExternalStore(subscribe, getSnapShot);
|
|
87
89
|
return React.useMemo(() => ({
|
|
88
90
|
links: payload?.resolvedList,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinks.js","names":["React","extractPayloadError","isPayloadLoading","devToolsMetadata","makeExternalStore","OsdkContext","emptyArray","Object","freeze","emptyMap","Map","useLinks","objects","linkName","options","observableClient","useContext","enabled","$includeAllBaseObjectProperties","otherOptions","canonOptions","canonicalizeOptions","where","orderBy","$select","objectsKey","useMemo","undefined","arr","Array","isArray","map","obj","$apiName","$primaryKey","join","objectsArray","subscribe","getSnapShot","unsubscribe","hookType","sourceObjectType","observer","observeLinks","pageSize","mode","dedupeInterval","dedupeIntervalMs","select","payload","useSyncExternalStore","links","resolvedList","linkedObjectsBySourcePrimaryKey","isLoading","isOptimistic","error","fetchMore","hasMore"],"sources":["useLinks.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 {\n LinkedType,\n LinkNames,\n ObjectOrInterfaceDefinition,\n} from \"@osdk/api\";\nimport type { Osdk, PropertyKeys, WhereClause } from \"@osdk/client\";\nimport type { ObserveLinks } from \"@osdk/client/observable\";\nimport React from \"react\";\nimport { extractPayloadError, isPayloadLoading } from \"./hookUtils.js\";\nimport { devToolsMetadata, makeExternalStore } from \"./makeExternalStore.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\n\nexport interface UseLinksOptions<\n T extends ObjectOrInterfaceDefinition,\n> {\n /**\n * Standard OSDK Where clause for filtering linked objects\n */\n where?: WhereClause<T>;\n\n /**\n * The preferred page size for the links list.\n */\n pageSize?: number;\n\n /** Sorting options for the linked objects */\n orderBy?: {\n [K in PropertyKeys<T>]?: \"asc\" | \"desc\";\n };\n\n /**\n * Restrict which properties are returned for each linked object.\n * When provided, only the specified properties will be fetched,\n * reducing payload sizes for list views.\n */\n $select?: readonly PropertyKeys<T>[];\n\n /**\n * The mode to use for fetching data.\n * - undefined: Fetch data if not already in cache\n * - \"force\": Always fetch fresh data\n * - \"offline\": Only use cached data, don't make network requests\n */\n mode?: \"force\" | \"offline\";\n\n /**\n * The number of milliseconds to wait after the last observed link change.\n *\n * Two uses of `useLinks` with the same parameters will only trigger one\n * network request if the second is within `dedupeIntervalMs`.\n */\n dedupeIntervalMs?: number;\n\n /**\n * Enable or disable the query.\n *\n * When `false`, the query will not automatically execute. It will still\n * return any cached data, but will not fetch from the server.\n *\n * This is useful for:\n * - Lazy/on-demand queries that should wait for user interaction\n * - Dependent queries that need data from another query first\n * - Conditional queries based on component state\n *\n * @default true\n * @example\n * ```tsx\n * // Dependent query - wait for employee data\n * const { object: employee } = useOsdkObject(Employee, employeeId);\n * const { links: reports } = useLinks(employee, \"reports\", {\n * enabled: !!employee,\n * });\n * ```\n */\n enabled?: boolean;\n\n /**\n * When true, includes all properties of the underlying concrete object type\n * for interface link targets. Has no effect when the link target is a plain\n * object type.\n */\n $includeAllBaseObjectProperties?: boolean;\n}\n\nexport interface UseLinksResult<Q extends ObjectOrInterfaceDefinition> {\n links: Osdk.Instance<Q, \"$allBaseProperties\">[] | undefined;\n\n /**\n * Maps each source object's primary key to its linked object instances.\n * Useful when observing links from multiple source objects to determine\n * which source links to which targets.\n */\n linkedObjectsBySourcePrimaryKey: ReadonlyMap<\n string | number,\n ReadonlyArray<Osdk.Instance<Q, \"$allBaseProperties\">>\n >;\n\n isLoading: boolean;\n error: Error | undefined;\n\n /**\n * Refers to whether the links are optimistic or not.\n */\n isOptimistic: boolean;\n\n /**\n * Fetch more linked objects if pagination is supported\n */\n fetchMore: (() => Promise<unknown>) | undefined;\n\n /**\n * Indicates if there are more linked objects available to fetch\n */\n hasMore: boolean;\n}\n\nconst emptyArray = Object.freeze([]);\nconst emptyMap: ReadonlyMap<string | number, ReadonlyArray<never>> = new Map();\n\n/**\n * Hook to observe links from an object or array of objects.\n *\n * @param objects The source object(s) to observe links from\n * @param linkName The name of the link to observe\n * @param options Optional configuration for the link query\n * @returns UseLinksResult with links data and metadata\n */\nexport function useLinks<\n T extends ObjectOrInterfaceDefinition,\n L extends LinkNames<T>,\n>(\n objects: Osdk.Instance<T> | Array<Osdk.Instance<T>> | undefined,\n linkName: L,\n options: UseLinksOptions<LinkedType<T, L>> = {},\n): UseLinksResult<LinkedType<T, L>> {\n const { observableClient } = React.useContext(OsdkContext);\n\n const { enabled = true, $includeAllBaseObjectProperties, ...otherOptions } =\n options;\n\n const canonOptions = observableClient.canonicalizeOptions({\n where: otherOptions.where,\n orderBy: otherOptions.orderBy,\n $select: otherOptions.$select,\n });\n\n const objectsKey = React.useMemo(() => {\n if (objects === undefined) return \"\";\n const arr = Array.isArray(objects) ? objects : [objects];\n return arr.map(obj => `${obj.$apiName}:${obj.$primaryKey}`).join(\",\");\n }, [objects]);\n\n // Convert single object to array for consistent handling\n const objectsArray: ReadonlyArray<Osdk.Instance<T>> = React.useMemo(() => {\n return objects === undefined\n ? emptyArray\n : Array.isArray(objects)\n ? objects\n : [objects];\n }, [objectsKey, objects]);\n\n const { subscribe, getSnapShot } = React.useMemo(\n () => {\n if (!enabled) {\n return makeExternalStore<\n ObserveLinks.CallbackArgs<LinkedType<T, L>>\n >(\n () => ({ unsubscribe: () => {} }),\n devToolsMetadata({\n hookType: \"useLinks\",\n sourceObjectType: objectsArray[0]?.$apiName,\n linkName,\n }),\n );\n }\n return makeExternalStore<\n ObserveLinks.CallbackArgs<LinkedType<T, L>>\n >(\n (observer) =>\n observableClient.observeLinks<T, L>(\n objectsArray,\n linkName,\n {\n linkName,\n where: canonOptions.where,\n pageSize: otherOptions.pageSize,\n orderBy: canonOptions.orderBy,\n mode: otherOptions.mode,\n dedupeInterval: otherOptions.dedupeIntervalMs ?? 2_000,\n $includeAllBaseObjectProperties,\n ...(canonOptions.$select ? { select: canonOptions.$select } : {}),\n },\n observer,\n ),\n devToolsMetadata({\n hookType: \"useLinks\",\n sourceObjectType: objectsArray[0]?.$apiName,\n linkName,\n }),\n );\n },\n [\n enabled,\n observableClient,\n objectsArray,\n objectsKey,\n linkName,\n canonOptions.where,\n otherOptions.pageSize,\n canonOptions.orderBy,\n otherOptions.mode,\n otherOptions.dedupeIntervalMs,\n canonOptions.$select,\n $includeAllBaseObjectProperties,\n ],\n );\n\n const payload = React.useSyncExternalStore(\n subscribe,\n getSnapShot,\n );\n\n return React.useMemo(() => ({\n links: payload?.resolvedList,\n linkedObjectsBySourcePrimaryKey: payload?.linkedObjectsBySourcePrimaryKey\n ?? emptyMap,\n isLoading: isPayloadLoading(payload, enabled),\n isOptimistic: payload?.isOptimistic ?? false,\n error: extractPayloadError(payload, \"Failed to load links\"),\n fetchMore: payload?.hasMore ? payload?.fetchMore : undefined,\n hasMore: payload?.hasMore ?? false,\n }), [payload, enabled]);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,mBAAmB,EAAEC,gBAAgB,QAAQ,gBAAgB;AACtE,SAASC,gBAAgB,EAAEC,iBAAiB,QAAQ,wBAAwB;AAC5E,SAASC,WAAW,QAAQ,kBAAkB;AA0G9C,MAAMC,UAAU,GAAGC,MAAM,CAACC,MAAM,CAAC,EAAE,CAAC;AACpC,MAAMC,QAA4D,GAAG,IAAIC,GAAG,CAAC,CAAC;;AAE9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAItBC,OAA+D,EAC/DC,QAAW,EACXC,OAA0C,GAAG,CAAC,CAAC,EACb;EAClC,MAAM;IAAEC;EAAiB,CAAC,GAAGf,KAAK,CAACgB,UAAU,CAACX,WAAW,CAAC;EAE1D,MAAM;IAAEY,OAAO,GAAG,IAAI;IAAEC,+BAA+B;IAAE,GAAGC;EAAa,CAAC,GACxEL,OAAO;EAET,MAAMM,YAAY,GAA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OAAO,EAAE,sBAAsB,CAAC;IAC3DQ,SAAS,EAAER,OAAO,EAAES,OAAO,GAAGT,OAAO,EAAEQ,SAAS,GAAG9B,SAAS;IAC5D+B,OAAO,EAAET,OAAO,EAAES,OAAO,IAAI;EAC/B,CAAC,CAAC,EAAE,CAACT,OAAO,EAAEhC,OAAO,CAAC,CAAC;AACzB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"useLinks.js","names":["React","extractPayloadError","isPayloadLoading","devToolsMetadata","makeExternalStore","OsdkContext","emptyArray","Object","freeze","emptyMap","Map","useLinks","objects","linkName","options","observableClient","useContext","enabled","$includeAllBaseObjectProperties","resolveToObjectType","otherOptions","canonOptions","canonicalizeOptions","where","orderBy","$select","objectsKey","useMemo","undefined","arr","Array","isArray","map","obj","$apiName","$primaryKey","join","objectsArray","subscribe","getSnapShot","unsubscribe","hookType","sourceObjectType","observer","observeLinks","pageSize","mode","dedupeInterval","dedupeIntervalMs","select","payload","useSyncExternalStore","links","resolvedList","linkedObjectsBySourcePrimaryKey","isLoading","isOptimistic","error","fetchMore","hasMore"],"sources":["useLinks.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 {\n LinkedType,\n LinkNames,\n ObjectOrInterfaceDefinition,\n} from \"@osdk/api\";\nimport type { Osdk, PropertyKeys, WhereClause } from \"@osdk/client\";\nimport type { ObserveLinks } from \"@osdk/client/observable\";\nimport React from \"react\";\nimport { extractPayloadError, isPayloadLoading } from \"./hookUtils.js\";\nimport { devToolsMetadata, makeExternalStore } from \"./makeExternalStore.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\nimport type { ResolveToObjectTypeOption } from \"./useOsdkObjects.js\";\n\nexport type UseLinksOptions<\n T extends ObjectOrInterfaceDefinition,\n> =\n & UseLinksBaseOptions<T>\n & ResolveToObjectTypeOption<T>;\n\ninterface UseLinksBaseOptions<\n T extends ObjectOrInterfaceDefinition,\n> {\n /**\n * Standard OSDK Where clause for filtering linked objects\n */\n where?: WhereClause<T>;\n\n /**\n * The preferred page size for the links list.\n */\n pageSize?: number;\n\n /** Sorting options for the linked objects */\n orderBy?: {\n [K in PropertyKeys<T>]?: \"asc\" | \"desc\";\n };\n\n /**\n * Restrict which properties are returned for each linked object.\n * When provided, only the specified properties will be fetched,\n * reducing payload sizes for list views.\n */\n $select?: readonly PropertyKeys<T>[];\n\n /**\n * The mode to use for fetching data.\n * - undefined: Fetch data if not already in cache\n * - \"force\": Always fetch fresh data\n * - \"offline\": Only use cached data, don't make network requests\n */\n mode?: \"force\" | \"offline\";\n\n /**\n * The number of milliseconds to wait after the last observed link change.\n *\n * Two uses of `useLinks` with the same parameters will only trigger one\n * network request if the second is within `dedupeIntervalMs`.\n */\n dedupeIntervalMs?: number;\n\n /**\n * Enable or disable the query.\n *\n * When `false`, the query will not automatically execute. It will still\n * return any cached data, but will not fetch from the server.\n *\n * This is useful for:\n * - Lazy/on-demand queries that should wait for user interaction\n * - Dependent queries that need data from another query first\n * - Conditional queries based on component state\n *\n * @default true\n * @example\n * ```tsx\n * // Dependent query - wait for employee data\n * const { object: employee } = useOsdkObject(Employee, employeeId);\n * const { links: reports } = useLinks(employee, \"reports\", {\n * enabled: !!employee,\n * });\n * ```\n */\n enabled?: boolean;\n\n /**\n * When true, includes all properties of the underlying concrete object type\n * for interface link targets. Has no effect when the link target is a plain\n * object type.\n */\n $includeAllBaseObjectProperties?: boolean;\n}\n\nexport interface UseLinksResult<Q extends ObjectOrInterfaceDefinition> {\n links: Osdk.Instance<Q, \"$allBaseProperties\">[] | undefined;\n\n /**\n * Maps each source object's primary key to its linked object instances.\n * Useful when observing links from multiple source objects to determine\n * which source links to which targets.\n */\n linkedObjectsBySourcePrimaryKey: ReadonlyMap<\n string | number,\n ReadonlyArray<Osdk.Instance<Q, \"$allBaseProperties\">>\n >;\n\n isLoading: boolean;\n error: Error | undefined;\n\n /**\n * Refers to whether the links are optimistic or not.\n */\n isOptimistic: boolean;\n\n /**\n * Fetch more linked objects if pagination is supported\n */\n fetchMore: (() => Promise<unknown>) | undefined;\n\n /**\n * Indicates if there are more linked objects available to fetch\n */\n hasMore: boolean;\n}\n\nconst emptyArray = Object.freeze([]);\nconst emptyMap: ReadonlyMap<string | number, ReadonlyArray<never>> = new Map();\n\n/**\n * Hook to observe links from an object or array of objects.\n *\n * @param objects The source object(s) to observe links from\n * @param linkName The name of the link to observe\n * @param options Optional configuration for the link query\n * @returns UseLinksResult with links data and metadata\n */\nexport function useLinks<\n T extends ObjectOrInterfaceDefinition,\n L extends LinkNames<T>,\n>(\n objects: Osdk.Instance<T> | Array<Osdk.Instance<T>> | undefined,\n linkName: L,\n options: UseLinksOptions<LinkedType<T, L>> = {},\n): UseLinksResult<LinkedType<T, L>> {\n const { observableClient } = React.useContext(OsdkContext);\n\n const {\n enabled = true,\n $includeAllBaseObjectProperties,\n resolveToObjectType,\n ...otherOptions\n } = options;\n\n const canonOptions = observableClient.canonicalizeOptions({\n where: otherOptions.where,\n orderBy: otherOptions.orderBy,\n $select: otherOptions.$select,\n });\n\n const objectsKey = React.useMemo(() => {\n if (objects === undefined) return \"\";\n const arr = Array.isArray(objects) ? objects : [objects];\n return arr.map(obj => `${obj.$apiName}:${obj.$primaryKey}`).join(\",\");\n }, [objects]);\n\n // Convert single object to array for consistent handling\n const objectsArray: ReadonlyArray<Osdk.Instance<T>> = React.useMemo(() => {\n return objects === undefined\n ? emptyArray\n : Array.isArray(objects)\n ? objects\n : [objects];\n }, [objectsKey, objects]);\n\n const { subscribe, getSnapShot } = React.useMemo(\n () => {\n if (!enabled) {\n return makeExternalStore<\n ObserveLinks.CallbackArgs<LinkedType<T, L>>\n >(\n () => ({ unsubscribe: () => {} }),\n devToolsMetadata({\n hookType: \"useLinks\",\n sourceObjectType: objectsArray[0]?.$apiName,\n linkName,\n }),\n );\n }\n return makeExternalStore<\n ObserveLinks.CallbackArgs<LinkedType<T, L>>\n >(\n (observer) =>\n observableClient.observeLinks<T, L>(\n objectsArray,\n linkName,\n {\n linkName,\n where: canonOptions.where,\n pageSize: otherOptions.pageSize,\n orderBy: canonOptions.orderBy,\n mode: otherOptions.mode,\n dedupeInterval: otherOptions.dedupeIntervalMs ?? 2_000,\n $includeAllBaseObjectProperties,\n resolveToObjectType,\n ...(canonOptions.$select ? { select: canonOptions.$select } : {}),\n },\n observer,\n ),\n devToolsMetadata({\n hookType: \"useLinks\",\n sourceObjectType: objectsArray[0]?.$apiName,\n linkName,\n }),\n );\n },\n [\n enabled,\n observableClient,\n objectsArray,\n objectsKey,\n linkName,\n canonOptions.where,\n otherOptions.pageSize,\n canonOptions.orderBy,\n otherOptions.mode,\n otherOptions.dedupeIntervalMs,\n canonOptions.$select,\n $includeAllBaseObjectProperties,\n !!resolveToObjectType,\n ],\n );\n\n const payload = React.useSyncExternalStore(\n subscribe,\n getSnapShot,\n );\n\n return React.useMemo(() => ({\n links: payload?.resolvedList,\n linkedObjectsBySourcePrimaryKey: payload?.linkedObjectsBySourcePrimaryKey\n ?? emptyMap,\n isLoading: isPayloadLoading(payload, enabled),\n isOptimistic: payload?.isOptimistic ?? false,\n error: extractPayloadError(payload, \"Failed to load links\"),\n fetchMore: payload?.hasMore ? payload?.fetchMore : undefined,\n hasMore: payload?.hasMore ?? false,\n }), [payload, enabled]);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,mBAAmB,EAAEC,gBAAgB,QAAQ,gBAAgB;AACtE,SAAS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AAY,CAACyB,QAAQ,EACrBxB,YAAY,CAACG,OAAO,EACpBJ,YAAY,CAAC0B,IAAI,EACjB1B,YAAY,CAAC4B,gBAAgB,EAC7B3B,YAAY,CAACI,OAAO,EACpBP,+BAA+B,EAC/B,CAAC,CAACC,mBAAmB,CAEzB,CAAC;EAED,MAAM+B,OAAO,GAAGlD,KAAK,CAACmD,oBAAoB,CACxCb,SAAS,EACTC,WACF,CAAC;EAED,OAAOvC,KAAK,CAAC2B,OAAO,CAAC,OAAO;IAC1ByB,KAAK,EAAEF,OAAO,EAAEG,YAAY;IAC5BC,+BAA+B,EAAEJ,OAAO,EAAEI,+BAA+B,IACpE7C,QAAQ;IACb8C,SAAS,EAAErD,gBAAgB,CAACgD,OAAO,EAAEjC,OAAO,CAAC;IAC7CuC,YAAY,EAAEN,OAAO,EAAEM,YAAY,IAAI,KAAK;IAC5CC,KAAK,EAAExD,mBAAmB,CAACiD,OAAO,EAAE,sBAAsB,CAAC;IAC3DQ,SAAS,EAAER,OAAO,EAAES,OAAO,GAAGT,OAAO,EAAEQ,SAAS,GAAG9B,SAAS;IAC5D+B,OAAO,EAAET,OAAO,EAAES,OAAO,IAAI;EAC/B,CAAC,CAAC,EAAE,CAACT,OAAO,EAAEjC,OAAO,CAAC,CAAC;AACzB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserAgent.js","names":["REACT_USER_AGENT"],"sources":["UserAgent.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\nexport const REACT_USER_AGENT: string =\n `osdk-react/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,gBAAwB,GACnC,
|
|
1
|
+
{"version":3,"file":"UserAgent.js","names":["REACT_USER_AGENT"],"sources":["UserAgent.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\nexport const REACT_USER_AGENT: string =\n `osdk-react/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,gBAAwB,GACnC,wBAA2C","ignoreList":[]}
|
|
@@ -29,7 +29,7 @@ function useStableObjectSet(objectSet) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// src/util/UserAgent.ts
|
|
32
|
-
var REACT_USER_AGENT = `osdk-react/${"2.29.0
|
|
32
|
+
var REACT_USER_AGENT = `osdk-react/${"2.29.0"}`;
|
|
33
33
|
function useDevToolsClient(baseClient, enabled) {
|
|
34
34
|
const stateRef = React5.useRef(null);
|
|
35
35
|
const prev = stateRef.current;
|
|
@@ -124,6 +124,7 @@ function useLinks(objects, linkName, options = {}) {
|
|
|
124
124
|
const {
|
|
125
125
|
enabled = true,
|
|
126
126
|
$includeAllBaseObjectProperties,
|
|
127
|
+
resolveToObjectType,
|
|
127
128
|
...otherOptions
|
|
128
129
|
} = options;
|
|
129
130
|
const canonOptions = observableClient.canonicalizeOptions({
|
|
@@ -161,6 +162,7 @@ function useLinks(objects, linkName, options = {}) {
|
|
|
161
162
|
mode: otherOptions.mode,
|
|
162
163
|
dedupeInterval: otherOptions.dedupeIntervalMs ?? 2e3,
|
|
163
164
|
$includeAllBaseObjectProperties,
|
|
165
|
+
resolveToObjectType,
|
|
164
166
|
...canonOptions.$select ? {
|
|
165
167
|
select: canonOptions.$select
|
|
166
168
|
} : {}
|
|
@@ -169,7 +171,7 @@ function useLinks(objects, linkName, options = {}) {
|
|
|
169
171
|
sourceObjectType: objectsArray[0]?.$apiName,
|
|
170
172
|
linkName
|
|
171
173
|
}));
|
|
172
|
-
}, [enabled, observableClient, objectsArray, objectsKey, linkName, canonOptions.where, otherOptions.pageSize, canonOptions.orderBy, otherOptions.mode, otherOptions.dedupeIntervalMs, canonOptions.$select, $includeAllBaseObjectProperties]);
|
|
174
|
+
}, [enabled, observableClient, objectsArray, objectsKey, linkName, canonOptions.where, otherOptions.pageSize, canonOptions.orderBy, otherOptions.mode, otherOptions.dedupeIntervalMs, canonOptions.$select, $includeAllBaseObjectProperties, !!resolveToObjectType]);
|
|
173
175
|
const payload = React5__default.default.useSyncExternalStore(subscribe, getSnapShot);
|
|
174
176
|
return React5__default.default.useMemo(() => ({
|
|
175
177
|
links: payload?.resolvedList,
|
|
@@ -897,5 +899,5 @@ exports.useOsdkObject = useOsdkObject;
|
|
|
897
899
|
exports.useOsdkObjects = useOsdkObjects;
|
|
898
900
|
exports.useRegisterUserAgent = useRegisterUserAgent;
|
|
899
901
|
exports.useStableObjectSet = useStableObjectSet;
|
|
900
|
-
//# sourceMappingURL=chunk-
|
|
901
|
-
//# sourceMappingURL=chunk-
|
|
902
|
+
//# sourceMappingURL=chunk-U56S3FGG.cjs.map
|
|
903
|
+
//# sourceMappingURL=chunk-U56S3FGG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/new/core/stableSerialize.ts","../../src/new/core/useStableObjectSet.ts","../../src/util/UserAgent.ts","../../src/new/useDevToolsClient.ts","../../src/new/UserAgentContext.ts","../../src/new/OsdkProvider.tsx","../../src/new/hookUtils.ts","../../src/new/useLinks.ts","../../src/new/useObjectSet.tsx","../../src/new/useOsdkAction.ts","../../src/new/useOsdkAggregation.ts","../../src/new/useOsdkFunction.ts","../../src/new/createCompositeExternalStore.ts","../../src/new/useOsdkFunctions.ts","../../src/new/useOsdkObject.ts","../../src/new/useOsdkObjects.ts","../../src/new/core/useOnMount.ts","../../src/new/useRegisterUserAgent.ts","../../src/useOsdkClient.ts","../../src/useOsdkMetadata.ts","../../src/utils/useDebouncedCallback.ts"],"names":["isObjectSet","getWireObjectSet","useMemo","useRef","getRegisteredDevTools","React","useCallback","createObservableClient","OsdkContext","makeExternalStore","devToolsMetadata","useDevToolsMetadata","applyAction","args","ActionValidationError","validateAction","makeExternalStoreAsync","useEffect","error"],"mappings":";;;;;;;;;;;;;AAuBO,SAAS,gBAAgB,KAAA,EAAO;AACrC,EAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,EAAO,uBAAuB,CAAA;AACtD;AAQO,SAAS,uBAAA,CAAwB,MAAM,KAAA,EAAO;AACnD,EAAA,IAAI,SAAS,IAAA,IAAQ,OAAO,UAAU,QAAA,IAAYA,kBAAA,CAAY,KAAK,CAAA,EAAG;AACpE,IAAA,OAAO;AAAA,MACL,WAAA,EAAaC,wBAAiB,KAAK;AAAA,KACrC;AAAA,EACF;AACA,EAAA,OAAO,KAAA;AACT;;;ACfO,SAAS,mBAAmB,SAAA,EAAW;AAE5C,EAAA,OAAOC,eAAQ,MAAM,SAAA,EAAW,CAAC,eAAA,CAAgB,SAAS,CAAC,CAAC,CAAA;AAC9D;;;ACZO,IAAM,gBAAA,GAAmB,cAAc,QAA2B,CAAA,CAAA;ACElE,SAAS,iBAAA,CAAkB,YAAY,OAAA,EAAS;AACrD,EAAA,MAAM,QAAA,GAAWC,cAAO,IAAI,CAAA;AAC5B,EAAA,M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,EAAS;AACtB,MAAA,YAAA,CAAa,WAAW,OAAO,CAAA;AAC/B,MAAA,UAAA,CAAW,OAAA,GAAU,MAAA;AAAA,IACvB;AAAA,EACF,CAAA,EAAG,EAAE,CAAA;AACL,EAAA,MAAM,KAAA,GAAQA,uBAAAA,CAAM,WAAA,CAAY,MAAM;AACpC,IAAA,IAAI,UAAA,CAAW,OAAA,IAAW,WAAA,CAAY,OAAA,EAAS;AAC7C,MAAA,YAAA,CAAa,WAAW,OAAO,CAAA;AAC/B,MAAA,UAAA,CAAW,OAAA,GAAU,MAAA;AACrB,MAAA,KAAK,WAAA,CAAY,OAAA,CAAQ,GAAG,WAAA,CAAY,OAAO,CAAA;AAAA,IACjD;AAAA,EACF,CAAA,EAAG,EAAE,CAAA;AACL,EAAA,MAAM,iBAAA,GAAoBA,uBAAAA,CAAM,WAAA,CAAY,CAAA,GAAI,IAAA,KAAS;AACvD,IAAA,WAAA,CAAY,OAAA,GAAU,IAAA;AACtB,IAAA,MAAA,EAAO;AACP,IAAA,UAAA,CAAW,OAAA,GAAU,WAAW,MAAM;AACpC,MAAA,KAAK,WAAA,CAAY,OAAA,CAAQ,GAAG,IAAI,CAAA;AAAA,IAClC,GAAG,KAAK,CAAA;AAAA,EACV,CAAA,EAAG,CAAC,KAAA,EAAO,MAAM,CAAC,CAAA;AAClB,EAAAA,uBAAAA,CAAM,UAAU,MAAM;AACpB,IAAA,OAAO,MAAM;AACX,MAAA,MAAA,EAAO;AAAA,IACT,CAAA;AAAA,EACF,CAAA,EAAG,CAAC,MAAM,CAAC,CAAA;AACX,EAAA,OAAO,MAAA,CAAO,OAAO,iBAAA,EAAmB;AAAA,IACtC,MAAA;AAAA,IACA;AAAA,GACD,CAAA;AACH","file":"chunk-U56S3FGG.cjs","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\nimport { getWireObjectSet, isObjectSet } from \"@osdk/client\";\n\n/**\n * Serialize a value to a stable string for React.useMemo dependency arrays.\n * Uses {@link stableSerializeReplacer} so OSDK `ObjectSet`s normalize to a\n * discriminative wire form before stringification.\n */\nexport function stableSerialize(value) {\n return JSON.stringify(value, stableSerializeReplacer);\n}\n\n/**\n * `JSON.stringify` replacer that normalizes OSDK `ObjectSet` instances to\n * their wire-form definition (via `getWireObjectSet`) wrapped in\n * `{ __objectSet: ... }`, so composed operations (`.where`, `.union`,\n * `.intersect`, ...) participate in the key.\n */\nexport function stableSerializeReplacer(_key, value) {\n if (value != null && typeof value === \"object\" && isObjectSet(value)) {\n return {\n __objectSet: getWireObjectSet(value)\n };\n }\n return value;\n}","/*\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\nimport { useMemo } from \"react\";\nimport { stableSerialize } from \"./stableSerialize.js\";\n\n/**\n * Returns a referentially stable ObjectSet that only changes when the\n * wire representation changes. This uses {@link stableSerialize} which\n * includes composed operations (where, union, intersect, etc.) in the\n * serialized form\n */\nexport function useStableObjectSet(objectSet) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useMemo(() => objectSet, [stableSerialize(objectSet)]);\n}","/*\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\nexport const REACT_USER_AGENT = `osdk-react/${process.env.PACKAGE_VERSION}`;","/*\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 { useMemo, useRef } from \"react\";\nimport { getRegisteredDevTools } from \"../public/devtools-registry.js\";\nexport function useDevToolsClient(baseClient, enabled) {\n const stateRef = useRef(null);\n const prev = stateRef.current;\n let wrappedClient;\n if (!enabled) {\n stateRef.current = null;\n wrappedClient = baseClient;\n } else {\n const devTools = getRegisteredDevTools();\n if (devTools == null) {\n stateRef.current = null;\n wrappedClient = baseClient;\n } else if (prev != null && prev.base === baseClient && prev.devTools === devTools) {\n wrappedClient = prev.monitored;\n } else {\n const monitored = devTools.wrapClient(baseClient);\n stateRef.current = {\n base: baseClient,\n monitored,\n devTools\n };\n wrappedClient = monitored;\n }\n }\n const currentState = stateRef.current;\n const wrapChildren = useMemo(() => currentState != null ? children => currentState.devTools.wrapChildren(children, currentState.monitored) : null, [currentState]);\n return {\n client: wrappedClient,\n wrapChildren\n };\n}","/*\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 React from \"react\";\nexport const UserAgentContext = /*#__PURE__*/React.createContext(() => () => {});","/*\n * Copyright 2024 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 { createObservableClient } from \"@osdk/client/observable\";\nimport React, { useCallback, useMemo, useRef } from \"react\";\nimport { getRegisteredDevTools } from \"../public/devtools-registry.js\";\nimport { REACT_USER_AGENT } from \"../util/UserAgent.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\nimport { useDevToolsClient } from \"./useDevToolsClient.js\";\nimport { UserAgentContext } from \"./UserAgentContext.js\";\nconst __DEV__ = typeof process === \"undefined\" || process.env.NODE_ENV !== \"production\";\nexport function OsdkProvider({\n children,\n client,\n enableDevTools\n}) {\n const devtoolsEnabled = __DEV__ && (enableDevTools ?? getRegisteredDevTools() != null);\n const userAgentsRef = useRef(new Set([REACT_USER_AGENT]));\n const addUserAgent = useCallback(agent => {\n userAgentsRef.current.add(agent);\n return () => {\n userAgentsRef.current.delete(agent);\n };\n }, []);\n const baseObservableClient = useMemo(() => createObservableClient(client, () => [...userAgentsRef.current]), [client]);\n const {\n client: devToolsClient,\n wrapChildren\n } = useDevToolsClient(baseObservableClient, devtoolsEnabled);\n const content = wrapChildren?.(children) ?? children;\n const contextValue = useMemo(() => ({\n client,\n observableClient: devToolsClient,\n devtoolsEnabled\n }), [client, devToolsClient, devtoolsEnabled]);\n return /*#__PURE__*/React.createElement(UserAgentContext.Provider, {\n value: addUserAgent\n }, /*#__PURE__*/React.createElement(OsdkContext.Provider, {\n value: contextValue\n }, content));\n}","/*\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\nexport function extractPayloadError(payload, fallbackMessage) {\n if (payload && \"error\" in payload && payload.error) {\n return payload.error;\n }\n if (payload?.status === \"error\") {\n return new Error(fallbackMessage);\n }\n return undefined;\n}\nexport function isPayloadLoading(payload, enabled) {\n if (!enabled) {\n return false;\n }\n return payload?.status === \"loading\" || payload?.status === \"init\" || !payload;\n}","/*\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 React from \"react\";\nimport { extractPayloadError, isPayloadLoading } from \"./hookUtils.js\";\nimport { devToolsMetadata, makeExternalStore } from \"./makeExternalStore.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\nconst emptyArray = Object.freeze([]);\nconst emptyMap = new Map();\n\n/**\n * Hook to observe links from an object or array of objects.\n *\n * @param objects The source object(s) to observe links from\n * @param linkName The name of the link to observe\n * @param options Optional configuration for the link query\n * @returns UseLinksResult with links data and metadata\n */\nexport function useLinks(objects, linkName, options = {}) {\n const {\n observableClient\n } = React.useContext(OsdkContext);\n const {\n enabled = true,\n $includeAllBaseObjectProperties,\n resolveToObjectType,\n ...otherOptions\n } = options;\n const canonOptions = observableClient.canonicalizeOptions({\n where: otherOptions.where,\n orderBy: otherOptions.orderBy,\n $select: otherOptions.$select\n });\n const objectsKey = React.useMemo(() => {\n if (objects === undefined) return \"\";\n const arr = Array.isArray(objects) ? objects : [objects];\n return arr.map(obj => `${obj.$apiName}:${obj.$primaryKey}`).join(\",\");\n }, [objects]);\n\n // Convert single object to array for consistent handling\n const objectsArray = React.useMemo(() => {\n return objects === undefined ? emptyArray : Array.isArray(objects) ? objects : [objects];\n }, [objectsKey, objects]);\n const {\n subscribe,\n getSnapShot\n } = React.useMemo(() => {\n if (!enabled) {\n return makeExternalStore(() => ({\n unsubscribe: () => {}\n }), devToolsMetadata({\n hookType: \"useLinks\",\n sourceObjectType: objectsArray[0]?.$apiName,\n linkName\n }));\n }\n return makeExternalStore(observer => observableClient.observeLinks(objectsArray, linkName, {\n linkName,\n where: canonOptions.where,\n pageSize: otherOptions.pageSize,\n orderBy: canonOptions.orderBy,\n mode: otherOptions.mode,\n dedupeInterval: otherOptions.dedupeIntervalMs ?? 2_000,\n $includeAllBaseObjectProperties,\n resolveToObjectType,\n ...(canonOptions.$select ? {\n select: canonOptions.$select\n } : {})\n }, observer), devToolsMetadata({\n hookType: \"useLinks\",\n sourceObjectType: objectsArray[0]?.$apiName,\n linkName\n }));\n }, [enabled, observableClient, objectsArray, objectsKey, linkName, canonOptions.where, otherOptions.pageSize, canonOptions.orderBy, otherOptions.mode, otherOptions.dedupeIntervalMs, canonOptions.$select, $includeAllBaseObjectProperties, !!resolveToObjectType]);\n const payload = React.useSyncExternalStore(subscribe, getSnapShot);\n return React.useMemo(() => ({\n links: payload?.resolvedList,\n linkedObjectsBySourcePrimaryKey: payload?.linkedObjectsBySourcePrimaryKey ?? emptyMap,\n isLoading: isPayloadLoading(payload, enabled),\n isOptimistic: payload?.isOptimistic ?? false,\n error: extractPayloadError(payload, \"Failed to load links\"),\n fetchMore: payload?.hasMore ? payload?.fetchMore : undefined,\n hasMore: payload?.hasMore ?? false\n }), [payload, enabled]);\n}","/*\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 { getWireObjectSet } from \"@osdk/client\";\nimport React from \"react\";\nimport { extractPayloadError } from \"./hookUtils.js\";\nimport { devToolsMetadata, makeExternalStore } from \"./makeExternalStore.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\nconst OBJECT_TYPE_PLACEHOLDER = \"$__OBJECT__TYPE__PLACEHOLDER\";\n/**\n * React hook for observing and interacting with OSDK object sets.\n *\n * @typeParam Q - The object type definition\n * @typeParam BaseRDPs - Derived properties that already exist on the input ObjectSet\n * @typeParam RDPs - New derived properties to be added via options.withProperties\n *\n * @param baseObjectSet - The ObjectSet to observe (may already have derived properties)\n * @param options - Options for filtering, sorting, and adding new derived properties\n * @returns Object set data with both existing and new derived properties\n */\n// pivotTo overload: streamUpdates is forbidden (the server does not support\n// websocket subscriptions for link-traversal queries).\n\n// Non-pivotTo overload: pivotTo is forbidden to prevent fallthrough.\n\nexport function useObjectSet(baseObjectSet, options = {}) {\n const {\n observableClient\n } = React.useContext(OsdkContext);\n const {\n enabled: enabledOption = true,\n streamUpdates,\n ...otherOptions\n } = options;\n const enabled = enabledOption && baseObjectSet != null;\n\n // Track object type to detect when we switch to a different object type\n const objectTypeKey = enabled && baseObjectSet ? baseObjectSet.$objectSetInternals.def.apiName : OBJECT_TYPE_PLACEHOLDER;\n const previousObjectTypeRef = React.useRef(objectTypeKey);\n const previousCompletedPayloadRef = React.useRef();\n // TODO: Is it expected to only clear the previousCompletedPayloadRef when the object type changes?\n // What if the same object type is queried with different filters, should we also clear the cache?\n const objectTypeChanged = previousObjectTypeRef.current !== objectTypeKey;\n if (objectTypeChanged) {\n previousObjectTypeRef.current = objectTypeKey;\n previousCompletedPayloadRef.current = undefined;\n }\n\n // canonicalizeOptions stabilizes complex query identity options.\n // pageSize is a view level concern (handled per subscriber, not part of\n // query identity), and pivotTo is a plain string that does not need\n // stabilization.\n const canonOptions = observableClient.canonicalizeOptions({\n where: otherOptions.where,\n withProperties: otherOptions.withProperties,\n orderBy: otherOptions.orderBy,\n union: otherOptions.union,\n intersect: otherOptions.intersect,\n subtract: otherOptions.subtract,\n $select: otherOptions.$select\n });\n const objectSetKey = baseObjectSet ? JSON.stringify(getWireObjectSet(baseObjectSet)) : undefined;\n const baseObjectSetRef = React.useRef(baseObjectSet);\n baseObjectSetRef.current = baseObjectSet;\n const {\n subscribe,\n getSnapShot\n } = React.useMemo(() => {\n if (!enabled) {\n return makeExternalStore(() => ({\n unsubscribe: () => {}\n }), devToolsMetadata({\n hookType: \"useObjectSet\",\n objectType: objectTypeKey\n }));\n }\n const initialValue = objectTypeChanged ? undefined : previousCompletedPayloadRef.current;\n return makeExternalStore(observer => {\n if (!baseObjectSetRef.current) {\n return {\n unsubscribe: () => {}\n };\n }\n const subscription = observableClient.observeObjectSet(baseObjectSetRef.current, {\n where: canonOptions.where,\n withProperties: canonOptions.withProperties,\n union: canonOptions.union,\n intersect: canonOptions.intersect,\n subtract: canonOptions.subtract,\n pivotTo: otherOptions.pivotTo,\n pageSize: otherOptions.pageSize,\n orderBy: canonOptions.orderBy,\n dedupeInterval: otherOptions.dedupeIntervalMs ?? 2_000,\n autoFetchMore: otherOptions.autoFetchMore,\n streamUpdates,\n select: canonOptions.$select\n }, observer);\n return subscription;\n }, devToolsMetadata({\n hookType: \"useObjectSet\",\n objectType: objectTypeKey\n }), initialValue);\n }, [enabled, observableClient, objectSetKey, canonOptions.where, canonOptions.withProperties, canonOptions.orderBy, canonOptions.union, canonOptions.intersect, canonOptions.subtract, canonOptions.$select, otherOptions.pivotTo, otherOptions.pageSize, otherOptions.autoFetchMore, otherOptions.dedupeIntervalMs, streamUpdates, objectTypeKey]);\n const payload = React.useSyncExternalStore(subscribe, getSnapShot);\n if (payload && isPayloadCompleted(payload)) {\n previousCompletedPayloadRef.current = payload;\n }\n const typeApiName = baseObjectSet?.$objectSetInternals.def.apiName;\n const refetch = React.useCallback(async () => {\n if (typeApiName) {\n await observableClient.invalidateObjectType(typeApiName);\n }\n }, [observableClient, typeApiName]);\n return React.useMemo(() => {\n const lastLoaded = isPayloadCompleted(payload) ? payload : previousCompletedPayloadRef.current;\n return {\n data: lastLoaded?.resolvedList,\n isLoading: enabled ? !isPayloadCompleted(payload) : false,\n error: extractPayloadError(lastLoaded, \"Failed to load object set\"),\n isOptimistic: payload?.isOptimistic ?? false,\n fetchMore: payload?.hasMore ? payload.fetchMore : undefined,\n hasMore: payload?.hasMore ?? false,\n objectSet: lastLoaded?.objectSet,\n totalCount: lastLoaded?.totalCount,\n refetch\n };\n }, [payload, refetch, enabled]);\n}\nfunction isPayloadCompleted(payload) {\n if (payload != null && \"error\" in payload) {\n return true;\n }\n if (payload?.status == null) {\n return false;\n }\n switch (payload.status) {\n case \"loaded\":\n case \"error\":\n return true;\n case \"loading\":\n case \"init\":\n return false;\n default:\n payload.status;\n return false;\n }\n}","/*\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 { ActionValidationError } from \"@osdk/client\";\nimport React from \"react\";\nimport { useDevToolsMetadata } from \"./makeExternalStore.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\nexport function useOsdkAction(actionDef) {\n const {\n observableClient,\n devtoolsEnabled\n } = React.useContext(OsdkContext);\n useDevToolsMetadata(devtoolsEnabled, \"useOsdkAction\", actionDef.apiName);\n const [error, setError] = React.useState();\n const [data, setData] = React.useState();\n const [isPending, setPending] = React.useState(false);\n const [isValidating, setValidating] = React.useState(false);\n const [validationResult, setValidationResult] = React.useState();\n const abortControllerRef = React.useRef(null);\n const applyAction = React.useCallback(async function applyAction(hookArgs) {\n try {\n // If validation is in progress, abort it\n if (isValidating && abortControllerRef.current) {\n abortControllerRef.current.abort();\n setValidating(false);\n }\n setPending(true);\n setError(undefined);\n if (Array.isArray(hookArgs)) {\n const updates = [];\n const args = hookArgs.map(a => {\n const {\n $optimisticUpdate,\n ...args\n } = a;\n if ($optimisticUpdate) {\n updates.push($optimisticUpdate);\n }\n return args;\n });\n const r = await observableClient.applyAction(actionDef, args, {\n optimisticUpdate: ctx => {\n for (const update of updates) {\n update?.(ctx);\n }\n }\n });\n setData(r);\n return r;\n } else {\n const {\n $optimisticUpdate,\n ...args\n } = hookArgs;\n const r = await observableClient.applyAction(actionDef, args, {\n optimisticUpdate: $optimisticUpdate\n });\n setData(r);\n return r;\n }\n } catch (e) {\n if (e instanceof ActionValidationError) {\n setError({\n actionValidation: e\n });\n } else {\n setError({\n unknown: e\n });\n }\n throw e;\n } finally {\n setPending(false);\n }\n }, [observableClient, actionDef, isValidating]);\n const validateAction = React.useCallback(async function validateAction(args) {\n try {\n // Check if action is being applied\n if (isPending) {\n return undefined;\n }\n\n // Abort any existing validation\n abortControllerRef.current?.abort();\n\n // Create new AbortController\n const abortController = new AbortController();\n abortControllerRef.current = abortController;\n setValidating(true);\n setError(undefined);\n const result = await observableClient.validateAction(actionDef, args);\n\n // Check if aborted\n if (abortController.signal.aborted) {\n return undefined;\n }\n setValidationResult(result);\n return result;\n } catch (e) {\n // Check if it was aborted\n if (e instanceof Error && e.name === \"AbortError\") {\n return undefined;\n }\n if (e instanceof ActionValidationError) {\n setError({\n actionValidation: e\n });\n } else {\n setError({\n unknown: e\n });\n }\n throw e;\n } finally {\n setValidating(false);\n }\n }, [observableClient, actionDef, isPending]);\n\n // Cleanup on unmount\n React.useEffect(() => {\n return () => {\n abortControllerRef.current?.abort();\n };\n }, []);\n return React.useMemo(() => ({\n applyAction,\n validateAction,\n error,\n data,\n isPending,\n isValidating,\n validationResult\n }), [applyAction, validateAction, error, data, isPending, isValidating, validationResult]);\n}","/*\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 { getWireObjectSet } from \"@osdk/client\";\nimport React from \"react\";\nimport { extractPayloadError, isPayloadLoading } from \"./hookUtils.js\";\nimport { devToolsMetadata, makeExternalStore, makeExternalStoreAsync } from \"./makeExternalStore.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\n\n/**\n * React hook for performing aggregations on OSDK object sets.\n *\n * Executes server-side aggregations with groupBy and metric calculations on filtered object sets.\n * Supports runtime derived properties and where clauses.\n *\n * @param type - The object or interface type to aggregate\n * @param options - Aggregation configuration including where clause, aggregation spec, and optional derived properties\n * @returns Object containing aggregation results, loading state, error state, and refetch function\n *\n * @example\n * ```tsx\n * // Basic aggregation without ObjectSet\n * const { data, isLoading, error } = useOsdkAggregation(Employee, {\n * where: { department: \"Engineering\" },\n * aggregate: {\n * groupBy: { department: \"exact\" },\n * select: {\n * avgSalary: { $avg: \"salary\" },\n * count: { $count: {} }\n * }\n * }\n * });\n *\n * // With a pivoted ObjectSet\n * const pivotedSet = useMemo(() => $(Employee).pivotTo(\"primaryOffice\"), []);\n * const { data } = useOsdkAggregation(Office, {\n * objectSet: pivotedSet,\n * aggregate: { $select: { $count: \"unordered\" } }\n * });\n * ```\n */\n\nexport function useOsdkAggregation(type, options) {\n const {\n where,\n withProperties,\n intersectWith,\n aggregate,\n dedupeIntervalMs\n } = options;\n const objectSet = \"objectSet\" in options ? options.objectSet : undefined;\n const {\n observableClient\n } = React.useContext(OsdkContext);\n const canonOptions = observableClient.canonicalizeOptions({\n where,\n withProperties,\n aggregate,\n intersectWith\n });\n const objectSetKey = objectSet ? JSON.stringify(getWireObjectSet(objectSet)) : undefined;\n const objectSetRef = React.useRef(objectSet);\n objectSetRef.current = objectSet;\n const {\n subscribe,\n getSnapShot\n } = React.useMemo(() => {\n const currentObjectSet = objectSetRef.current;\n if (currentObjectSet) {\n return makeExternalStoreAsync(observer => observableClient.observeAggregation({\n type,\n objectSet: currentObjectSet,\n where: canonOptions.where,\n withProperties: canonOptions.withProperties,\n intersectWith: canonOptions.intersectWith,\n aggregate: canonOptions.aggregate,\n dedupeInterval: dedupeIntervalMs ?? 2_000\n }, observer), devToolsMetadata({\n hookType: \"useOsdkAggregation\",\n objectType: type.apiName,\n where: canonOptions.where,\n aggregate: canonOptions.aggregate\n }));\n }\n return makeExternalStore(observer =>\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n observableClient.observeAggregation({\n type,\n where: canonOptions.where,\n withProperties: canonOptions.withProperties,\n intersectWith: canonOptions.intersectWith,\n aggregate: canonOptions.aggregate,\n dedupeInterval: dedupeIntervalMs ?? 2_000\n }, observer), devToolsMetadata({\n hookType: \"useOsdkAggregation\",\n objectType: type.apiName,\n where: canonOptions.where,\n aggregate: canonOptions.aggregate\n }));\n }, [observableClient, type.apiName, type.type, objectSetKey, canonOptions.where, canonOptions.withProperties, canonOptions.intersectWith, canonOptions.aggregate, dedupeIntervalMs]);\n const payload = React.useSyncExternalStore(subscribe, getSnapShot);\n const refetch = React.useCallback(async () => {\n await observableClient.invalidateObjectType(type.apiName);\n }, [observableClient, type.apiName]);\n return React.useMemo(() => ({\n data: payload?.result,\n isLoading: isPayloadLoading(payload, true),\n error: extractPayloadError(payload, \"Failed to execute aggregation\"),\n refetch\n }), [payload, refetch]);\n}","/*\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 React from \"react\";\nimport { stableSerialize } from \"./core/stableSerialize.js\";\nimport { devToolsMetadata, makeExternalStore } from \"./makeExternalStore.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\n/**\n * React hook for executing and observing OSDK functions.\n *\n * Provides automatic caching, deduplication, and reactive updates for function calls.\n * Functions are automatically re-fetched when dependencies change (configured via options).\n *\n * @param queryDef - The QueryDefinition to execute\n * @param options - Configuration options for the function call\n * @returns Object containing result, loading state, error, and refetch function\n *\n * @example Basic usage\n * ```tsx\n * const { data, isLoading, error } = useOsdkFunction(getEmployeeStats, {\n * params: { departmentId: \"engineering\" }\n * });\n * ```\n *\n * @example With dependency tracking\n * ```tsx\n * const { data, refetch } = useOsdkFunction(calculateMetrics, {\n * params: { startDate, endDate },\n * dependsOn: [Employee, Project],\n * });\n * ```\n *\n * @example With specific object dependencies\n * ```tsx\n * const { data } = useOsdkFunction(getEmployeeReport, {\n * params: { employeeId: employee.$primaryKey },\n * dependsOnObjects: [employee],\n * });\n * ```\n */\nexport function useOsdkFunction(queryDef, options = {}) {\n const {\n observableClient\n } = React.useContext(OsdkContext);\n const {\n params,\n dependsOn,\n dependsOnObjects,\n dedupeIntervalMs,\n enabled = true\n } = options;\n const stableParams = React.useMemo(() => params,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [stableSerialize(params)]);\n const stableDependsOn = React.useMemo(() => dependsOn,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [stableSerialize(dependsOn?.map(d => typeof d === \"string\" ? d : d.apiName))]);\n const stableDependsOnObjects = React.useMemo(() => dependsOnObjects,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [stableSerialize(dependsOnObjects?.map(item => \"$apiName\" in item ? {\n $apiName: item.$apiName,\n $primaryKey: item.$primaryKey\n } : item))]);\n\n // Record<string, unknown> required as typing is figured out at runtime\n const paramsForApi = stableParams;\n const {\n subscribe,\n getSnapShot\n } = React.useMemo(() => {\n if (!enabled) {\n return makeExternalStore(() => ({\n unsubscribe: () => {}\n }), devToolsMetadata({\n hookType: \"useOsdkFunction\",\n objectType: queryDef.apiName\n }));\n }\n return makeExternalStore(observer => observableClient.observeFunction(queryDef, paramsForApi, {\n dependsOn: stableDependsOn,\n dependsOnObjects: stableDependsOnObjects,\n dedupeInterval: dedupeIntervalMs ?? 2_000\n }, observer), devToolsMetadata({\n hookType: \"useOsdkFunction\",\n objectType: queryDef.apiName\n }));\n }, [observableClient, queryDef.apiName, queryDef.version, paramsForApi, stableDependsOn, stableDependsOnObjects, dedupeIntervalMs, enabled]);\n const payload = React.useSyncExternalStore(subscribe, getSnapShot);\n const refetch = React.useCallback(async () => {\n await observableClient.invalidateFunction(queryDef, paramsForApi);\n }, [observableClient, queryDef, paramsForApi]);\n return React.useMemo(() => {\n const error = payload?.error ?? (payload?.status === \"error\" ? new Error(\"Failed to execute function\") : undefined);\n return {\n data: payload?.result,\n isLoading: payload?.status === \"loading\",\n error,\n lastUpdated: payload?.lastUpdated ?? 0,\n refetch\n };\n }, [payload, refetch]);\n}","/*\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/**\n * Creates a composite external store that manages N function subscriptions\n * through a single `useSyncExternalStore` interface.\n *\n * Unlike `makeExternalStore` (which wraps a single Observer), this manages\n * N observers funneled into one snapshot array. Supports optional concurrency\n * limiting via `maxConcurrent` to stagger subscriptions.\n */\nexport function createCompositeExternalStore(queries, observableClient, maxConcurrent) {\n // Mutable snapshot array — replaced (never mutated in place) on each\n // observer callback so that useSyncExternalStore sees a new reference.\n let current = queries.map(() => undefined);\n const updateSlot = (index, value) => {\n const next = [...current];\n next[index] = value;\n current = next;\n };\n function observeQuery(query, index, notifyUpdate, onSettled) {\n const {\n params,\n dedupeIntervalMs,\n dependsOn,\n dependsOnObjects\n } = query.options ?? {};\n return observableClient.observeFunction(query.queryDefinition, params, {\n dependsOn,\n dependsOnObjects,\n dedupeInterval: dedupeIntervalMs ?? 2_000\n }, {\n next: payload => {\n updateSlot(index, payload);\n notifyUpdate();\n if (payload?.status === \"loaded\" || payload?.status === \"error\") {\n onSettled();\n }\n },\n error: error => {\n updateSlot(index, {\n ...(current[index] ?? {}),\n error: error instanceof Error ? error : new Error(String(error))\n });\n notifyUpdate();\n onSettled();\n },\n complete: () => {}\n });\n }\n function getEnabledIndices() {\n return queries.map((q, i) => q.options?.enabled !== false ? i : -1).filter(i => i !== -1);\n }\n function subscribe(notifyUpdate) {\n const subscriptions = [];\n const enabledIndices = getEnabledIndices();\n const subscribeAt = queueIdx => {\n if (queueIdx >= enabledIndices.length) return;\n const index = enabledIndices[queueIdx];\n const onSettled = maxConcurrent != null ? () => subscribeAt(queueIdx + maxConcurrent) : () => {};\n subscriptions.push(observeQuery(queries[index], index, notifyUpdate, onSettled));\n };\n\n // When staggering, only start the first `maxConcurrent` queries.\n // Each calls subscribeAt(queueIdx + maxConcurrent) when it settles,\n // creating a sliding window of concurrent subscriptions.\n const initialCount = maxConcurrent != null ? Math.min(maxConcurrent, enabledIndices.length) : enabledIndices.length;\n for (let i = 0; i < initialCount; i++) {\n subscribeAt(i);\n }\n return () => subscriptions.forEach(sub => sub.unsubscribe());\n }\n return {\n getSnapshot: () => current,\n subscribe\n };\n}\nconst EMPTY_SNAPSHOTS = [];\nexport const EMPTY_STORE = {\n subscribe: () => () => {},\n getSnapshot: () => EMPTY_SNAPSHOTS\n};","/*\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\nimport React from \"react\";\nimport { stableSerialize } from \"./core/stableSerialize.js\";\nimport { createCompositeExternalStore, EMPTY_STORE } from \"./createCompositeExternalStore.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\n/**\n * React hook for executing multiple OSDK function queries in parallel.\n *\n * This hook executes multiple function queries with individual configurations,\n * with automatic caching and deduplication via the ObservableClient.\n * Results are returned in the same order as the input queries.\n *\n * Queries with identical function+params share cached results through the\n * Store layer, avoiding duplicate network requests across components.\n *\n * @param options - Configuration options containing the queries to execute\n * @returns Array of results in the same order as input queries, each with the same shape as useOsdkFunction\n */\nexport function useOsdkFunctions({\n queries,\n enabled = true,\n maxConcurrent\n}) {\n const {\n observableClient\n } = React.useContext(OsdkContext);\n const stableQueriesKey = stableSerialize(queries.map(q => ({\n apiName: q.queryDefinition.apiName,\n ...q.options\n })));\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const stableQueries = React.useMemo(() => queries, [stableQueriesKey]);\n const {\n subscribe,\n getSnapshot\n } = React.useMemo(() => !enabled || stableQueries.length === 0 ? EMPTY_STORE : createCompositeExternalStore(stableQueries, observableClient, maxConcurrent), [enabled, maxConcurrent, observableClient, stableQueries]);\n const payloads = React.useSyncExternalStore(subscribe, getSnapshot);\n const refetches = React.useMemo(() => stableQueries.map(query => async () => {\n await observableClient.invalidateFunction(query.queryDefinition, query.options?.params);\n }), [stableQueries, observableClient]);\n return React.useMemo(() => stableQueries.map((_, index) => {\n const payload = payloads[index];\n const error = payload?.error ?? (payload?.status === \"error\" ? new Error(\"Failed to execute function\") : undefined);\n return {\n data: payload?.result,\n isLoading: payload?.status === \"loading\",\n error,\n lastUpdated: payload?.lastUpdated ?? 0,\n refetch: refetches[index]\n };\n }), [stableQueries, payloads, refetches]);\n}","/*\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 React from \"react\";\nimport { devToolsMetadata, makeExternalStore } from \"./makeExternalStore.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\n\n/**\n * @param obj an existing `Osdk.Instance` object to get metadata for.\n * @param enabled Enable or disable the query (defaults to true)\n */\n\n/**\n * Loads an object or interface instance by type and primary key.\n *\n * @param type The object type or interface definition\n * @param primaryKey The primary key of the object\n * @param enabled Enable or disable the query (defaults to true)\n */\n\n/**\n * Loads an object or interface instance by type and primary key with options.\n *\n * @param type The object type or interface definition\n * @param primaryKey The primary key of the object\n * @param options Options including $select, enabled, $loadPropertySecurityMetadata,\n * and $includeAllBaseObjectProperties\n */\n\n/*\n Implementation of useOsdkObject\n */\nexport function useOsdkObject(...args) {\n const {\n observableClient\n } = React.useContext(OsdkContext);\n\n // Check if first arg is an instance to discriminate signatures\n // TypeScript cannot narrow rest parameter unions with optional parameters,\n // so we must use type assertions after runtime discrimination\n const isInstanceSignature = \"$objectType\" in args[0];\n\n // Extract options object if provided (3rd arg is an object with $select or enabled)\n const optionsArg = !isInstanceSignature && args[2] != null && typeof args[2] === \"object\" ? args[2] : undefined;\n\n // Extract enabled flag - 2nd param for instance signature, 3rd for type signature\n const enabled = isInstanceSignature ? typeof args[1] === \"boolean\" ? args[1] : true : optionsArg ? optionsArg.enabled ?? true : typeof args[2] === \"boolean\" ? args[2] : true;\n const selectArg = optionsArg?.$select;\n const loadPropertySecurityMetadata = optionsArg?.$loadPropertySecurityMetadata;\n const includeAllBaseObjectProperties = optionsArg?.$includeAllBaseObjectProperties;\n const mode = isInstanceSignature ? \"offline\" : undefined;\n const typeOrApiName = isInstanceSignature ? args[0].$objectType : args[0];\n const primaryKey = isInstanceSignature ? args[0].$primaryKey : args[1];\n const apiNameString = typeof typeOrApiName === \"string\" ? typeOrApiName : typeOrApiName.apiName;\n const stableSelect = React.useMemo(() => selectArg, [JSON.stringify(selectArg)]);\n const {\n subscribe,\n getSnapShot\n } = React.useMemo(() => {\n if (!enabled) {\n return makeExternalStore(() => ({\n unsubscribe: () => {}\n }), devToolsMetadata({\n hookType: \"useOsdkObject\",\n objectType: apiNameString,\n primaryKey: String(primaryKey)\n }));\n }\n return makeExternalStore(observer => observableClient.observeObject(typeOrApiName, primaryKey, {\n mode,\n $includeAllBaseObjectProperties: includeAllBaseObjectProperties,\n ...(stableSelect ? {\n select: stableSelect\n } : {}),\n ...(loadPropertySecurityMetadata ? {\n $loadPropertySecurityMetadata: loadPropertySecurityMetadata\n } : {})\n }, observer), devToolsMetadata({\n hookType: \"useOsdkObject\",\n objectType: apiNameString,\n primaryKey: String(primaryKey)\n }));\n }, [enabled, observableClient, typeOrApiName, apiNameString, primaryKey, mode, stableSelect, loadPropertySecurityMetadata, includeAllBaseObjectProperties]);\n const payload = React.useSyncExternalStore(subscribe, getSnapShot);\n const forceUpdate = React.useCallback(() => {\n throw new Error(\"not implemented\");\n }, []);\n return React.useMemo(() => {\n let error;\n if (payload && \"error\" in payload && payload.error) {\n error = payload.error;\n } else if (payload?.status === \"error\") {\n error = new Error(\"Failed to load object\");\n }\n return {\n object: payload?.object,\n // Errors take precedence over loading state.\n isLoading: enabled && error == null ? payload?.status === \"loading\" || payload?.status === \"init\" || !payload : false,\n isOptimistic: !!payload?.isOptimistic,\n error,\n forceUpdate\n };\n }, [payload, enabled, forceUpdate]);\n}","/*\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 React from \"react\";\nimport { extractPayloadError, isPayloadLoading } from \"./hookUtils.js\";\nimport { devToolsMetadata, makeExternalStore } from \"./makeExternalStore.js\";\nimport { OsdkContext } from \"./OsdkContext.js\";\n\n/**\n * Restricts `resolveToObjectType` to interface queries only.\n * Object-type queries cannot pass this option.\n */\n\n// pivotTo overloads: streamUpdates is forbidden (the server does not support\n// websocket subscriptions for link-traversal queries).\n\n// Non-pivotTo overloads: pivotTo is forbidden to prevent fallthrough from the\n// pivotTo overloads above (which would give the wrong return type).\n\nexport function useOsdkObjects(type, options) {\n const {\n observableClient\n } = React.useContext(OsdkContext);\n const {\n pageSize,\n dedupeIntervalMs,\n withProperties,\n enabled = true,\n rids,\n where,\n orderBy,\n streamUpdates,\n autoFetchMore,\n intersectWith,\n pivotTo,\n $select,\n $loadPropertySecurityMetadata,\n $includeAllBaseObjectProperties,\n resolveToObjectType\n } = options ?? {};\n const canonOptions = observableClient.canonicalizeOptions({\n where,\n withProperties,\n orderBy,\n intersectWith,\n $select\n });\n const stableRids = React.useMemo(() => rids, [JSON.stringify(rids)]);\n const {\n subscribe,\n getSnapShot\n } = React.useMemo(() => {\n if (!enabled) {\n return makeExternalStore(() => ({\n unsubscribe: () => {}\n }), devToolsMetadata({\n hookType: \"useOsdkObjects\",\n objectType: type.apiName\n }));\n }\n return makeExternalStore(observer => observableClient.observeList({\n type,\n rids: stableRids,\n where: canonOptions.where,\n dedupeInterval: dedupeIntervalMs ?? 2_000,\n pageSize,\n orderBy: canonOptions.orderBy,\n streamUpdates,\n withProperties: canonOptions.withProperties,\n autoFetchMore,\n $includeAllBaseObjectProperties,\n ...(canonOptions.intersectWith ? {\n intersectWith: canonOptions.intersectWith\n } : {}),\n ...(pivotTo ? {\n pivotTo\n } : {}),\n ...(canonOptions.$select ? {\n select: canonOptions.$select\n } : {}),\n ...($loadPropertySecurityMetadata ? {\n $loadPropertySecurityMetadata\n } : {}),\n ...(resolveToObjectType ? {\n resolveToObjectType: true\n } : {})\n }, observer), devToolsMetadata({\n hookType: \"useOsdkObjects\",\n objectType: type.apiName,\n where: canonOptions.where,\n orderBy: canonOptions.orderBy,\n pageSize\n }));\n }, [enabled, observableClient, type.apiName, type.type, stableRids, canonOptions.where, dedupeIntervalMs, pageSize, canonOptions.orderBy, streamUpdates, canonOptions.withProperties, autoFetchMore, canonOptions.intersectWith, pivotTo, canonOptions.$select, $loadPropertySecurityMetadata, $includeAllBaseObjectProperties, !!resolveToObjectType]);\n const listPayload = React.useSyncExternalStore(subscribe, getSnapShot);\n const refetch = React.useCallback(async () => {\n await observableClient.invalidateObjectType(type.apiName);\n }, [observableClient, type.apiName]);\n return React.useMemo(() => ({\n fetchMore: listPayload?.hasMore ? listPayload.fetchMore : undefined,\n error: extractPayloadError(listPayload, \"Failed to load objects\"),\n data: listPayload?.resolvedList,\n isLoading: isPayloadLoading(listPayload, enabled),\n isOptimistic: listPayload?.isOptimistic ?? false,\n totalCount: listPayload?.totalCount,\n hasMore: listPayload?.hasMore ?? false,\n objectSet: listPayload?.objectSet,\n refetch\n }), [listPayload, enabled, refetch]);\n}","/*\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\nimport { useEffect } from \"react\";\n\n/**\n * Runs an effect exactly once on mount. The callback's return value\n * is used as the cleanup function, just like `useEffect`.\n *\n * This is a semantic wrapper around `useEffect(() => …, [])` that\n * makes the intent explicit and avoids needing an eslint-disable\n * for `react-hooks/exhaustive-deps`.\n */\nexport function useOnMount(effect) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(effect, []);\n}","/*\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 React from \"react\";\nimport { useOnMount } from \"./core/useOnMount.js\";\nimport { UserAgentContext } from \"./UserAgentContext.js\";\nexport function useRegisterUserAgent(agent) {\n const addUserAgent = React.useContext(UserAgentContext);\n useOnMount(() => {\n return addUserAgent(agent);\n });\n}","/*\n * Copyright 2024 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 React from \"react\";\nimport { OsdkContext } from \"./new/OsdkContext.js\";\nexport function useOsdkClient() {\n return React.useContext(OsdkContext).client;\n}","/*\n * Copyright 2024 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 React from \"react\";\nimport { useOsdkClient } from \"./useOsdkClient.js\";\nexport function useOsdkMetadata(type) {\n const client = useOsdkClient();\n const [metadata, setMetadata] = React.useState(undefined);\n const [error, setError] = React.useState();\n if (!metadata && !error) {\n client.fetchMetadata(type).then(fetchedMetadata => {\n setMetadata(fetchedMetadata);\n }).catch(error => {\n const errorMessage = error instanceof Error ? error.message : String(error);\n setError(errorMessage);\n });\n return {\n loading: true\n };\n }\n return {\n loading: false,\n metadata,\n error\n };\n}","/*\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 React from \"react\";\n/**\n * Creates a debounced version of a callback function.\n *\n * @param callback The function to debounce\n * @param delay The delay in milliseconds\n * @returns A debounced function with cancel() and flush() methods\n *\n * @example\n * ```tsx\n * const { applyAction } = useOsdkAction(editOffice);\n *\n * const debouncedSave = useDebouncedCallback(\n * async (name: string) => {\n * await applyAction({\n * Office: office,\n * name,\n * location: office.location!,\n * $optimisticUpdate: (ctx) => {\n * ctx.updateObject(office.$clone({ name }));\n * },\n * });\n * },\n * 1000\n * );\n *\n * <input onChange={(e) => debouncedSave(e.target.value)} />\n * ```\n */\nexport function useDebouncedCallback(callback, delay) {\n const timeoutRef = React.useRef();\n const callbackRef = React.useRef(callback);\n const lastArgsRef = React.useRef();\n callbackRef.current = callback;\n const cancel = React.useCallback(() => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n timeoutRef.current = undefined;\n }\n }, []);\n const flush = React.useCallback(() => {\n if (timeoutRef.current && lastArgsRef.current) {\n clearTimeout(timeoutRef.current);\n timeoutRef.current = undefined;\n void callbackRef.current(...lastArgsRef.current);\n }\n }, []);\n const debouncedCallback = React.useCallback((...args) => {\n lastArgsRef.current = args;\n cancel();\n timeoutRef.current = setTimeout(() => {\n void callbackRef.current(...args);\n }, delay);\n }, [delay, cancel]);\n React.useEffect(() => {\n return () => {\n cancel();\n };\n }, [cancel]);\n return Object.assign(debouncedCallback, {\n cancel,\n flush\n });\n}"]}
|
package/build/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkU56S3FGG_cjs = require('./chunk-U56S3FGG.cjs');
|
|
4
4
|
var chunkOGP2DK2V_cjs = require('./chunk-OGP2DK2V.cjs');
|
|
5
5
|
require('./chunk-UKQGMTMG.cjs');
|
|
6
6
|
var chunkDO3NFBKN_cjs = require('./chunk-DO3NFBKN.cjs');
|
|
@@ -16,59 +16,59 @@ function useObservableClient() {
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "OsdkProvider", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkU56S3FGG_cjs.OsdkProvider; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "useDebouncedCallback", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkU56S3FGG_cjs.useDebouncedCallback; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "useLinks", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkU56S3FGG_cjs.useLinks; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "useObjectSet", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkU56S3FGG_cjs.useObjectSet; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "useOsdkAction", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkAction; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "useOsdkAggregation", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkAggregation; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "useOsdkClient", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkClient; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useOsdkFunction", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkFunction; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "useOsdkFunctions", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkFunctions; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "useOsdkMetadata", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkMetadata; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "useOsdkObject", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkObject; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "useOsdkObjects", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkObjects; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "useRegisterUserAgent", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkU56S3FGG_cjs.useRegisterUserAgent; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "useStableObjectSet", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkU56S3FGG_cjs.useStableObjectSet; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "getRegisteredDevTools", {
|
|
74
74
|
enumerable: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkU56S3FGG_cjs = require('../chunk-U56S3FGG.cjs');
|
|
4
4
|
var chunkOGP2DK2V_cjs = require('../chunk-OGP2DK2V.cjs');
|
|
5
5
|
require('../chunk-UKQGMTMG.cjs');
|
|
6
6
|
require('../chunk-DO3NFBKN.cjs');
|
|
@@ -9,63 +9,63 @@ require('../chunk-DO3NFBKN.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "OsdkProvider2", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkU56S3FGG_cjs.OsdkProvider; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "useDebouncedCallback", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkU56S3FGG_cjs.useDebouncedCallback; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "useLinks", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkU56S3FGG_cjs.useLinks; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "useObjectSet", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkU56S3FGG_cjs.useObjectSet; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "useOsdkAction", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkAction; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "useOsdkAggregation", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkAggregation; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "useOsdkClient", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkClient; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "useOsdkClient2", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkClient; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "useOsdkFunction", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkFunction; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "useOsdkFunctions", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkFunctions; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "useOsdkMetadata", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkMetadata; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "useOsdkObject", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkObject; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "useOsdkObjects", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkU56S3FGG_cjs.useOsdkObjects; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "useRegisterUserAgent", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkU56S3FGG_cjs.useRegisterUserAgent; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "useStableObjectSet", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkU56S3FGG_cjs.useStableObjectSet; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "getRegisteredDevTools", {
|
|
71
71
|
enumerable: true,
|