@salesforce/sdk-data 1.40.0 → 1.41.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/dist/index.d.ts +9 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import type { DataSDK } from "@salesforce/sdk-core";
|
|
1
|
+
import type { DataSDK, SDKOptions } from "@salesforce/sdk-core";
|
|
2
|
+
/**
|
|
3
|
+
* Options for creating a DataSDK instance.
|
|
4
|
+
*/
|
|
5
|
+
export interface DataSDKOptions extends SDKOptions {
|
|
6
|
+
}
|
|
2
7
|
/**
|
|
3
8
|
* Create and initialize a DataSDK instance based on the detected surface
|
|
4
9
|
*
|
|
10
|
+
* @param options - Optional configuration including surface override
|
|
5
11
|
* @returns Promise resolving to an initialized DataSDK instance
|
|
6
12
|
*/
|
|
7
|
-
export declare function createDataSDK(): Promise<DataSDK>;
|
|
13
|
+
export declare function createDataSDK(options?: DataSDKOptions): Promise<DataSDK>;
|
|
8
14
|
export { gql } from "./gql.js";
|
|
9
|
-
export type { DataSDK, LabelRequest, ResourceUrlRequest, SchemaDescriptor, SchemaRequest, UserInfo, } from "@salesforce/sdk-core";
|
|
15
|
+
export type { DataSDK, LabelRequest, ResourceUrlRequest, SDKOptions, SchemaDescriptor, SchemaRequest, UserInfo, } from "@salesforce/sdk-core";
|
|
10
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGhE;;GAEG;AAEH,MAAM,WAAW,cAAe,SAAQ,UAAU;CAAG;AAErD;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAe9E;AAED,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,YAAY,EACX,OAAO,EACP,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,QAAQ,GACR,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8,10 +8,11 @@ import { WebAppDataSDK } from "./webapp/index.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* Create and initialize a DataSDK instance based on the detected surface
|
|
10
10
|
*
|
|
11
|
+
* @param options - Optional configuration including surface override
|
|
11
12
|
* @returns Promise resolving to an initialized DataSDK instance
|
|
12
13
|
*/
|
|
13
|
-
export async function createDataSDK() {
|
|
14
|
-
const surface = getSurface();
|
|
14
|
+
export async function createDataSDK(options) {
|
|
15
|
+
const surface = getSurface(options?.surface);
|
|
15
16
|
switch (surface) {
|
|
16
17
|
case Surface.OpenAI:
|
|
17
18
|
return {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/sdk-data",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@conduit-client/salesforce-lightning-service-worker": "^3.7.0",
|
|
30
|
-
"@salesforce/sdk-core": "^1.
|
|
30
|
+
"@salesforce/sdk-core": "^1.41.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"vitest": "^4.0.6"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "8c3ab0e185b482b2331a3e8401fa7d49c751c647"
|
|
39
39
|
}
|