@salesforce/lds-worker-api 1.311.0 → 1.312.1
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/sfdc/es/ldsWorkerApi.js +28 -12
- package/dist/sfdc/es/types/executeAdapter.d.ts +7 -7
- package/dist/standalone/es/lds-worker-api.js +51864 -61277
- package/dist/standalone/es/types/executeAdapter.d.ts +7 -7
- package/dist/standalone/umd/lds-worker-api.js +60667 -70080
- package/dist/standalone/umd/types/executeAdapter.d.ts +7 -7
- package/package.json +11 -11
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue-nonIntl-fallback-response.adapter-snapshot.result.json +4 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue-response.adapter-snapshot.result.json +4 -0
|
@@ -42,8 +42,8 @@ export declare function buildAdapterRequestContext(nativeRequestContext: NativeA
|
|
|
42
42
|
* callback with data or error. Returns an unsubscribe function that should
|
|
43
43
|
* be called to stop receiving updated snapshots.
|
|
44
44
|
*
|
|
45
|
-
* This function
|
|
46
|
-
* a GET wire adapter. It will also
|
|
45
|
+
* This function returns an error if the given adapterId cannot be found or is not
|
|
46
|
+
* a GET wire adapter. It will also return an error if it fails to parse the config string.
|
|
47
47
|
*/
|
|
48
48
|
export declare function subscribeToAdapter(adapterId: string, config: string, onSnapshot: NativeOnSnapshot, nativeAdapterRequestContext?: NativeAdapterRequestContext): Unsubscribe;
|
|
49
49
|
/**
|
|
@@ -54,11 +54,11 @@ export declare function subscribeToAdapter(adapterId: string, config: string, on
|
|
|
54
54
|
*/
|
|
55
55
|
export declare function invokeAdapterWithDraftToReplace(adapterId: string, config: string, draftIdToReplace: string, onResponse: NativeOnResponse, nativeAdapterRequestContext?: NativeAdapterRequestContext): void;
|
|
56
56
|
/**
|
|
57
|
-
* Executes the specified adapter with the given @param
|
|
58
|
-
* it
|
|
57
|
+
* Executes the specified adapter with the given @param adapterId and @param config. Then
|
|
58
|
+
* it merges the draft with the given id with the draft generated by
|
|
59
59
|
* the mutating adapter. Will call onResult callback once with data or error.
|
|
60
60
|
*
|
|
61
|
-
* This function
|
|
61
|
+
* This function returns an error if the given adapterId cannot be found, or if the
|
|
62
62
|
* adapterId is not a mutating adapter if a draft isn't created, or
|
|
63
63
|
* if it fails to parse the given config string.
|
|
64
64
|
*
|
|
@@ -71,7 +71,7 @@ export declare function invokeAdapterWithDraftToMerge(adapterId: string, config:
|
|
|
71
71
|
* it sets the given metadata on the draft created by the mutating adapter. Will call
|
|
72
72
|
* onResult callback once with data or error.
|
|
73
73
|
*
|
|
74
|
-
* This function
|
|
74
|
+
* This function returns an error if the given adapterId cannot be found, or if the
|
|
75
75
|
* adapterId is not a mutating adapter, or if a draft isn't created, or if it
|
|
76
76
|
* fails to parse the given config string.
|
|
77
77
|
*/
|
|
@@ -80,7 +80,7 @@ export declare function invokeAdapterWithMetadata(adapterId: string, config: str
|
|
|
80
80
|
* Executes the specified adapter with the given adapterId and config. Will call
|
|
81
81
|
* onResponse callback once with data or error.
|
|
82
82
|
*
|
|
83
|
-
* This function
|
|
83
|
+
* This function returns an error if the given adapterId cannot be found or if it
|
|
84
84
|
* fails to parse the given config string.
|
|
85
85
|
*/
|
|
86
86
|
export declare function invokeAdapter(adapterId: string, config: string, onResponse: NativeOnResponse, nativeAdapterRequestContext?: NativeAdapterRequestContext): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.312.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
44
|
-
"@salesforce/lds-priming": "^1.
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.312.1",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.312.1",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.312.1",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.312.1",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.312.1",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.312.1",
|
|
44
|
+
"@salesforce/lds-priming": "^1.312.1",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.312.1",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.312.1",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"path": "./dist/sfdc/es/ldsWorkerApi.js",
|
|
57
57
|
"maxSize": {
|
|
58
58
|
"none": "45 kB",
|
|
59
|
-
"min": "17.
|
|
59
|
+
"min": "17.91 kB",
|
|
60
60
|
"compressed": "8 kB"
|
|
61
61
|
}
|
|
62
62
|
}
|