@salesforce/lds-worker-api 1.140.1 → 1.141.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.
|
@@ -758,4 +758,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
758
758
|
}
|
|
759
759
|
|
|
760
760
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
761
|
-
// version: 1.
|
|
761
|
+
// version: 1.141.1-07065b50d
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* Any changes made to this file in p4 will be automatically overwritten.
|
|
12
12
|
* *******************************************************************************************
|
|
13
13
|
*/
|
|
14
|
+
import ldsAdapterForwardingGate from '@salesforce/gate/lds.graphqlAdapterForwarding';
|
|
15
|
+
|
|
14
16
|
var SnapshotState$3;
|
|
15
17
|
(function (SnapshotState) {
|
|
16
18
|
SnapshotState["Fulfilled"] = "Fulfilled";
|
|
@@ -3797,7 +3799,7 @@ function withDefaultLuvio(callback) {
|
|
|
3797
3799
|
}
|
|
3798
3800
|
callbacks.push(callback);
|
|
3799
3801
|
}
|
|
3800
|
-
// version: 1.
|
|
3802
|
+
// version: 1.141.1-07065b50d
|
|
3801
3803
|
|
|
3802
3804
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3803
3805
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15221,7 +15223,7 @@ function parseAndVisit(source) {
|
|
|
15221
15223
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15222
15224
|
return luvioDocumentNode;
|
|
15223
15225
|
}
|
|
15224
|
-
// version: 1.
|
|
15226
|
+
// version: 1.141.1-07065b50d
|
|
15225
15227
|
|
|
15226
15228
|
function unwrap(data) {
|
|
15227
15229
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16134,7 +16136,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16134
16136
|
const { apiFamily, name } = metadata;
|
|
16135
16137
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16136
16138
|
}
|
|
16137
|
-
// version: 1.
|
|
16139
|
+
// version: 1.141.1-07065b50d
|
|
16138
16140
|
|
|
16139
16141
|
/**
|
|
16140
16142
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -40383,7 +40385,7 @@ function getTypeCacheKeys$7$1(luvio, input, fullPathFactory) {
|
|
|
40383
40385
|
}
|
|
40384
40386
|
|
|
40385
40387
|
function keyBuilder$8$1(luvio, params) {
|
|
40386
|
-
return keyPrefix$1 + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
40388
|
+
return keyPrefix$1 + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'targetApiName:' + params.queryParams.targetApiName + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
40387
40389
|
}
|
|
40388
40390
|
function getResponseCacheKeys$7(luvio, resourceParams, response) {
|
|
40389
40391
|
return getTypeCacheKeys$7$1(luvio, response, () => keyBuilder$8$1(luvio, resourceParams));
|
|
@@ -40436,6 +40438,10 @@ function coerceConfig$5(config) {
|
|
|
40436
40438
|
if (sourceRecordId !== undefined) {
|
|
40437
40439
|
coercedConfig.sourceRecordId = sourceRecordId;
|
|
40438
40440
|
}
|
|
40441
|
+
const targetApiName = getObjectApiName$1(config.targetApiName);
|
|
40442
|
+
if (targetApiName !== undefined) {
|
|
40443
|
+
coercedConfig.targetApiName = targetApiName;
|
|
40444
|
+
}
|
|
40439
40445
|
return coercedConfig;
|
|
40440
40446
|
}
|
|
40441
40447
|
function typeCheckConfig$a(untrustedConfig) {
|
|
@@ -40479,6 +40485,10 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
40479
40485
|
if (typeof untrustedConfig_sourceRecordId === 'string') {
|
|
40480
40486
|
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
40481
40487
|
}
|
|
40488
|
+
const untrustedConfig_targetApiName = untrustedConfig.targetApiName;
|
|
40489
|
+
if (typeof untrustedConfig_targetApiName === 'string') {
|
|
40490
|
+
config.targetApiName = untrustedConfig_targetApiName;
|
|
40491
|
+
}
|
|
40482
40492
|
return config;
|
|
40483
40493
|
}
|
|
40484
40494
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -40530,6 +40540,10 @@ function coerceRequestParams(untrusted) {
|
|
|
40530
40540
|
if (sourceRecordId !== undefined) {
|
|
40531
40541
|
coercedConfig.sourceRecordId = sourceRecordId;
|
|
40532
40542
|
}
|
|
40543
|
+
const targetApiName = requestParams.targetApiName;
|
|
40544
|
+
if (targetApiName !== undefined) {
|
|
40545
|
+
coercedConfig.targetApiName = targetApiName;
|
|
40546
|
+
}
|
|
40533
40547
|
return coercedConfig;
|
|
40534
40548
|
}
|
|
40535
40549
|
function coerceConfigWithDefaults$1(untrusted) {
|
|
@@ -40575,6 +40589,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
40575
40589
|
searchType: config.searchType,
|
|
40576
40590
|
dependentFieldBindings: config.dependentFieldBindings,
|
|
40577
40591
|
sourceRecordId: config.sourceRecordId,
|
|
40592
|
+
targetApiName: config.targetApiName,
|
|
40578
40593
|
},
|
|
40579
40594
|
};
|
|
40580
40595
|
const request = createResourceRequest$9(resourceParams);
|
|
@@ -43910,7 +43925,7 @@ withDefaultLuvio((luvio) => {
|
|
|
43910
43925
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
43911
43926
|
});
|
|
43912
43927
|
});
|
|
43913
|
-
// version: 1.
|
|
43928
|
+
// version: 1.141.1-8f6d93cad
|
|
43914
43929
|
|
|
43915
43930
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
43916
43931
|
|
|
@@ -59691,7 +59706,7 @@ register({
|
|
|
59691
59706
|
id: '@salesforce/lds-network-adapter',
|
|
59692
59707
|
instrument: instrument$1,
|
|
59693
59708
|
});
|
|
59694
|
-
// version: 1.
|
|
59709
|
+
// version: 1.141.1-07065b50d
|
|
59695
59710
|
|
|
59696
59711
|
const { create: create$2, keys: keys$2 } = Object;
|
|
59697
59712
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -80522,7 +80537,7 @@ register({
|
|
|
80522
80537
|
configuration: { ...configurationForGraphQLAdapters },
|
|
80523
80538
|
instrument,
|
|
80524
80539
|
});
|
|
80525
|
-
// version: 1.
|
|
80540
|
+
// version: 1.141.1-8f6d93cad
|
|
80526
80541
|
|
|
80527
80542
|
// On core the unstable adapters are re-exported with different names,
|
|
80528
80543
|
|
|
@@ -82676,7 +82691,7 @@ const graphQLAdapterFactory = (luvio) => {
|
|
|
82676
82691
|
return null;
|
|
82677
82692
|
}
|
|
82678
82693
|
const { query, variables, useUiApiAdapter } = validatedConfig;
|
|
82679
|
-
if (useUiApiAdapter === true) {
|
|
82694
|
+
if (useUiApiAdapter === true || ldsAdapterForwardingGate.isOpen({ fallback: false })) {
|
|
82680
82695
|
// Forward to new adapters
|
|
82681
82696
|
const resolvedQuery = astResolver(query);
|
|
82682
82697
|
if (resolvedQuery === undefined) {
|
|
@@ -82754,7 +82769,7 @@ withDefaultLuvio((luvio) => {
|
|
|
82754
82769
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
82755
82770
|
graphQLImperative = ldsAdapter;
|
|
82756
82771
|
});
|
|
82757
|
-
// version: 1.
|
|
82772
|
+
// version: 1.141.1-8f6d93cad
|
|
82758
82773
|
|
|
82759
82774
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
82760
82775
|
__proto__: null,
|
|
@@ -83443,4 +83458,4 @@ const { luvio } = getRuntime();
|
|
|
83443
83458
|
setDefaultLuvio({ luvio });
|
|
83444
83459
|
|
|
83445
83460
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
83446
|
-
// version: 1.
|
|
83461
|
+
// version: 1.141.1-07065b50d
|
|
@@ -12,10 +12,14 @@
|
|
|
12
12
|
* *******************************************************************************************
|
|
13
13
|
*/
|
|
14
14
|
(function (global, factory) {
|
|
15
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
16
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
17
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ldsWorkerApi = {}));
|
|
18
|
-
})(this, (function (exports) { 'use strict';
|
|
15
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@salesforce/gate/lds.graphqlAdapterForwarding')) :
|
|
16
|
+
typeof define === 'function' && define.amd ? define(['exports', '@salesforce/gate/lds.graphqlAdapterForwarding'], factory) :
|
|
17
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ldsWorkerApi = {}, global.ldsAdapterForwardingGate));
|
|
18
|
+
})(this, (function (exports, ldsAdapterForwardingGate) { 'use strict';
|
|
19
|
+
|
|
20
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
|
+
|
|
22
|
+
var ldsAdapterForwardingGate__default = /*#__PURE__*/_interopDefaultLegacy(ldsAdapterForwardingGate);
|
|
19
23
|
|
|
20
24
|
var SnapshotState$3;
|
|
21
25
|
(function (SnapshotState) {
|
|
@@ -3803,7 +3807,7 @@
|
|
|
3803
3807
|
}
|
|
3804
3808
|
callbacks.push(callback);
|
|
3805
3809
|
}
|
|
3806
|
-
// version: 1.
|
|
3810
|
+
// version: 1.141.1-07065b50d
|
|
3807
3811
|
|
|
3808
3812
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3809
3813
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15227,7 +15231,7 @@
|
|
|
15227
15231
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15228
15232
|
return luvioDocumentNode;
|
|
15229
15233
|
}
|
|
15230
|
-
// version: 1.
|
|
15234
|
+
// version: 1.141.1-07065b50d
|
|
15231
15235
|
|
|
15232
15236
|
function unwrap(data) {
|
|
15233
15237
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16140,7 +16144,7 @@
|
|
|
16140
16144
|
const { apiFamily, name } = metadata;
|
|
16141
16145
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16142
16146
|
}
|
|
16143
|
-
// version: 1.
|
|
16147
|
+
// version: 1.141.1-07065b50d
|
|
16144
16148
|
|
|
16145
16149
|
/**
|
|
16146
16150
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -40389,7 +40393,7 @@
|
|
|
40389
40393
|
}
|
|
40390
40394
|
|
|
40391
40395
|
function keyBuilder$8$1(luvio, params) {
|
|
40392
|
-
return keyPrefix$1 + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
40396
|
+
return keyPrefix$1 + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'targetApiName:' + params.queryParams.targetApiName + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
40393
40397
|
}
|
|
40394
40398
|
function getResponseCacheKeys$7(luvio, resourceParams, response) {
|
|
40395
40399
|
return getTypeCacheKeys$7$1(luvio, response, () => keyBuilder$8$1(luvio, resourceParams));
|
|
@@ -40442,6 +40446,10 @@
|
|
|
40442
40446
|
if (sourceRecordId !== undefined) {
|
|
40443
40447
|
coercedConfig.sourceRecordId = sourceRecordId;
|
|
40444
40448
|
}
|
|
40449
|
+
const targetApiName = getObjectApiName$1(config.targetApiName);
|
|
40450
|
+
if (targetApiName !== undefined) {
|
|
40451
|
+
coercedConfig.targetApiName = targetApiName;
|
|
40452
|
+
}
|
|
40445
40453
|
return coercedConfig;
|
|
40446
40454
|
}
|
|
40447
40455
|
function typeCheckConfig$a(untrustedConfig) {
|
|
@@ -40485,6 +40493,10 @@
|
|
|
40485
40493
|
if (typeof untrustedConfig_sourceRecordId === 'string') {
|
|
40486
40494
|
config.sourceRecordId = untrustedConfig_sourceRecordId;
|
|
40487
40495
|
}
|
|
40496
|
+
const untrustedConfig_targetApiName = untrustedConfig.targetApiName;
|
|
40497
|
+
if (typeof untrustedConfig_targetApiName === 'string') {
|
|
40498
|
+
config.targetApiName = untrustedConfig_targetApiName;
|
|
40499
|
+
}
|
|
40488
40500
|
return config;
|
|
40489
40501
|
}
|
|
40490
40502
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -40536,6 +40548,10 @@
|
|
|
40536
40548
|
if (sourceRecordId !== undefined) {
|
|
40537
40549
|
coercedConfig.sourceRecordId = sourceRecordId;
|
|
40538
40550
|
}
|
|
40551
|
+
const targetApiName = requestParams.targetApiName;
|
|
40552
|
+
if (targetApiName !== undefined) {
|
|
40553
|
+
coercedConfig.targetApiName = targetApiName;
|
|
40554
|
+
}
|
|
40539
40555
|
return coercedConfig;
|
|
40540
40556
|
}
|
|
40541
40557
|
function coerceConfigWithDefaults$1(untrusted) {
|
|
@@ -40581,6 +40597,7 @@
|
|
|
40581
40597
|
searchType: config.searchType,
|
|
40582
40598
|
dependentFieldBindings: config.dependentFieldBindings,
|
|
40583
40599
|
sourceRecordId: config.sourceRecordId,
|
|
40600
|
+
targetApiName: config.targetApiName,
|
|
40584
40601
|
},
|
|
40585
40602
|
};
|
|
40586
40603
|
const request = createResourceRequest$9(resourceParams);
|
|
@@ -43916,7 +43933,7 @@
|
|
|
43916
43933
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
43917
43934
|
});
|
|
43918
43935
|
});
|
|
43919
|
-
// version: 1.
|
|
43936
|
+
// version: 1.141.1-8f6d93cad
|
|
43920
43937
|
|
|
43921
43938
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
43922
43939
|
|
|
@@ -59697,7 +59714,7 @@
|
|
|
59697
59714
|
id: '@salesforce/lds-network-adapter',
|
|
59698
59715
|
instrument: instrument$1,
|
|
59699
59716
|
});
|
|
59700
|
-
// version: 1.
|
|
59717
|
+
// version: 1.141.1-07065b50d
|
|
59701
59718
|
|
|
59702
59719
|
const { create: create$2, keys: keys$2 } = Object;
|
|
59703
59720
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -80528,7 +80545,7 @@
|
|
|
80528
80545
|
configuration: { ...configurationForGraphQLAdapters },
|
|
80529
80546
|
instrument,
|
|
80530
80547
|
});
|
|
80531
|
-
// version: 1.
|
|
80548
|
+
// version: 1.141.1-8f6d93cad
|
|
80532
80549
|
|
|
80533
80550
|
// On core the unstable adapters are re-exported with different names,
|
|
80534
80551
|
|
|
@@ -82682,7 +82699,7 @@
|
|
|
82682
82699
|
return null;
|
|
82683
82700
|
}
|
|
82684
82701
|
const { query, variables, useUiApiAdapter } = validatedConfig;
|
|
82685
|
-
if (useUiApiAdapter === true) {
|
|
82702
|
+
if (useUiApiAdapter === true || ldsAdapterForwardingGate__default["default"].isOpen({ fallback: false })) {
|
|
82686
82703
|
// Forward to new adapters
|
|
82687
82704
|
const resolvedQuery = astResolver(query);
|
|
82688
82705
|
if (resolvedQuery === undefined) {
|
|
@@ -82760,7 +82777,7 @@
|
|
|
82760
82777
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
82761
82778
|
graphQLImperative = ldsAdapter;
|
|
82762
82779
|
});
|
|
82763
|
-
// version: 1.
|
|
82780
|
+
// version: 1.141.1-8f6d93cad
|
|
82764
82781
|
|
|
82765
82782
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
82766
82783
|
__proto__: null,
|
|
@@ -83466,4 +83483,4 @@
|
|
|
83466
83483
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
83467
83484
|
|
|
83468
83485
|
}));
|
|
83469
|
-
// version: 1.
|
|
83486
|
+
// version: 1.141.1-07065b50d
|