@salesforce/lds-adapters-uiapi 1.464.0 → 1.466.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,5 +1,5 @@
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 = "3f49d751896cf66e6e29788d8880e2cc";
2
+ export declare const VERSION = "c42f4294edf6efc71f5ff9b9adf922e8";
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 {
@@ -47,6 +47,8 @@ export interface PlatformActionRepresentationNormalized {
47
47
  label: string;
48
48
  /** LWC Component associated with the action */
49
49
  lwcComponent: string | null;
50
+ /** Modal size override for Flow quick actions. */
51
+ modalSize?: string | null;
50
52
  /** Hex Color Code, such as 7F8DE1 */
51
53
  primaryColor: string | null;
52
54
  /** Represents the ID of a record in an object’s related list. */
@@ -85,6 +87,7 @@ export interface PlatformActionRepresentation {
85
87
  isMassAction: string;
86
88
  label: string;
87
89
  lwcComponent: string | null;
90
+ modalSize?: string | null;
88
91
  primaryColor: string | null;
89
92
  relatedListRecordId: string | null;
90
93
  relatedSourceObject: string | null;
@@ -7,6 +7,6 @@ declare let graphql_imperative_deprecated: any;
7
7
  declare let graphql_imperative_onestore: any;
8
8
  declare let graphqlBatch_imperative: any;
9
9
  declare let graphql_state_manager: any;
10
- declare let refreshGraphQL: (data: any) => any;
11
- declare let refreshGraphQL_deprecated: (data: any) => any;
10
+ declare const refreshGraphQL: (data: any) => any;
11
+ declare const refreshGraphQL_deprecated: (data: any) => any;
12
12
  export { graphql, graphqlBatch, graphql_imperative, graphqlBatch_imperative, refreshGraphQL, refreshGraphQL_deprecated, graphql_deprecated, graphql_imperative_deprecated, graphql_onestore, graphql_imperative_onestore, graphql_state_manager, };
@@ -13132,7 +13132,7 @@ function coerceFormFactor(form) {
13132
13132
  return undefined;
13133
13133
  }
13134
13134
 
13135
- const VERSION$2N = "3f49d751896cf66e6e29788d8880e2cc";
13135
+ const VERSION$2N = "c42f4294edf6efc71f5ff9b9adf922e8";
13136
13136
  function validate$1A(obj, path = 'PlatformActionRepresentation') {
13137
13137
  const v_error = (() => {
13138
13138
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -13272,6 +13272,34 @@ function validate$1A(obj, path = 'PlatformActionRepresentation') {
13272
13272
  message += '\n' + obj_lwcComponent_union1.split('\n').map((line) => '\t' + line).join('\n');
13273
13273
  return new TypeError(message);
13274
13274
  }
13275
+ if (obj.modalSize !== undefined) {
13276
+ const obj_modalSize = obj.modalSize;
13277
+ const path_modalSize = path + '.modalSize';
13278
+ let obj_modalSize_union0 = null;
13279
+ const obj_modalSize_union0_error = (() => {
13280
+ if (typeof obj_modalSize !== 'string') {
13281
+ return new TypeError('Expected "string" but received "' + typeof obj_modalSize + '" (at "' + path_modalSize + '")');
13282
+ }
13283
+ })();
13284
+ if (obj_modalSize_union0_error != null) {
13285
+ obj_modalSize_union0 = obj_modalSize_union0_error.message;
13286
+ }
13287
+ let obj_modalSize_union1 = null;
13288
+ const obj_modalSize_union1_error = (() => {
13289
+ if (obj_modalSize !== null) {
13290
+ return new TypeError('Expected "null" but received "' + typeof obj_modalSize + '" (at "' + path_modalSize + '")');
13291
+ }
13292
+ })();
13293
+ if (obj_modalSize_union1_error != null) {
13294
+ obj_modalSize_union1 = obj_modalSize_union1_error.message;
13295
+ }
13296
+ if (obj_modalSize_union0 && obj_modalSize_union1) {
13297
+ let message = 'Object doesn\'t match union (at "' + path_modalSize + '")';
13298
+ message += '\n' + obj_modalSize_union0.split('\n').map((line) => '\t' + line).join('\n');
13299
+ message += '\n' + obj_modalSize_union1.split('\n').map((line) => '\t' + line).join('\n');
13300
+ return new TypeError(message);
13301
+ }
13302
+ }
13275
13303
  const obj_primaryColor = obj.primaryColor;
13276
13304
  const path_primaryColor = path + '.primaryColor';
13277
13305
  let obj_primaryColor_union0 = null;
@@ -13526,6 +13554,11 @@ const select$3q = function PlatformActionRepresentationSelect() {
13526
13554
  name: 'lwcComponent',
13527
13555
  kind: 'Scalar'
13528
13556
  },
13557
+ {
13558
+ name: 'modalSize',
13559
+ kind: 'Scalar',
13560
+ required: false
13561
+ },
13529
13562
  {
13530
13563
  name: 'primaryColor',
13531
13564
  kind: 'Scalar'
@@ -13626,6 +13659,19 @@ function equals$W(existing, incoming) {
13626
13659
  if (!(existing_lwcComponent === incoming_lwcComponent)) {
13627
13660
  return false;
13628
13661
  }
13662
+ const existing_modalSize = existing.modalSize;
13663
+ const incoming_modalSize = incoming.modalSize;
13664
+ // if at least one of these optionals is defined
13665
+ if (existing_modalSize !== undefined || incoming_modalSize !== undefined) {
13666
+ // if one of these is not defined we know the other is defined and therefore
13667
+ // not equal
13668
+ if (existing_modalSize === undefined || incoming_modalSize === undefined) {
13669
+ return false;
13670
+ }
13671
+ if (!(existing_modalSize === incoming_modalSize)) {
13672
+ return false;
13673
+ }
13674
+ }
13629
13675
  const existing_primaryColor = existing.primaryColor;
13630
13676
  const incoming_primaryColor = incoming.primaryColor;
13631
13677
  if (!(existing_primaryColor === incoming_primaryColor)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.464.0",
3
+ "version": "1.466.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapters for record related UI API endpoints",
6
6
  "type": "module",
@@ -63,14 +63,14 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "@luvio/graphql-parser": "0.161.2",
66
- "@salesforce/lds-bindings": "^1.464.0",
67
- "@salesforce/lds-default-luvio": "^1.464.0"
66
+ "@salesforce/lds-bindings": "^1.466.0",
67
+ "@salesforce/lds-default-luvio": "^1.466.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@salesforce/lds-adapters-onestore-graphql": "^1.464.0",
71
- "@salesforce/lds-compiler-plugins": "^1.464.0",
72
- "@salesforce/lds-jest": "^1.464.0",
73
- "@salesforce/lds-store-binary": "^1.464.0"
70
+ "@salesforce/lds-adapters-onestore-graphql": "^1.466.0",
71
+ "@salesforce/lds-compiler-plugins": "^1.466.0",
72
+ "@salesforce/lds-jest": "^1.466.0",
73
+ "@salesforce/lds-store-binary": "^1.466.0"
74
74
  },
75
75
  "luvioBundlesize": [
76
76
  {
@@ -28287,10 +28287,10 @@ let graphql_imperative_deprecated;
28287
28287
  let graphql_imperative_onestore;
28288
28288
  let graphqlBatch_imperative;
28289
28289
  let graphql_state_manager;
28290
- let refreshGraphQL = (data) => {
28290
+ const refreshGraphQL = (data) => {
28291
28291
  return refresh(data, 'refreshUiApi');
28292
28292
  };
28293
- let refreshGraphQL_deprecated = refreshGraphQL;
28293
+ const refreshGraphQL_deprecated = refreshGraphQL;
28294
28294
  // Adapter Metadata
28295
28295
  const graphqlMetadata = { apiFamily: keyPrefix, name: 'graphql', ttl: 900000 };
28296
28296
  const graphqlBatchMetadata = { apiFamily: keyPrefix, name: 'graphqlBatch' };
@@ -28314,21 +28314,7 @@ withDefaultLuvio((luvio) => {
28314
28314
  graphql_imperative_deprecated = graphql_imperative;
28315
28315
  // We register the callback here rather than above withDefaultLuvio because we want environments
28316
28316
  // that don't have onestore bootstrapped with the required services to default to the luvio versions of the adapters
28317
- registerCallback((oneStoreGraphql, oneStoreGraphql_imperative, oneStoreGraphql_imperative_legacy, oneStoreGraphql_state_manager, useOneStoreGraphQL) => {
28318
- if (useOneStoreGraphQL) {
28319
- graphql = oneStoreGraphql;
28320
- graphql_imperative = oneStoreGraphql_imperative_legacy;
28321
- refreshGraphQL = (data) => {
28322
- if (data?.data === undefined && data?.errors === undefined) {
28323
- return Promise.resolve();
28324
- }
28325
- if (typeof data?.refresh === 'function') {
28326
- return data.refresh();
28327
- }
28328
- // eslint-disable-next-line @salesforce/lds/no-error-in-production
28329
- throw new Error('Component attempted to refresh a GraphQL result that is not refreshable');
28330
- };
28331
- }
28317
+ registerCallback((oneStoreGraphql, oneStoreGraphql_imperative, _oneStoreGraphql_imperative_legacy, oneStoreGraphql_state_manager) => {
28332
28318
  graphql_onestore = oneStoreGraphql;
28333
28319
  graphql_imperative_onestore = oneStoreGraphql_imperative;
28334
28320
  graphql_state_manager = oneStoreGraphql_state_manager;
@@ -28845,4 +28831,4 @@ register({
28845
28831
  });
28846
28832
 
28847
28833
  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 };
28848
- // version: 1.464.0-b35c0e7723
28834
+ // version: 1.466.0-ba624febc8
package/sfdc/index.js CHANGED
@@ -12743,7 +12743,7 @@ function coerceFormFactor(form) {
12743
12743
  return undefined;
12744
12744
  }
12745
12745
 
12746
- const VERSION$10 = "3f49d751896cf66e6e29788d8880e2cc";
12746
+ const VERSION$10 = "c42f4294edf6efc71f5ff9b9adf922e8";
12747
12747
  function validate$1w(obj, path = 'PlatformActionRepresentation') {
12748
12748
  const v_error = (() => {
12749
12749
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -12883,6 +12883,34 @@ function validate$1w(obj, path = 'PlatformActionRepresentation') {
12883
12883
  message += '\n' + obj_lwcComponent_union1.split('\n').map((line) => '\t' + line).join('\n');
12884
12884
  return new TypeError(message);
12885
12885
  }
12886
+ if (obj.modalSize !== undefined) {
12887
+ const obj_modalSize = obj.modalSize;
12888
+ const path_modalSize = path + '.modalSize';
12889
+ let obj_modalSize_union0 = null;
12890
+ const obj_modalSize_union0_error = (() => {
12891
+ if (typeof obj_modalSize !== 'string') {
12892
+ return new TypeError('Expected "string" but received "' + typeof obj_modalSize + '" (at "' + path_modalSize + '")');
12893
+ }
12894
+ })();
12895
+ if (obj_modalSize_union0_error != null) {
12896
+ obj_modalSize_union0 = obj_modalSize_union0_error.message;
12897
+ }
12898
+ let obj_modalSize_union1 = null;
12899
+ const obj_modalSize_union1_error = (() => {
12900
+ if (obj_modalSize !== null) {
12901
+ return new TypeError('Expected "null" but received "' + typeof obj_modalSize + '" (at "' + path_modalSize + '")');
12902
+ }
12903
+ })();
12904
+ if (obj_modalSize_union1_error != null) {
12905
+ obj_modalSize_union1 = obj_modalSize_union1_error.message;
12906
+ }
12907
+ if (obj_modalSize_union0 && obj_modalSize_union1) {
12908
+ let message = 'Object doesn\'t match union (at "' + path_modalSize + '")';
12909
+ message += '\n' + obj_modalSize_union0.split('\n').map((line) => '\t' + line).join('\n');
12910
+ message += '\n' + obj_modalSize_union1.split('\n').map((line) => '\t' + line).join('\n');
12911
+ return new TypeError(message);
12912
+ }
12913
+ }
12886
12914
  const obj_primaryColor = obj.primaryColor;
12887
12915
  const path_primaryColor = path + '.primaryColor';
12888
12916
  let obj_primaryColor_union0 = null;
@@ -13137,6 +13165,11 @@ const select$1G = function PlatformActionRepresentationSelect() {
13137
13165
  name: 'lwcComponent',
13138
13166
  kind: 'Scalar'
13139
13167
  },
13168
+ {
13169
+ name: 'modalSize',
13170
+ kind: 'Scalar',
13171
+ required: false
13172
+ },
13140
13173
  {
13141
13174
  name: 'primaryColor',
13142
13175
  kind: 'Scalar'
@@ -13237,6 +13270,19 @@ function equals$S(existing, incoming) {
13237
13270
  if (!(existing_lwcComponent === incoming_lwcComponent)) {
13238
13271
  return false;
13239
13272
  }
13273
+ const existing_modalSize = existing.modalSize;
13274
+ const incoming_modalSize = incoming.modalSize;
13275
+ // if at least one of these optionals is defined
13276
+ if (existing_modalSize !== undefined || incoming_modalSize !== undefined) {
13277
+ // if one of these is not defined we know the other is defined and therefore
13278
+ // not equal
13279
+ if (existing_modalSize === undefined || incoming_modalSize === undefined) {
13280
+ return false;
13281
+ }
13282
+ if (!(existing_modalSize === incoming_modalSize)) {
13283
+ return false;
13284
+ }
13285
+ }
13240
13286
  const existing_primaryColor = existing.primaryColor;
13241
13287
  const incoming_primaryColor = incoming.primaryColor;
13242
13288
  if (!(existing_primaryColor === incoming_primaryColor)) {
@@ -37522,4 +37568,4 @@ withDefaultLuvio((luvio) => {
37522
37568
  });
37523
37569
 
37524
37570
  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, 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, 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 };
37525
- // version: 1.464.0-b35c0e7723
37571
+ // version: 1.466.0-ba624febc8
package/src/raml/api.raml CHANGED
@@ -3045,6 +3045,10 @@ types:
3045
3045
  lwcComponent:
3046
3046
  description: LWC Component associated with the action
3047
3047
  type: string | nil
3048
+ modalSize:
3049
+ description: Modal size override for Flow quick actions.
3050
+ type: string | nil
3051
+ required: false
3048
3052
  primaryColor:
3049
3053
  description: Hex Color Code, such as 7F8DE1
3050
3054
  type: string | nil