@salesforce/lds-adapters-uiapi 1.211.0 → 1.212.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-uiapi",
3
- "version": "1.211.0",
3
+ "version": "1.212.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",
@@ -17298,4 +17298,4 @@ register({
17298
17298
  });
17299
17299
 
17300
17300
  export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
17301
- // version: 1.211.0-ba06d67e8
17301
+ // version: 1.212.0-fc1e87085
package/sfdc/index.js CHANGED
@@ -35372,4 +35372,4 @@ withDefaultLuvio((luvio) => {
35372
35372
  });
35373
35373
 
35374
35374
  export { InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$J as ObjectInfoRepresentationType, RepresentationType$O as RecordRepresentationRepresentationType, TTL$w as RecordRepresentationTTL, RepresentationType$O as RecordRepresentationType, VERSION$17 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, getListObjectInfo, getListObjectInfo_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, getRecordsAdapterFactory, 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$Q as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$C as ingestObjectInfo, ingest$y as ingestQuickActionExecutionRepresentation, ingest$H as ingestRecord, instrument, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$y as keyBuilderFromTypeRecordRepresentation, keyBuilder$1J as keyBuilderObjectInfo, keyBuilder$1D as keyBuilderQuickActionExecutionRepresentation, keyBuilder$1U as keyBuilderRecord, notifyListViewSummaryUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, updateLayoutUserState, updateListInfoByName, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
35375
- // version: 1.211.0-ba06d67e8
35375
+ // version: 1.212.0-fc1e87085
@@ -22,6 +22,7 @@ scalar Time
22
22
  scalar Int
23
23
  scalar Percent
24
24
  scalar LongTextArea
25
+ scalar IdOrRef
25
26
  scalar Date
26
27
  type PercentAggregate implements FieldValue {
27
28
  value: Percent
@@ -83,6 +84,10 @@ type DateOnlyAggregation {
83
84
  format: String
84
85
  }
85
86
 
87
+ type RecordCreatePayload @generic {
88
+ Record: RecordRepresentation
89
+ }
90
+
86
91
  type DateAggregate implements FieldValue {
87
92
  value: Date
88
93
  displayValue: String
@@ -309,6 +314,9 @@ type EmailAggregate implements FieldValue {
309
314
  min: EmailValue
310
315
  }
311
316
 
317
+ #enum OrderByType {
318
+ #}
319
+
312
320
  input GroupByDateFunction {
313
321
  function: GroupByFunction
314
322
  }
@@ -379,6 +387,15 @@ input DistanceInput {
379
387
 
380
388
  union PolymorphicParentRelationship @generic = RecordRepresentation
381
389
 
390
+ enum AggregateOrderByNumberFunction {
391
+ AVG
392
+ COUNT
393
+ COUNT_DISTINCT
394
+ MAX
395
+ MIN
396
+ SUM
397
+ }
398
+
382
399
  type LongTextAreaValue implements FieldValue {
383
400
  value: LongTextArea
384
401
  displayValue: String
@@ -394,6 +411,16 @@ input OrderByClause {
394
411
  nulls: NullOrder
395
412
  }
396
413
 
414
+ input AggregateOrderBy @generic {
415
+ orderableNumberField: AggregateOrderByNumberClause @fieldCategory
416
+ orderableStringField: AggregateOrderByStringClause @fieldCategory
417
+ orderableField: NoFunctionAggregateOrderByClause @fieldCategory
418
+ orderableGeolocationField: OrderByGeolocationClause @fieldCategory
419
+ orderableParentRelationship: AggregateOrderBy @fieldCategory
420
+ orderablePolymorphicParentRelationship: PolymorphicParentRelationshipOrderBy @fieldCategory
421
+ type: String = ORDER_BY
422
+ }
423
+
397
424
  input GroupByClause {
398
425
  group: Boolean
399
426
  }
@@ -564,6 +591,10 @@ type TextAreaValue implements FieldValue {
564
591
  displayValue: String
565
592
  }
566
593
 
594
+ type RecordUpdatePayload @generic {
595
+ success: Boolean
596
+ }
597
+
567
598
  input PercentOperators {
568
599
  eq: Percent
569
600
  ne: Percent
@@ -610,11 +641,25 @@ type __Directive {
610
641
  args: [__InputValue!]!
611
642
  }
612
643
 
644
+ input RecordCreateInput @generic {
645
+ record: RecordCreateRepresentation! @fieldCategory
646
+ }
647
+
613
648
  type ThemeInfo {
614
649
  color: String
615
650
  iconUrl: String
616
651
  }
617
652
 
653
+ input AggregateOrderByStringClause {
654
+ function: AggregateOrderByStringFunction
655
+ order: ResultsOrder
656
+ nulls: NullsOrder
657
+ }
658
+
659
+ type RecordDeletePayload {
660
+ Id: ID
661
+ }
662
+
618
663
  type UrlAggregate implements FieldValue {
619
664
  value: Url
620
665
  displayValue: String
@@ -626,29 +671,29 @@ type UrlAggregate implements FieldValue {
626
671
  }
627
672
 
628
673
  enum DateLiteral {
629
- THIS_WEEK
630
- THIS_FISCAL_QUARTER
631
- NEXT_YEAR
632
674
  TODAY
633
- LAST_WEEK
675
+ LAST_90_DAYS
634
676
  LAST_YEAR
635
- YESTERDAY
636
- NEXT_MONTH
637
- NEXT_FISCAL_YEAR
638
- NEXT_WEEK
677
+ NEXT_YEAR
678
+ TOMORROW
679
+ NEXT_QUARTER
680
+ LAST_WEEK
639
681
  NEXT_90_DAYS
640
- LAST_FISCAL_QUARTER
641
- LAST_FISCAL_YEAR
642
682
  THIS_YEAR
683
+ LAST_FISCAL_QUARTER
684
+ LAST_QUARTER
685
+ THIS_FISCAL_YEAR
643
686
  THIS_MONTH
687
+ THIS_FISCAL_QUARTER
644
688
  THIS_QUARTER
645
- LAST_90_DAYS
646
689
  NEXT_FISCAL_QUARTER
647
- THIS_FISCAL_YEAR
648
- TOMORROW
649
- NEXT_QUARTER
690
+ NEXT_FISCAL_YEAR
691
+ LAST_FISCAL_YEAR
692
+ NEXT_WEEK
693
+ YESTERDAY
694
+ THIS_WEEK
695
+ NEXT_MONTH
650
696
  LAST_MONTH
651
- LAST_QUARTER
652
697
  }
653
698
 
654
699
  type __EnumValue {
@@ -693,7 +738,8 @@ type RecordRepresentation implements Record @generic{
693
738
  JSONValue: JSONValue @fieldCategory
694
739
  parentRelationship: RecordRepresentation @fieldCategory
695
740
  polymorphicParentRelationship: PolymorphicParentRelationship @fieldCategory
696
- childRelationship(first: Int, after: String, where: RecordFilter, orderBy: RecordOrderBy): RecordConnection @fieldCategory
741
+ childRelationship(first: Int, after: String, where: RecordFilter, orderBy: RecordOrderBy, upperBound: Int): RecordConnection @fieldCategory
742
+ CompoundField: CompoundField @fieldCategory
697
743
  }
698
744
 
699
745
  type IDValue implements FieldValue {
@@ -706,12 +752,21 @@ enum Unit {
706
752
  KM
707
753
  }
708
754
 
755
+ input PolymorphicParentRelationshipOrderBy @generic {
756
+ AggregateOrderBy: AggregateOrderBy @fieldCategory
757
+ }
758
+
709
759
  input OrderByGeolocationClause {
710
760
  distance: DistanceInput
711
761
  order: ResultOrder
712
762
  nulls: NullOrder
713
763
  }
714
764
 
765
+ enum NullsOrder {
766
+ FIRST
767
+ LAST
768
+ }
769
+
715
770
  type TextAreaAggregate implements FieldValue {
716
771
  value: TextArea
717
772
  displayValue: String
@@ -729,8 +784,8 @@ enum GroupByType {
729
784
  }
730
785
 
731
786
  enum ResultOrder {
732
- DESC
733
787
  ASC
788
+ DESC
734
789
  }
735
790
 
736
791
  input RecordOrderBy @generic {
@@ -745,6 +800,16 @@ input PicklistOperators {
745
800
  ne: Picklist
746
801
  in: [Picklist]
747
802
  nin: [Picklist]
803
+ like: Picklist
804
+ lt: Picklist
805
+ gt: Picklist
806
+ lte: Picklist
807
+ gte: Picklist
808
+ }
809
+
810
+ enum ResultsOrder {
811
+ ASC
812
+ DESC
748
813
  }
749
814
 
750
815
  input RecordFilter @generic {
@@ -809,12 +874,43 @@ input LatitudeOperators {
809
874
  nin: [Latitude]
810
875
  }
811
876
 
877
+ input RecordUpdateRepresentation @generic {
878
+ Int: Int @fieldCategory
879
+ String: String @fieldCategory
880
+ Boolean: Boolean @fieldCategory
881
+ ID: IdOrRef @fieldCategory
882
+ DateTime: DateTime @fieldCategory
883
+ Time: Time @fieldCategory
884
+ Date: Date @fieldCategory
885
+ TextArea: TextArea @fieldCategory
886
+ LongTextArea: LongTextArea @fieldCategory
887
+ RichTextArea: RichTextArea @fieldCategory
888
+ PhoneNumber: PhoneNumber @fieldCategory
889
+ Email: Email @fieldCategory
890
+ Url: Url @fieldCategory
891
+ EncryptedString: EncryptedString @fieldCategory
892
+ Currency: Currency @fieldCategory
893
+ Longitude: Longitude @fieldCategory
894
+ Latitude: Latitude @fieldCategory
895
+ Picklist: Picklist @fieldCategory
896
+ MultiPicklist: MultiPicklist @fieldCategory
897
+ Long: Long @fieldCategory
898
+ Double: Double @fieldCategory
899
+ Percent: Percent @fieldCategory
900
+ Base64: Base64 @fieldCategory
901
+ JSON: JSON @fieldCategory
902
+ }
903
+
812
904
  type DateTimeValue implements FieldValue {
813
905
  value: DateTime
814
906
  displayValue: String
815
907
  format: String
816
908
  }
817
909
 
910
+ input RecordDeleteInput {
911
+ Id: IdOrRef!
912
+ }
913
+
818
914
  enum __DirectiveLocation {
819
915
  QUERY
820
916
  MUTATION
@@ -884,6 +980,13 @@ type EmailValue implements FieldValue {
884
980
  displayValue: String
885
981
  }
886
982
 
983
+ enum AggregateOrderByStringFunction {
984
+ COUNT
985
+ COUNT_DISTINCT
986
+ MAX
987
+ MIN
988
+ }
989
+
887
990
  type LongValue implements FieldValue {
888
991
  value: Long
889
992
  displayValue: String
@@ -895,6 +998,11 @@ input DateFunctionInput {
895
998
  convertTimezoneValue: LongOperators
896
999
  }
897
1000
 
1001
+ # Mutations aren't supported yet.
1002
+ #type Mutation {
1003
+ # uiapi: UIAPIMutations!
1004
+ #}
1005
+
898
1006
  type DependentField {
899
1007
  controllingField: String!
900
1008
  dependentFields: [String]!
@@ -953,6 +1061,11 @@ input DateTimeOperators {
953
1061
  HOUR_IN_DAY: DateFunctionInput
954
1062
  }
955
1063
 
1064
+ input NoFunctionAggregateOrderByClause {
1065
+ order: ResultsOrder
1066
+ nulls: NullsOrder
1067
+ }
1068
+
956
1069
  type BooleanAggregate implements FieldValue {
957
1070
  value: Boolean
958
1071
  displayValue: String
@@ -960,7 +1073,8 @@ type BooleanAggregate implements FieldValue {
960
1073
  }
961
1074
 
962
1075
  type RecordQueryAggregate {
963
- recordQueryAggregate(first: Int, after: String, where: RecordFilter, orderBy: RecordOrderBy, scope: String, groupBy: RecordGroupBy): RecordAggregateConnection @fieldCategory
1076
+ # RecordScope is replaced with String
1077
+ recordQueryAggregate(first: Int, after: String, where: RecordFilter, orderBy: AggregateOrderBy, scope: String, groupBy: RecordGroupBy, upperBound: Int): RecordAggregateConnection @fieldCategory
964
1078
  }
965
1079
 
966
1080
  type RecordConnection @generic {
@@ -1021,6 +1135,33 @@ input LongitudeOperators {
1021
1135
  nin: [Longitude]
1022
1136
  }
1023
1137
 
1138
+ input RecordCreateRepresentation @generic {
1139
+ Int: Int @fieldCategory
1140
+ String: String @fieldCategory
1141
+ Boolean: Boolean @fieldCategory
1142
+ ID: IdOrRef @fieldCategory
1143
+ DateTime: DateTime @fieldCategory
1144
+ Time: Time @fieldCategory
1145
+ Date: Date @fieldCategory
1146
+ TextArea: TextArea @fieldCategory
1147
+ LongTextArea: LongTextArea @fieldCategory
1148
+ RichTextArea: RichTextArea @fieldCategory
1149
+ PhoneNumber: PhoneNumber @fieldCategory
1150
+ Email: Email @fieldCategory
1151
+ Url: Url @fieldCategory
1152
+ EncryptedString: EncryptedString @fieldCategory
1153
+ Currency: Currency @fieldCategory
1154
+ Longitude: Longitude @fieldCategory
1155
+ Latitude: Latitude @fieldCategory
1156
+ Picklist: Picklist @fieldCategory
1157
+ MultiPicklist: MultiPicklist @fieldCategory
1158
+ Long: Long @fieldCategory
1159
+ Double: Double @fieldCategory
1160
+ Percent: Percent @fieldCategory
1161
+ Base64: Base64 @fieldCategory
1162
+ JSON: JSON @fieldCategory
1163
+ }
1164
+
1024
1165
  type Field {
1025
1166
  ApiName: String!
1026
1167
  calculated: Boolean!
@@ -1094,6 +1235,12 @@ input DateRange {
1094
1235
  n_fiscal_years_ago: Int
1095
1236
  }
1096
1237
 
1238
+ type UIAPIMutations {
1239
+ recordCreate(input: RecordCreateInput!): RecordCreatePayload @fieldCategory
1240
+ recordDelete(input: RecordDeleteInput!): RecordDeletePayload @fieldCategory
1241
+ recordUpdate(input: RecordUpdateInput!): RecordUpdatePayload @fieldCategory
1242
+ }
1243
+
1097
1244
  input DateTimeFunctionInput {
1098
1245
  value: DateTimePrimitiveOperators
1099
1246
  convertTimezoneValue: DateTimePrimitiveOperators
@@ -1135,6 +1282,12 @@ input PolymorphicParentRelationshipRecordFilter @generic {
1135
1282
  RecordFilter: RecordFilter @fieldCategory
1136
1283
  }
1137
1284
 
1285
+ input AggregateOrderByNumberClause {
1286
+ function: AggregateOrderByNumberFunction
1287
+ order: ResultsOrder
1288
+ nulls: NullsOrder
1289
+ }
1290
+
1138
1291
  type __Schema {
1139
1292
  types: [__Type!]!
1140
1293
  queryType: __Type!
@@ -1143,6 +1296,38 @@ type __Schema {
1143
1296
  subscriptionType: __Type
1144
1297
  }
1145
1298
 
1299
+ type CompoundField @generic {
1300
+ IntValue: IntValue @fieldCategory
1301
+ StringValue: StringValue @fieldCategory
1302
+ BooleanValue: BooleanValue @fieldCategory
1303
+ IDValue: IDValue @fieldCategory
1304
+ DateTimeValue: DateTimeValue @fieldCategory
1305
+ TimeValue: TimeValue @fieldCategory
1306
+ DateValue: DateValue @fieldCategory
1307
+ TextAreaValue: TextAreaValue @fieldCategory
1308
+ LongTextAreaValue: LongTextAreaValue @fieldCategory
1309
+ RichTextAreaValue: RichTextAreaValue @fieldCategory
1310
+ PhoneNumberValue: PhoneNumberValue @fieldCategory
1311
+ EmailValue: EmailValue @fieldCategory
1312
+ UrlValue: UrlValue @fieldCategory
1313
+ EncryptedStringValue: EncryptedStringValue @fieldCategory
1314
+ CurrencyValue: CurrencyValue @fieldCategory
1315
+ LongitudeValue: LongitudeValue @fieldCategory
1316
+ LatitudeValue: LatitudeValue @fieldCategory
1317
+ PicklistValue: PicklistValue @fieldCategory
1318
+ MultiPicklistValue: MultiPicklistValue @fieldCategory
1319
+ LongValue: LongValue @fieldCategory
1320
+ DoubleValue: DoubleValue @fieldCategory
1321
+ PercentValue: PercentValue @fieldCategory
1322
+ Base64Value: Base64Value @fieldCategory
1323
+ JSONValue: JSONValue @fieldCategory
1324
+ }
1325
+
1326
+ input RecordUpdateInput @generic {
1327
+ Id: IdOrRef!
1328
+ record: RecordUpdateRepresentation! @fieldCategory
1329
+ }
1330
+
1146
1331
  input DateTimeInput {
1147
1332
  value: DateTime
1148
1333
  literal: DateLiteral
@@ -1206,17 +1391,10 @@ type DateFunctionAggregation {
1206
1391
  }
1207
1392
 
1208
1393
  type RecordQuery {
1209
- # scope should be type RecordScope but it cannot currently be used
1210
- recordQuery(first: Int, after: String, where: RecordFilter, orderBy: RecordOrderBy, scope: String): RecordConnection @fieldCategory
1394
+ # scope should be type RecordScope but it cannot currently be used
1395
+ recordQuery(first: Int, after: String, where: RecordFilter, orderBy: RecordOrderBy, scope: String, upperBound: Int): RecordConnection @fieldCategory
1211
1396
  }
1212
1397
 
1213
1398
  directive @generic on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT
1214
1399
  directive @fieldCategory on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
1215
- directive @category on FIELD
1216
-
1217
-
1218
-
1219
-
1220
-
1221
-
1222
-
1400
+ directive @category on FIELD