@salesforce/lds-adapters-uiapi 1.266.0-dev5 → 1.266.0-dev7
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/es/es2018/types/src/generated/graphql/types/type-util.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/AppliedSearchFilterOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/uiapi-records-service.js +241 -145
- package/package.json +6 -6
- package/sfdc/graphqlAdapters.js +199 -133
- package/sfdc/index.js +44 -14
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +1 -1
package/sfdc/index.js
CHANGED
|
@@ -5509,6 +5509,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
5509
5509
|
representationName: RepresentationType$S,
|
|
5510
5510
|
namespace: keyPrefix,
|
|
5511
5511
|
version: VERSION$18,
|
|
5512
|
+
ingestionTimestamp: timestamp,
|
|
5512
5513
|
});
|
|
5513
5514
|
return createLink(key);
|
|
5514
5515
|
};
|
|
@@ -5734,17 +5735,19 @@ function onResourceError(luvio, config, key, err) {
|
|
|
5734
5735
|
function buildNetworkSnapshot$13(luvio, config, serverRequestCount = 0, options) {
|
|
5735
5736
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
5736
5737
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
5738
|
+
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
5739
|
+
// Komaci - a batch record request with a single record followed by a single
|
|
5740
|
+
// record request. The fulfill logic sends the same network response, so
|
|
5741
|
+
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
5742
|
+
//
|
|
5743
|
+
// W-14381091 - Ensure hoisting the response body happens prior to
|
|
5744
|
+
// calling `luvio.handleSuccessResponse`, since both arguments capture
|
|
5745
|
+
// the response.
|
|
5746
|
+
if (isSingleBatchRecordResponse(response.body)) {
|
|
5747
|
+
response.body = response.body.results[0]
|
|
5748
|
+
.result;
|
|
5749
|
+
}
|
|
5737
5750
|
return luvio.handleSuccessResponse(() => {
|
|
5738
|
-
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
5739
|
-
// Komaci - a batch record request with a single record followed by a single
|
|
5740
|
-
// record request. The fulfill logic sends the same network response, so
|
|
5741
|
-
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
5742
|
-
if (isSingleBatchRecordResponse(response.body)) {
|
|
5743
|
-
let recordResponse = response;
|
|
5744
|
-
recordResponse.body = response.body.results[0]
|
|
5745
|
-
.result;
|
|
5746
|
-
return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
|
|
5747
|
-
}
|
|
5748
5751
|
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
5749
5752
|
}, () => {
|
|
5750
5753
|
const cache = new StoreKeyMap();
|
|
@@ -6993,6 +6996,7 @@ const ingest$K = function ListRecordCollectionRepresentationIngest(input, path,
|
|
|
6993
6996
|
namespace: "UiApi",
|
|
6994
6997
|
version: VERSION$16,
|
|
6995
6998
|
representationName: RepresentationType$R,
|
|
6999
|
+
ingestionTimestamp: timestamp,
|
|
6996
7000
|
};
|
|
6997
7001
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
6998
7002
|
}
|
|
@@ -8249,6 +8253,7 @@ const ingest$H = function ListViewSummaryCollectionRepresentationIngest(input, p
|
|
|
8249
8253
|
namespace: "UiApi",
|
|
8250
8254
|
version: VERSION$13,
|
|
8251
8255
|
representationName: RepresentationType$O,
|
|
8256
|
+
ingestionTimestamp: timestamp,
|
|
8252
8257
|
};
|
|
8253
8258
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
8254
8259
|
}
|
|
@@ -15117,7 +15122,10 @@ const dynamicIngest$4 = (ingestParams) => {
|
|
|
15117
15122
|
if (existingRecord === undefined || equals$N(existingRecord, incomingRecord) === false) {
|
|
15118
15123
|
luvio.storePublish(key, incomingRecord);
|
|
15119
15124
|
}
|
|
15120
|
-
luvio.publishStoreMetadata(key,
|
|
15125
|
+
luvio.publishStoreMetadata(key, {
|
|
15126
|
+
...QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS,
|
|
15127
|
+
ingestionTimestamp: timestamp,
|
|
15128
|
+
});
|
|
15121
15129
|
return createLink(key);
|
|
15122
15130
|
};
|
|
15123
15131
|
};
|
|
@@ -28212,6 +28220,7 @@ const ingest$8 = function RelatedListRecordCollectionRepresentationIngest(input,
|
|
|
28212
28220
|
namespace: "UiApi",
|
|
28213
28221
|
version: VERSION$c,
|
|
28214
28222
|
representationName: RepresentationType$d,
|
|
28223
|
+
ingestionTimestamp: timestamp,
|
|
28215
28224
|
};
|
|
28216
28225
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
28217
28226
|
}
|
|
@@ -30173,8 +30182,29 @@ function validate$g(obj, path = 'AppliedSearchFilterOutputRepresentation') {
|
|
|
30173
30182
|
}
|
|
30174
30183
|
const obj_label = obj.label;
|
|
30175
30184
|
const path_label = path + '.label';
|
|
30176
|
-
|
|
30177
|
-
|
|
30185
|
+
let obj_label_union0 = null;
|
|
30186
|
+
const obj_label_union0_error = (() => {
|
|
30187
|
+
if (typeof obj_label !== 'string') {
|
|
30188
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
30189
|
+
}
|
|
30190
|
+
})();
|
|
30191
|
+
if (obj_label_union0_error != null) {
|
|
30192
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
30193
|
+
}
|
|
30194
|
+
let obj_label_union1 = null;
|
|
30195
|
+
const obj_label_union1_error = (() => {
|
|
30196
|
+
if (obj_label !== null) {
|
|
30197
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
30198
|
+
}
|
|
30199
|
+
})();
|
|
30200
|
+
if (obj_label_union1_error != null) {
|
|
30201
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
30202
|
+
}
|
|
30203
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
30204
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
30205
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
30206
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
30207
|
+
return new TypeError(message);
|
|
30178
30208
|
}
|
|
30179
30209
|
const obj_operator = obj.operator;
|
|
30180
30210
|
const path_operator = path + '.operator';
|
|
@@ -35636,4 +35666,4 @@ withDefaultLuvio((luvio) => {
|
|
|
35636
35666
|
});
|
|
35637
35667
|
|
|
35638
35668
|
export { API_NAMESPACE, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$I as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$N as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$S as RecordRepresentationRepresentationType, TTL$y as RecordRepresentationTTL, RepresentationType$S as RecordRepresentationType, VERSION$18 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfo, createRecord, deleteListInfo, deleteRecord, executeBatchRecordOperations, extractRecordIdFromStoreKey, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getFlexipageFormulaOverrides, getFlexipageFormulaOverrides_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListObjectInfo, getListObjectInfo_imperative, getListPreferences, getListPreferences_imperative, getListRecordsByName, getListRecordsByName_imperative, getListUi, getListUi_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfoDirectoryAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActionsAdapterFactory, getRecordActions_imperative, factory$f as getRecordAdapterFactory, getRecordAvatars, getRecordAvatarsAdapterFactory, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecordsAdapterFactory, 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$U as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$G as ingestObjectInfo, ingest$A as ingestQuickActionExecutionRepresentation, ingest$L as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$A as keyBuilderFromTypeRecordRepresentation, keyBuilder$1R as keyBuilderObjectInfo, keyBuilder$1K as keyBuilderQuickActionExecutionRepresentation, keyBuilder$20 as keyBuilderRecord, notifyListInfoUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
35639
|
-
// version: 1.266.0-
|
|
35669
|
+
// version: 1.266.0-dev7-88d9ddf38
|
|
@@ -95,7 +95,7 @@ var TypeCheckShapes;
|
|
|
95
95
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
96
96
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
97
97
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
98
|
-
// engine version: 0.154.
|
|
98
|
+
// engine version: 0.154.7-dev4-96466e64
|
|
99
99
|
|
|
100
100
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
101
101
|
|