@salesforce/lds-adapters-uiapi 1.159.0 → 1.160.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,9 +1,9 @@
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 = "c6347b2701bb8ffb0b6ca6c027011c57";
2
+ export declare const VERSION = "3529c5f7d0eb2206c90a52c6d9f721d4";
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 {
6
- id: string;
6
+ id: string | null;
7
7
  }
8
8
  export type ListViewSummaryRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
9
9
  export type PartialListViewSummaryRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
@@ -20,13 +20,13 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: L
20
20
  * List View Summary Representation
21
21
  *
22
22
  * Keys:
23
- * id (string): id
23
+ * id (string | null): id
24
24
  */
25
25
  export interface ListViewSummaryRepresentationNormalized {
26
26
  /** The list view's object API name. */
27
27
  apiName: string;
28
28
  /** Id of the list view. */
29
- id: string;
29
+ id: string | null;
30
30
  /** List view's label. */
31
31
  label: string;
32
32
  /** List view ui url. */
@@ -36,11 +36,11 @@ export interface ListViewSummaryRepresentationNormalized {
36
36
  * List View Summary Representation
37
37
  *
38
38
  * Keys:
39
- * id (string): id
39
+ * id (string | null): id
40
40
  */
41
41
  export interface ListViewSummaryRepresentation {
42
42
  apiName: string;
43
- id: string;
43
+ id: string | null;
44
44
  label: string;
45
45
  listUiUrl: string;
46
46
  }
@@ -7840,7 +7840,7 @@ function isErrorSnapshot(snapshot) {
7840
7840
  return snapshot.state === 'Error';
7841
7841
  }
7842
7842
 
7843
- const VERSION$28 = "c6347b2701bb8ffb0b6ca6c027011c57";
7843
+ const VERSION$28 = "3529c5f7d0eb2206c90a52c6d9f721d4";
7844
7844
  function validate$1t(obj, path = 'ListViewSummaryRepresentation') {
7845
7845
  const v_error = (() => {
7846
7846
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -7853,8 +7853,29 @@ function validate$1t(obj, path = 'ListViewSummaryRepresentation') {
7853
7853
  }
7854
7854
  const obj_id = obj.id;
7855
7855
  const path_id = path + '.id';
7856
- if (typeof obj_id !== 'string') {
7857
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7856
+ let obj_id_union0 = null;
7857
+ const obj_id_union0_error = (() => {
7858
+ if (typeof obj_id !== 'string') {
7859
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7860
+ }
7861
+ })();
7862
+ if (obj_id_union0_error != null) {
7863
+ obj_id_union0 = obj_id_union0_error.message;
7864
+ }
7865
+ let obj_id_union1 = null;
7866
+ const obj_id_union1_error = (() => {
7867
+ if (obj_id !== null) {
7868
+ return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7869
+ }
7870
+ })();
7871
+ if (obj_id_union1_error != null) {
7872
+ obj_id_union1 = obj_id_union1_error.message;
7873
+ }
7874
+ if (obj_id_union0 && obj_id_union1) {
7875
+ let message = 'Object doesn\'t match union (at "' + path_id + '")';
7876
+ message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
7877
+ message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
7878
+ return new TypeError(message);
7858
7879
  }
7859
7880
  const obj_label = obj.label;
7860
7881
  const path_label = path + '.label';
@@ -7871,7 +7892,7 @@ function validate$1t(obj, path = 'ListViewSummaryRepresentation') {
7871
7892
  }
7872
7893
  const RepresentationType$P = 'ListViewSummaryRepresentation';
7873
7894
  function keyBuilder$2T(luvio, config) {
7874
- return keyPrefix + '::' + RepresentationType$P + ':' + config.id;
7895
+ return keyPrefix + '::' + RepresentationType$P + ':' + (config.id === null ? '' : config.id);
7875
7896
  }
7876
7897
  function keyBuilderFromType$u(luvio, object) {
7877
7898
  const keyParams = {
@@ -7913,11 +7934,6 @@ function equals$T(existing, incoming) {
7913
7934
  if (!(existing_apiName === incoming_apiName)) {
7914
7935
  return false;
7915
7936
  }
7916
- const existing_id = existing.id;
7917
- const incoming_id = incoming.id;
7918
- if (!(existing_id === incoming_id)) {
7919
- return false;
7920
- }
7921
7937
  const existing_label = existing.label;
7922
7938
  const incoming_label = incoming.label;
7923
7939
  if (!(existing_label === incoming_label)) {
@@ -7928,6 +7944,11 @@ function equals$T(existing, incoming) {
7928
7944
  if (!(existing_listUiUrl === incoming_listUiUrl)) {
7929
7945
  return false;
7930
7946
  }
7947
+ const existing_id = existing.id;
7948
+ const incoming_id = incoming.id;
7949
+ if (!(existing_id === incoming_id)) {
7950
+ return false;
7951
+ }
7931
7952
  return true;
7932
7953
  }
7933
7954
  const ingest$1L = function ListViewSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.159.0",
3
+ "version": "1.160.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",
@@ -17437,4 +17437,4 @@ register({
17437
17437
  });
17438
17438
 
17439
17439
  export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
17440
- // version: 1.159.0-5eb16a449
17440
+ // version: 1.160.0-e61429b8a
package/sfdc/index.js CHANGED
@@ -7352,7 +7352,7 @@ function isErrorSnapshot(snapshot) {
7352
7352
  return snapshot.state === 'Error';
7353
7353
  }
7354
7354
 
7355
- const VERSION$10 = "c6347b2701bb8ffb0b6ca6c027011c57";
7355
+ const VERSION$10 = "3529c5f7d0eb2206c90a52c6d9f721d4";
7356
7356
  function validate$1p(obj, path = 'ListViewSummaryRepresentation') {
7357
7357
  const v_error = (() => {
7358
7358
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -7365,8 +7365,29 @@ function validate$1p(obj, path = 'ListViewSummaryRepresentation') {
7365
7365
  }
7366
7366
  const obj_id = obj.id;
7367
7367
  const path_id = path + '.id';
7368
- if (typeof obj_id !== 'string') {
7369
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7368
+ let obj_id_union0 = null;
7369
+ const obj_id_union0_error = (() => {
7370
+ if (typeof obj_id !== 'string') {
7371
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7372
+ }
7373
+ })();
7374
+ if (obj_id_union0_error != null) {
7375
+ obj_id_union0 = obj_id_union0_error.message;
7376
+ }
7377
+ let obj_id_union1 = null;
7378
+ const obj_id_union1_error = (() => {
7379
+ if (obj_id !== null) {
7380
+ return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7381
+ }
7382
+ })();
7383
+ if (obj_id_union1_error != null) {
7384
+ obj_id_union1 = obj_id_union1_error.message;
7385
+ }
7386
+ if (obj_id_union0 && obj_id_union1) {
7387
+ let message = 'Object doesn\'t match union (at "' + path_id + '")';
7388
+ message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
7389
+ message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
7390
+ return new TypeError(message);
7370
7391
  }
7371
7392
  const obj_label = obj.label;
7372
7393
  const path_label = path + '.label';
@@ -7383,7 +7404,7 @@ function validate$1p(obj, path = 'ListViewSummaryRepresentation') {
7383
7404
  }
7384
7405
  const RepresentationType$K = 'ListViewSummaryRepresentation';
7385
7406
  function keyBuilder$1L(luvio, config) {
7386
- return keyPrefix + '::' + RepresentationType$K + ':' + config.id;
7407
+ return keyPrefix + '::' + RepresentationType$K + ':' + (config.id === null ? '' : config.id);
7387
7408
  }
7388
7409
  function keyBuilderFromType$u(luvio, object) {
7389
7410
  const keyParams = {
@@ -7425,11 +7446,6 @@ function equals$P(existing, incoming) {
7425
7446
  if (!(existing_apiName === incoming_apiName)) {
7426
7447
  return false;
7427
7448
  }
7428
- const existing_id = existing.id;
7429
- const incoming_id = incoming.id;
7430
- if (!(existing_id === incoming_id)) {
7431
- return false;
7432
- }
7433
7449
  const existing_label = existing.label;
7434
7450
  const incoming_label = incoming.label;
7435
7451
  if (!(existing_label === incoming_label)) {
@@ -7440,6 +7456,11 @@ function equals$P(existing, incoming) {
7440
7456
  if (!(existing_listUiUrl === incoming_listUiUrl)) {
7441
7457
  return false;
7442
7458
  }
7459
+ const existing_id = existing.id;
7460
+ const incoming_id = incoming.id;
7461
+ if (!(existing_id === incoming_id)) {
7462
+ return false;
7463
+ }
7443
7464
  return true;
7444
7465
  }
7445
7466
  const ingest$D = function ListViewSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -35841,4 +35862,4 @@ withDefaultLuvio((luvio) => {
35841
35862
  });
35842
35863
 
35843
35864
  export { InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$I as ObjectInfoRepresentationType, RepresentationType$N as RecordRepresentationRepresentationType, TTL$v as RecordRepresentationTTL, RepresentationType$N as RecordRepresentationType, VERSION$14 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createRecord, deleteRecord, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListRecordsByName, getListRecordsByName_imperative, getListUi, getListUi_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActions_imperative, factory$e as getRecordAdapterFactory, getRecordAvatars, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecords_imperative, getRelatedListActions, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$P as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$B as ingestObjectInfo, ingest$x as ingestQuickActionExecutionRepresentation, ingest$G as ingestRecord, instrument, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$x as keyBuilderFromTypeRecordRepresentation, keyBuilder$1G as keyBuilderObjectInfo, keyBuilder$1A as keyBuilderQuickActionExecutionRepresentation, keyBuilder$1R as keyBuilderRecord, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, updateLayoutUserState, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
35844
- // version: 1.159.0-5eb16a449
35865
+ // version: 1.160.0-e61429b8a
@@ -79,7 +79,7 @@ var FragmentReadResultState;
79
79
  ({
80
80
  state: FragmentReadResultState.Missing,
81
81
  });
82
- // engine version: 0.143.5-e5a21255
82
+ // engine version: 0.143.6-adb8408d
83
83
 
84
84
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
85
85
 
package/src/raml/api.raml CHANGED
@@ -1573,7 +1573,7 @@ types:
1573
1573
  type: string
1574
1574
  id:
1575
1575
  description: Id of the list view.
1576
- type: string
1576
+ type: string | nil
1577
1577
  label:
1578
1578
  description: List view's label.
1579
1579
  type: string