@salesforce/lds-adapters-uiapi 1.136.6 → 1.136.8

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 { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
2
  import { ResourceRequestConfig as resources_getUiApiAppsByAppId_ResourceRequestConfig } from '../resources/getUiApiAppsByAppId';
3
- import { KeyParams as types_AppRepresentation_KeyParams, AppRepresentation as types_AppRepresentation_AppRepresentation } from '../types/AppRepresentation';
4
3
  import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
+ import { AppRepresentation as types_AppRepresentation_AppRepresentation } from '../types/AppRepresentation';
5
5
  export declare const adapterName = "getAppDetails";
6
6
  export declare const getAppDetails_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
7
  export interface GetAppDetailsConfig {
@@ -10,7 +10,6 @@ export interface GetAppDetailsConfig {
10
10
  userCustomizations?: boolean;
11
11
  }
12
12
  export declare function createResourceParams(config: GetAppDetailsConfig): resources_getUiApiAppsByAppId_ResourceRequestConfig;
13
- export declare function coerceKeyParam(config: adapter$45$utils_UncoercedConfiguration<types_AppRepresentation_KeyParams, any>): types_AppRepresentation_KeyParams;
14
13
  export declare function coerceConfig(config: adapter$45$utils_UncoercedConfiguration<GetAppDetailsConfig, any>): adapter$45$utils_Untrusted<GetAppDetailsConfig>;
15
14
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAppDetailsConfig): string;
16
15
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetAppDetailsConfig): $64$luvio_engine_NormalizedKeyMetadata;
@@ -28,4 +27,3 @@ export type BuildSnapshotContext = {
28
27
  export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_AppRepresentation_AppRepresentation, any>>;
29
28
  export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_AppRepresentation_AppRepresentation>): $64$luvio_engine_Snapshot<types_AppRepresentation_AppRepresentation, any>;
30
29
  export declare const getAppDetailsAdapterFactory: $64$luvio_engine_AdapterFactory<GetAppDetailsConfig, types_AppRepresentation_AppRepresentation>;
31
- export declare const notifyChangeFactory: (luvio: $64$luvio_engine_Luvio, options?: $64$luvio_engine_DispatchResourceRequestContext) => (configs: adapter$45$utils_UncoercedConfiguration<types_AppRepresentation_KeyParams, any>[]) => void;
@@ -17,4 +17,3 @@ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourcePar
17
17
  export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_AppRepresentation_AppRepresentation>): $64$luvio_engine_ErrorSnapshot;
18
18
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
19
19
  export default createResourceRequest;
20
- export declare function createResourceRequestFromRepresentation(representation: types_AppRepresentation_AppRepresentation): $64$luvio_engine_ResourceRequest;
@@ -1,11 +1,11 @@
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 = "38ee38ead5262047cfa7604e8bf72d4b";
4
+ export declare const VERSION = "1781f2d3d4e413cf0c681774d82d02cd";
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 {
8
- appId: string;
8
+ appId: string | null;
9
9
  }
10
10
  export type AppRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
11
  export type PartialAppRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
@@ -33,11 +33,11 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
33
33
  * Metadata for an app
34
34
  *
35
35
  * Keys:
36
- * appId (string): appId
36
+ * appId (string | null): appId
37
37
  */
