@salesforce/platform-sdk 11.64.0 → 11.66.2
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/dist/core/extension-attach.d.ts +56 -0
- package/dist/core/extension-attach.d.ts.map +1 -0
- package/dist/core/{plugin-factory.d.ts → extension-factory.d.ts} +16 -16
- package/dist/core/extension-factory.d.ts.map +1 -0
- package/dist/core/extension-types.d.ts +231 -0
- package/dist/core/extension-types.d.ts.map +1 -0
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +5 -5
- package/dist/data/extensions/index.d.ts +19 -0
- package/dist/data/extensions/index.d.ts.map +1 -0
- package/dist/data/{plugins → extensions}/index.js +12 -12
- package/dist/data/{plugins → extensions}/labels/index.d.ts +18 -18
- package/dist/data/extensions/labels/index.d.ts.map +1 -0
- package/dist/data/{plugins → extensions}/labels/query.d.ts +1 -1
- package/dist/data/extensions/labels/query.d.ts.map +1 -0
- package/dist/data/index.d.ts +35 -27
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +158 -153
- package/dist/data/shared/graphql/cache/services.d.ts +7 -7
- package/dist/data/shared/graphql/cache/services.d.ts.map +1 -1
- package/dist/data/webapp/index.d.ts.map +1 -1
- package/dist/{plugin-factory-BC3b3BOy.js → extension-factory-CJkfM4km.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -21
- package/package.json +8 -8
- package/dist/core/plugin-attach.d.ts +0 -46
- package/dist/core/plugin-attach.d.ts.map +0 -1
- package/dist/core/plugin-factory.d.ts.map +0 -1
- package/dist/core/plugin-types.d.ts +0 -208
- package/dist/core/plugin-types.d.ts.map +0 -1
- package/dist/data/plugins/index.d.ts +0 -19
- package/dist/data/plugins/index.d.ts.map +0 -1
- package/dist/data/plugins/labels/index.d.ts.map +0 -1
- package/dist/data/plugins/labels/query.d.ts.map +0 -1
- package/dist/data/reserved.d.ts +0 -3
- package/dist/data/reserved.d.ts.map +0 -1
|
@@ -17,18 +17,18 @@ export interface CacheBundle {
|
|
|
17
17
|
services: CacheServices;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Module-level registry so all SDK instances targeting the same
|
|
20
|
+
* Module-level registry so all SDK instances targeting the same host+version
|
|
21
21
|
* share one cache + cacheController + pubSub — no redundant network
|
|
22
22
|
* requests for identical queries across features.
|
|
23
23
|
* Exported for test isolation only; not part of the public API.
|
|
24
24
|
*/
|
|
25
25
|
export declare const cacheBundleRegistry: Map<string, SharedCacheBundle>;
|
|
26
26
|
/**
|
|
27
|
-
* Returns a CacheBundle for the given
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* networkFetch ensures cache misses route through the calling
|
|
31
|
-
* pipeline (CSRF, onStatus callbacks).
|
|
27
|
+
* Returns a CacheBundle for the given cacheKey. The shared cache infra (cache,
|
|
28
|
+
* cacheController, pubSub) is deduplicated by cacheKey — instances with the
|
|
29
|
+
* same key share cache state, while distinct keys get isolated stores. The
|
|
30
|
+
* per-instance networkFetch ensures cache misses route through the calling
|
|
31
|
+
* SDK's fetch pipeline (CSRF, onStatus callbacks).
|
|
32
32
|
*/
|
|
33
|
-
export declare function buildCacheServices(
|
|
33
|
+
export declare function buildCacheServices(cacheKey: string, networkFetch: FetchService): CacheBundle;
|
|
34
34
|
//# sourceMappingURL=services.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../../src/data/shared/graphql/cache/services.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAG5F,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAChG,OAAO,KAAK,EAAE,kBAAkB,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CAAC;AAexE;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,WAAW,CAU5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data/webapp/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAmC,MAAM,YAAY,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAWrD;;GAEG;AACH,qBAAa,aAAc,YAAW,OAAO;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAe;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyD;IAClF,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;gBAErB,OAAO,CAAC,EAAE,oBAAoB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data/webapp/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAmC,MAAM,YAAY,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAWrD;;GAEG;AACH,qBAAa,aAAc,YAAW,OAAO;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAe;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyD;IAClF,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;gBAErB,OAAO,CAAC,EAAE,oBAAoB;IAkCpC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAUjF;;;;;OAKG;YACW,iBAAiB;IAgB/B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;CAa3B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
export * from './core';
|
|
7
7
|
export { createChatSDK, type ChatSDKOptions, MCPAppsChatSDK, getChatSDK, getChatSDKSync, resetChatSDK, } from './chat';
|
|
8
8
|
export { createViewSDK, type ViewSDKOptions, MCPAppsViewSDK, getViewSDK, getViewSDKSync, resetViewSDK, } from './view';
|
|
9
|
-
export { createDataSDK,
|
|
9
|
+
export { createDataSDK, defineDataExtension, type DataSDKOptions, type DataSDKExtension, type DataSDKWithExtensions, type WebAppDataSDKOptions, type MosaicDataSDKOptions, type StatusCallback, type NodeOfConnection, gql, } from './data';
|
|
10
10
|
export { createLightningSDK, type LightningSDKOptions } from './lightning';
|
|
11
11
|
export { getCurrentApp, type CurrentAppOptions, type AppIdentity, type CurrentApp, WebAppCurrentApp, } from './app';
|
|
12
12
|
export { createTelemetryTransport, registerTelemetryUploader, TelemetryUploader, type TelemetryTransport, type TelemetryTransportOptions, type EnvelopeEntry, type EnvelopeMetadata, type TelemetryUploaderOptions, type OnEnvelopeCallback, type FlushReason, type TelemetryUploadContext, type TelemetryUploaderErrorContext, type InstrumentedAppLike, type DisposeOptions, } from './telemetry';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,QAAQ,CAAC;AAGvB,OAAO,EACN,aAAa,EACb,KAAK,cAAc,EACnB,cAAc,EACd,UAAU,EACV,cAAc,EACd,YAAY,GACZ,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACN,aAAa,EACb,KAAK,cAAc,EACnB,cAAc,EACd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package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { M as
|
|
1
|
+
import { M as t, a, S as o, g as p, i as s, b as i, r as S } from "./surface-Dd2tqrPi.js";
|
|
2
2
|
import { g as c } from "./capabilities-5BWkCbcP.js";
|
|
3
|
-
import { w as
|
|
4
|
-
import { c as
|
|
5
|
-
import { MCPAppsChatSDK as K, createChatSDK as
|
|
6
|
-
import { MCPAppsViewSDK as
|
|
7
|
-
import { createDataSDK as
|
|
3
|
+
import { w as n } from "./sdk-promise-D0sy7OW1.js";
|
|
4
|
+
import { c as g } from "./extension-factory-CJkfM4km.js";
|
|
5
|
+
import { MCPAppsChatSDK as K, createChatSDK as l, getChatSDK as A, getChatSDKSync as C, resetChatSDK as d } from "./chat/index.js";
|
|
6
|
+
import { MCPAppsViewSDK as y, createViewSDK as T, getViewSDK as h, getViewSDKSync as u, resetViewSDK as E } from "./view/index.js";
|
|
7
|
+
import { createDataSDK as P, defineDataExtension as V, gql as b } from "./data/index.js";
|
|
8
8
|
import { createLightningSDK as F } from "./lightning/index.js";
|
|
9
9
|
import { WebAppCurrentApp as U, getCurrentApp as _ } from "./app/index.js";
|
|
10
10
|
import { c as z } from "./transport-D9QstWle.js";
|
|
@@ -12,35 +12,35 @@ import { T as N, r as W } from "./TelemetryUploader-DKkdppe9.js";
|
|
|
12
12
|
import { P as j, c as k, v as B } from "./analytics-Dpz22kda.js";
|
|
13
13
|
export {
|
|
14
14
|
K as MCPAppsChatSDK,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
y as MCPAppsViewSDK,
|
|
16
|
+
t as McpAppsNotAvailableError,
|
|
17
|
+
a as McpAppsSession,
|
|
18
18
|
j as PFT_META_KEY,
|
|
19
|
-
|
|
19
|
+
o as Surface,
|
|
20
20
|
N as TelemetryUploader,
|
|
21
21
|
U as WebAppCurrentApp,
|
|
22
22
|
k as createAnalytics,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
l as createChatSDK,
|
|
24
|
+
P as createDataSDK,
|
|
25
|
+
g as createExtensionFactory,
|
|
25
26
|
F as createLightningSDK,
|
|
26
|
-
l as createPluginFactory,
|
|
27
27
|
z as createTelemetryTransport,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
T as createViewSDK,
|
|
29
|
+
V as defineDataExtension,
|
|
30
30
|
A as getChatSDK,
|
|
31
31
|
C as getChatSDKSync,
|
|
32
32
|
_ as getCurrentApp,
|
|
33
33
|
c as getSurfaceCapabilities,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
p as getVerifiedSurface,
|
|
35
|
+
h as getViewSDK,
|
|
36
|
+
u as getViewSDKSync,
|
|
37
|
+
b as gql,
|
|
38
38
|
s as initialize,
|
|
39
39
|
i as isSfEmbeddingIframe,
|
|
40
40
|
W as registerTelemetryUploader,
|
|
41
41
|
d as resetChatSDK,
|
|
42
42
|
S as resetSurface,
|
|
43
|
-
|
|
43
|
+
E as resetViewSDK,
|
|
44
44
|
B as validatePftId,
|
|
45
|
-
|
|
45
|
+
n as wrapSDKPromise
|
|
46
46
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/platform-sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.66.2",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"data": [
|
|
27
27
|
"./dist/data/index.d.ts"
|
|
28
28
|
],
|
|
29
|
-
"data/
|
|
30
|
-
"./dist/data/
|
|
29
|
+
"data/extensions": [
|
|
30
|
+
"./dist/data/extensions/index.d.ts"
|
|
31
31
|
],
|
|
32
32
|
"lightning": [
|
|
33
33
|
"./dist/lightning/index.d.ts"
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"import": "./dist/data/index.js",
|
|
76
76
|
"default": "./dist/data/index.js"
|
|
77
77
|
},
|
|
78
|
-
"./data/
|
|
79
|
-
"types": "./dist/data/
|
|
80
|
-
"import": "./dist/data/
|
|
81
|
-
"default": "./dist/data/
|
|
78
|
+
"./data/extensions": {
|
|
79
|
+
"types": "./dist/data/extensions/index.d.ts",
|
|
80
|
+
"import": "./dist/data/extensions/index.js",
|
|
81
|
+
"default": "./dist/data/extensions/index.js"
|
|
82
82
|
},
|
|
83
83
|
"./lightning": {
|
|
84
84
|
"types": "./dist/lightning/index.d.ts",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"@conduit-client/service-pubsub": "3.19.6",
|
|
135
135
|
"@conduit-client/service-retry": "3.19.6",
|
|
136
136
|
"@conduit-client/utils": "3.19.6",
|
|
137
|
-
"@salesforce/jsonrpc": "^11.
|
|
137
|
+
"@salesforce/jsonrpc": "^11.66.2",
|
|
138
138
|
"@salesforce/sf-embedding-bridge": "2.2.5-rc.2"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ExtendedSDK, PluginsFor } from './plugin-types';
|
|
2
|
-
/**
|
|
3
|
-
* Run each plugin's `setup` in array order and mount the returned namespace
|
|
4
|
-
* under the entry's effective mount name — its `name`, or its `as` alias when
|
|
5
|
-
* the entry is `{ plugin, as }`. `setup` may be sync or async; each is `await`ed
|
|
6
|
-
* before the next runs, so the ordering is deterministic.
|
|
7
|
-
*
|
|
8
|
-
* Aliasing rebinds only the mount key: `setup` still runs on the underlying
|
|
9
|
-
* plugin, so two plugins that both declare `name: "labels"` can attach under
|
|
10
|
-
* distinct keys (`{ plugin: a, as: "x" }`, `{ plugin: b, as: "y" }`). See
|
|
11
|
-
* {@link resolveEntry} for the bare-vs-aliased narrowing and the loud guard
|
|
12
|
-
* against a malformed entry from untyped JavaScript.
|
|
13
|
-
*
|
|
14
|
-
* Each `setup` receives the base SDK, and that is all the type promises it:
|
|
15
|
-
* `setup(sdk)` is typed as `Base`, never the accumulating shape. Because every
|
|
16
|
-
* namespace mounts onto one shared object (below), a later plugin *can* reach
|
|
17
|
-
* an earlier plugin's namespace at runtime — but that reachability is an
|
|
18
|
-
* untyped byproduct, not a WI-1 contract to build on. Typed cross-plugin
|
|
19
|
-
* access (a plugin declaring the namespaces it needs and receiving them in
|
|
20
|
-
* `setup`) is WI-3, via the reserved `Deps` seam on {@link Plugin}; until then,
|
|
21
|
-
* author setups as independent.
|
|
22
|
-
*
|
|
23
|
-
* Atomic and non-mutating: namespaces mount onto a fresh object whose prototype
|
|
24
|
-
* is `base`, so the base's own and inherited members resolve through the
|
|
25
|
-
* prototype chain (and `instanceof` still holds) while `base` itself is never
|
|
26
|
-
* written to. If any `setup` throws, the half-built object is simply discarded
|
|
27
|
-
* and `base` is left pristine — there is nothing to roll back. This keeps
|
|
28
|
-
* attach safe against a memoized/shared instance (e.g. the chat/view
|
|
29
|
-
* singletons WI-4 introduces): each attach derives its own object, so a repeat
|
|
30
|
-
* attach can never collide with a prior one. The empty-plugin case returns the
|
|
31
|
-
* base instance unchanged.
|
|
32
|
-
*
|
|
33
|
-
* SDK-agnostic: `Base` is inferred from the passed instance, and `plugins` is
|
|
34
|
-
* constrained to {@link PluginsFor}<Base> so only plugins compatible with this
|
|
35
|
-
* base type may attach. The returned type is {@link ExtendedSDK}<Base, Plugins>
|
|
36
|
-
* — the base plus each plugin's resolved namespace under its own key.
|
|
37
|
-
*
|
|
38
|
-
* Fail-loud: a malformed entry (no `setup`, or a non-string/empty mount name),
|
|
39
|
-
* a mount name in `reservedNames` (names the caller declares off-limits),
|
|
40
|
-
* already present on the base (own or inherited), or mounted earlier in this
|
|
41
|
-
* same call throws before setup runs, and a `setup` that throws or rejects
|
|
42
|
-
* surfaces as an error naming the plugin, chaining the original error via
|
|
43
|
-
* `cause`.
|
|
44
|
-
*/
|
|
45
|
-
export declare function attachPlugins<Base extends object, const Plugins extends PluginsFor<Base>>(base: Base, plugins: Plugins, reservedNames?: ReadonlySet<string>): Promise<ExtendedSDK<Base, Plugins>>;
|
|
46
|
-
//# sourceMappingURL=plugin-attach.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-attach.d.ts","sourceRoot":"","sources":["../../src/core/plugin-attach.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAiB,WAAW,EAAU,UAAU,EAAE,MAAM,gBAAgB,CAAC;AA0CrF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,KAAK,CAAC,OAAO,SAAS,UAAU,CAAC,IAAI,CAAC,EAC9F,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAIhB,aAAa,GAAE,WAAW,CAAC,MAAM,CAAqB,GACpD,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAoErC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-factory.d.ts","sourceRoot":"","sources":["../../src/core/plugin-factory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,MACT,KAAK,CAAC,IAAI,SAAS,MAAM,EAAE,GAAG,EAC1D,QAAQ,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,KACzC,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAGzB"}
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
* For full license text, see the LICENSE.txt file
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* A plugin: a named namespace factory bound to a base SDK instance at attach
|
|
8
|
-
* time. SDK-agnostic — `Sdk` is the base type this plugin's `setup` requires.
|
|
9
|
-
*
|
|
10
|
-
* The contract does not depend on any concrete SDK. Enforcement of a specific
|
|
11
|
-
* SDK happens at attach time via {@link PluginsFor}: a plugin is attachable to
|
|
12
|
-
* a base `B` only where `B` is assignable to `Sdk`. So authoring
|
|
13
|
-
* `setup(sdk: DataSDK)` type-checks the plugin against DataSDK when it is
|
|
14
|
-
* attached through `createDataSDK`, even though `Plugin` itself never imports
|
|
15
|
-
* DataSDK.
|
|
16
|
-
*
|
|
17
|
-
* Reserved — `Deps` (inert in WI-1): the trailing type parameter is the seam
|
|
18
|
-
* for WI-3 plugin dependencies. It defaults to `[]` and is referenced only
|
|
19
|
-
* through `setup`'s parameter, as `Sdk & Accumulate<Deps>`. With the default
|
|
20
|
-
* empty tuple `Accumulate<[]>` is `unknown`, and `Sdk & unknown` reduces to
|
|
21
|
-
* `Sdk`, so `setup` sees exactly the base SDK — a three-argument
|
|
22
|
-
* `Plugin<Sdk, Name, Api>` (see {@link AnyPlugin}, {@link PluginsFor}) is
|
|
23
|
-
* unchanged and no WI-1 plugin's type shifts. There is no `deps` field yet, so
|
|
24
|
-
* `attach` has no dependency to honor or silently drop.
|
|
25
|
-
*
|
|
26
|
-
* Threading it through `setup` (rather than leaving it dangling) is deliberate:
|
|
27
|
-
* an unreferenced reserved type parameter is not free — it trips
|
|
28
|
-
* `noUnusedLocals`. This makes the slot load-bearing while behaviorally a
|
|
29
|
-
* no-op. WI-3's add-back is then a pure superset: add a `deps?: Deps` field and
|
|
30
|
-
* populate the tuple, and the already-wired `setup` view lights up. The spike
|
|
31
|
-
* notes the superset holds with or without this slot, so it is kept as an
|
|
32
|
-
* explicit intent marker, not a forward-compat necessity.
|
|
33
|
-
*/
|
|
34
|
-
export interface Plugin<Sdk, Name extends string, Api, Deps extends readonly AnyPlugin[] = []> {
|
|
35
|
-
/** The single namespace key this plugin mounts under (e.g. "labels"). */
|
|
36
|
-
name: Name;
|
|
37
|
-
/**
|
|
38
|
-
* Build the plugin API. Runs at attach time with the fully-resolved,
|
|
39
|
-
* instance-bound base SDK. May be synchronous or async — return the API
|
|
40
|
-
* directly, or a promise of it (e.g. to `await` a dynamic import or a
|
|
41
|
-
* capability handshake). The resolved `Api` is what mounts under `name`.
|
|
42
|
-
*
|
|
43
|
-
* `sdk` is `Sdk & Accumulate<Deps>`; with the reserved `Deps = []` this is
|
|
44
|
-
* just `Sdk` today (see the `Deps` note above). WI-3 populates `Deps` so a
|
|
45
|
-
* plugin's declared dependencies' namespaces appear here.
|
|
46
|
-
*/
|
|
47
|
-
setup: (sdk: Sdk & Accumulate<Deps>) => Api | PromiseLike<Api>;
|
|
48
|
-
}
|
|
49
|
-
/** True iff `T` is a union of two or more members. */
|
|
50
|
-
type IsUnion<T, U = T> = T extends unknown ? ([U] extends [T] ? false : true) : never;
|
|
51
|
-
/**
|
|
52
|
-
* Reject a `name` that is not a single string literal. A concrete literal
|
|
53
|
-
* (`"labels"`) passes through unchanged; anything else collapses to `never`, so
|
|
54
|
-
* the authoring helpers error at definition time rather than silently losing key
|
|
55
|
-
* accumulation. See {@link createPluginFactory}.
|
|
56
|
-
*
|
|
57
|
-
* Two shapes are rejected, both of which would otherwise mount phantom keys:
|
|
58
|
-
* - a widened `string` (`string extends Name`) — no literal key to accumulate;
|
|
59
|
-
* - a union literal (`"a" | "b"`, e.g. from `name: cond ? "a" : "b"`) — this
|
|
60
|
-
* survives the `string extends Name` check, but {@link Accumulate}
|
|
61
|
-
* distributes over the union and types *both* `a` and `b` as present,
|
|
62
|
-
* non-optional members while `attach` mounts only one, leaving the other
|
|
63
|
-
* typed-present yet `undefined` at runtime. Requiring a single literal is
|
|
64
|
-
* what keeps the accumulated key set sound.
|
|
65
|
-
*/
|
|
66
|
-
export type LiteralName<Name extends string> = string extends Name ? never : IsUnion<Name> extends true ? never : Name;
|
|
67
|
-
/**
|
|
68
|
-
* Any plugin, for use in constraints. `never` in the (contravariant) `Sdk`
|
|
69
|
-
* slot makes every concrete `Plugin<...>` assignable to this — it is the top
|
|
70
|
-
* type over the SDK parameter.
|
|
71
|
-
*/
|
|
72
|
-
export type AnyPlugin = Plugin<never, string, unknown>;
|
|
73
|
-
/**
|
|
74
|
-
* Rebind a plugin's mount point: attach `plugin` under `as` instead of its own
|
|
75
|
-
* `name`. This is the consumer's recourse for a collision they didn't cause —
|
|
76
|
-
* two uneditable third-party plugins that both mount `sdk.labels` can each be
|
|
77
|
-
* aliased to a distinct key. Aliasing rebinds the mount *key* only, never the
|
|
78
|
-
* plugin's identity, which is what keeps identity-based dependency resolution
|
|
79
|
-
* (a later WI) robust to it.
|
|
80
|
-
*
|
|
81
|
-
* `As` is intentionally the raw alias literal, NOT `LiteralName<As>`: pinning
|
|
82
|
-
* `LiteralName` here would collapse the constraint form `AliasedPlugin<_,
|
|
83
|
-
* string>` (used in {@link PluginsFor}) to `as: never` and reject every alias.
|
|
84
|
-
* The widened/union-`as` guard is instead applied at the call boundary by
|
|
85
|
-
* {@link ValidAliasNames}, exactly as {@link UniquePluginNames} guards mount
|
|
86
|
-
* uniqueness there — the entry type stays permissive; the boundary validates.
|
|
87
|
-
*
|
|
88
|
-
* `name?: never; setup?: never` reject the mixed shape structurally, mirroring
|
|
89
|
-
* the runtime discriminator. An object carrying a bare plugin's defining
|
|
90
|
-
* members *and* `{ plugin, as }` satisfies both arms of {@link PluginEntry};
|
|
91
|
-
* without these guards {@link MountName} (which tests the aliased arm first)
|
|
92
|
-
* would key it under `as`, while `attach` — discriminating on `"setup" in
|
|
93
|
-
* entry` — mounts the bare plugin under `name`. The `never` fields fail the
|
|
94
|
-
* aliased arm for such an object, so it matches only {@link Plugin} and both
|
|
95
|
-
* sides agree on `name`. Unlike the `LiteralName` case above, these are fixed
|
|
96
|
-
* optional-never fields independent of `P`/`As`, so a real `{ plugin, as }`
|
|
97
|
-
* entry (which omits them) leaves the `PluginsFor` constraint form intact.
|
|
98
|
-
*/
|
|
99
|
-
export interface AliasedPlugin<P extends AnyPlugin, As extends string> {
|
|
100
|
-
plugin: P;
|
|
101
|
-
as: As;
|
|
102
|
-
name?: never;
|
|
103
|
-
setup?: never;
|
|
104
|
-
}
|
|
105
|
-
/** Any aliased entry, for use in unions/constraints (cf. {@link AnyPlugin}). */
|
|
106
|
-
type AnyAliasedPlugin = AliasedPlugin<AnyPlugin, string>;
|
|
107
|
-
/**
|
|
108
|
-
* The `plugins: []` array constraint that enforces a concrete base SDK. A bare
|
|
109
|
-
* `Plugin<Sdk, Name, Api>` — or an {@link AliasedPlugin} wrapping one — is a
|
|
110
|
-
* member iff a `Base` value is assignable to the (inner) plugin's `setup`
|
|
111
|
-
* parameter, i.e. the plugin asks for no more than `Base` provides (a plugin
|
|
112
|
-
* that ignores the SDK, `Sdk = unknown`, is universally attachable).
|
|
113
|
-
* `createDataSDK` binds `Base = DataSDK`; that is where DataSDK-specific
|
|
114
|
-
* enforcement occurs.
|
|
115
|
-
*/
|
|
116
|
-
export type PluginsFor<Base> = readonly (Plugin<Base, string, unknown> | AliasedPlugin<Plugin<Base, string, unknown>, string>)[];
|
|
117
|
-
/**
|
|
118
|
-
* What may appear in the `plugins: []` array: a bare plugin, or a bare plugin
|
|
119
|
-
* wrapped with an `{ as }` alias. Everything downstream ({@link Accumulate},
|
|
120
|
-
* {@link DuplicateMountName}, {@link ExtendedSDK}) is written against
|
|
121
|
-
* `PluginEntry` and routes through {@link PluginOf}/{@link MountName}, so the
|
|
122
|
-
* bare-vs-aliased distinction is resolved in exactly those two helpers and
|
|
123
|
-
* nowhere else.
|
|
124
|
-
*/
|
|
125
|
-
export type PluginEntry = AnyPlugin | AnyAliasedPlugin;
|
|
126
|
-
/** The underlying plugin of an entry, whether it was passed bare or aliased. */
|
|
127
|
-
type PluginOf<E extends PluginEntry> = E extends AnyAliasedPlugin ? E["plugin"] : E;
|
|
128
|
-
/**
|
|
129
|
-
* The literal key an entry mounts under: its alias `as` when aliased, else the
|
|
130
|
-
* plugin's own `name`. This is the single place the effective mount key is
|
|
131
|
-
* computed — all mount-name-keyed logic ({@link Accumulate},
|
|
132
|
-
* {@link DuplicateMountName}) routes through it, so aliasing is transparent to
|
|
133
|
-
* them: `[a, a]` (both mount `"labels"`) collides, but `[{ plugin: a, as: "x"
|
|
134
|
-
* }, { plugin: a, as: "y" }]` resolves to distinct keys and does not.
|
|
135
|
-
*/
|
|
136
|
-
type MountName<E extends PluginEntry> = E extends AnyAliasedPlugin ? E["as"] : PluginOf<E>["name"];
|
|
137
|
-
/**
|
|
138
|
-
* The resolved API an entry's plugin `setup` returns. `Awaited` unwraps the
|
|
139
|
-
* async case so the mounted namespace is the settled value, never a promise.
|
|
140
|
-
*/
|
|
141
|
-
type ApiOf<E extends PluginEntry> = Awaited<ReturnType<PluginOf<E>["setup"]>>;
|
|
142
|
-
/**
|
|
143
|
-
* Walk the plugin tuple left→right, intersecting `{ [name]: namespace }` per
|
|
144
|
-
* entry. Namespaces are non-optional: presence is a static attach fact.
|
|
145
|
-
*
|
|
146
|
-
* This intersects unconditionally: a duplicate mount name would collapse to
|
|
147
|
-
* `{ labels: A } & { labels: B }` here rather than erroring. Uniqueness is not
|
|
148
|
-
* this type's job — it is enforced up front by {@link UniquePluginNames} at the
|
|
149
|
-
* authoring boundary, with `attach`'s runtime guard as the backstop for tuples
|
|
150
|
-
* built dynamically past the static check.
|
|
151
|
-
*/
|
|
152
|
-
type Accumulate<Plugins extends readonly PluginEntry[]> = Plugins extends readonly [
|
|
153
|
-
infer Head extends PluginEntry,
|
|
154
|
-
...infer Tail extends readonly PluginEntry[]
|
|
155
|
-
] ? {
|
|
156
|
-
[K in MountName<Head>]: ApiOf<Head>;
|
|
157
|
-
} & Accumulate<Tail> : unknown;
|
|
158
|
-
/**
|
|
159
|
-
* The first mount name that repeats in the tuple, or `never` if all are
|
|
160
|
-
* distinct. Walks left→right accumulating seen names in `Seen`; the first
|
|
161
|
-
* {@link MountName} already in `Seen` is the duplicate. Keyed on
|
|
162
|
-
* {@link MountName}, so aliasing a clash apart is a valid recourse (see there).
|
|
163
|
-
*/
|
|
164
|
-
type DuplicateMountName<Plugins extends readonly PluginEntry[], Seen = never> = Plugins extends readonly [
|
|
165
|
-
infer Head extends PluginEntry,
|
|
166
|
-
...infer Tail extends readonly PluginEntry[]
|
|
167
|
-
] ? [MountName<Head>] extends [Seen] ? MountName<Head> : DuplicateMountName<Tail, Seen | MountName<Head>> : never;
|
|
168
|
-
/**
|
|
169
|
-
* A constraint intersected into the `plugins` option to reject a tuple whose
|
|
170
|
-
* mount names are not unique. Resolves to `unknown` (a no-op intersection) when
|
|
171
|
-
* every mount name is distinct; otherwise to an object whose `plugins` field is
|
|
172
|
-
* a human-readable error string, which makes the supplied array inassignable
|
|
173
|
-
* and surfaces the message in the diagnostic.
|
|
174
|
-
*
|
|
175
|
-
* This moves the collision from a runtime throw (`attach` fail-loud) to a
|
|
176
|
-
* compile error at the call site. The two are complementary, not redundant:
|
|
177
|
-
* this catches statically-known tuples early with a clear message, while
|
|
178
|
-
* `attach` still guards tuples assembled dynamically (e.g. `[...a, ...b]`)
|
|
179
|
-
* whose duplicates a static check cannot see.
|
|
180
|
-
*/
|
|
181
|
-
export type UniquePluginNames<Plugins extends readonly PluginEntry[]> = [
|
|
182
|
-
DuplicateMountName<Plugins>
|
|
183
|
-
] extends [never] ? unknown : {
|
|
184
|
-
plugins: `Two plugins mount under "${DuplicateMountName<Plugins> & string}"; mount names must be unique.`;
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* A constraint intersected into the `plugins` option to reject an aliased entry
|
|
188
|
-
* whose `as` is not a single string literal — the same soundness bar
|
|
189
|
-
* {@link LiteralName} applies to a plugin's `name` (see there for why a widened
|
|
190
|
-
* or union `as` would mount a phantom namespace). Applied at the boundary rather
|
|
191
|
-
* than on {@link AliasedPlugin} for the reason that type documents. Resolves to
|
|
192
|
-
* `unknown` or an inassignable `{ plugins }` error exactly as
|
|
193
|
-
* {@link UniquePluginNames} does.
|
|
194
|
-
*/
|
|
195
|
-
export type ValidAliasNames<Plugins extends readonly PluginEntry[]> = Plugins extends readonly [
|
|
196
|
-
infer Head extends PluginEntry,
|
|
197
|
-
...infer Tail extends readonly PluginEntry[]
|
|
198
|
-
] ? Head extends AnyAliasedPlugin ? [LiteralName<Head["as"]>] extends [never] ? {
|
|
199
|
-
plugins: `An alias "as" must be a single string literal, not a widened or union type.`;
|
|
200
|
-
} : ValidAliasNames<Tail> : ValidAliasNames<Tail> : unknown;
|
|
201
|
-
/** Collapse an intersection into a single flat object type for readable hovers. */
|
|
202
|
-
type Flatten<T> = {
|
|
203
|
-
[K in keyof T]: T[K];
|
|
204
|
-
} & {};
|
|
205
|
-
/** The base SDK plus every attached plugin's namespace. */
|
|
206
|
-
export type ExtendedSDK<Base, Plugins extends readonly PluginEntry[]> = Flatten<Base & Accumulate<Plugins>>;
|
|
207
|
-
export {};
|
|
208
|
-
//# sourceMappingURL=plugin-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-types.d.ts","sourceRoot":"","sources":["../../src/core/plugin-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,MAAM,CAAC,GAAG,EAAE,IAAI,SAAS,MAAM,EAAE,GAAG,EAAE,IAAI,SAAS,SAAS,SAAS,EAAE,GAAG,EAAE;IAC5F,yEAAyE;IACzE,IAAI,EAAE,IAAI,CAAC;IACX;;;;;;;;;OASG;IACH,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;CAC/D;AAED,sDAAsD;AACtD,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,O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;GAQG;AACH,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,SAAS,WAAW,EAAE,IAAI,OAAO,SAAS,SAAS;IAC9F,MAAM,IAAI,SAAS,WAAW;IAC9B,GAAG,MAAM,IAAI,SAAS,SAAS,WAAW,EAAE;CAC5C,GACE,IAAI,SAAS,gBAAgB,GAC5B,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GACxC;IAAE,OAAO,EAAE,6EAA6E,CAAA;CAAE,GAC1F,eAAe,CAAC,IAAI,CAAC,GACtB,eAAe,CAAC,IAAI,CAAC,GACtB,OAAO,CAAC;AAEX,mFAAmF;AACnF,KAAK,OAAO,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,EAAE,CAAC;AAEhD,2DAA2D;AAC3D,MAAM,MAAM,WAAW,CAAC,IAAI,EAAE,OAAO,SAAS,SAAS,WAAW,EAAE,IAAI,OAAO,CAC9E,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,CAC1B,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
* For full license text, see the LICENSE.txt file
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* First-party DataSDK plugin catalog. Import plugins from this subpath and
|
|
8
|
-
* attach them via `createDataSDK({ plugins: [...] })`:
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import { createDataSDK } from "@salesforce/platform-sdk/data";
|
|
12
|
-
* import { labelsPlugin } from "@salesforce/platform-sdk/data/plugins";
|
|
13
|
-
*
|
|
14
|
-
* const sdk = await createDataSDK({ plugins: [labelsPlugin({ namespace: "MyApp" })] });
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export { labelsPlugin } from './labels';
|
|
18
|
-
export type { LabelsApi, LabelsOptions, LabelFallback } from './labels';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data/plugins/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;GAUG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/data/plugins/labels/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAA0B,KAAK,aAAa,EAAiB,MAAM,SAAS,CAAC;AACpF,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAEnE,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,SAAS;IACzB;;;;;;OAMG;IACH,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzE;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC5F;AAgBD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,YAAY,CAAC,MAAM,GAAE,aAAkB,GAAG,aAAa,CAAC,QAAQ,EAAE,SAAS,CAAC,CAsD3F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/data/plugins/labels/query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,eAAe,CAAC;AAE3D;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,MAAM,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,aAA4B,CAAC;AAiIlE,oEAAoE;AACpE,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AA6D/C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,aAAa,CAClC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,QAAQ,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAuBjC"}
|
package/dist/data/reserved.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reserved.d.ts","sourceRoot":"","sources":["../../src/data/reserved.ts"],"names":[],"mappings":"AAmBA,6DAA6D;AAC7D,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAA2C,CAAC"}
|