@salesforce/lds-adapters-uiapi 1.446.0 → 1.447.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "9859bc4e735e831effdc3df4b3b3e415";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -65,6 +65,8 @@ export interface PlatformActionRepresentationNormalized {
|
|
|
65
65
|
targetObject: string | null;
|
|
66
66
|
/** The lookup field on the target object that points to the source (parent) record. For Quick Actions, resolved server-side from QuickActionDefinition.TargetField. */
|
|
67
67
|
targetParentField: string | null;
|
|
68
|
+
/** Target record type ID for the action. */
|
|
69
|
+
targetRecordTypeId: string | null;
|
|
68
70
|
/** Target URL for Custom Button Actions */
|
|
69
71
|
targetUrl: string | null;
|
|
70
72
|
/** The type of the action defined in PlatformActionTypeEnum */
|
|
@@ -98,6 +100,7 @@ export interface PlatformActionRepresentation {
|
|
|
98
100
|
subtype: string | null;
|
|
99
101
|
targetObject: string | null;
|
|
100
102
|
targetParentField: string | null;
|
|
103
|
+
targetRecordTypeId: string | null;
|
|
101
104
|
targetUrl: string | null;
|
|
102
105
|
type: string;
|
|
103
106
|
}
|
|
@@ -13087,7 +13087,7 @@ function coerceFormFactor(form) {
|
|
|
13087
13087
|
return undefined;
|
|
13088
13088
|
}
|
|
13089
13089
|
|
|
13090
|
-
const VERSION$2N = "
|
|
13090
|
+
const VERSION$2N = "9859bc4e735e831effdc3df4b3b3e415";
|
|
13091
13091
|
function validate$1A(obj, path = 'PlatformActionRepresentation') {
|
|
13092
13092
|
const v_error = (() => {
|
|
13093
13093
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -13440,6 +13440,32 @@ function validate$1A(obj, path = 'PlatformActionRepresentation') {
|
|
|
13440
13440
|
message += '\n' + obj_targetParentField_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
13441
13441
|
return new TypeError(message);
|
|
13442
13442
|
}
|
|
13443
|
+
const obj_targetRecordTypeId = obj.targetRecordTypeId;
|
|
13444
|
+
const path_targetRecordTypeId = path + '.targetRecordTypeId';
|
|
13445
|
+
let obj_targetRecordTypeId_union0 = null;
|
|
13446
|
+
const obj_targetRecordTypeId_union0_error = (() => {
|
|
13447
|
+
if (typeof obj_targetRecordTypeId !== 'string') {
|
|
13448
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetRecordTypeId + '" (at "' + path_targetRecordTypeId + '")');
|
|
13449
|
+
}
|
|
13450
|
+
})();
|
|
13451
|
+
if (obj_targetRecordTypeId_union0_error != null) {
|
|
13452
|
+
obj_targetRecordTypeId_union0 = obj_targetRecordTypeId_union0_error.message;
|
|
13453
|
+
}
|
|
13454
|
+
let obj_targetRecordTypeId_union1 = null;
|
|
13455
|
+
const obj_targetRecordTypeId_union1_error = (() => {
|
|
13456
|
+
if (obj_targetRecordTypeId !== null) {
|
|
13457
|
+
return new TypeError('Expected "null" but received "' + typeof obj_targetRecordTypeId + '" (at "' + path_targetRecordTypeId + '")');
|
|
13458
|
+
}
|
|
13459
|
+
})();
|
|
13460
|
+
if (obj_targetRecordTypeId_union1_error != null) {
|
|
13461
|
+
obj_targetRecordTypeId_union1 = obj_targetRecordTypeId_union1_error.message;
|
|
13462
|
+
}
|
|
13463
|
+
if (obj_targetRecordTypeId_union0 && obj_targetRecordTypeId_union1) {
|
|
13464
|
+
let message = 'Object doesn\'t match union (at "' + path_targetRecordTypeId + '")';
|
|
13465
|
+
message += '\n' + obj_targetRecordTypeId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
13466
|
+
message += '\n' + obj_targetRecordTypeId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
13467
|
+
return new TypeError(message);
|
|
13468
|
+
}
|
|
13443
13469
|
const obj_targetUrl = obj.targetUrl;
|
|
13444
13470
|
const path_targetUrl = path + '.targetUrl';
|
|
13445
13471
|
let obj_targetUrl_union0 = null;
|
|
@@ -13569,6 +13595,10 @@ const select$3q = function PlatformActionRepresentationSelect() {
|
|
|
13569
13595
|
name: 'targetParentField',
|
|
13570
13596
|
kind: 'Scalar'
|
|
13571
13597
|
},
|
|
13598
|
+
{
|
|
13599
|
+
name: 'targetRecordTypeId',
|
|
13600
|
+
kind: 'Scalar'
|
|
13601
|
+
},
|
|
13572
13602
|
{
|
|
13573
13603
|
name: 'targetUrl',
|
|
13574
13604
|
kind: 'Scalar'
|
|
@@ -13681,6 +13711,11 @@ function equals$W(existing, incoming) {
|
|
|
13681
13711
|
if (!(existing_targetParentField === incoming_targetParentField)) {
|
|
13682
13712
|
return false;
|
|
13683
13713
|
}
|
|
13714
|
+
const existing_targetRecordTypeId = existing.targetRecordTypeId;
|
|
13715
|
+
const incoming_targetRecordTypeId = incoming.targetRecordTypeId;
|
|
13716
|
+
if (!(existing_targetRecordTypeId === incoming_targetRecordTypeId)) {
|
|
13717
|
+
return false;
|
|
13718
|
+
}
|
|
13684
13719
|
const existing_targetUrl = existing.targetUrl;
|
|
13685
13720
|
const incoming_targetUrl = incoming.targetUrl;
|
|
13686
13721
|
if (!(existing_targetUrl === incoming_targetUrl)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-uiapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.447.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters for record related UI API endpoints",
|
|
6
6
|
"type": "module",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@luvio/graphql-parser": "0.161.0",
|
|
71
|
-
"@salesforce/lds-bindings": "^1.
|
|
72
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
71
|
+
"@salesforce/lds-bindings": "^1.447.0",
|
|
72
|
+
"@salesforce/lds-default-luvio": "^1.447.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@salesforce/lds-adapters-onestore-graphql": "^1.
|
|
76
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
77
|
-
"@salesforce/lds-jest": "^1.
|
|
78
|
-
"@salesforce/lds-store-binary": "^1.
|
|
75
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.447.0",
|
|
76
|
+
"@salesforce/lds-compiler-plugins": "^1.447.0",
|
|
77
|
+
"@salesforce/lds-jest": "^1.447.0",
|
|
78
|
+
"@salesforce/lds-store-binary": "^1.447.0"
|
|
79
79
|
},
|
|
80
80
|
"luvioBundlesize": [
|
|
81
81
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -28809,4 +28809,4 @@ register({
|
|
|
28809
28809
|
});
|
|
28810
28810
|
|
|
28811
28811
|
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 };
|
|
28812
|
-
// version: 1.
|
|
28812
|
+
// version: 1.447.0-b75721e8dd
|
package/sfdc/index.js
CHANGED
|
@@ -12722,7 +12722,7 @@ function coerceFormFactor(form) {
|
|
|
12722
12722
|
return undefined;
|
|
12723
12723
|
}
|
|
12724
12724
|
|
|
12725
|
-
const VERSION$10 = "
|
|
12725
|
+
const VERSION$10 = "9859bc4e735e831effdc3df4b3b3e415";
|
|
12726
12726
|
function validate$1w(obj, path = 'PlatformActionRepresentation') {
|
|
12727
12727
|
const v_error = (() => {
|
|
12728
12728
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -13075,6 +13075,32 @@ function validate$1w(obj, path = 'PlatformActionRepresentation') {
|
|
|
13075
13075
|
message += '\n' + obj_targetParentField_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
13076
13076
|
return new TypeError(message);
|
|
13077
13077
|
}
|
|
13078
|
+
const obj_targetRecordTypeId = obj.targetRecordTypeId;
|
|
13079
|
+
const path_targetRecordTypeId = path + '.targetRecordTypeId';
|
|
13080
|
+
let obj_targetRecordTypeId_union0 = null;
|
|
13081
|
+
const obj_targetRecordTypeId_union0_error = (() => {
|
|
13082
|
+
if (typeof obj_targetRecordTypeId !== 'string') {
|
|
13083
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetRecordTypeId + '" (at "' + path_targetRecordTypeId + '")');
|
|
13084
|
+
}
|
|
13085
|
+
})();
|
|
13086
|
+
if (obj_targetRecordTypeId_union0_error != null) {
|
|
13087
|
+
obj_targetRecordTypeId_union0 = obj_targetRecordTypeId_union0_error.message;
|
|
13088
|
+
}
|
|
13089
|
+
let obj_targetRecordTypeId_union1 = null;
|
|
13090
|
+
const obj_targetRecordTypeId_union1_error = (() => {
|
|
13091
|
+
if (obj_targetRecordTypeId !== null) {
|
|
13092
|
+
return new TypeError('Expected "null" but received "' + typeof obj_targetRecordTypeId + '" (at "' + path_targetRecordTypeId + '")');
|
|
13093
|
+
}
|
|
13094
|
+
})();
|
|
13095
|
+
if (obj_targetRecordTypeId_union1_error != null) {
|
|
13096
|
+
obj_targetRecordTypeId_union1 = obj_targetRecordTypeId_union1_error.message;
|
|
13097
|
+
}
|
|
13098
|
+
if (obj_targetRecordTypeId_union0 && obj_targetRecordTypeId_union1) {
|
|
13099
|
+
let message = 'Object doesn\'t match union (at "' + path_targetRecordTypeId + '")';
|
|
13100
|
+
message += '\n' + obj_targetRecordTypeId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
13101
|
+
message += '\n' + obj_targetRecordTypeId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
13102
|
+
return new TypeError(message);
|
|
13103
|
+
}
|
|
13078
13104
|
const obj_targetUrl = obj.targetUrl;
|
|
13079
13105
|
const path_targetUrl = path + '.targetUrl';
|
|
13080
13106
|
let obj_targetUrl_union0 = null;
|
|
@@ -13204,6 +13230,10 @@ const select$1G = function PlatformActionRepresentationSelect() {
|
|
|
13204
13230
|
name: 'targetParentField',
|
|
13205
13231
|
kind: 'Scalar'
|
|
13206
13232
|
},
|
|
13233
|
+
{
|
|
13234
|
+
name: 'targetRecordTypeId',
|
|
13235
|
+
kind: 'Scalar'
|
|
13236
|
+
},
|
|
13207
13237
|
{
|
|
13208
13238
|
name: 'targetUrl',
|
|
13209
13239
|
kind: 'Scalar'
|
|
@@ -13316,6 +13346,11 @@ function equals$S(existing, incoming) {
|
|
|
13316
13346
|
if (!(existing_targetParentField === incoming_targetParentField)) {
|
|
13317
13347
|
return false;
|
|
13318
13348
|
}
|
|
13349
|
+
const existing_targetRecordTypeId = existing.targetRecordTypeId;
|
|
13350
|
+
const incoming_targetRecordTypeId = incoming.targetRecordTypeId;
|
|
13351
|
+
if (!(existing_targetRecordTypeId === incoming_targetRecordTypeId)) {
|
|
13352
|
+
return false;
|
|
13353
|
+
}
|
|
13319
13354
|
const existing_targetUrl = existing.targetUrl;
|
|
13320
13355
|
const incoming_targetUrl = incoming.targetUrl;
|
|
13321
13356
|
if (!(existing_targetUrl === incoming_targetUrl)) {
|
|
@@ -37571,4 +37606,4 @@ withDefaultLuvio((luvio) => {
|
|
|
37571
37606
|
});
|
|
37572
37607
|
|
|
37573
37608
|
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, 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, 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 };
|
|
37574
|
-
// version: 1.
|
|
37609
|
+
// version: 1.447.0-b75721e8dd
|
package/src/raml/api.raml
CHANGED
|
@@ -3079,6 +3079,9 @@ types:
|
|
|
3079
3079
|
targetParentField:
|
|
3080
3080
|
description: The lookup field on the target object that points to the source (parent) record. For Quick Actions, resolved server-side from QuickActionDefinition.TargetField.
|
|
3081
3081
|
type: string | nil
|
|
3082
|
+
targetRecordTypeId:
|
|
3083
|
+
description: Target record type ID for the action.
|
|
3084
|
+
type: string | nil
|
|
3082
3085
|
targetUrl:
|
|
3083
3086
|
description: Target URL for Custom Button Actions
|
|
3084
3087
|
type: string | nil
|