@salesforce/lds-ads-bridge 1.313.0 → 1.315.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/ads-bridge-perf.js +106 -87
- package/dist/adsBridge.js +1 -1
- package/package.json +3 -3
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -481,7 +481,7 @@ const callbacks$1 = [];
|
|
|
481
481
|
function register(r) {
|
|
482
482
|
callbacks$1.forEach((callback) => callback(r));
|
|
483
483
|
}
|
|
484
|
-
// version: 1.
|
|
484
|
+
// version: 1.315.0-8ef4c90baf
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
487
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -4433,34 +4433,26 @@ keyMap(specifiedScalarTypes.concat(introspectionTypes), function (type) {
|
|
|
4433
4433
|
/**
|
|
4434
4434
|
* Defines configuration for the module with a default value which can be overridden by the runtime environment.
|
|
4435
4435
|
*/
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
let
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
let
|
|
4456
|
-
/**
|
|
4457
|
-
* Draft-aware createContentDocumentAndVersion adapter
|
|
4458
|
-
*/
|
|
4459
|
-
let draftAwareCreateContentDocumentAndVersionAdapter = undefined;
|
|
4460
|
-
/**
|
|
4461
|
-
* Draft-aware createContentVersion adapter
|
|
4462
|
-
*/
|
|
4463
|
-
let draftAwareCreateContentVersionAdapter = undefined;
|
|
4436
|
+
// A holder for a configurable adapter override
|
|
4437
|
+
class Configurable {
|
|
4438
|
+
constructor() {
|
|
4439
|
+
this.getAdapter = () => {
|
|
4440
|
+
return this.adapter;
|
|
4441
|
+
};
|
|
4442
|
+
this.setAdapter = (value) => {
|
|
4443
|
+
this.adapter = value;
|
|
4444
|
+
};
|
|
4445
|
+
this.adapter = undefined;
|
|
4446
|
+
}
|
|
4447
|
+
}
|
|
4448
|
+
// Configurable adapters that can have environmental overrides
|
|
4449
|
+
let configurableCreateRecordAdapter = new Configurable();
|
|
4450
|
+
let configurableUpdateRecordAdapter = new Configurable();
|
|
4451
|
+
let configurableDeleteRecordAdapter = new Configurable();
|
|
4452
|
+
let configurablePerformQuickActionAdapter = new Configurable();
|
|
4453
|
+
let configurablePerformUpdateRecordQuickActionAdapter = new Configurable();
|
|
4454
|
+
let configurableCreateContentDocumentAndVersion = new Configurable();
|
|
4455
|
+
let configurableCreateContentVersion = new Configurable();
|
|
4464
4456
|
/**
|
|
4465
4457
|
* Depth to which tracked fields will be added to a request that results from a cache miss.
|
|
4466
4458
|
* A value of 0 inhibits the addition of tracked fields, 1 will add tracked fields that can
|
|
@@ -4517,6 +4509,52 @@ const configurationForOneStoreEnabledAdapters = {
|
|
|
4517
4509
|
return oneStoreGetObjectInfosAdapter;
|
|
4518
4510
|
},
|
|
4519
4511
|
};
|
|
4512
|
+
const getKeywordSearchResultsFactory = new Configurable();
|
|
4513
|
+
const getListRecordsByNameFactory = new Configurable();
|
|
4514
|
+
const getListUiFactory = new Configurable();
|
|
4515
|
+
const getLookupRecordsFactory = new Configurable();
|
|
4516
|
+
const getQuickActionDefaultsFactory = new Configurable();
|
|
4517
|
+
const getRecordCreateDefaultsFactory = new Configurable();
|
|
4518
|
+
const getRecordTemplateCloneFactory = new Configurable();
|
|
4519
|
+
const getRecordTemplateCreateFactory = new Configurable();
|
|
4520
|
+
const getRecordUiFactory = new Configurable();
|
|
4521
|
+
const getRecordFactory = new Configurable();
|
|
4522
|
+
const getRecordsFactory = new Configurable();
|
|
4523
|
+
const getRelatedListRecordsFactory = new Configurable();
|
|
4524
|
+
const getRelatedListRecordsBatchFactory = new Configurable();
|
|
4525
|
+
const getSearchResultsFactory = new Configurable();
|
|
4526
|
+
// The following set of adapters all touch RecordRepresentation directly or indirectly,
|
|
4527
|
+
// so they need to support having a custom factory provided by the mobile environment.
|
|
4528
|
+
const configurationForEnvironmentFactoryOverrides = {
|
|
4529
|
+
getKeywordSearchResultsAdapterFactory: getKeywordSearchResultsFactory.getAdapter,
|
|
4530
|
+
setGetKeywordSearchResultsAdapterFactory: getKeywordSearchResultsFactory.setAdapter,
|
|
4531
|
+
getListRecordsByNameAdapterFactory: getListRecordsByNameFactory.getAdapter,
|
|
4532
|
+
setGetListRecordsByNameAdapterFactory: getListRecordsByNameFactory.setAdapter,
|
|
4533
|
+
getListUiAdapterFactory: getListUiFactory.getAdapter,
|
|
4534
|
+
setGetListUiAdapterFactory: getListUiFactory.setAdapter,
|
|
4535
|
+
getLookupRecordsAdapterFactory: getLookupRecordsFactory.getAdapter,
|
|
4536
|
+
setGetLookupRecordsAdapterFactory: getLookupRecordsFactory.setAdapter,
|
|
4537
|
+
getQuickActionDefaultsAdapterFactory: getQuickActionDefaultsFactory.getAdapter,
|
|
4538
|
+
setGetQuickActionDefaultsAdapterFactory: getQuickActionDefaultsFactory.setAdapter,
|
|
4539
|
+
getRecordCreateDefaultsAdapterFactory: getRecordCreateDefaultsFactory.getAdapter,
|
|
4540
|
+
setGetRecordCreateDefaultsAdapterFactory: getRecordCreateDefaultsFactory.setAdapter,
|
|
4541
|
+
getRecordTemplateCloneAdapterFactory: getRecordTemplateCloneFactory.getAdapter,
|
|
4542
|
+
setGetRecordTemplateCloneAdapterFactory: getRecordTemplateCloneFactory.setAdapter,
|
|
4543
|
+
getRecordTemplateCreateAdapterFactory: getRecordTemplateCreateFactory.getAdapter,
|
|
4544
|
+
setGetRecordTemplateCreateAdapterFactory: getRecordTemplateCreateFactory.setAdapter,
|
|
4545
|
+
getRecordUiAdapterFactory: getRecordUiFactory.getAdapter,
|
|
4546
|
+
setGetRecordUiAdapterFactory: getRecordUiFactory.setAdapter,
|
|
4547
|
+
getRecordAdapterFactory: getRecordFactory.getAdapter,
|
|
4548
|
+
setGetRecordAdapterFactory: getRecordFactory.setAdapter,
|
|
4549
|
+
getRecordsAdapterFactory: getRecordsFactory.getAdapter,
|
|
4550
|
+
setGetRecordsAdapterFactory: getRecordsFactory.setAdapter,
|
|
4551
|
+
getRelatedListRecordsAdapterFactory: getRelatedListRecordsFactory.getAdapter,
|
|
4552
|
+
setGetRelatedListRecordsAdapterFactory: getRelatedListRecordsFactory.setAdapter,
|
|
4553
|
+
getRelatedListRecordsBatchAdapterFactory: getRelatedListRecordsBatchFactory.getAdapter,
|
|
4554
|
+
setGetRelatedListRecordsBatchAdapterFactory: getRelatedListRecordsBatchFactory.setAdapter,
|
|
4555
|
+
getSearchResultsAdapterFactory: getSearchResultsFactory.getAdapter,
|
|
4556
|
+
setGetSearchResultsAdapterFactory: getSearchResultsFactory.setAdapter,
|
|
4557
|
+
};
|
|
4520
4558
|
/**
|
|
4521
4559
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
4522
4560
|
* Configuration for REST adapters only.
|
|
@@ -4546,66 +4584,47 @@ const configurationForRestAdapters = {
|
|
|
4546
4584
|
getTrackedFieldLeafNodeIdAndNameOnly: function () {
|
|
4547
4585
|
return trackedFieldLeafNodeIdAndNameOnly;
|
|
4548
4586
|
},
|
|
4549
|
-
// createRecord
|
|
4550
|
-
setDraftAwareCreateRecordAdapter: function (adapter) {
|
|
4551
|
-
draftAwareCreateRecordAdapter = adapter;
|
|
4552
|
-
},
|
|
4553
|
-
getDraftAwareCreateRecordAdapter: function () {
|
|
4554
|
-
return draftAwareCreateRecordAdapter;
|
|
4555
|
-
},
|
|
4556
|
-
// updateRecord
|
|
4557
|
-
setDraftAwareUpdateRecordAdapter: function (adapter) {
|
|
4558
|
-
draftAwareUpdateRecordAdapter = adapter;
|
|
4559
|
-
},
|
|
4560
|
-
getDraftAwareUpdateRecordAdapter: function () {
|
|
4561
|
-
return draftAwareUpdateRecordAdapter;
|
|
4562
|
-
},
|
|
4563
|
-
// deleteRecord
|
|
4564
|
-
setDraftAwareDeleteRecordAdapter: function (adapter) {
|
|
4565
|
-
draftAwareDeleteRecordAdapter = adapter;
|
|
4566
|
-
},
|
|
4567
|
-
getDraftAwareDeleteRecordAdapter: function () {
|
|
4568
|
-
return draftAwareDeleteRecordAdapter;
|
|
4569
|
-
},
|
|
4570
|
-
// createContentDocumentAndVersion
|
|
4571
|
-
setDraftAwareCreateContentDocumentAndVersionAdapter: function (adapter) {
|
|
4572
|
-
draftAwareCreateContentDocumentAndVersionAdapter = adapter;
|
|
4573
|
-
},
|
|
4574
|
-
getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
|
|
4575
|
-
return draftAwareCreateContentDocumentAndVersionAdapter;
|
|
4576
|
-
},
|
|
4577
4587
|
setRelatedListsPredictionsEnabled: function (f) {
|
|
4578
4588
|
relatedListsPredictionsEnabled = f;
|
|
4579
4589
|
},
|
|
4580
4590
|
areRelatedListsPredictionsEnabled: function () {
|
|
4581
4591
|
return relatedListsPredictionsEnabled === true;
|
|
4582
4592
|
},
|
|
4593
|
+
// createRecord
|
|
4594
|
+
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter.getAdapter,
|
|
4595
|
+
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter.setAdapter,
|
|
4596
|
+
// updateRecord
|
|
4597
|
+
getDraftAwareUpdateRecordAdapter: configurableUpdateRecordAdapter.getAdapter,
|
|
4598
|
+
setDraftAwareUpdateRecordAdapter: configurableUpdateRecordAdapter.setAdapter,
|
|
4599
|
+
// deleteRecord
|
|
4600
|
+
getDraftAwareDeleteRecordAdapter: configurableDeleteRecordAdapter.getAdapter,
|
|
4601
|
+
setDraftAwareDeleteRecordAdapter: configurableDeleteRecordAdapter.setAdapter,
|
|
4602
|
+
// performQuickAction
|
|
4603
|
+
getDraftAwarePerformQuickActionAdapter: configurablePerformQuickActionAdapter.getAdapter,
|
|
4604
|
+
setDraftAwarePerformQuickActionAdapter: configurablePerformQuickActionAdapter.setAdapter,
|
|
4605
|
+
// performRecordUpdateQuickAction
|
|
4606
|
+
getDraftAwarePerformUpdateRecordQuickActionAdapter: configurablePerformUpdateRecordQuickActionAdapter.getAdapter,
|
|
4607
|
+
setDraftAwarePerformUpdateRecordQuickActionAdapter: configurablePerformUpdateRecordQuickActionAdapter.setAdapter,
|
|
4608
|
+
// createContentDocumentAndVersion
|
|
4609
|
+
getDraftAwareCreateContentDocumentAndVersionAdapter: configurableCreateContentDocumentAndVersion.getAdapter,
|
|
4610
|
+
setDraftAwareCreateContentDocumentAndVersionAdapter: configurableCreateContentDocumentAndVersion.setAdapter,
|
|
4583
4611
|
// createContentVersion
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
},
|
|
4587
|
-
getDraftAwareCreateContentVersionAdapter: function () {
|
|
4588
|
-
return draftAwareCreateContentVersionAdapter;
|
|
4589
|
-
},
|
|
4612
|
+
getDraftAwareCreateContentVersionAdapter: configurableCreateContentVersion.getAdapter,
|
|
4613
|
+
setDraftAwareCreateContentVersionAdapter: configurableCreateContentVersion.setAdapter,
|
|
4590
4614
|
...configurationForOneStoreEnabledAdapters,
|
|
4615
|
+
...configurationForEnvironmentFactoryOverrides,
|
|
4591
4616
|
};
|
|
4617
|
+
let configurableGraphQLAdapter = new Configurable();
|
|
4618
|
+
let configurableGraphQLBatchAdapter = new Configurable();
|
|
4592
4619
|
/**
|
|
4593
4620
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
4594
4621
|
* Configuration for GraphQL adapters only.
|
|
4595
4622
|
*/
|
|
4596
4623
|
const configurationForGraphQLAdapters = {
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
return draftAwareGraphQLAdapter;
|
|
4602
|
-
},
|
|
4603
|
-
setEnvironmentAwareGraphQLBatchAdapter: function (adapter) {
|
|
4604
|
-
environmentAwareGraphQLBatchAdapter = adapter;
|
|
4605
|
-
},
|
|
4606
|
-
getEnvironmentAwareGraphQLBatchAdapter: function () {
|
|
4607
|
-
return environmentAwareGraphQLBatchAdapter;
|
|
4608
|
-
},
|
|
4624
|
+
getDraftAwareGraphQLAdapter: configurableGraphQLAdapter.getAdapter,
|
|
4625
|
+
setDraftAwareGraphQLAdapter: configurableGraphQLAdapter.setAdapter,
|
|
4626
|
+
getEnvironmentAwareGraphQLBatchAdapter: configurableGraphQLBatchAdapter.getAdapter,
|
|
4627
|
+
setEnvironmentAwareGraphQLBatchAdapter: configurableGraphQLBatchAdapter.setAdapter,
|
|
4609
4628
|
};
|
|
4610
4629
|
const registrations = new Set();
|
|
4611
4630
|
/**
|
|
@@ -8471,9 +8490,9 @@ function isRestrictedPathCondition(existingPath, path) {
|
|
|
8471
8490
|
(existingPath.includes('/records') && path.includes('/record-ui')));
|
|
8472
8491
|
}
|
|
8473
8492
|
|
|
8474
|
-
const createResourceRequest$
|
|
8493
|
+
const createResourceRequest$1h = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
8475
8494
|
return {
|
|
8476
|
-
...createResourceRequest$
|
|
8495
|
+
...createResourceRequest$1g(config),
|
|
8477
8496
|
fulfill: fulfill,
|
|
8478
8497
|
};
|
|
8479
8498
|
};
|
|
@@ -8486,7 +8505,7 @@ function keyBuilder$3z(luvio, params) {
|
|
|
8486
8505
|
function getResponseCacheKeys$17(storeKeyMap, luvio, resourceParams, response) {
|
|
8487
8506
|
getTypeCacheKeys$2h(storeKeyMap, luvio, response);
|
|
8488
8507
|
}
|
|
8489
|
-
function createResourceRequest$
|
|
8508
|
+
function createResourceRequest$1g(config) {
|
|
8490
8509
|
const headers = {};
|
|
8491
8510
|
return {
|
|
8492
8511
|
baseUri: '/services/data/v63.0',
|
|
@@ -8545,7 +8564,7 @@ function prepareRequest$7(luvio, config) {
|
|
|
8545
8564
|
fields,
|
|
8546
8565
|
optionalFields: optionalFields.length > 0 ? optionalFields : undefined,
|
|
8547
8566
|
});
|
|
8548
|
-
const request = createResourceRequest$
|
|
8567
|
+
const request = createResourceRequest$1h(resourceParams);
|
|
8549
8568
|
return { request, key, allTrackedFields, resourceParams };
|
|
8550
8569
|
}
|
|
8551
8570
|
function ingestSuccess$X(luvio, config, key, allTrackedFields, response, serverRequestCount) {
|
|
@@ -8863,7 +8882,7 @@ function ingestError$Q(luvio, params, error, snapshotRefresh) {
|
|
|
8863
8882
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8864
8883
|
return errorSnapshot;
|
|
8865
8884
|
}
|
|
8866
|
-
function createResourceRequest$
|
|
8885
|
+
function createResourceRequest$1f(config) {
|
|
8867
8886
|
const headers = {};
|
|
8868
8887
|
return {
|
|
8869
8888
|
baseUri: '/services/data/v63.0',
|
|
@@ -8977,7 +8996,7 @@ function onFetchResponseError$T(luvio, config, resourceParams, response) {
|
|
|
8977
8996
|
}
|
|
8978
8997
|
function buildNetworkSnapshot$1a(luvio, config, serverRequestCount = 0, options) {
|
|
8979
8998
|
const resourceParams = createResourceParams$14(config);
|
|
8980
|
-
const request = createResourceRequest$
|
|
8999
|
+
const request = createResourceRequest$1f(resourceParams);
|
|
8981
9000
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
8982
9001
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$S(luvio, config, resourceParams, response, serverRequestCount + 1), () => {
|
|
8983
9002
|
const cache = new StoreKeyMap();
|
|
@@ -9028,7 +9047,7 @@ const ingest$2c = (input, path, luvio, store, timestamp) => {
|
|
|
9028
9047
|
return result;
|
|
9029
9048
|
};
|
|
9030
9049
|
|
|
9031
|
-
const adapterName$
|
|
9050
|
+
const adapterName$_ = 'getListUiByApiName';
|
|
9032
9051
|
const getListUiByApiName_ConfigPropertyMetadata = [
|
|
9033
9052
|
generateParamConfigMetadata('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9034
9053
|
generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
|
|
@@ -9038,9 +9057,9 @@ const getListUiByApiName_ConfigPropertyMetadata = [
|
|
|
9038
9057
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9039
9058
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
9040
9059
|
];
|
|
9041
|
-
const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9060
|
+
const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$_, getListUiByApiName_ConfigPropertyMetadata);
|
|
9042
9061
|
|
|
9043
|
-
const adapterName
|
|
9062
|
+
const adapterName$Z = 'getListUiByListViewId';
|
|
9044
9063
|
const getListUiByListViewId_ConfigPropertyMetadata = [
|
|
9045
9064
|
generateParamConfigMetadata('listViewId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9046
9065
|
generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
@@ -9049,9 +9068,9 @@ const getListUiByListViewId_ConfigPropertyMetadata = [
|
|
|
9049
9068
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9050
9069
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
9051
9070
|
];
|
|
9052
|
-
const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName
|
|
9071
|
+
const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Z, getListUiByListViewId_ConfigPropertyMetadata);
|
|
9053
9072
|
|
|
9054
|
-
const adapterName$
|
|
9073
|
+
const adapterName$X = 'getMruListUi';
|
|
9055
9074
|
const getMruListUi_ConfigPropertyMetadata = [
|
|
9056
9075
|
generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
|
|
9057
9076
|
generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
@@ -9060,7 +9079,7 @@ const getMruListUi_ConfigPropertyMetadata = [
|
|
|
9060
9079
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9061
9080
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
9062
9081
|
];
|
|
9063
|
-
const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9082
|
+
const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$X, getMruListUi_ConfigPropertyMetadata);
|
|
9064
9083
|
// make local copies of the adapter configs so we can ignore other getListUi config parameters to match
|
|
9065
9084
|
// lds222 behavior
|
|
9066
9085
|
({
|
package/dist/adsBridge.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-ads-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.315.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Bridge to sync data between LDS and ADS",
|
|
6
6
|
"main": "dist/adsBridge.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-ads-bridge"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
34
|
-
"@salesforce/lds-uiapi-record-utils-mobile": "^1.
|
|
33
|
+
"@salesforce/lds-adapters-uiapi": "^1.315.0",
|
|
34
|
+
"@salesforce/lds-uiapi-record-utils-mobile": "^1.315.0"
|
|
35
35
|
},
|
|
36
36
|
"volta": {
|
|
37
37
|
"extends": "../../package.json"
|