@salesforce/lds-adapters-uiapi 1.114.2 → 1.114.5
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.
|
@@ -4842,15 +4842,24 @@ function createFieldsIngestSuccess$3(params) {
|
|
|
4842
4842
|
|
|
4843
4843
|
function fulfill(existing, incoming) {
|
|
4844
4844
|
// early out if incoming isn't a request only for fields and optionalFields
|
|
4845
|
-
const { queryParams, headers, basePath, baseUri } = incoming;
|
|
4846
|
-
const { basePath: existingBasePath, baseUri: existingBaseUri, headers: existingHeaders, } = existing;
|
|
4845
|
+
const { queryParams, headers, basePath, baseUri, urlParams } = incoming;
|
|
4846
|
+
const { basePath: existingBasePath, baseUri: existingBaseUri, headers: existingHeaders, urlParams: existingUrlParams, } = existing;
|
|
4847
4847
|
const path = `${baseUri}${basePath}`;
|
|
4848
|
-
const existingPath = `${
|
|
4848
|
+
const existingPath = `${existingBaseUri}${existingBasePath}`;
|
|
4849
4849
|
if (queryParams.layoutTypes !== undefined) {
|
|
4850
4850
|
return false;
|
|
4851
4851
|
}
|
|
4852
4852
|
if (existingPath !== path) {
|
|
4853
|
-
|
|
4853
|
+
// W-11964675 - Correlate an incoming single record request to an existing batch record
|
|
4854
|
+
// request requesting the same single record
|
|
4855
|
+
const incomingUrlRecords = getRecordIdsFromUrlParams(urlParams);
|
|
4856
|
+
const existingUrlRecords = getRecordIdsFromUrlParams(existingUrlParams);
|
|
4857
|
+
const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
4858
|
+
isSingleRecordRequest(urlParams) &&
|
|
4859
|
+
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
4860
|
+
if (!batchRequestWithSingleRequest) {
|
|
4861
|
+
return false;
|
|
4862
|
+
}
|
|
4854
4863
|
}
|
|
4855
4864
|
const headersKeys = keys(headers);
|
|
4856
4865
|
const headersKeyLength = headersKeys.length;
|
|
@@ -4874,6 +4883,22 @@ function unionFields(fields, optionalFields) {
|
|
|
4874
4883
|
const fieldsArray = isArray(fields) ? fields : [];
|
|
4875
4884
|
const optionalFieldsArray = isArray(optionalFields) ? optionalFields : [];
|
|
4876
4885
|
return [...fieldsArray, ...optionalFieldsArray];
|
|
4886
|
+
}
|
|
4887
|
+
function getRecordIdsFromUrlParams(urlParams) {
|
|
4888
|
+
if (hasOwnProperty.call(urlParams, 'recordId')) {
|
|
4889
|
+
return [urlParams.recordId];
|
|
4890
|
+
}
|
|
4891
|
+
else if (hasOwnProperty.call(urlParams, 'recordIds')) {
|
|
4892
|
+
return urlParams.recordIds;
|
|
4893
|
+
}
|
|
4894
|
+
return [];
|
|
4895
|
+
}
|
|
4896
|
+
function isSingleBatchRecordRequest(urlParams) {
|
|
4897
|
+
return (hasOwnProperty.call(urlParams, 'recordIds') &&
|
|
4898
|
+
urlParams.recordIds.length === 1);
|
|
4899
|
+
}
|
|
4900
|
+
function isSingleRecordRequest(urlParams) {
|
|
4901
|
+
return hasOwnProperty.call(urlParams, 'recordId');
|
|
4877
4902
|
}
|
|
4878
4903
|
|
|
4879
4904
|
const createResourceRequest$14 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
@@ -5189,7 +5214,19 @@ function onResourceError(luvio, config, key, err) {
|
|
|
5189
5214
|
function buildNetworkSnapshot$$(luvio, config, serverRequestCount = 0, options) {
|
|
5190
5215
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
5191
5216
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
5192
|
-
return luvio.handleSuccessResponse(() =>
|
|
5217
|
+
return luvio.handleSuccessResponse(() => {
|
|
5218
|
+
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
5219
|
+
// Komaci - a batch record request with a single record followed by a single
|
|
5220
|
+
// record request. The fulfill logic sends the same network response, so
|
|
5221
|
+
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
5222
|
+
if (isSingleBatchRecordResponse(response.body)) {
|
|
5223
|
+
let recordResponse = response;
|
|
5224
|
+
recordResponse.body = response.body.results[0]
|
|
5225
|
+
.result;
|
|
5226
|
+
return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
|
|
5227
|
+
}
|
|
5228
|
+
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
5229
|
+
}, () => getResponseCacheKeys$X(luvio, resourceParams, response.body));
|
|
5193
5230
|
}, (err) => {
|
|
5194
5231
|
return luvio.handleErrorResponse(() => {
|
|
5195
5232
|
return onResourceError(luvio, config, key, err);
|
|
@@ -5228,6 +5265,10 @@ function buildNetworkSnapshotCachePolicy$P(context, coercedAdapterRequestContext
|
|
|
5228
5265
|
}
|
|
5229
5266
|
function getRecordByFields(luvio, config, requestContext) {
|
|
5230
5267
|
return luvio.applyCachePolicy(requestContext || {}, { config, luvio }, buildCachedSnapshotCachePolicy$O, buildNetworkSnapshotCachePolicy$P);
|
|
5268
|
+
}
|
|
5269
|
+
function isSingleBatchRecordResponse(response) {
|
|
5270
|
+
return (isArray(response.results) &&
|
|
5271
|
+
response.results.length === 1);
|
|
5231
5272
|
}
|
|
5232
5273
|
|
|
5233
5274
|
const VERSION$1Q = "98cce53b8d13b1883d001bbdaab24383";
|
|
@@ -4844,15 +4844,24 @@
|
|
|
4844
4844
|
|
|
4845
4845
|
function fulfill(existing, incoming) {
|
|
4846
4846
|
// early out if incoming isn't a request only for fields and optionalFields
|
|
4847
|
-
const { queryParams, headers, basePath, baseUri } = incoming;
|
|
4848
|
-
const { basePath: existingBasePath, baseUri: existingBaseUri, headers: existingHeaders, } = existing;
|
|
4847
|
+
const { queryParams, headers, basePath, baseUri, urlParams } = incoming;
|
|
4848
|
+
const { basePath: existingBasePath, baseUri: existingBaseUri, headers: existingHeaders, urlParams: existingUrlParams, } = existing;
|
|
4849
4849
|
const path = `${baseUri}${basePath}`;
|
|
4850
|
-
const existingPath = `${
|
|
4850
|
+
const existingPath = `${existingBaseUri}${existingBasePath}`;
|
|
4851
4851
|
if (queryParams.layoutTypes !== undefined) {
|
|
4852
4852
|
return false;
|
|
4853
4853
|
}
|
|
4854
4854
|
if (existingPath !== path) {
|
|
4855
|
-
|
|
4855
|
+
// W-11964675 - Correlate an incoming single record request to an existing batch record
|
|
4856
|
+
// request requesting the same single record
|
|
4857
|
+
const incomingUrlRecords = getRecordIdsFromUrlParams(urlParams);
|
|
4858
|
+
const existingUrlRecords = getRecordIdsFromUrlParams(existingUrlParams);
|
|
4859
|
+
const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
4860
|
+
isSingleRecordRequest(urlParams) &&
|
|
4861
|
+
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
4862
|
+
if (!batchRequestWithSingleRequest) {
|
|
4863
|
+
return false;
|
|
4864
|
+
}
|
|
4856
4865
|
}
|
|
4857
4866
|
const headersKeys = keys(headers);
|
|
4858
4867
|
const headersKeyLength = headersKeys.length;
|
|
@@ -4876,6 +4885,22 @@
|
|
|
4876
4885
|
const fieldsArray = isArray(fields) ? fields : [];
|
|
4877
4886
|
const optionalFieldsArray = isArray(optionalFields) ? optionalFields : [];
|
|
4878
4887
|
return [...fieldsArray, ...optionalFieldsArray];
|
|
4888
|
+
}
|
|
4889
|
+
function getRecordIdsFromUrlParams(urlParams) {
|
|
4890
|
+
if (hasOwnProperty.call(urlParams, 'recordId')) {
|
|
4891
|
+
return [urlParams.recordId];
|
|
4892
|
+
}
|
|
4893
|
+
else if (hasOwnProperty.call(urlParams, 'recordIds')) {
|
|
4894
|
+
return urlParams.recordIds;
|
|
4895
|
+
}
|
|
4896
|
+
return [];
|
|
4897
|
+
}
|
|
4898
|
+
function isSingleBatchRecordRequest(urlParams) {
|
|
4899
|
+
return (hasOwnProperty.call(urlParams, 'recordIds') &&
|
|
4900
|
+
urlParams.recordIds.length === 1);
|
|
4901
|
+
}
|
|
4902
|
+
function isSingleRecordRequest(urlParams) {
|
|
4903
|
+
return hasOwnProperty.call(urlParams, 'recordId');
|
|
4879
4904
|
}
|
|
4880
4905
|
|
|
4881
4906
|
const createResourceRequest$14 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
@@ -5191,7 +5216,19 @@
|
|
|
5191
5216
|
function buildNetworkSnapshot$$(luvio, config, serverRequestCount = 0, options) {
|
|
5192
5217
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
5193
5218
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
5194
|
-
return luvio.handleSuccessResponse(() =>
|
|
5219
|
+
return luvio.handleSuccessResponse(() => {
|
|
5220
|
+
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
5221
|
+
// Komaci - a batch record request with a single record followed by a single
|
|
5222
|
+
// record request. The fulfill logic sends the same network response, so
|
|
5223
|
+
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
5224
|
+
if (isSingleBatchRecordResponse(response.body)) {
|
|
5225
|
+
let recordResponse = response;
|
|
5226
|
+
recordResponse.body = response.body.results[0]
|
|
5227
|
+
.result;
|
|
5228
|
+
return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
|
|
5229
|
+
}
|
|
5230
|
+
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
5231
|
+
}, () => getResponseCacheKeys$X(luvio, resourceParams, response.body));
|
|
5195
5232
|
}, (err) => {
|
|
5196
5233
|
return luvio.handleErrorResponse(() => {
|
|
5197
5234
|
return onResourceError(luvio, config, key, err);
|
|
@@ -5230,6 +5267,10 @@
|
|
|
5230
5267
|
}
|
|
5231
5268
|
function getRecordByFields(luvio, config, requestContext) {
|
|
5232
5269
|
return luvio.applyCachePolicy(requestContext || {}, { config, luvio }, buildCachedSnapshotCachePolicy$O, buildNetworkSnapshotCachePolicy$P);
|
|
5270
|
+
}
|
|
5271
|
+
function isSingleBatchRecordResponse(response) {
|
|
5272
|
+
return (isArray(response.results) &&
|
|
5273
|
+
response.results.length === 1);
|
|
5233
5274
|
}
|
|
5234
5275
|
|
|
5235
5276
|
const VERSION$1Q = "98cce53b8d13b1883d001bbdaab24383";
|
|
@@ -4911,15 +4911,24 @@
|
|
|
4911
4911
|
|
|
4912
4912
|
function fulfill(existing, incoming) {
|
|
4913
4913
|
// early out if incoming isn't a request only for fields and optionalFields
|
|
4914
|
-
var queryParams = incoming.queryParams, headers = incoming.headers, basePath = incoming.basePath, baseUri = incoming.baseUri;
|
|
4915
|
-
var existingBasePath = existing.basePath, existingBaseUri = existing.baseUri, existingHeaders = existing.headers;
|
|
4914
|
+
var queryParams = incoming.queryParams, headers = incoming.headers, basePath = incoming.basePath, baseUri = incoming.baseUri, urlParams = incoming.urlParams;
|
|
4915
|
+
var existingBasePath = existing.basePath, existingBaseUri = existing.baseUri, existingHeaders = existing.headers, existingUrlParams = existing.urlParams;
|
|
4916
4916
|
var path = "".concat(baseUri).concat(basePath);
|
|
4917
|
-
var existingPath = "".concat(
|
|
4917
|
+
var existingPath = "".concat(existingBaseUri).concat(existingBasePath);
|
|
4918
4918
|
if (queryParams.layoutTypes !== undefined) {
|
|
4919
4919
|
return false;
|
|
4920
4920
|
}
|
|
4921
4921
|
if (existingPath !== path) {
|
|
4922
|
-
|
|
4922
|
+
// W-11964675 - Correlate an incoming single record request to an existing batch record
|
|
4923
|
+
// request requesting the same single record
|
|
4924
|
+
var incomingUrlRecords = getRecordIdsFromUrlParams(urlParams);
|
|
4925
|
+
var existingUrlRecords = getRecordIdsFromUrlParams(existingUrlParams);
|
|
4926
|
+
var batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
4927
|
+
isSingleRecordRequest(urlParams) &&
|
|
4928
|
+
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
4929
|
+
if (!batchRequestWithSingleRequest) {
|
|
4930
|
+
return false;
|
|
4931
|
+
}
|
|
4923
4932
|
}
|
|
4924
4933
|
var headersKeys = keys(headers);
|
|
4925
4934
|
var headersKeyLength = headersKeys.length;
|
|
@@ -4943,6 +4952,22 @@
|
|
|
4943
4952
|
var fieldsArray = isArray(fields) ? fields : [];
|
|
4944
4953
|
var optionalFieldsArray = isArray(optionalFields) ? optionalFields : [];
|
|
4945
4954
|
return __spreadArray(__spreadArray([], fieldsArray, true), optionalFieldsArray, true);
|
|
4955
|
+
}
|
|
4956
|
+
function getRecordIdsFromUrlParams(urlParams) {
|
|
4957
|
+
if (hasOwnProperty.call(urlParams, 'recordId')) {
|
|
4958
|
+
return [urlParams.recordId];
|
|
4959
|
+
}
|
|
4960
|
+
else if (hasOwnProperty.call(urlParams, 'recordIds')) {
|
|
4961
|
+
return urlParams.recordIds;
|
|
4962
|
+
}
|
|
4963
|
+
return [];
|
|
4964
|
+
}
|
|
4965
|
+
function isSingleBatchRecordRequest(urlParams) {
|
|
4966
|
+
return (hasOwnProperty.call(urlParams, 'recordIds') &&
|
|
4967
|
+
urlParams.recordIds.length === 1);
|
|
4968
|
+
}
|
|
4969
|
+
function isSingleRecordRequest(urlParams) {
|
|
4970
|
+
return hasOwnProperty.call(urlParams, 'recordId');
|
|
4946
4971
|
}
|
|
4947
4972
|
|
|
4948
4973
|
var createResourceRequest$14 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
@@ -5257,6 +5282,16 @@
|
|
|
5257
5282
|
var _a = prepareRequest$6(luvio, config), request = _a.request, key = _a.key, allTrackedFields = _a.allTrackedFields, resourceParams = _a.resourceParams;
|
|
5258
5283
|
return luvio.dispatchResourceRequest(request, options).then(function (response) {
|
|
5259
5284
|
return luvio.handleSuccessResponse(function () {
|
|
5285
|
+
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
5286
|
+
// Komaci - a batch record request with a single record followed by a single
|
|
5287
|
+
// record request. The fulfill logic sends the same network response, so
|
|
5288
|
+
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
5289
|
+
if (isSingleBatchRecordResponse(response.body)) {
|
|
5290
|
+
var recordResponse = response;
|
|
5291
|
+
recordResponse.body = response.body.results[0]
|
|
5292
|
+
.result;
|
|
5293
|
+
return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
|
|
5294
|
+
}
|
|
5260
5295
|
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
5261
5296
|
}, function () { return getResponseCacheKeys$X(luvio, resourceParams, response.body); });
|
|
5262
5297
|
}, function (err) {
|
|
@@ -5297,6 +5332,10 @@
|
|
|
5297
5332
|
}
|
|
5298
5333
|
function getRecordByFields(luvio, config, requestContext) {
|
|
5299
5334
|
return luvio.applyCachePolicy(requestContext || {}, { config: config, luvio: luvio }, buildCachedSnapshotCachePolicy$O, buildNetworkSnapshotCachePolicy$P);
|
|
5335
|
+
}
|
|
5336
|
+
function isSingleBatchRecordResponse(response) {
|
|
5337
|
+
return (isArray(response.results) &&
|
|
5338
|
+
response.results.length === 1);
|
|
5300
5339
|
}
|
|
5301
5340
|
|
|
5302
5341
|
var VERSION$1Q = "98cce53b8d13b1883d001bbdaab24383";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-uiapi",
|
|
3
|
-
"version": "1.114.
|
|
3
|
+
"version": "1.114.5",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters for record related UI API endpoints",
|
|
6
6
|
"main": "dist/umd/es2018/uiapi-records-service.js",
|
|
@@ -68,16 +68,14 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@
|
|
72
|
-
"@salesforce/lds-
|
|
73
|
-
"@salesforce/lds-default-luvio": "^1.114.2"
|
|
71
|
+
"@salesforce/lds-bindings": "*",
|
|
72
|
+
"@salesforce/lds-default-luvio": "*"
|
|
74
73
|
},
|
|
75
74
|
"devDependencies": {
|
|
76
75
|
"@databases/sqlite": "^3.0.0",
|
|
77
|
-
"@salesforce/lds-compiler-plugins": "
|
|
78
|
-
"@salesforce/lds-jest": "
|
|
79
|
-
"@salesforce/lds-
|
|
80
|
-
"@salesforce/lds-store-binary": "^1.114.2",
|
|
76
|
+
"@salesforce/lds-compiler-plugins": "*",
|
|
77
|
+
"@salesforce/lds-jest": "*",
|
|
78
|
+
"@salesforce/lds-store-binary": "*",
|
|
81
79
|
"brotli-size": "4.0.0",
|
|
82
80
|
"bytes": "3.1.2",
|
|
83
81
|
"extract-zip": "^2.0.1",
|
|
@@ -86,7 +84,7 @@
|
|
|
86
84
|
"bundlesize": [
|
|
87
85
|
{
|
|
88
86
|
"path": "./sfdc/index.js",
|
|
89
|
-
"maxSize": "102 kB",
|
|
87
|
+
"maxSize": "102.5 kB",
|
|
90
88
|
"compression": "brotli"
|
|
91
89
|
},
|
|
92
90
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -17815,4 +17815,4 @@ register({
|
|
|
17815
17815
|
});
|
|
17816
17816
|
|
|
17817
17817
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
17818
|
-
// version: 1.114.
|
|
17818
|
+
// version: 1.114.5-f7ec91a8d
|
package/sfdc/index.js
CHANGED
|
@@ -4709,15 +4709,24 @@ function createFieldsIngestSuccess$3(params) {
|
|
|
4709
4709
|
|
|
4710
4710
|
function fulfill(existing, incoming) {
|
|
4711
4711
|
// early out if incoming isn't a request only for fields and optionalFields
|
|
4712
|
-
const { queryParams, headers, basePath, baseUri } = incoming;
|
|
4713
|
-
const { basePath: existingBasePath, baseUri: existingBaseUri, headers: existingHeaders, } = existing;
|
|
4712
|
+
const { queryParams, headers, basePath, baseUri, urlParams } = incoming;
|
|
4713
|
+
const { basePath: existingBasePath, baseUri: existingBaseUri, headers: existingHeaders, urlParams: existingUrlParams, } = existing;
|
|
4714
4714
|
const path = `${baseUri}${basePath}`;
|
|
4715
|
-
const existingPath = `${
|
|
4715
|
+
const existingPath = `${existingBaseUri}${existingBasePath}`;
|
|
4716
4716
|
if (queryParams.layoutTypes !== undefined) {
|
|
4717
4717
|
return false;
|
|
4718
4718
|
}
|
|
4719
4719
|
if (existingPath !== path) {
|
|
4720
|
-
|
|
4720
|
+
// W-11964675 - Correlate an incoming single record request to an existing batch record
|
|
4721
|
+
// request requesting the same single record
|
|
4722
|
+
const incomingUrlRecords = getRecordIdsFromUrlParams(urlParams);
|
|
4723
|
+
const existingUrlRecords = getRecordIdsFromUrlParams(existingUrlParams);
|
|
4724
|
+
const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
4725
|
+
isSingleRecordRequest(urlParams) &&
|
|
4726
|
+
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
4727
|
+
if (!batchRequestWithSingleRequest) {
|
|
4728
|
+
return false;
|
|
4729
|
+
}
|
|
4721
4730
|
}
|
|
4722
4731
|
const headersKeys = keys(headers);
|
|
4723
4732
|
const headersKeyLength = headersKeys.length;
|
|
@@ -4741,6 +4750,22 @@ function unionFields(fields, optionalFields) {
|
|
|
4741
4750
|
const fieldsArray = isArray(fields) ? fields : [];
|
|
4742
4751
|
const optionalFieldsArray = isArray(optionalFields) ? optionalFields : [];
|
|
4743
4752
|
return [...fieldsArray, ...optionalFieldsArray];
|
|
4753
|
+
}
|
|
4754
|
+
function getRecordIdsFromUrlParams(urlParams) {
|
|
4755
|
+
if (hasOwnProperty.call(urlParams, 'recordId')) {
|
|
4756
|
+
return [urlParams.recordId];
|
|
4757
|
+
}
|
|
4758
|
+
else if (hasOwnProperty.call(urlParams, 'recordIds')) {
|
|
4759
|
+
return urlParams.recordIds;
|
|
4760
|
+
}
|
|
4761
|
+
return [];
|
|
4762
|
+
}
|
|
4763
|
+
function isSingleBatchRecordRequest(urlParams) {
|
|
4764
|
+
return (hasOwnProperty.call(urlParams, 'recordIds') &&
|
|
4765
|
+
urlParams.recordIds.length === 1);
|
|
4766
|
+
}
|
|
4767
|
+
function isSingleRecordRequest(urlParams) {
|
|
4768
|
+
return hasOwnProperty.call(urlParams, 'recordId');
|
|
4744
4769
|
}
|
|
4745
4770
|
|
|
4746
4771
|
const createResourceRequest$10 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
@@ -5056,7 +5081,19 @@ function onResourceError(luvio, config, key, err) {
|
|
|
5056
5081
|
function buildNetworkSnapshot$W(luvio, config, serverRequestCount = 0, options) {
|
|
5057
5082
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
5058
5083
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
5059
|
-
return luvio.handleSuccessResponse(() =>
|
|
5084
|
+
return luvio.handleSuccessResponse(() => {
|
|
5085
|
+
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
5086
|
+
// Komaci - a batch record request with a single record followed by a single
|
|
5087
|
+
// record request. The fulfill logic sends the same network response, so
|
|
5088
|
+
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
5089
|
+
if (isSingleBatchRecordResponse(response.body)) {
|
|
5090
|
+
let recordResponse = response;
|
|
5091
|
+
recordResponse.body = response.body.results[0]
|
|
5092
|
+
.result;
|
|
5093
|
+
return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
|
|
5094
|
+
}
|
|
5095
|
+
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
5096
|
+
}, () => getResponseCacheKeys$S(luvio, resourceParams, response.body));
|
|
5060
5097
|
}, (err) => {
|
|
5061
5098
|
return luvio.handleErrorResponse(() => {
|
|
5062
5099
|
return onResourceError(luvio, config, key, err);
|
|
@@ -5095,6 +5132,10 @@ function buildNetworkSnapshotCachePolicy$K(context, coercedAdapterRequestContext
|
|
|
5095
5132
|
}
|
|
5096
5133
|
function getRecordByFields(luvio, config, requestContext) {
|
|
5097
5134
|
return luvio.applyCachePolicy(requestContext || {}, { config, luvio }, buildCachedSnapshotCachePolicy$J, buildNetworkSnapshotCachePolicy$K);
|
|
5135
|
+
}
|
|
5136
|
+
function isSingleBatchRecordResponse(response) {
|
|
5137
|
+
return (isArray(response.results) &&
|
|
5138
|
+
response.results.length === 1);
|
|
5098
5139
|
}
|
|
5099
5140
|
|
|
5100
5141
|
const VERSION$13 = "98cce53b8d13b1883d001bbdaab24383";
|
|
@@ -35918,4 +35959,4 @@ withDefaultLuvio((luvio) => {
|
|
|
35918
35959
|
});
|
|
35919
35960
|
|
|
35920
35961
|
export { InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$I as ObjectInfoRepresentationType, RepresentationType$N as RecordRepresentationRepresentationType, TTL$v as RecordRepresentationTTL, RepresentationType$N as RecordRepresentationType, VERSION$14 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createRecord, deleteRecord, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListRecordsByName, getListRecordsByName_imperative, getListUi, getListUi_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActions_imperative, factory$e as getRecordAdapterFactory, getRecordAvatars, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecords_imperative, getRelatedListActions, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$N as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$B as ingestObjectInfo, ingest$x as ingestQuickActionExecutionRepresentation, ingest$G as ingestRecord, instrument, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$x as keyBuilderFromTypeRecordRepresentation, keyBuilder$1F as keyBuilderObjectInfo, keyBuilder$1z as keyBuilderQuickActionExecutionRepresentation, keyBuilder$1Q as keyBuilderRecord, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, updateLayoutUserState, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
35921
|
-
// version: 1.114.
|
|
35962
|
+
// version: 1.114.5-f7ec91a8d
|