@salesforce/lds-adapters-uiapi 1.388.0 → 1.389.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.
@@ -7,7 +7,7 @@ import { NormalizedGraphQL as type$45$util_NormalizedGraphQL, GraphQLIngestState
7
7
  import { FieldNode as $64$luvio_graphql$45$parser_FieldNode, OperationDefinitionNode as $64$luvio_graphql$45$parser_OperationDefinitionNode, SelectionNode as $64$luvio_graphql$45$parser_SelectionNode, FragmentDefinitionNode as $64$luvio_graphql$45$parser_FragmentDefinitionNode, InlineFragmentNode as $64$luvio_graphql$45$parser_InlineFragmentNode, FragmentSpreadNode as $64$luvio_graphql$45$parser_FragmentSpreadNode } from '@luvio/graphql-parser';
8
8
  import { GraphQLVariables as $64$luvio_graphql_GraphQLVariables, GraphQLFragmentMap as $64$luvio_graphql_GraphQLFragmentMap, GetMinimumSelectionsFunction as $64$luvio_graphql_GetMinimumSelectionsFunction } from '@luvio/graphql';
9
9
  export declare const name = "Setup__ListView";
10
- export declare const VERSION = "ec3ac75904d74082486a0511e275543e";
10
+ export declare const VERSION = "117dc84730e5dcd3c6055a40e4e9c068";
11
11
  export interface Interface {
12
12
  listViewType: string;
13
13
  label: string | undefined;
@@ -15,6 +15,7 @@ export interface Interface {
15
15
  filters: Setup__ListFilter_Interface[];
16
16
  filterLogic: string | undefined;
17
17
  orderedByInfo: Setup__ListOrder_Interface[];
18
+ searchable: boolean;
18
19
  rows: Setup__ListViewRowConnection_Interface | undefined;
19
20
  }
20
21
  export interface MinimumInterface {
@@ -55607,7 +55607,7 @@ function getInContextFragmentType$o(fragment, fragmentMap) {
55607
55607
  }
55608
55608
 
55609
55609
  const name$3 = 'Setup__ListView';
55610
- const VERSION$f = 'ec3ac75904d74082486a0511e275543e';
55610
+ const VERSION$f = '117dc84730e5dcd3c6055a40e4e9c068';
55611
55611
  function keyBuilder$h(luvio, path, data) {
55612
55612
  return path.fullPath;
55613
55613
  }
@@ -55673,6 +55673,11 @@ function selectType$3(typename, sel, fieldData, reader, key, sink, variables, fr
55673
55673
  selectTypeLink(sel, fieldData, reader, key, sink, variables, fragments, VERSION$k, select$h, false);
55674
55674
  break;
55675
55675
  }
55676
+ case 'Boolean': {
55677
+ reader.markSeenId(parentRecordId);
55678
+ reader.assignScalar(key, sink, fieldData);
55679
+ break;
55680
+ }
55676
55681
  case 'Setup__ListViewRowConnection': {
55677
55682
  selectTypeLink(sel, fieldData, reader, key, sink, variables, fragments, VERSION$g, select$d, true);
55678
55683
  break;
@@ -55830,6 +55835,12 @@ function getFieldType$m(field) {
55830
55835
  typename: 'Setup__ListOrder'
55831
55836
  };
55832
55837
  }
55838
+ case 'searchable': {
55839
+ return {
55840
+ isArray: false,
55841
+ typename: 'Boolean'
55842
+ };
55843
+ }
55833
55844
  case 'rows': {
55834
55845
  return {
55835
55846
  isArray: false,
@@ -55866,6 +55877,10 @@ function ingestFieldByType$3(typename, parentKey, requestedField, sink, fieldKey
55866
55877
  sink[fieldKey] = ingest$g(requestedField, Setup__ListOrderState);
55867
55878
  break;
55868
55879
  }
55880
+ case 'Boolean': {
55881
+ sink[fieldKey] = fieldData;
55882
+ break;
55883
+ }
55869
55884
  case 'Setup__ListViewRowConnection': {
55870
55885
  const Setup__ListViewRowConnectionState = buildFieldState(state, parentKey + '__' + fieldKey, fieldData);
55871
55886
  sink[fieldKey] = ingest$c(requestedField, Setup__ListViewRowConnectionState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.388.0",
3
+ "version": "1.389.0",
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.388.0",
73
- "@salesforce/lds-bindings": "^1.388.0",
74
- "@salesforce/lds-default-luvio": "^1.388.0"
72
+ "@salesforce/lds-adapters-onestore-graphql": "^1.389.0",
73
+ "@salesforce/lds-bindings": "^1.389.0",
74
+ "@salesforce/lds-default-luvio": "^1.389.0"
75
75
  },
76
76
  "devDependencies": {
77
- "@salesforce/lds-compiler-plugins": "^1.388.0",
78
- "@salesforce/lds-jest": "^1.388.0",
79
- "@salesforce/lds-store-binary": "^1.388.0"
77
+ "@salesforce/lds-compiler-plugins": "^1.389.0",
78
+ "@salesforce/lds-jest": "^1.389.0",
79
+ "@salesforce/lds-store-binary": "^1.389.0"
80
80
  },
81
81
  "luvioBundlesize": [
82
82
  {
@@ -21211,7 +21211,7 @@ function getInContextFragmentType$o(fragment, fragmentMap) {
21211
21211
  }
21212
21212
 
21213
21213
  const name$3 = 'Setup__ListView';
21214
- const VERSION$b = 'ec3ac75904d74082486a0511e275543e';
21214
+ const VERSION$b = '117dc84730e5dcd3c6055a40e4e9c068';
21215
21215
  function keyBuilder$7(luvio, path, data) {
21216
21216
  return path.fullPath;
21217
21217
  }
@@ -21277,6 +21277,11 @@ function selectType$3(typename, sel, fieldData, reader, key, sink, variables, fr
21277
21277
  selectTypeLink(sel, fieldData, reader, key, sink, variables, fragments, VERSION$g, select$i, false);
21278
21278
  break;
21279
21279
  }
21280
+ case 'Boolean': {
21281
+ reader.markSeenId(parentRecordId);
21282
+ reader.assignScalar(key, sink, fieldData);
21283
+ break;
21284
+ }
21280
21285
  case 'Setup__ListViewRowConnection': {
21281
21286
  selectTypeLink(sel, fieldData, reader, key, sink, variables, fragments, VERSION$c, select$e, true);
21282
21287
  break;
@@ -21434,6 +21439,12 @@ function getFieldType$m(field) {
21434
21439
  typename: 'Setup__ListOrder'
21435
21440
  };
21436
21441
  }
21442
+ case 'searchable': {
21443
+ return {
21444
+ isArray: false,
21445
+ typename: 'Boolean'
21446
+ };
21447
+ }
21437
21448
  case 'rows': {
21438
21449
  return {
21439
21450
  isArray: false,
@@ -21470,6 +21481,10 @@ function ingestFieldByType$3(typename, parentKey, requestedField, sink, fieldKey
21470
21481
  sink[fieldKey] = ingest$9(requestedField, Setup__ListOrderState);
21471
21482
  break;
21472
21483
  }
21484
+ case 'Boolean': {
21485
+ sink[fieldKey] = fieldData;
21486
+ break;
21487
+ }
21473
21488
  case 'Setup__ListViewRowConnection': {
21474
21489
  const Setup__ListViewRowConnectionState = buildFieldState(state, parentKey + '__' + fieldKey, fieldData);
21475
21490
  sink[fieldKey] = ingest$5(requestedField, Setup__ListViewRowConnectionState);
@@ -25737,6 +25752,9 @@ withDefaultLuvio((luvio) => {
25737
25752
  graphql = oneStoreGraphql;
25738
25753
  graphql_imperative = oneStoreGraphql_imperative_legacy;
25739
25754
  refreshGraphQL = (data) => {
25755
+ if (data?.data === undefined && data?.errors === undefined) {
25756
+ return Promise.resolve();
25757
+ }
25740
25758
  if (typeof data?.refresh === 'function') {
25741
25759
  return data.refresh();
25742
25760
  }
@@ -26258,4 +26276,4 @@ register({
26258
26276
  });
26259
26277
 
26260
26278
  export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_deprecated, graphql_imperative, graphql_imperative_deprecated, graphql_imperative_onestore, graphql_onestore, refreshGraphQL, refreshGraphQL_deprecated };
26261
- // version: 1.388.0-fabb0e5a71
26279
+ // version: 1.389.0-375f8790ac
package/sfdc/index.js CHANGED
@@ -39030,4 +39030,4 @@ withDefaultLuvio((luvio) => {
39030
39030
  });
39031
39031
 
39032
39032
  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 };
39033
- // version: 1.388.0-fabb0e5a71
39033
+ // version: 1.389.0-375f8790ac
@@ -1857,7 +1857,8 @@ type Setup__ListView {
1857
1857
  filters: [Setup__ListFilter!]
1858
1858
  filterLogic: String
1859
1859
  orderedByInfo: [Setup__ListOrder!]!
1860
- rows(first: Int, after: String, upperBound: Int, orderBy: Setup__ListOrderInput): Setup__ListViewRowConnection
1860
+ searchable: Boolean!
1861
+ rows(first: Int, after: String, upperBound: Int, orderBy: Setup__ListOrderInput, searchTerm: String): Setup__ListViewRowConnection
1861
1862
  }
1862
1863
 
1863
1864
  type Setup__ListFilter {