@salesforce/lds-adapters-uiapi 1.415.0 → 1.416.1

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,6 +7,7 @@ export declare class MockDurableStore implements DurableStore {
7
7
  getMetadata(_entryIds: string[], _segment: string): Promise<DurableStoreMetadataEntries | undefined>;
8
8
  setMetadata(_entries: DurableStoreMetadataEntries, _segment: string): Promise<void>;
9
9
  getEntries<T>(entryIds: string[], _segment: string): Promise<DurableStoreEntries<T> | undefined>;
10
+ getEntriesWithSpecificFields<T>(entryIds: string[], fields: Set<string>, _segment: string): Promise<DurableStoreEntries<T> | undefined>;
10
11
  getAllEntries<T>(segment: string): Promise<DurableStoreEntries<T>>;
11
12
  setEntries<T>(entries: DurableStoreEntries<T>, segment: string): Promise<void>;
12
13
  evictEntries(ids: string[], segment: string): Promise<void>;
@@ -2,7 +2,7 @@ import { ListObjectScopeRepresentation as ListObjectScopeRepresentation_ListObje
2
2
  import { ListObjectColumnRepresentation as ListObjectColumnRepresentation_ListObjectColumnRepresentation } from './ListObjectColumnRepresentation';
3
3
  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';
4
4
  export declare const TTL = 900000;
5
- export declare const VERSION = "2405a0b25c2c00f82e88b600edc16387";
5
+ export declare const VERSION = "a88bc29a18dfa64f33730b5bbe6aeb24";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -34,10 +34,14 @@ export interface ListObjectInfoRepresentationNormalized {
34
34
  createable: boolean;
35
35
  /** The requested object API name. */
36
36
  objectApiName: string;
37
+ /** Indicates whether the current user can create a new public listview for this listview's SObject. */
38
+ publicCreateable: boolean;
37
39
  /** Indicates whether the current user can create a new public or shared listview for this listview's SObject. */
38
40
  publicOrSharedCreateable: boolean;
39
41
  /** Null, or the type of related entity to which this LV can be scoped. */
40
42
  relatedEntityApiName: string | null;
43
+ /** Indicates whether the current user can create a new shared listview for this listview's SObject. */
44
+ sharedCreateable: boolean;
41
45
  }
42
46
  /**
43
47
  * ListObjectInfoRepresentation
@@ -50,6 +54,8 @@ export interface ListObjectInfoRepresentation {
50
54
  columns: Array<ListObjectColumnRepresentation_ListObjectColumnRepresentation>;
51
55
  createable: boolean;
52
56
  objectApiName: string;
57
+ publicCreateable: boolean;
53
58
  publicOrSharedCreateable: boolean;
54
59
  relatedEntityApiName: string | null;
60
+ sharedCreateable: boolean;
55
61
  }
@@ -24714,7 +24714,7 @@ function equals$C(existing, incoming) {
24714
24714
  }
24715
24715
 
24716
24716
  const TTL$q = 900000;
24717
- const VERSION$2o = "2405a0b25c2c00f82e88b600edc16387";
24717
+ const VERSION$2o = "a88bc29a18dfa64f33730b5bbe6aeb24";
24718
24718
  function validate$17(obj, path = 'ListObjectInfoRepresentation') {
24719
24719
  const v_error = (() => {
24720
24720
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -24760,6 +24760,11 @@ function validate$17(obj, path = 'ListObjectInfoRepresentation') {
24760
24760
  if (typeof obj_objectApiName !== 'string') {
24761
24761
  return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
24762
24762
  }
24763
+ const obj_publicCreateable = obj.publicCreateable;
24764
+ const path_publicCreateable = path + '.publicCreateable';
24765
+ if (typeof obj_publicCreateable !== 'boolean') {
24766
+ return new TypeError('Expected "boolean" but received "' + typeof obj_publicCreateable + '" (at "' + path_publicCreateable + '")');
24767
+ }
24763
24768
  const obj_publicOrSharedCreateable = obj.publicOrSharedCreateable;
24764
24769
  const path_publicOrSharedCreateable = path + '.publicOrSharedCreateable';
24765
24770
  if (typeof obj_publicOrSharedCreateable !== 'boolean') {
@@ -24791,6 +24796,11 @@ function validate$17(obj, path = 'ListObjectInfoRepresentation') {
24791
24796
  message += '\n' + obj_relatedEntityApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
24792
24797
  return new TypeError(message);
24793
24798
  }
24799
+ const obj_sharedCreateable = obj.sharedCreateable;
24800
+ const path_sharedCreateable = path + '.sharedCreateable';
24801
+ if (typeof obj_sharedCreateable !== 'boolean') {
24802
+ return new TypeError('Expected "boolean" but received "' + typeof obj_sharedCreateable + '" (at "' + path_sharedCreateable + '")');
24803
+ }
24794
24804
  })();
24795
24805
  return v_error === undefined ? null : v_error;
24796
24806
  }
@@ -24835,6 +24845,10 @@ const select$2I = function ListObjectInfoRepresentationSelect() {
24835
24845
  name: 'objectApiName',
24836
24846
  kind: 'Scalar'
24837
24847
  },
24848
+ {
24849
+ name: 'publicCreateable',
24850
+ kind: 'Scalar'
24851
+ },
24838
24852
  {
24839
24853
  name: 'publicOrSharedCreateable',
24840
24854
  kind: 'Scalar'
@@ -24842,6 +24856,10 @@ const select$2I = function ListObjectInfoRepresentationSelect() {
24842
24856
  {
24843
24857
  name: 'relatedEntityApiName',
24844
24858
  kind: 'Scalar'
24859
+ },
24860
+ {
24861
+ name: 'sharedCreateable',
24862
+ kind: 'Scalar'
24845
24863
  }
24846
24864
  ]
24847
24865
  };
@@ -24852,11 +24870,21 @@ function equals$B(existing, incoming) {
24852
24870
  if (!(existing_createable === incoming_createable)) {
24853
24871
  return false;
24854
24872
  }
24873
+ const existing_publicCreateable = existing.publicCreateable;
24874
+ const incoming_publicCreateable = incoming.publicCreateable;
24875
+ if (!(existing_publicCreateable === incoming_publicCreateable)) {
24876
+ return false;
24877
+ }
24855
24878
  const existing_publicOrSharedCreateable = existing.publicOrSharedCreateable;
24856
24879
  const incoming_publicOrSharedCreateable = incoming.publicOrSharedCreateable;
24857
24880
  if (!(existing_publicOrSharedCreateable === incoming_publicOrSharedCreateable)) {
24858
24881
  return false;
24859
24882
  }
24883
+ const existing_sharedCreateable = existing.sharedCreateable;
24884
+ const incoming_sharedCreateable = incoming.sharedCreateable;
24885
+ if (!(existing_sharedCreateable === incoming_sharedCreateable)) {
24886
+ return false;
24887
+ }
24860
24888
  const existing_objectApiName = existing.objectApiName;
24861
24889
  const incoming_objectApiName = incoming.objectApiName;
24862
24890
  if (!(existing_objectApiName === incoming_objectApiName)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.415.0",
3
+ "version": "1.416.1",
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",
@@ -68,15 +68,15 @@
68
68
  }
69
69
  },
70
70
  "dependencies": {
71
- "@luvio/graphql-parser": "0.158.7",
72
- "@salesforce/lds-adapters-onestore-graphql": "^1.415.0",
73
- "@salesforce/lds-bindings": "^1.415.0",
74
- "@salesforce/lds-default-luvio": "^1.415.0"
71
+ "@luvio/graphql-parser": "0.159.0",
72
+ "@salesforce/lds-adapters-onestore-graphql": "^1.416.1",
73
+ "@salesforce/lds-bindings": "^1.416.1",
74
+ "@salesforce/lds-default-luvio": "^1.416.1"
75
75
  },
76
76
  "devDependencies": {
77
- "@salesforce/lds-compiler-plugins": "^1.415.0",
78
- "@salesforce/lds-jest": "^1.415.0",
79
- "@salesforce/lds-store-binary": "^1.415.0"
77
+ "@salesforce/lds-compiler-plugins": "^1.416.1",
78
+ "@salesforce/lds-jest": "^1.416.1",
79
+ "@salesforce/lds-store-binary": "^1.416.1"
80
80
  },
81
81
  "luvioBundlesize": [
82
82
  {
@@ -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.415.0-caf45a5d7e
28830
+ // version: 1.416.1-c10be671f4
package/sfdc/index.js CHANGED
@@ -24212,7 +24212,7 @@ function equals$y(existing, incoming) {
24212
24212
  }
24213
24213
 
24214
24214
  const TTL$k = 900000;
24215
- const VERSION$D = "2405a0b25c2c00f82e88b600edc16387";
24215
+ const VERSION$D = "a88bc29a18dfa64f33730b5bbe6aeb24";
24216
24216
  function validate$13(obj, path = 'ListObjectInfoRepresentation') {
24217
24217
  const v_error = (() => {
24218
24218
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -24258,6 +24258,11 @@ function validate$13(obj, path = 'ListObjectInfoRepresentation') {
24258
24258
  if (typeof obj_objectApiName !== 'string') {
24259
24259
  return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
24260
24260
  }
24261
+ const obj_publicCreateable = obj.publicCreateable;
24262
+ const path_publicCreateable = path + '.publicCreateable';
24263
+ if (typeof obj_publicCreateable !== 'boolean') {
24264
+ return new TypeError('Expected "boolean" but received "' + typeof obj_publicCreateable + '" (at "' + path_publicCreateable + '")');
24265
+ }
24261
24266
  const obj_publicOrSharedCreateable = obj.publicOrSharedCreateable;
24262
24267
  const path_publicOrSharedCreateable = path + '.publicOrSharedCreateable';
24263
24268
  if (typeof obj_publicOrSharedCreateable !== 'boolean') {
@@ -24289,6 +24294,11 @@ function validate$13(obj, path = 'ListObjectInfoRepresentation') {
24289
24294
  message += '\n' + obj_relatedEntityApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
24290
24295
  return new TypeError(message);
24291
24296
  }
24297
+ const obj_sharedCreateable = obj.sharedCreateable;
24298
+ const path_sharedCreateable = path + '.sharedCreateable';
24299
+ if (typeof obj_sharedCreateable !== 'boolean') {
24300
+ return new TypeError('Expected "boolean" but received "' + typeof obj_sharedCreateable + '" (at "' + path_sharedCreateable + '")');
24301
+ }
24292
24302
  })();
24293
24303
  return v_error === undefined ? null : v_error;
24294
24304
  }
@@ -24333,6 +24343,10 @@ const select$Z = function ListObjectInfoRepresentationSelect() {
24333
24343
  name: 'objectApiName',
24334
24344
  kind: 'Scalar'
24335
24345
  },
24346
+ {
24347
+ name: 'publicCreateable',
24348
+ kind: 'Scalar'
24349
+ },
24336
24350
  {
24337
24351
  name: 'publicOrSharedCreateable',
24338
24352
  kind: 'Scalar'
@@ -24340,6 +24354,10 @@ const select$Z = function ListObjectInfoRepresentationSelect() {
24340
24354
  {
24341
24355
  name: 'relatedEntityApiName',
24342
24356
  kind: 'Scalar'
24357
+ },
24358
+ {
24359
+ name: 'sharedCreateable',
24360
+ kind: 'Scalar'
24343
24361
  }
24344
24362
  ]
24345
24363
  };
@@ -24350,11 +24368,21 @@ function equals$x(existing, incoming) {
24350
24368
  if (!(existing_createable === incoming_createable)) {
24351
24369
  return false;
24352
24370
  }
24371
+ const existing_publicCreateable = existing.publicCreateable;
24372
+ const incoming_publicCreateable = incoming.publicCreateable;
24373
+ if (!(existing_publicCreateable === incoming_publicCreateable)) {
24374
+ return false;
24375
+ }
24353
24376
  const existing_publicOrSharedCreateable = existing.publicOrSharedCreateable;
24354
24377
  const incoming_publicOrSharedCreateable = incoming.publicOrSharedCreateable;
24355
24378
  if (!(existing_publicOrSharedCreateable === incoming_publicOrSharedCreateable)) {
24356
24379
  return false;
24357
24380
  }
24381
+ const existing_sharedCreateable = existing.sharedCreateable;
24382
+ const incoming_sharedCreateable = incoming.sharedCreateable;
24383
+ if (!(existing_sharedCreateable === incoming_sharedCreateable)) {
24384
+ return false;
24385
+ }
24358
24386
  const existing_objectApiName = existing.objectApiName;
24359
24387
  const incoming_objectApiName = incoming.objectApiName;
24360
24388
  if (!(existing_objectApiName === incoming_objectApiName)) {
@@ -40383,4 +40411,4 @@ withDefaultLuvio((luvio) => {
40383
40411
  });
40384
40412
 
40385
40413
  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 };
40386
- // version: 1.415.0-caf45a5d7e
40414
+ // version: 1.416.1-c10be671f4
@@ -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.158.7-bafe2646
98
+ // engine version: 0.159.0-6e2a1824
99
99
 
100
100
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
101
101
 
package/src/raml/api.raml CHANGED
@@ -1902,6 +1902,10 @@ types:
1902
1902
  objectApiName:
1903
1903
  description: The requested object API name.
1904
1904
  type: string
1905
+ publicCreateable:
1906
+ description: Indicates whether the current user can create a new public listview
1907
+ for this listview's SObject.
1908
+ type: boolean
1905
1909
  publicOrSharedCreateable:
1906
1910
  description: Indicates whether the current user can create a new public or
1907
1911
  shared listview for this listview's SObject.
@@ -1909,6 +1913,10 @@ types:
1909
1913
  relatedEntityApiName:
1910
1914
  description: Null, or the type of related entity to which this LV can be scoped.
1911
1915
  type: string | nil # TODO: hand rolled nil union
1916
+ sharedCreateable:
1917
+ description: Indicates whether the current user can create a new shared listview
1918
+ for this listview's SObject.
1919
+ type: boolean
1912
1920
  ListObjectPicklistValueRepresentation:
1913
1921
  description: ListObjectPicklistValueRepresentation
1914
1922
  type: object