38
38
  export interface AppRepresentationNormalized {
39
39
  /** Reference to App Definition */
40
- appId: string;
40
+ appId: string | null;
41
41
  /** Description for the app */
42
42
  description: string | null;
43
43
  /** Unique developer name of the app */
@@ -77,10 +77,10 @@ export interface AppRepresentationNormalized {
77
77
  * Metadata for an app
78
78
  *
79
79
  * Keys:
80
- * appId (string): appId
80
+ * appId (string | null): appId
81
81
  */
82
82
  export interface AppRepresentation {
83
- appId: string;
83
+ appId: string | null;
84
84
  description: string | null;
85
85
  developerName: string;
86
86
  eTag: string;
@@ -17315,7 +17315,7 @@ function getTypeCacheKeys$1d(luvio, input, fullPathFactory) {
17315
17315
  }
17316
17316
 
17317
17317
  const TTL$q = 300000;
17318
- const VERSION$1y = "38ee38ead5262047cfa7604e8bf72d4b";
17318
+ const VERSION$1y = "1781f2d3d4e413cf0c681774d82d02cd";
17319
17319
  function validate$11(obj, path = 'AppRepresentation') {
17320
17320
  const v_error = (() => {
17321
17321
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -17323,8 +17323,29 @@ function validate$11(obj, path = 'AppRepresentation') {
17323
17323
  }
17324
17324
  const obj_appId = obj.appId;
17325
17325
  const path_appId = path + '.appId';
17326
- if (typeof obj_appId !== 'string') {
17327
- return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
17326
+ let obj_appId_union0 = null;
17327
+ const obj_appId_union0_error = (() => {
17328
+ if (typeof obj_appId !== 'string') {
17329
+ return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
17330
+ }
17331
+ })();
17332
+ if (obj_appId_union0_error != null) {
17333
+ obj_appId_union0 = obj_appId_union0_error.message;
17334
+ }
17335
+ let obj_appId_union1 = null;
17336
+ const obj_appId_union1_error = (() => {
17337
+ if (obj_appId !== null) {
17338
+ return new TypeError('Expected "null" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
17339
+ }
17340
+ })();
17341
+ if (obj_appId_union1_error != null) {
17342
+ obj_appId_union1 = obj_appId_union1_error.message;
17343
+ }
17344
+ if (obj_appId_union0 && obj_appId_union1) {
17345
+ let message = 'Object doesn\'t match union (at "' + path_appId + '")';
17346
+ message += '\n' + obj_appId_union0.split('\n').map((line) => '\t' + line).join('\n');
17347
+ message += '\n' + obj_appId_union1.split('\n').map((line) => '\t' + line).join('\n');
17348
+ return new TypeError(message);
17328
17349
  }
17329
17350
  const obj_description = obj.description;
17330
17351
  const path_description = path + '.description';
@@ -17500,7 +17521,7 @@ function validate$11(obj, path = 'AppRepresentation') {
17500
17521
  }
17501
17522
  const RepresentationType$A = 'AppRepresentation';
17502
17523
  function keyBuilder$1U(luvio, config) {
17503
- return keyPrefix + '::' + RepresentationType$A + ':' + config.appId;
17524
+ return keyPrefix + '::' + RepresentationType$A + ':' + (config.appId === null ? '' : config.appId);
17504
17525
  }
17505
17526
  function keyBuilderFromType$k(luvio, object) {
17506
17527
  const keyParams = {
@@ -17648,11 +17669,6 @@ function equals$E(existing, incoming) {
17648
17669
  if (!(existing_selected === incoming_selected)) {
17649
17670
  return false;
17650
17671
  }
17651
- const existing_appId = existing.appId;
17652
- const incoming_appId = incoming.appId;
17653
- if (!(existing_appId === incoming_appId)) {
17654
- return false;
17655
- }
17656
17672
  const existing_developerName = existing.developerName;
17657
17673
  const incoming_developerName = incoming.developerName;
17658
17674
  if (!(existing_developerName === incoming_developerName)) {
@@ -17688,6 +17704,11 @@ function equals$E(existing, incoming) {
17688
17704
  if (!(existing_type === incoming_type)) {
17689
17705
  return false;
17690
17706
  }
17707
+ const existing_appId = existing.appId;
17708
+ const incoming_appId = incoming.appId;
17709
+ if (!(existing_appId === incoming_appId)) {
17710
+ return false;
17711
+ }
17691
17712
  const existing_description = existing.description;
17692
17713
  const incoming_description = incoming.description;
17693
17714
  if (!(existing_description === incoming_description)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.136.6",
3
+ "version": "1.136.8",
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.6-acf28210f
14463
+ // version: 1.136.8-449f5be71
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 = "38ee38ead5262047cfa7604e8bf72d4b";
16842
+ const VERSION$N = "1781f2d3d4e413cf0c681774d82d02cd";
16843
16843
  function validate$Z(obj, path = 'AppRepresentation') {
16844
16844
  const v_error = (() => {
16845
16845
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -16847,8 +16847,29 @@ function validate$Z(obj, path = 'AppRepresentation') {
16847
16847
  }
16848
16848
  const obj_appId = obj.appId;
16849
16849
  const path_appId = path + '.appId';
16850
- if (typeof obj_appId !== 'string') {
16851
- return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
16850
+ let obj_appId_union0 = null;
16851
+ const obj_appId_union0_error = (() => {
16852
+ if (typeof obj_appId !== 'string') {
16853
+ return new TypeError('Expected "string" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
16854
+ }
16855
+ })();
16856
+ if (obj_appId_union0_error != null) {
16857
+ obj_appId_union0 = obj_appId_union0_error.message;
16858
+ }
16859
+ let obj_appId_union1 = null;
16860
+ const obj_appId_union1_error = (() => {
16861
+ if (obj_appId !== null) {
16862
+ return new TypeError('Expected "null" but received "' + typeof obj_appId + '" (at "' + path_appId + '")');
16863
+ }
16864
+ })();
16865
+ if (obj_appId_union1_error != null) {
16866
+ obj_appId_union1 = obj_appId_union1_error.message;
16867
+ }
16868
+ if (obj_appId_union0 && obj_appId_union1) {
16869
+ let message = 'Object doesn\'t match union (at "' + path_appId + '")';
16870
+ message += '\n' + obj_appId_union0.split('\n').map((line) => '\t' + line).join('\n');
16871
+ message += '\n' + obj_appId_union1.split('\n').map((line) => '\t' + line).join('\n');
16872
+ return new TypeError(message);
16852
16873
  }
16853
16874
  const obj_description = obj.description;
16854
16875
  const path_description = path + '.description';
@@ -17024,7 +17045,7 @@ function validate$Z(obj, path = 'AppRepresentation') {
17024
17045
  }
17025
17046
  const RepresentationType$v = 'AppRepresentation';
17026
17047
  function keyBuilder$17(luvio, config) {
17027
- return keyPrefix + '::' + RepresentationType$v + ':' + config.appId;
17048
+ return keyPrefix + '::' + RepresentationType$v + ':' + (config.appId === null ? '' : config.appId);
17028
17049
  }
17029
17050
  function keyBuilderFromType$j(luvio, object) {
17030
17051
  const keyParams = {
@@ -17172,11 +17193,6 @@ function equals$A(existing, incoming) {
17172
17193
  if (!(existing_selected === incoming_selected)) {
17173
17194
  return false;
17174
17195
  }
17175
- const existing_appId = existing.appId;
17176
- const incoming_appId = incoming.appId;
17177
- if (!(existing_appId === incoming_appId)) {
17178
- return false;
17179
- }
17180
17196
  const existing_developerName = existing.developerName;
17181
17197
  const incoming_developerName = incoming.developerName;
17182
17198
  if (!(existing_developerName === incoming_developerName)) {
@@ -17212,6 +17228,11 @@ function equals$A(existing, incoming) {
17212
17228
  if (!(existing_type === incoming_type)) {
17213
17229
  return false;
17214
17230
  }
17231
+ const existing_appId = existing.appId;
17232
+ const incoming_appId = incoming.appId;
17233
+ if (!(existing_appId === incoming_appId)) {
17234
+ return false;
17235
+ }
17215
17236
  const existing_description = existing.description;
17216
17237
  const incoming_description = incoming.description;
17217
17238
  if (!(existing_description === incoming_description)) {
@@ -35539,4 +35560,4 @@ withDefaultLuvio((luvio) => {
35539
35560
  });
35540
35561
 
35541
35562
  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 };
35542
- // version: 1.136.6-acf28210f
35563
+ // version: 1.136.8-449f5be71
package/src/raml/api.raml CHANGED
@@ -279,7 +279,7 @@ types:
279
279
  properties:
280
280
  appId:
281
281
  description: Reference to App Definition
282
- type: string
282
+ type: string | nil # TODO Hand rolled
283
283
  description:
284
284
  description: Description for the app
285
285
  type: string | nil
@@ -308,8 +308,7 @@ types:
308
308
  description: Nav personalization setting
309
309
  type: boolean
310
310
  isNavTabPersistenceDisabled:
311
- description: Indicates if the Lightning Console App should persist a user's
312
- workspace tabs
311
+ description: Indicates if the Lightning Console App should persist a user's workspace tabs
313
312
  type: boolean
314
313
  label:
315
314
  description: Label of the app