@salesforce/lds-adapters-uiapi 1.136.3 → 1.136.5

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,7 +1,7 @@
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, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  import { NavItemRepresentation as NavItemRepresentation_NavItemRepresentation } from './NavItemRepresentation';
3
3
  export declare const TTL = 300000;
4
- export declare const VERSION = "f0c7134ce18a20d9eb4ae8e4e8ebb0fe";
4
+ export declare const VERSION = "38ee38ead5262047cfa7604e8bf72d4b";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -49,7 +49,7 @@ export interface AppRepresentationNormalized {
49
49
  /** Primary color selected by admin for this app. Ex: #0070D2 */
50
50
  headerColor: string;
51
51
  /** Icon URL of the App */
52
- iconUrl: string;
52
+ iconUrl: string | null;
53
53
  /** Nav automatically create temporary tabs setting */
54
54
  isNavAutoTempTabsDisabled: boolean;
55
55
  /** Nav personalization setting */
@@ -86,7 +86,7 @@ export interface AppRepresentation {
86
86
  eTag: string;
87
87
  formFactors: Array<string>;
88
88
  headerColor: string;
89
- iconUrl: string;
89
+ iconUrl: string | null;
90
90
  isNavAutoTempTabsDisabled: boolean;
91
91
  isNavPersonalizationDisabled: boolean;
92
92
  isNavTabPersistenceDisabled: boolean;
@@ -17315,7 +17315,7 @@ function getTypeCacheKeys$1d(luvio, input, fullPathFactory) {
17315
17315
  }
17316
17316
 
17317
17317
  const TTL$q = 300000;
17318
- const VERSION$1y = "f0c7134ce18a20d9eb4ae8e4e8ebb0fe";
17318
+ const VERSION$1y = "38ee38ead5262047cfa7604e8bf72d4b";
17319
17319
  function validate$11(obj, path = 'AppRepresentation') {
17320
17320
  const v_error = (() => {
17321
17321
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -17381,8 +17381,29 @@ function validate$11(obj, path = 'AppRepresentation') {
17381
17381
  }
17382
17382
  const obj_iconUrl = obj.iconUrl;
17383
17383
  const path_iconUrl = path + '.iconUrl';
17384
- if (typeof obj_iconUrl !== 'string') {
17385
- return new TypeError('Expected "string" but received "' + typeof obj_iconUrl + '" (at "' + path_iconUrl + '")');
17384
+ let obj_iconUrl_union0 = null;
17385
+ const obj_iconUrl_union0_error = (() => {
17386
+ if (typeof obj_iconUrl !== 'string') {
17387
+ return new TypeError('Expected "string" but received "' + typeof obj_iconUrl + '" (at "' + path_iconUrl + '")');
17388
+ }
17389
+ })();
17390
+ if (obj_iconUrl_union0_error != null) {
17391
+ obj_iconUrl_union0 = obj_iconUrl_union0_error.message;
17392
+ }
17393
+ let obj_iconUrl_union1 = null;
17394
+ const obj_iconUrl_union1_error = (() => {
17395
+ if (obj_iconUrl !== null) {
17396
+ return new TypeError('Expected "null" but received "' + typeof obj_iconUrl + '" (at "' + path_iconUrl + '")');
17397
+ }
17398
+ })();
17399
+ if (obj_iconUrl_union1_error != null) {
17400
+ obj_iconUrl_union1 = obj_iconUrl_union1_error.message;
17401
+ }
17402
+ if (obj_iconUrl_union0 && obj_iconUrl_union1) {
17403
+ let message = 'Object doesn\'t match union (at "' + path_iconUrl + '")';
17404
+ message += '\n' + obj_iconUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
17405
+ message += '\n' + obj_iconUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
17406
+ return new TypeError(message);
17386
17407
  }
17387
17408
  const obj_isNavAutoTempTabsDisabled = obj.isNavAutoTempTabsDisabled;
17388
17409
  const path_isNavAutoTempTabsDisabled = path + '.isNavAutoTempTabsDisabled';
@@ -17647,11 +17668,6 @@ function equals$E(existing, incoming) {
17647
17668
  if (!(existing_headerColor === incoming_headerColor)) {
17648
17669
  return false;
17649
17670
  }
17650
- const existing_iconUrl = existing.iconUrl;
17651
- const incoming_iconUrl = incoming.iconUrl;
17652
- if (!(existing_iconUrl === incoming_iconUrl)) {
17653
- return false;
17654
- }
17655
17671
  const existing_label = existing.label;
17656
17672
  const incoming_label = incoming.label;
17657
17673
  if (!(existing_label === incoming_label)) {
@@ -17687,6 +17703,11 @@ function equals$E(existing, incoming) {
17687
17703
  if (equals_formFactors_items === false) {
17688
17704
  return false;
17689
17705
  }
17706
+ const existing_iconUrl = existing.iconUrl;
17707
+ const incoming_iconUrl = incoming.iconUrl;
17708
+ if (!(existing_iconUrl === incoming_iconUrl)) {
17709
+ return false;
17710
+ }
17690
17711
  const existing_mobileStartUrl = existing.mobileStartUrl;
17691
17712
  const incoming_mobileStartUrl = incoming.mobileStartUrl;
17692
17713
  if (!(existing_mobileStartUrl === incoming_mobileStartUrl)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.136.3",
3
+ "version": "1.136.5",
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",
@@ -14460,4 +14460,4 @@ register({
14460
14460
  });
14461
14461
 
14462
14462
  export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
14463
- // version: 1.136.3-925803f5f
14463
+ // version: 1.136.5-9eb467125
package/sfdc/index.js CHANGED
@@ -16839,7 +16839,7 @@ function getTypeCacheKeys$x(luvio, input, fullPathFactory) {
16839
16839
  }
16840
16840
 
16841
16841
  const TTL$l = 300000;
16842
- const VERSION$N = "f0c7134ce18a20d9eb4ae8e4e8ebb0fe";
16842
+ const VERSION$N = "38ee38ead5262047cfa7604e8bf72d4b";
16843
16843
  function validate$Z(obj, path = 'AppRepresentation') {
16844
16844
  const v_error = (() => {
16845
16845
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -16905,8 +16905,29 @@ function validate$Z(obj, path = 'AppRepresentation') {
16905
16905
  }
16906
16906
  const obj_iconUrl = obj.iconUrl;
16907
16907
  const path_iconUrl = path + '.iconUrl';
16908
- if (typeof obj_iconUrl !== 'string') {
16909
- return new TypeError('Expected "string" but received "' + typeof obj_iconUrl + '" (at "' + path_iconUrl + '")');
16908
+ let obj_iconUrl_union0 = null;
16909
+ const obj_iconUrl_union0_error = (() => {
16910
+ if (typeof obj_iconUrl !== 'string') {
16911
+ return new TypeError('Expected "string" but received "' + typeof obj_iconUrl + '" (at "' + path_iconUrl + '")');
16912
+ }
16913
+ })();
16914
+ if (obj_iconUrl_union0_error != null) {
16915
+ obj_iconUrl_union0 = obj_iconUrl_union0_error.message;
16916
+ }
16917
+ let obj_iconUrl_union1 = null;
16918
+ const obj_iconUrl_union1_error = (() => {
16919
+ if (obj_iconUrl !== null) {
16920
+ return new TypeError('Expected "null" but received "' + typeof obj_iconUrl + '" (at "' + path_iconUrl + '")');
16921
+ }
16922
+ })();
16923
+ if (obj_iconUrl_union1_error != null) {
16924
+ obj_iconUrl_union1 = obj_iconUrl_union1_error.message;
16925
+ }
16926
+ if (obj_iconUrl_union0 && obj_iconUrl_union1) {
16927
+ let message = 'Object doesn\'t match union (at "' + path_iconUrl + '")';
16928
+ message += '\n' + obj_iconUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
16929
+ message += '\n' + obj_iconUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
16930
+ return new TypeError(message);
16910
16931
  }
16911
16932
  const obj_isNavAutoTempTabsDisabled = obj.isNavAutoTempTabsDisabled;
16912
16933
  const path_isNavAutoTempTabsDisabled = path + '.isNavAutoTempTabsDisabled';
@@ -17171,11 +17192,6 @@ function equals$A(existing, incoming) {
17171
17192
  if (!(existing_headerColor === incoming_headerColor)) {
17172
17193
  return false;
17173
17194
  }
17174
- const existing_iconUrl = existing.iconUrl;
17175
- const incoming_iconUrl = incoming.iconUrl;
17176
- if (!(existing_iconUrl === incoming_iconUrl)) {
17177
- return false;
17178
- }
17179
17195
  const existing_label = existing.label;
17180
17196
  const incoming_label = incoming.label;
17181
17197
  if (!(existing_label === incoming_label)) {
@@ -17211,6 +17227,11 @@ function equals$A(existing, incoming) {
17211
17227
  if (equals_formFactors_items === false) {
17212
17228
  return false;
17213
17229
  }
17230
+ const existing_iconUrl = existing.iconUrl;
17231
+ const incoming_iconUrl = incoming.iconUrl;
17232
+ if (!(existing_iconUrl === incoming_iconUrl)) {
17233
+ return false;
17234
+ }
17214
17235
  const existing_mobileStartUrl = existing.mobileStartUrl;
17215
17236
  const incoming_mobileStartUrl = incoming.mobileStartUrl;
17216
17237
  if (!(existing_mobileStartUrl === incoming_mobileStartUrl)) {
@@ -35518,4 +35539,4 @@ withDefaultLuvio((luvio) => {
35518
35539
  });
35519
35540
 
35520
35541
  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$1F as keyBuilderObjectInfo, keyBuilder$1z as keyBuilderQuickActionExecutionRepresentation, keyBuilder$1Q as keyBuilderRecord, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, updateLayoutUserState, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
35521
- // version: 1.136.3-925803f5f
35542
+ // version: 1.136.5-9eb467125
package/src/raml/api.raml CHANGED
@@ -300,7 +300,7 @@ types:
300
300
  type: string
301
301
  iconUrl:
302
302
  description: Icon URL of the App
303
- type: string
303
+ type: string | nil # TODO Hand rolled
304
304
  isNavAutoTempTabsDisabled:
305
305
  description: Nav automatically create temporary tabs setting
306
306
  type: boolean