@salesforce/lds-adapters-uiapi 1.404.0-dev1 → 1.404.0-dev11
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/adapters/createRecord.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getDuplicates.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/updateRecord.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/patchUiApiRecordsByRecordId.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postUiApiPredupe.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postUiApiRecords.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/RecordInputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/main.d.ts +2 -0
- package/dist/es/es2018/types/src/sfdc_rest.d.ts +1 -1
- package/dist/es/es2018/uiapi-records-service.js +86 -2
- package/package.json +8 -8
- package/sfdc/graphqlAdapters.js +1 -1
- package/sfdc/index.js +84 -3
- package/sfdc/uiapi-static-functions.js +3 -0
- package/src/raml/api.raml +2 -1
|
@@ -14,7 +14,7 @@ export interface CreateRecordConfig {
|
|
|
14
14
|
allowSaveOnDuplicate?: boolean;
|
|
15
15
|
apiName?: string;
|
|
16
16
|
fields: {
|
|
17
|
-
[key: string]: string | number | null | boolean
|
|
17
|
+
[key: string]: string | number | null | boolean | Array<string>;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
export declare const createResourceParams: (config: CreateRecordConfig) => resources_postUiApiRecords_ResourceRequestConfig;
|
|
@@ -9,7 +9,7 @@ export interface GetDuplicatesConfig {
|
|
|
9
9
|
allowSaveOnDuplicate?: boolean;
|
|
10
10
|
apiName?: string;
|
|
11
11
|
fields: {
|
|
12
|
-
[key: string]: string | number | null | boolean
|
|
12
|
+
[key: string]: string | number | null | boolean | Array<string>;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
export declare const createResourceParams: (config: GetDuplicatesConfig) => resources_postUiApiPredupe_ResourceRequestConfig;
|
|
@@ -15,7 +15,7 @@ export interface UpdateRecordConfig {
|
|
|
15
15
|
allowSaveOnDuplicate?: boolean;
|
|
16
16
|
apiName?: string;
|
|
17
17
|
fields: {
|
|
18
|
-
[key: string]: string | number | null | boolean
|
|
18
|
+
[key: string]: string | number | null | boolean | Array<string>;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
export declare const createResourceParams: (config: UpdateRecordConfig) => resources_patchUiApiRecordsByRecordId_ResourceRequestConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "007ce71d6f58daae426cab2d4cb7d5a2";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: RecordInputRepresentation, existing: RecordInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RecordInputRepresentationNormalized;
|
|
@@ -20,7 +20,7 @@ export interface RecordInputRepresentationNormalized {
|
|
|
20
20
|
apiName?: string;
|
|
21
21
|
/** Field values. When this representation is deserialized from JSON, the values will be typed as JsonNode, delaying full deserialization until the resource executes, which knows the expected data types. In the case of invocation through CiJ directly, the field values should be typed as the expected data types. */
|
|
22
22
|
fields: {
|
|
23
|
-
[key: string]: string | number | null | boolean
|
|
23
|
+
[key: string]: string | number | null | boolean | Array<string>;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
@@ -33,6 +33,6 @@ export interface RecordInputRepresentation {
|
|
|
33
33
|
allowSaveOnDuplicate?: boolean;
|
|
34
34
|
apiName?: string;
|
|
35
35
|
fields: {
|
|
36
|
-
[key: string]: string | number | null | boolean
|
|
36
|
+
[key: string]: string | number | null | boolean | Array<string>;
|
|
37
37
|
};
|
|
38
38
|
}
|
|
@@ -165,6 +165,8 @@ export { default as getRecordId18Array } from './primitives/RecordId18Array/coer
|
|
|
165
165
|
export { default as coerceFieldIdArray } from './primitives/FieldIdArray/coerce';
|
|
166
166
|
export { default as coerceObjectId } from './primitives/ObjectId/coerce';
|
|
167
167
|
export { default as coerceObjectIdArray } from './primitives/ObjectIdArray/coerce';
|
|
168
|
+
export { default as coerceLayoutTypeArray } from './primitives/LayoutTypeArray/coerce';
|
|
169
|
+
export { default as coerceLayoutModeArray } from './primitives/LayoutModeArray/coerce';
|
|
168
170
|
export type Registration = {
|
|
169
171
|
id: '@salesforce/lds-adapters-uiapi';
|
|
170
172
|
configuration: Configuration;
|
|
@@ -25,7 +25,7 @@ export { keyBuilder as keyBuilderQuickActionExecutionRepresentation, ingest as i
|
|
|
25
25
|
export { ConfigurationForRestAdapters as Configuration, configurationForRestAdapters as configuration, } from './configuration';
|
|
26
26
|
export { instrument, Instrument, Registration } from './main';
|
|
27
27
|
export { CachePolicy, CachePolicyCacheAndNetwork, CachePolicyCacheThenNetwork, CachePolicyNoCache, CachePolicyOnlyIfCached, CachePolicyStaleWhileRevalidate, CachePolicyValidAt, } from './main';
|
|
28
|
-
export { getRecordId18, getRecordId18Array, coerceFieldIdArray, coerceObjectId, coerceObjectIdArray, getRecordAdapterFactory, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getRecordAvatarsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfosAdapterFactory, getObjectInfoDirectoryAdapterFactory, getRelatedListsActionsAdapterFactory, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getTypeCacheKeysRecord, FieldValueRepresentationVersion, RecordRepresentationVersion, RecordRepresentationTTL, RecordRepresentationType, ObjectInfoRepresentationType, ObjectInfoDirectoryEntryRepresentationType, RecordFieldTrie, RecordRepresentationRepresentationType, keyBuilderFromTypeRecordRepresentation, keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderContentDocumentCompositeRepresentation, ingestContentDocumentCompositeRepresentation, getResponseCacheKeysContentDocumentCompositeRepresentation, getRelatedListInfoAdapterFactory, getRelatedListInfoBatchAdapterFactory, getListInfoByNameAdapterFactory, getListObjectInfoAdapterFactory, getListRecordsByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getRelatedListsInfoAdapterFactory, getRelatedListActionsAdapterFactory, } from './main';
|
|
28
|
+
export { getRecordId18, getRecordId18Array, coerceFieldIdArray, coerceObjectId, coerceObjectIdArray, coerceLayoutTypeArray, coerceLayoutModeArray, getRecordAdapterFactory, getRecordsAdapterFactory, getRecordActionsAdapterFactory, getRecordAvatarsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfosAdapterFactory, getObjectInfoDirectoryAdapterFactory, getRelatedListsActionsAdapterFactory, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getTypeCacheKeysRecord, FieldValueRepresentationVersion, RecordRepresentationVersion, RecordRepresentationTTL, RecordRepresentationType, ObjectInfoRepresentationType, ObjectInfoDirectoryEntryRepresentationType, RecordFieldTrie, RecordRepresentationRepresentationType, keyBuilderFromTypeRecordRepresentation, keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderContentDocumentCompositeRepresentation, ingestContentDocumentCompositeRepresentation, getResponseCacheKeysContentDocumentCompositeRepresentation, getRelatedListInfoAdapterFactory, getRelatedListInfoBatchAdapterFactory, getListInfoByNameAdapterFactory, getListObjectInfoAdapterFactory, getListRecordsByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getRelatedListsInfoAdapterFactory, getRelatedListActionsAdapterFactory, } from './main';
|
|
29
29
|
export { UiApiNamespace, InMemoryRecordRepresentationQueryEvaluator } from './main';
|
|
30
30
|
export { isSupportedEntity } from './main';
|
|
31
31
|
export { getRecordIngestionOverride } from './main';
|
|
@@ -6550,6 +6550,9 @@ function generateRecordInputForUpdate(record, objectInfo) {
|
|
|
6550
6550
|
}
|
|
6551
6551
|
function isRecordInputFieldValue(unknown) {
|
|
6552
6552
|
const type = typeof unknown;
|
|
6553
|
+
if (Array.isArray(unknown)) {
|
|
6554
|
+
return unknown.every((entry) => typeof entry === 'string');
|
|
6555
|
+
}
|
|
6553
6556
|
return unknown === null || type === 'string' || type === 'number' || type === 'boolean';
|
|
6554
6557
|
}
|
|
6555
6558
|
/**
|
|
@@ -27067,6 +27070,12 @@ const picklistValuesConfigPropertyNames = {
|
|
|
27067
27070
|
},
|
|
27068
27071
|
};
|
|
27069
27072
|
function validateAdapterConfig$z(untrusted, _config) {
|
|
27073
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
27074
|
+
const fieldApiName = untrusted.fieldApiName;
|
|
27075
|
+
if (typeof fieldApiName === 'string' && fieldApiName.includes(',')) {
|
|
27076
|
+
throw new TypeError(`adapter ${picklistValuesConfigPropertyNames.displayName} configuration must not have a comma in the fieldApiName: ${fieldApiName}`);
|
|
27077
|
+
}
|
|
27078
|
+
}
|
|
27070
27079
|
return validateAdapterConfig$y(untrusted, picklistValuesConfigPropertyNames);
|
|
27071
27080
|
}
|
|
27072
27081
|
|
|
@@ -27531,6 +27540,18 @@ function typeCheckConfig$w(untrustedConfig) {
|
|
|
27531
27540
|
untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
|
|
27532
27541
|
}
|
|
27533
27542
|
}
|
|
27543
|
+
if (ArrayIsArray$1(untrustedConfig_fields_prop)) {
|
|
27544
|
+
const untrustedConfig_fields_prop_array = [];
|
|
27545
|
+
for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
|
|
27546
|
+
const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
|
|
27547
|
+
if (typeof untrustedConfig_fields_prop_item === 'string') {
|
|
27548
|
+
untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
|
|
27549
|
+
}
|
|
27550
|
+
}
|
|
27551
|
+
if (untrustedConfig_fields_object !== undefined) {
|
|
27552
|
+
untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
|
|
27553
|
+
}
|
|
27554
|
+
}
|
|
27534
27555
|
}
|
|
27535
27556
|
if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
|
|
27536
27557
|
config.fields = untrustedConfig_fields_object;
|
|
@@ -64517,12 +64538,29 @@ function validate$b(obj, path = 'RecordInputRepresentation') {
|
|
|
64517
64538
|
if (obj_fields_prop_union3_error != null) {
|
|
64518
64539
|
obj_fields_prop_union3 = obj_fields_prop_union3_error.message;
|
|
64519
64540
|
}
|
|
64520
|
-
|
|
64541
|
+
let obj_fields_prop_union4 = null;
|
|
64542
|
+
const obj_fields_prop_union4_error = (() => {
|
|
64543
|
+
if (!ArrayIsArray(obj_fields_prop)) {
|
|
64544
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
|
|
64545
|
+
}
|
|
64546
|
+
for (let i = 0; i < obj_fields_prop.length; i++) {
|
|
64547
|
+
const obj_fields_prop_item = obj_fields_prop[i];
|
|
64548
|
+
const path_fields_prop_item = path_fields_prop + '[' + i + ']';
|
|
64549
|
+
if (typeof obj_fields_prop_item !== 'string') {
|
|
64550
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fields_prop_item + '" (at "' + path_fields_prop_item + '")');
|
|
64551
|
+
}
|
|
64552
|
+
}
|
|
64553
|
+
})();
|
|
64554
|
+
if (obj_fields_prop_union4_error != null) {
|
|
64555
|
+
obj_fields_prop_union4 = obj_fields_prop_union4_error.message;
|
|
64556
|
+
}
|
|
64557
|
+
if (obj_fields_prop_union0 && obj_fields_prop_union1 && obj_fields_prop_union2 && obj_fields_prop_union3 && obj_fields_prop_union4) {
|
|
64521
64558
|
let message = 'Object doesn\'t match union (at "' + path_fields_prop + '")';
|
|
64522
64559
|
message += '\n' + obj_fields_prop_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
64523
64560
|
message += '\n' + obj_fields_prop_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
64524
64561
|
message += '\n' + obj_fields_prop_union2.split('\n').map((line) => '\t' + line).join('\n');
|
|
64525
64562
|
message += '\n' + obj_fields_prop_union3.split('\n').map((line) => '\t' + line).join('\n');
|
|
64563
|
+
message += '\n' + obj_fields_prop_union4.split('\n').map((line) => '\t' + line).join('\n');
|
|
64526
64564
|
return new TypeError(message);
|
|
64527
64565
|
}
|
|
64528
64566
|
}
|
|
@@ -67146,6 +67184,18 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
67146
67184
|
untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
|
|
67147
67185
|
}
|
|
67148
67186
|
}
|
|
67187
|
+
if (ArrayIsArray$1(untrustedConfig_fields_prop)) {
|
|
67188
|
+
const untrustedConfig_fields_prop_array = [];
|
|
67189
|
+
for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
|
|
67190
|
+
const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
|
|
67191
|
+
if (typeof untrustedConfig_fields_prop_item === 'string') {
|
|
67192
|
+
untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
|
|
67193
|
+
}
|
|
67194
|
+
}
|
|
67195
|
+
if (untrustedConfig_fields_object !== undefined) {
|
|
67196
|
+
untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
|
|
67197
|
+
}
|
|
67198
|
+
}
|
|
67149
67199
|
}
|
|
67150
67200
|
if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
|
|
67151
67201
|
config.fields = untrustedConfig_fields_object;
|
|
@@ -68040,6 +68090,40 @@ class InMemoryRecordRepresentationQueryEvaluator {
|
|
|
68040
68090
|
}
|
|
68041
68091
|
}
|
|
68042
68092
|
|
|
68093
|
+
function getLayoutTypeArray(value) {
|
|
68094
|
+
const valueArray = isArray(value) ? value : [value];
|
|
68095
|
+
const array = [];
|
|
68096
|
+
for (let i = 0, len = valueArray.length; i < len; i += 1) {
|
|
68097
|
+
const item = valueArray[i];
|
|
68098
|
+
const apiName = coerceLayoutType(item);
|
|
68099
|
+
if (apiName === undefined) {
|
|
68100
|
+
return undefined;
|
|
68101
|
+
}
|
|
68102
|
+
push.call(array, apiName);
|
|
68103
|
+
}
|
|
68104
|
+
if (array.length === 0) {
|
|
68105
|
+
return undefined;
|
|
68106
|
+
}
|
|
68107
|
+
return dedupe(array).sort();
|
|
68108
|
+
}
|
|
68109
|
+
|
|
68110
|
+
function coerceLayoutModeArray(value) {
|
|
68111
|
+
const valueArray = isArray(value) ? value : [value];
|
|
68112
|
+
const array = [];
|
|
68113
|
+
for (let i = 0, len = valueArray.length; i < len; i += 1) {
|
|
68114
|
+
const item = valueArray[i];
|
|
68115
|
+
const apiName = coerceLayoutMode(item);
|
|
68116
|
+
if (apiName === undefined) {
|
|
68117
|
+
return undefined;
|
|
68118
|
+
}
|
|
68119
|
+
push.call(array, apiName);
|
|
68120
|
+
}
|
|
68121
|
+
if (array.length === 0) {
|
|
68122
|
+
return undefined;
|
|
68123
|
+
}
|
|
68124
|
+
return dedupe(array).sort();
|
|
68125
|
+
}
|
|
68126
|
+
|
|
68043
68127
|
const configuration = {
|
|
68044
68128
|
...configurationForRestAdapters,
|
|
68045
68129
|
...configurationForGraphQLAdapters,
|
|
@@ -68059,4 +68143,4 @@ function getRecordIngestionOverride() {
|
|
|
68059
68143
|
return getRecordRepresentationIngestionOverride();
|
|
68060
68144
|
}
|
|
68061
68145
|
|
|
68062
|
-
export { API_NAMESPACE, VERSION$33 as FieldValueRepresentationVersion, notifyChangeFactory as GetRecordNotifyChange, InMemoryRecordRepresentationQueryEvaluator, MRU, notifyUpdateAvailableFactory$3 as NotifyListInfoSummaryUpdateAvailable, notifyUpdateAvailableFactory$1 as NotifyListInfoUpdateAvailable, notifyUpdateAvailableFactory$4 as NotifyListRecordCollectionUpdateAvailable, notifyUpdateAvailableFactory$2 as NotifyListViewSummaryUpdateAvailable, notifyUpdateAvailableFactory as NotifyQuickActionDefaultsUpdateAvailable, notifyUpdateAvailableFactory$5 as NotifyRecordUpdateAvailable, RepresentationType$O as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$T as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$_ as RecordRepresentationRepresentationType, TTL$F as RecordRepresentationTTL, RepresentationType$_ as RecordRepresentationType, VERSION$31 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, buildSelectionFromFields, buildSelectionFromRecord, getFieldApiNamesArray as coerceFieldIdArray, getObjectApiName$1 as coerceObjectId, getObjectApiNamesArray as coerceObjectIdArray, configuration, factory$1 as createContentDocumentAndVersionAdapterFactory, factory as createContentVersionAdapterFactory, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfoAdapterFactory, factory$4 as createRecordAdapterFactory, createRecordInputFilteredByEditedFields, createRelatedListAdapterWithPrediction, createRelatedListPlusAdapterWithPrediction, deleteListInfoAdapterFactory, factory$3 as deleteRecordAdapterFactory, factory$f as executeBatchRecordOperationsAdapterFactory, extractRecordIdFromStoreKey, generateRecordInputForCreate, generateRecordInputForUpdate, getActionOverridesAdapterFactory, getAllAppsAdapterFactory, getAppDetailsAdapterFactory, getDuplicateConfigurationAdapterFactory, getDuplicatesAdapterFactory, getFieldDisplayValue$1 as getFieldDisplayValue, getFieldValue, getFlexipageFormulaOverridesAdapterFactory, getGlobalActionsAdapterFactory, getKeywordSearchResultsAdapterFactory, getLayoutAdapterFactory, getLayoutUserStateAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getListObjectInfoAdapterFactory, getListPreferencesAdapterFactory, factory$a as getListRecordsByNameAdapterFactory, factory$j as getListUiAdapterFactory, getListUiByApiNameAdapterFactory, getListUiByListViewIdAdapterFactory, getListViewSummaryCollectionAdapterFactory, getLookupActionsAdapterFactory, getLookupMetadataAdapterFactory, factory$9 as getLookupRecordsAdapterFactory, factory$k as getMruListUiAdapterFactory, getNavItemsAdapterFactory, getObjectCreateActionsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfoDirectoryAdapterFactory, getObjectInfosAdapterFactory, getPathLayoutAdapterFactory, getPicklistValuesAdapterFactory, getPicklistValuesByRecordTypeAdapterFactory, getQuickActionDefaultsAdapterFactory, getQuickActionInfoAdapterFactory, getQuickActionLayoutAdapterFactory, getRecordActionsAdapterFactory, factory$h as getRecordAdapterFactory, getRecordAvatarsAdapterFactory, factory$7 as getRecordCreateDefaultsAdapterFactory, getRecordEditActionsAdapterFactory, getRecordId18, getRecordId18Array, getRecordIngestionOverride, getRecordInput, createFieldsIngestSuccess$3 as getRecordResourceIngest, factory$6 as getRecordTemplateCloneAdapterFactory, factory$5 as getRecordTemplateCreateAdapterFactory, factory$i as getRecordUiAdapterFactory, getRecordsAdapterFactory, getRelatedListActionsAdapterFactory, getRelatedListCountAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListPreferencesAdapterFactory, getRelatedListPreferencesBatchAdapterFactory, getRelatedListRecordActionsAdapterFactory, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListsActionsAdapterFactory, getRelatedListsCountAdapterFactory, getRelatedListsInfoAdapterFactory, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadataAdapterFactory, getSearchFilterOptionsAdapterFactory, getSearchResultsAdapterFactory, getSelectedAppAdapterFactory, getTypeCacheKeys$2E as getTypeCacheKeysRecord, factory$e as graphqlAdapterFactory, factory$g as graphqlBatchAdapterFactory, ingest$4 as ingestContentDocumentCompositeRepresentation, ingest$2a as ingestDuplicateConfiguration, ingest$24 as ingestDuplicatesRepresentation, ingest$2C as ingestListInfo, ingest$2y as ingestListRecords, ingest$2s as ingestObjectInfo, ingest$2m as ingestQuickActionExecutionRepresentation, ingest$2z as ingestRecord, ingest$2p as ingestRecordUi, ingest$1Y as ingestRelatedListInfo, ingest$2 as ingestRelatedListInfoBatch, ingest$1V as ingestRelatedListRecords, ingest as ingestRelatedListRecordsBatch, ingest$1X as ingestRelatedListSummaryInfoCollection, ingest$7 as ingestUiApiGraphql, instrument, isStoreKeyRecordViewEntity, isSupportedEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$E as keyBuilderFromTypeRecordRepresentation, keyBuilder$3D as keyBuilderObjectInfo, keyBuilder$3w as keyBuilderQuickActionExecutionRepresentation, keyBuilder$3U as keyBuilderRecord, factory$c as performQuickActionAdapterFactory, factory$d as performUpdateRecordQuickActionAdapterFactory, registerPrefetcher, untrustedIsObject, factory$b as updateLayoutUserStateAdapterFactory, updateListInfoByNameAdapterFactory, updateListPreferencesAdapterFactory, factory$2 as updateRecordAdapterFactory, factory$8 as updateRecordAvatarAdapterFactory, updateRelatedListInfoAdapterFactory, updateRelatedListPreferencesAdapterFactory };
|
|
68146
|
+
export { API_NAMESPACE, VERSION$33 as FieldValueRepresentationVersion, notifyChangeFactory as GetRecordNotifyChange, InMemoryRecordRepresentationQueryEvaluator, MRU, notifyUpdateAvailableFactory$3 as NotifyListInfoSummaryUpdateAvailable, notifyUpdateAvailableFactory$1 as NotifyListInfoUpdateAvailable, notifyUpdateAvailableFactory$4 as NotifyListRecordCollectionUpdateAvailable, notifyUpdateAvailableFactory$2 as NotifyListViewSummaryUpdateAvailable, notifyUpdateAvailableFactory as NotifyQuickActionDefaultsUpdateAvailable, notifyUpdateAvailableFactory$5 as NotifyRecordUpdateAvailable, RepresentationType$O as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$T as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$_ as RecordRepresentationRepresentationType, TTL$F as RecordRepresentationTTL, RepresentationType$_ as RecordRepresentationType, VERSION$31 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, buildSelectionFromFields, buildSelectionFromRecord, getFieldApiNamesArray as coerceFieldIdArray, coerceLayoutModeArray, getLayoutTypeArray as coerceLayoutTypeArray, getObjectApiName$1 as coerceObjectId, getObjectApiNamesArray as coerceObjectIdArray, configuration, factory$1 as createContentDocumentAndVersionAdapterFactory, factory as createContentVersionAdapterFactory, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfoAdapterFactory, factory$4 as createRecordAdapterFactory, createRecordInputFilteredByEditedFields, createRelatedListAdapterWithPrediction, createRelatedListPlusAdapterWithPrediction, deleteListInfoAdapterFactory, factory$3 as deleteRecordAdapterFactory, factory$f as executeBatchRecordOperationsAdapterFactory, extractRecordIdFromStoreKey, generateRecordInputForCreate, generateRecordInputForUpdate, getActionOverridesAdapterFactory, getAllAppsAdapterFactory, getAppDetailsAdapterFactory, getDuplicateConfigurationAdapterFactory, getDuplicatesAdapterFactory, getFieldDisplayValue$1 as getFieldDisplayValue, getFieldValue, getFlexipageFormulaOverridesAdapterFactory, getGlobalActionsAdapterFactory, getKeywordSearchResultsAdapterFactory, getLayoutAdapterFactory, getLayoutUserStateAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByNameAdapterFactory, getListInfosByObjectNameAdapterFactory, getListObjectInfoAdapterFactory, getListPreferencesAdapterFactory, factory$a as getListRecordsByNameAdapterFactory, factory$j as getListUiAdapterFactory, getListUiByApiNameAdapterFactory, getListUiByListViewIdAdapterFactory, getListViewSummaryCollectionAdapterFactory, getLookupActionsAdapterFactory, getLookupMetadataAdapterFactory, factory$9 as getLookupRecordsAdapterFactory, factory$k as getMruListUiAdapterFactory, getNavItemsAdapterFactory, getObjectCreateActionsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfoDirectoryAdapterFactory, getObjectInfosAdapterFactory, getPathLayoutAdapterFactory, getPicklistValuesAdapterFactory, getPicklistValuesByRecordTypeAdapterFactory, getQuickActionDefaultsAdapterFactory, getQuickActionInfoAdapterFactory, getQuickActionLayoutAdapterFactory, getRecordActionsAdapterFactory, factory$h as getRecordAdapterFactory, getRecordAvatarsAdapterFactory, factory$7 as getRecordCreateDefaultsAdapterFactory, getRecordEditActionsAdapterFactory, getRecordId18, getRecordId18Array, getRecordIngestionOverride, getRecordInput, createFieldsIngestSuccess$3 as getRecordResourceIngest, factory$6 as getRecordTemplateCloneAdapterFactory, factory$5 as getRecordTemplateCreateAdapterFactory, factory$i as getRecordUiAdapterFactory, getRecordsAdapterFactory, getRelatedListActionsAdapterFactory, getRelatedListCountAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListPreferencesAdapterFactory, getRelatedListPreferencesBatchAdapterFactory, getRelatedListRecordActionsAdapterFactory, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListsActionsAdapterFactory, getRelatedListsCountAdapterFactory, getRelatedListsInfoAdapterFactory, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadataAdapterFactory, getSearchFilterOptionsAdapterFactory, getSearchResultsAdapterFactory, getSelectedAppAdapterFactory, getTypeCacheKeys$2E as getTypeCacheKeysRecord, factory$e as graphqlAdapterFactory, factory$g as graphqlBatchAdapterFactory, ingest$4 as ingestContentDocumentCompositeRepresentation, ingest$2a as ingestDuplicateConfiguration, ingest$24 as ingestDuplicatesRepresentation, ingest$2C as ingestListInfo, ingest$2y as ingestListRecords, ingest$2s as ingestObjectInfo, ingest$2m as ingestQuickActionExecutionRepresentation, ingest$2z as ingestRecord, ingest$2p as ingestRecordUi, ingest$1Y as ingestRelatedListInfo, ingest$2 as ingestRelatedListInfoBatch, ingest$1V as ingestRelatedListRecords, ingest as ingestRelatedListRecordsBatch, ingest$1X as ingestRelatedListSummaryInfoCollection, ingest$7 as ingestUiApiGraphql, instrument, isStoreKeyRecordViewEntity, isSupportedEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$E as keyBuilderFromTypeRecordRepresentation, keyBuilder$3D as keyBuilderObjectInfo, keyBuilder$3w as keyBuilderQuickActionExecutionRepresentation, keyBuilder$3U as keyBuilderRecord, factory$c as performQuickActionAdapterFactory, factory$d as performUpdateRecordQuickActionAdapterFactory, registerPrefetcher, untrustedIsObject, factory$b as updateLayoutUserStateAdapterFactory, updateListInfoByNameAdapterFactory, updateListPreferencesAdapterFactory, factory$2 as updateRecordAdapterFactory, factory$8 as updateRecordAvatarAdapterFactory, updateRelatedListInfoAdapterFactory, updateRelatedListPreferencesAdapterFactory };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-uiapi",
|
|
3
|
-
"version": "1.404.0-
|
|
3
|
+
"version": "1.404.0-dev11",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters for record related UI API endpoints",
|
|
6
6
|
"main": "dist/es/es2018/uiapi-records-service.js",
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@luvio/graphql-parser": "0.158.7",
|
|
72
|
-
"@salesforce/lds-adapters-onestore-graphql": "^1.404.0-
|
|
73
|
-
"@salesforce/lds-bindings": "^1.404.0-
|
|
74
|
-
"@salesforce/lds-default-luvio": "^1.404.0-
|
|
72
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.404.0-dev11",
|
|
73
|
+
"@salesforce/lds-bindings": "^1.404.0-dev11",
|
|
74
|
+
"@salesforce/lds-default-luvio": "^1.404.0-dev11"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@salesforce/lds-compiler-plugins": "^1.404.0-
|
|
78
|
-
"@salesforce/lds-jest": "^1.404.0-
|
|
79
|
-
"@salesforce/lds-store-binary": "^1.404.0-
|
|
77
|
+
"@salesforce/lds-compiler-plugins": "^1.404.0-dev11",
|
|
78
|
+
"@salesforce/lds-jest": "^1.404.0-dev11",
|
|
79
|
+
"@salesforce/lds-store-binary": "^1.404.0-dev11"
|
|
80
80
|
},
|
|
81
81
|
"luvioBundlesize": [
|
|
82
82
|
{
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"maxSize": {
|
|
85
85
|
"none": "1.75 MB",
|
|
86
86
|
"min": "850 kB",
|
|
87
|
-
"compressed": "
|
|
87
|
+
"compressed": "126 kB"
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -28827,4 +28827,4 @@ register({
|
|
|
28827
28827
|
});
|
|
28828
28828
|
|
|
28829
28829
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_deprecated, graphql_imperative, graphql_imperative_deprecated, graphql_imperative_onestore, graphql_onestore, graphql_state_manager, refreshGraphQL, refreshGraphQL_deprecated };
|
|
28830
|
-
// version: 1.404.0-
|
|
28830
|
+
// version: 1.404.0-dev11-efd5bd34f5
|
package/sfdc/index.js
CHANGED
|
@@ -26568,6 +26568,12 @@ const picklistValuesConfigPropertyNames = {
|
|
|
26568
26568
|
},
|
|
26569
26569
|
};
|
|
26570
26570
|
function validateAdapterConfig$w(untrusted, _config) {
|
|
26571
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26572
|
+
const fieldApiName = untrusted.fieldApiName;
|
|
26573
|
+
if (typeof fieldApiName === 'string' && fieldApiName.includes(',')) {
|
|
26574
|
+
throw new TypeError(`adapter ${picklistValuesConfigPropertyNames.displayName} configuration must not have a comma in the fieldApiName: ${fieldApiName}`);
|
|
26575
|
+
}
|
|
26576
|
+
}
|
|
26571
26577
|
return validateAdapterConfig$v(untrusted, picklistValuesConfigPropertyNames);
|
|
26572
26578
|
}
|
|
26573
26579
|
|
|
@@ -27033,6 +27039,18 @@ function typeCheckConfig$u(untrustedConfig) {
|
|
|
27033
27039
|
untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
|
|
27034
27040
|
}
|
|
27035
27041
|
}
|
|
27042
|
+
if (ArrayIsArray$1(untrustedConfig_fields_prop)) {
|
|
27043
|
+
const untrustedConfig_fields_prop_array = [];
|
|
27044
|
+
for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
|
|
27045
|
+
const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
|
|
27046
|
+
if (typeof untrustedConfig_fields_prop_item === 'string') {
|
|
27047
|
+
untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
|
|
27048
|
+
}
|
|
27049
|
+
}
|
|
27050
|
+
if (untrustedConfig_fields_object !== undefined) {
|
|
27051
|
+
untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
|
|
27052
|
+
}
|
|
27053
|
+
}
|
|
27036
27054
|
}
|
|
27037
27055
|
if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
|
|
27038
27056
|
config.fields = untrustedConfig_fields_object;
|
|
@@ -36462,12 +36480,29 @@ function validate$7(obj, path = 'RecordInputRepresentation') {
|
|
|
36462
36480
|
if (obj_fields_prop_union3_error != null) {
|
|
36463
36481
|
obj_fields_prop_union3 = obj_fields_prop_union3_error.message;
|
|
36464
36482
|
}
|
|
36465
|
-
|
|
36483
|
+
let obj_fields_prop_union4 = null;
|
|
36484
|
+
const obj_fields_prop_union4_error = (() => {
|
|
36485
|
+
if (!ArrayIsArray(obj_fields_prop)) {
|
|
36486
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
|
|
36487
|
+
}
|
|
36488
|
+
for (let i = 0; i < obj_fields_prop.length; i++) {
|
|
36489
|
+
const obj_fields_prop_item = obj_fields_prop[i];
|
|
36490
|
+
const path_fields_prop_item = path_fields_prop + '[' + i + ']';
|
|
36491
|
+
if (typeof obj_fields_prop_item !== 'string') {
|
|
36492
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fields_prop_item + '" (at "' + path_fields_prop_item + '")');
|
|
36493
|
+
}
|
|
36494
|
+
}
|
|
36495
|
+
})();
|
|
36496
|
+
if (obj_fields_prop_union4_error != null) {
|
|
36497
|
+
obj_fields_prop_union4 = obj_fields_prop_union4_error.message;
|
|
36498
|
+
}
|
|
36499
|
+
if (obj_fields_prop_union0 && obj_fields_prop_union1 && obj_fields_prop_union2 && obj_fields_prop_union3 && obj_fields_prop_union4) {
|
|
36466
36500
|
let message = 'Object doesn\'t match union (at "' + path_fields_prop + '")';
|
|
36467
36501
|
message += '\n' + obj_fields_prop_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
36468
36502
|
message += '\n' + obj_fields_prop_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
36469
36503
|
message += '\n' + obj_fields_prop_union2.split('\n').map((line) => '\t' + line).join('\n');
|
|
36470
36504
|
message += '\n' + obj_fields_prop_union3.split('\n').map((line) => '\t' + line).join('\n');
|
|
36505
|
+
message += '\n' + obj_fields_prop_union4.split('\n').map((line) => '\t' + line).join('\n');
|
|
36471
36506
|
return new TypeError(message);
|
|
36472
36507
|
}
|
|
36473
36508
|
}
|
|
@@ -39090,6 +39125,18 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
39090
39125
|
untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
|
|
39091
39126
|
}
|
|
39092
39127
|
}
|
|
39128
|
+
if (ArrayIsArray$1(untrustedConfig_fields_prop)) {
|
|
39129
|
+
const untrustedConfig_fields_prop_array = [];
|
|
39130
|
+
for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
|
|
39131
|
+
const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
|
|
39132
|
+
if (typeof untrustedConfig_fields_prop_item === 'string') {
|
|
39133
|
+
untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
|
|
39134
|
+
}
|
|
39135
|
+
}
|
|
39136
|
+
if (untrustedConfig_fields_object !== undefined) {
|
|
39137
|
+
untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
|
|
39138
|
+
}
|
|
39139
|
+
}
|
|
39093
39140
|
}
|
|
39094
39141
|
if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
|
|
39095
39142
|
config.fields = untrustedConfig_fields_object;
|
|
@@ -39716,6 +39763,40 @@ class InMemoryRecordRepresentationQueryEvaluator {
|
|
|
39716
39763
|
}
|
|
39717
39764
|
}
|
|
39718
39765
|
|
|
39766
|
+
function getLayoutTypeArray(value) {
|
|
39767
|
+
const valueArray = isArray(value) ? value : [value];
|
|
39768
|
+
const array = [];
|
|
39769
|
+
for (let i = 0, len = valueArray.length; i < len; i += 1) {
|
|
39770
|
+
const item = valueArray[i];
|
|
39771
|
+
const apiName = coerceLayoutType(item);
|
|
39772
|
+
if (apiName === undefined) {
|
|
39773
|
+
return undefined;
|
|
39774
|
+
}
|
|
39775
|
+
push.call(array, apiName);
|
|
39776
|
+
}
|
|
39777
|
+
if (array.length === 0) {
|
|
39778
|
+
return undefined;
|
|
39779
|
+
}
|
|
39780
|
+
return dedupe(array).sort();
|
|
39781
|
+
}
|
|
39782
|
+
|
|
39783
|
+
function coerceLayoutModeArray(value) {
|
|
39784
|
+
const valueArray = isArray(value) ? value : [value];
|
|
39785
|
+
const array = [];
|
|
39786
|
+
for (let i = 0, len = valueArray.length; i < len; i += 1) {
|
|
39787
|
+
const item = valueArray[i];
|
|
39788
|
+
const apiName = coerceLayoutMode(item);
|
|
39789
|
+
if (apiName === undefined) {
|
|
39790
|
+
return undefined;
|
|
39791
|
+
}
|
|
39792
|
+
push.call(array, apiName);
|
|
39793
|
+
}
|
|
39794
|
+
if (array.length === 0) {
|
|
39795
|
+
return undefined;
|
|
39796
|
+
}
|
|
39797
|
+
return dedupe(array).sort();
|
|
39798
|
+
}
|
|
39799
|
+
|
|
39719
39800
|
const configuration = {
|
|
39720
39801
|
...configurationForRestAdapters,
|
|
39721
39802
|
...configurationForGraphQLAdapters,
|
|
@@ -40307,5 +40388,5 @@ withDefaultLuvio((luvio) => {
|
|
|
40307
40388
|
notifyAllListInfoSummaryUpdateAvailable = throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
40308
40389
|
});
|
|
40309
40390
|
|
|
40310
|
-
export { API_NAMESPACE, VERSION$1i as FieldValueRepresentationVersion, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$J as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$O as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$V as RecordRepresentationRepresentationType, TTL$z as RecordRepresentationTTL, RepresentationType$V as RecordRepresentationType, VERSION$1g as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, getFieldApiNamesArray as coerceFieldIdArray, getObjectApiName$1 as coerceObjectId, getObjectApiNamesArray as coerceObjectIdArray, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfo, createRecord, createRelatedListAdapterWithPrediction, createRelatedListPlusAdapterWithPrediction, 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, getListInfoByNameAdapterFactory, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListInfosByObjectName, getListInfosByObjectNameAdapterFactory, getListInfosByObjectName_imperative, getListObjectInfo, getListObjectInfoAdapterFactory, getListObjectInfo_imperative, getListPreferences, getListPreferences_imperative, getListRecordsByName, factory$a as getListRecordsByNameAdapterFactory, 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, getPathLayout, getPathLayout_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionInfo, getQuickActionInfo_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActionsAdapterFactory, getRecordActions_imperative, factory$f as getRecordAdapterFactory, getRecordAvatars, getRecordAvatarsAdapterFactory, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordId18Array, getRecordIngestionOverride, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecordsAdapterFactory, getRecords_imperative, getRelatedListActions, getRelatedListActionsAdapterFactory, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoAdapterFactory, getRelatedListInfoBatch, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatch, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActionsAdapterFactory, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfoAdapterFactory, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$X as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$H as ingestObjectInfo, ingest$B as ingestQuickActionExecutionRepresentation, ingest$O as ingestRecord, instrument, isStoreKeyRecordViewEntity, isSupportedEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$E as keyBuilderFromTypeRecordRepresentation, keyBuilder$1Y as keyBuilderObjectInfo, keyBuilder$1R as keyBuilderQuickActionExecutionRepresentation, keyBuilder$29 as keyBuilderRecord, notifyAllListInfoSummaryUpdateAvailable, notifyAllListRecordUpdateAvailable, notifyListInfoSummaryUpdateAvailable, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
40311
|
-
// version: 1.404.0-
|
|
40391
|
+
export { API_NAMESPACE, VERSION$1i as FieldValueRepresentationVersion, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$J as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$O as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$V as RecordRepresentationRepresentationType, TTL$z as RecordRepresentationTTL, RepresentationType$V as RecordRepresentationType, VERSION$1g as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, getFieldApiNamesArray as coerceFieldIdArray, coerceLayoutModeArray, getLayoutTypeArray as coerceLayoutTypeArray, getObjectApiName$1 as coerceObjectId, getObjectApiNamesArray as coerceObjectIdArray, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfo, createRecord, createRelatedListAdapterWithPrediction, createRelatedListPlusAdapterWithPrediction, 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, getListInfoByNameAdapterFactory, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListInfosByObjectName, getListInfosByObjectNameAdapterFactory, getListInfosByObjectName_imperative, getListObjectInfo, getListObjectInfoAdapterFactory, getListObjectInfo_imperative, getListPreferences, getListPreferences_imperative, getListRecordsByName, factory$a as getListRecordsByNameAdapterFactory, 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, getPathLayout, getPathLayout_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionInfo, getQuickActionInfo_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActionsAdapterFactory, getRecordActions_imperative, factory$f as getRecordAdapterFactory, getRecordAvatars, getRecordAvatarsAdapterFactory, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordId18Array, getRecordIngestionOverride, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecordsAdapterFactory, getRecords_imperative, getRelatedListActions, getRelatedListActionsAdapterFactory, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoAdapterFactory, getRelatedListInfoBatch, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatch, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActionsAdapterFactory, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfoAdapterFactory, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$X as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$H as ingestObjectInfo, ingest$B as ingestQuickActionExecutionRepresentation, ingest$O as ingestRecord, instrument, isStoreKeyRecordViewEntity, isSupportedEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$E as keyBuilderFromTypeRecordRepresentation, keyBuilder$1Y as keyBuilderObjectInfo, keyBuilder$1R as keyBuilderQuickActionExecutionRepresentation, keyBuilder$29 as keyBuilderRecord, notifyAllListInfoSummaryUpdateAvailable, notifyAllListRecordUpdateAvailable, notifyListInfoSummaryUpdateAvailable, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
40392
|
+
// version: 1.404.0-dev11-efd5bd34f5
|
|
@@ -445,6 +445,9 @@ function generateRecordInputForUpdate(record, objectInfo) {
|
|
|
445
445
|
}
|
|
446
446
|
function isRecordInputFieldValue(unknown) {
|
|
447
447
|
const type = typeof unknown;
|
|
448
|
+
if (Array.isArray(unknown)) {
|
|
449
|
+
return unknown.every((entry) => typeof entry === 'string');
|
|
450
|
+
}
|
|
448
451
|
return unknown === null || type === 'string' || type === 'number' || type === 'boolean';
|
|
449
452
|
}
|
|
450
453
|
/**
|
package/src/raml/api.raml
CHANGED
|
@@ -995,6 +995,7 @@ types:
|
|
|
995
995
|
- Picklist
|
|
996
996
|
- Reference
|
|
997
997
|
- String
|
|
998
|
+
- String[]
|
|
998
999
|
- TextArea
|
|
999
1000
|
- Time
|
|
1000
1001
|
- Url
|
|
@@ -3537,7 +3538,7 @@ types:
|
|
|
3537
3538
|
type: object
|
|
3538
3539
|
properties:
|
|
3539
3540
|
//:
|
|
3540
|
-
type: string | number | nil | boolean # TODO: hand rolled
|
|
3541
|
+
type: string | number | nil | boolean | string[] # TODO: hand rolled
|
|
3541
3542
|
RecordLayoutComponentRepresentation:
|
|
3542
3543
|
description: Concrete record layout component.
|
|
3543
3544
|
discriminatorValue: EmptySpace # TODO hand rolled
|