@salesforce/lds-adapters-uiapi 1.245.0 → 1.247.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/dist/es/es2018/types/src/generated/adapters/deleteListInfo.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getListPreferences.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getListRecordsByName.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getObjectInfoDirectory.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc_restAdapters.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/graphql/types/DateLiteral.d.ts +16 -16
- package/dist/es/es2018/types/src/generated/graphql/types/NullOrder.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/graphql/types/ObjectInfo.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/graphql/types/Query.d.ts +1 -3
- package/dist/es/es2018/types/src/generated/resources/deleteUiApiListInfoByListViewApiNameAndObjectApiName.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/getUiApiListPreferencesByListViewApiNameAndObjectApiName.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getUiApiListRecordsByListViewApiNameAndObjectApiName.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getUiApiListRecordsByListViewId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/ListPreferencesRepresentation.d.ts +59 -0
- package/dist/es/es2018/types/src/generated/types/ListRecordCollectionRepresentation.d.ts +13 -7
- package/dist/es/es2018/types/src/generated/types/ObjectInfoDirectoryEntryRepresentation.d.ts +13 -4
- package/dist/es/es2018/types/src/generated/types/ObjectInfoDirectoryRepresentation.d.ts +12 -3
- package/dist/es/es2018/types/src/main.d.ts +6 -0
- package/dist/es/es2018/types/src/predictive-loading/index.d.ts +1 -0
- package/dist/es/es2018/types/src/predictive-loading/registry.d.ts +7 -0
- package/dist/es/es2018/types/src/sfdc_rest.d.ts +2 -1
- package/dist/es/es2018/uiapi-records-service.js +5932 -5187
- package/package.json +14 -10
- package/sfdc/graphqlAdapters.js +2303 -2449
- package/sfdc/index.js +3030 -2128
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +57 -0
- package/src/raml/luvio.raml +48 -0
- package/src/raml/uiapi.graphql +40 -36
|
@@ -95,7 +95,7 @@ var TypeCheckShapes;
|
|
|
95
95
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
96
96
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
97
97
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
98
|
-
// engine version: 0.
|
|
98
|
+
// engine version: 0.151.0-f29c1c57
|
|
99
99
|
|
|
100
100
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
101
101
|
|
package/src/raml/api.raml
CHANGED
|
@@ -1686,6 +1686,30 @@ types:
|
|
|
1686
1686
|
isAscending:
|
|
1687
1687
|
description: Boolean describing if the orderBy should be ascending.
|
|
1688
1688
|
type: boolean
|
|
1689
|
+
ListPreferencesRepresentation:
|
|
1690
|
+
description: ListPreferencesRepresentation
|
|
1691
|
+
type: object
|
|
1692
|
+
properties:
|
|
1693
|
+
columnWidths:
|
|
1694
|
+
description: Column width preferences for the list.
|
|
1695
|
+
type: object
|
|
1696
|
+
properties:
|
|
1697
|
+
//:
|
|
1698
|
+
type: integer
|
|
1699
|
+
columnWrap:
|
|
1700
|
+
description: Column wrapping preferences for the list.
|
|
1701
|
+
type: object
|
|
1702
|
+
properties:
|
|
1703
|
+
//:
|
|
1704
|
+
type: boolean
|
|
1705
|
+
listReference:
|
|
1706
|
+
description: Reference information for the list.
|
|
1707
|
+
type: ListReferenceRepresentation
|
|
1708
|
+
orderedBy:
|
|
1709
|
+
description: Ordering preference for the list.
|
|
1710
|
+
type: array
|
|
1711
|
+
items:
|
|
1712
|
+
type: ListOrderByInfoRepresentation
|
|
1689
1713
|
ListRecordCollectionRepresentation:
|
|
1690
1714
|
description: ListRecordCollectionRepresentation
|
|
1691
1715
|
type: object
|
|
@@ -1736,6 +1760,9 @@ types:
|
|
|
1736
1760
|
type: array
|
|
1737
1761
|
items:
|
|
1738
1762
|
type: RecordRepresentation
|
|
1763
|
+
searchTerm:
|
|
1764
|
+
description: The searchTerm field requested when these records were fetched.
|
|
1765
|
+
type: string | nil
|
|
1739
1766
|
sortBy:
|
|
1740
1767
|
description: The sortBy field requested when these records were fetched.
|
|
1741
1768
|
type: string[] | nil # TODO: hand rolled
|
|
@@ -5803,6 +5830,12 @@ types:
|
|
|
5803
5830
|
body:
|
|
5804
5831
|
application/json:
|
|
5805
5832
|
type: ListInfoRepresentation
|
|
5833
|
+
delete:
|
|
5834
|
+
displayName: deleteListInfo
|
|
5835
|
+
description: Delete a listview.
|
|
5836
|
+
responses:
|
|
5837
|
+
'200':
|
|
5838
|
+
description: Success
|
|
5806
5839
|
patch:
|
|
5807
5840
|
displayName: patchListInfo
|
|
5808
5841
|
description: Update list info
|
|
@@ -5839,6 +5872,24 @@ types:
|
|
|
5839
5872
|
objectApiName:
|
|
5840
5873
|
type: string
|
|
5841
5874
|
required: true
|
|
5875
|
+
/list-preferences:
|
|
5876
|
+
/{objectApiName}/{listViewApiName}:
|
|
5877
|
+
get:
|
|
5878
|
+
displayName: getListPreferences
|
|
5879
|
+
description: Retrieve list preferences
|
|
5880
|
+
responses:
|
|
5881
|
+
'200':
|
|
5882
|
+
description: Success
|
|
5883
|
+
body:
|
|
5884
|
+
application/json:
|
|
5885
|
+
type: ListPreferencesRepresentation
|
|
5886
|
+
uriParameters:
|
|
5887
|
+
listViewApiName:
|
|
5888
|
+
type: string
|
|
5889
|
+
required: true
|
|
5890
|
+
objectApiName:
|
|
5891
|
+
type: string
|
|
5892
|
+
required: true
|
|
5842
5893
|
/list-records:
|
|
5843
5894
|
/{listViewId}:
|
|
5844
5895
|
get:
|
|
@@ -5870,6 +5921,9 @@ types:
|
|
|
5870
5921
|
pageToken:
|
|
5871
5922
|
type: string
|
|
5872
5923
|
required: false
|
|
5924
|
+
searchTerm:
|
|
5925
|
+
type: string
|
|
5926
|
+
required: false
|
|
5873
5927
|
sortBy:
|
|
5874
5928
|
type: array
|
|
5875
5929
|
required: false
|
|
@@ -5910,6 +5964,9 @@ types:
|
|
|
5910
5964
|
pageToken:
|
|
5911
5965
|
type: string
|
|
5912
5966
|
required: false
|
|
5967
|
+
searchTerm:
|
|
5968
|
+
type: string
|
|
5969
|
+
required: false
|
|
5913
5970
|
sortBy:
|
|
5914
5971
|
type: array
|
|
5915
5972
|
required: false
|
package/src/raml/luvio.raml
CHANGED
|
@@ -103,6 +103,13 @@ types:
|
|
|
103
103
|
(luvio.key):
|
|
104
104
|
objectApiName: objectApiName
|
|
105
105
|
(luvio.ttl): 900000
|
|
106
|
+
ListPreferencesRepresentation:
|
|
107
|
+
examples:
|
|
108
|
+
mockListPreferences: !include ../mocks/types/ListPreferencesRepresentation/mockListPreferencesAccountAllAccounts.json
|
|
109
|
+
(luvio.key):
|
|
110
|
+
objectApiName: listReference.objectApiName
|
|
111
|
+
listViewApiName: listReference.listViewApiName
|
|
112
|
+
(luvio.ttl): 900000
|
|
106
113
|
ListRecordCollectionRepresentation:
|
|
107
114
|
(luvio.ttl): 30000
|
|
108
115
|
(luvio.private):
|
|
@@ -114,6 +121,7 @@ types:
|
|
|
114
121
|
# the list.
|
|
115
122
|
(luvio.key):
|
|
116
123
|
listViewId: listInfoETag
|
|
124
|
+
searchTerm: searchTerm
|
|
117
125
|
sortBy: sortBy
|
|
118
126
|
objectApiName: listReference.objectApiName
|
|
119
127
|
listViewApiName: listReference.listViewApiName
|
|
@@ -238,6 +246,9 @@ types:
|
|
|
238
246
|
- eTag
|
|
239
247
|
(luvio.private):
|
|
240
248
|
- eTag
|
|
249
|
+
ObjectInfoDirectoryEntryRepresentation:
|
|
250
|
+
(luvio.key):
|
|
251
|
+
objectInfoUrl: objectInfoUrl
|
|
241
252
|
PageReferenceRepresentation:
|
|
242
253
|
(luvio.opaque): true
|
|
243
254
|
AbstractRecordAvatarBatchRepresentation:
|
|
@@ -857,6 +868,13 @@ types:
|
|
|
857
868
|
objectApiName: urlParams.objectApiName
|
|
858
869
|
listViewApiName: urlParams.listViewApiName
|
|
859
870
|
type: '"listView"'
|
|
871
|
+
delete:
|
|
872
|
+
(luvio.adapter):
|
|
873
|
+
name: deleteListInfo
|
|
874
|
+
(luvio.key):
|
|
875
|
+
objectApiName: urlParams.objectApiName
|
|
876
|
+
listViewApiName: urlParams.listViewApiName
|
|
877
|
+
type: '"listView"'
|
|
860
878
|
patch:
|
|
861
879
|
(luvio.adapter):
|
|
862
880
|
name: updateListInfoByName
|
|
@@ -882,12 +900,38 @@ types:
|
|
|
882
900
|
objectApiName: SalesforceObjectId
|
|
883
901
|
(luvio.key):
|
|
884
902
|
objectApiName: urlParams.objectApiName
|
|
903
|
+
/list-preferences:
|
|
904
|
+
'/{objectApiName}/{listViewApiName}':
|
|
905
|
+
uriParameters:
|
|
906
|
+
objectApiName:
|
|
907
|
+
examples:
|
|
908
|
+
mockListPreferences: Account
|
|
909
|
+
listViewApiName:
|
|
910
|
+
examples:
|
|
911
|
+
mockListPreferences: AllAccounts
|
|
912
|
+
get:
|
|
913
|
+
(luvio.adapter):
|
|
914
|
+
name: getListPreferences
|
|
915
|
+
tests:
|
|
916
|
+
expectedResponses:
|
|
917
|
+
- configInput: |
|
|
918
|
+
{
|
|
919
|
+
"objectApiName": "Account",
|
|
920
|
+
"listViewApiName": "AllAccounts"
|
|
921
|
+
}
|
|
922
|
+
mockPayloadId: mockListPreferences
|
|
923
|
+
coercedParams:
|
|
924
|
+
objectApiName: SalesforceObjectId
|
|
925
|
+
(luvio.key):
|
|
926
|
+
objectApiName: urlParams.objectApiName
|
|
927
|
+
listViewApiName: urlParams.listViewApiName
|
|
885
928
|
/list-records:
|
|
886
929
|
'/{listViewId}':
|
|
887
930
|
get:
|
|
888
931
|
(luvio.key):
|
|
889
932
|
listViewId: urlParams.listViewId
|
|
890
933
|
sortBy: queryParams.sortBy || null
|
|
934
|
+
searchTerm: queryParams.searchTerm || null
|
|
891
935
|
objectApiName: '""'
|
|
892
936
|
listViewApiName: '""'
|
|
893
937
|
'/{objectApiName}/{listViewApiName}':
|
|
@@ -906,6 +950,7 @@ types:
|
|
|
906
950
|
objectApiName: urlParams.objectApiName
|
|
907
951
|
listViewApiName: urlParams.listViewApiName
|
|
908
952
|
listViewId: '""'
|
|
953
|
+
searchTerm: queryParams.searchTerm || null
|
|
909
954
|
sortBy: queryParams.sortBy || []
|
|
910
955
|
(luvio.paginationParams):
|
|
911
956
|
queryParameters:
|
|
@@ -1144,6 +1189,9 @@ types:
|
|
|
1144
1189
|
}
|
|
1145
1190
|
mockPayloadId: mockGetRecordUiResponse
|
|
1146
1191
|
/object-info:
|
|
1192
|
+
get:
|
|
1193
|
+
(luvio.adapter):
|
|
1194
|
+
name: getObjectInfoDirectory
|
|
1147
1195
|
'/batch/{objectApiNames}':
|
|
1148
1196
|
uriParameters:
|
|
1149
1197
|
objectApiNames:
|
package/src/raml/uiapi.graphql
CHANGED
|
@@ -49,7 +49,6 @@ type StringAggregate implements FieldValue {
|
|
|
49
49
|
|
|
50
50
|
type Query {
|
|
51
51
|
uiapi: UIAPI!
|
|
52
|
-
rateLimit: RateLimit
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
input EmailOperators {
|
|
@@ -138,6 +137,10 @@ type RecordTypeInfo {
|
|
|
138
137
|
recordTypeId: ID
|
|
139
138
|
}
|
|
140
139
|
|
|
140
|
+
input UIAPIMutationsInput {
|
|
141
|
+
allOrNone: Boolean = true
|
|
142
|
+
}
|
|
143
|
+
|
|
141
144
|
type BooleanValue implements FieldValue {
|
|
142
145
|
value: Boolean
|
|
143
146
|
displayValue: String
|
|
@@ -265,7 +268,7 @@ input StringOperators {
|
|
|
265
268
|
type UIAPI {
|
|
266
269
|
query: RecordQuery!
|
|
267
270
|
aggregate: RecordQueryAggregate!
|
|
268
|
-
objectInfos(apiNames: [String]): [ObjectInfo]
|
|
271
|
+
objectInfos(apiNames: [String], locale: String): [ObjectInfo]
|
|
269
272
|
relatedListByName(parentApiName: String!, relatedListName: String!): RelatedListInfo
|
|
270
273
|
}
|
|
271
274
|
|
|
@@ -332,6 +335,17 @@ type MultiPicklistValue implements FieldValue {
|
|
|
332
335
|
label: String
|
|
333
336
|
}
|
|
334
337
|
|
|
338
|
+
input DatePrimitiveOperators {
|
|
339
|
+
eq: Date
|
|
340
|
+
ne: Date
|
|
341
|
+
lt: Date
|
|
342
|
+
gt: Date
|
|
343
|
+
lte: Date
|
|
344
|
+
gte: Date
|
|
345
|
+
in: [Date]
|
|
346
|
+
nin: [Date]
|
|
347
|
+
}
|
|
348
|
+
|
|
335
349
|
type TimeAggregate implements FieldValue {
|
|
336
350
|
value: Time
|
|
337
351
|
displayValue: String
|
|
@@ -418,7 +432,7 @@ input AggregateOrderBy @generic {
|
|
|
418
432
|
orderableGeolocationField: OrderByGeolocationClause @fieldCategory
|
|
419
433
|
orderableParentRelationship: AggregateOrderBy @fieldCategory
|
|
420
434
|
orderablePolymorphicParentRelationship: PolymorphicParentRelationshipOrderBy @fieldCategory
|
|
421
|
-
type: String = ORDER_BY
|
|
435
|
+
type: String = ORDER_BY # Handrolled
|
|
422
436
|
}
|
|
423
437
|
|
|
424
438
|
input GroupByClause {
|
|
@@ -506,8 +520,8 @@ enum DataType {
|
|
|
506
520
|
}
|
|
507
521
|
|
|
508
522
|
enum NullOrder {
|
|
509
|
-
LAST
|
|
510
523
|
FIRST
|
|
524
|
+
LAST
|
|
511
525
|
}
|
|
512
526
|
|
|
513
527
|
type PhoneNumberValue implements FieldValue {
|
|
@@ -671,29 +685,29 @@ type UrlAggregate implements FieldValue {
|
|
|
671
685
|
}
|
|
672
686
|
|
|
673
687
|
enum DateLiteral {
|
|
674
|
-
TODAY
|
|
675
|
-
LAST_90_DAYS
|
|
676
|
-
LAST_YEAR
|
|
677
|
-
NEXT_YEAR
|
|
678
|
-
TOMORROW
|
|
679
688
|
NEXT_QUARTER
|
|
680
|
-
LAST_WEEK
|
|
681
|
-
NEXT_90_DAYS
|
|
682
|
-
THIS_YEAR
|
|
683
|
-
LAST_FISCAL_QUARTER
|
|
684
|
-
LAST_QUARTER
|
|
685
689
|
THIS_FISCAL_YEAR
|
|
686
|
-
THIS_MONTH
|
|
687
|
-
THIS_FISCAL_QUARTER
|
|
688
|
-
THIS_QUARTER
|
|
689
|
-
NEXT_FISCAL_QUARTER
|
|
690
690
|
NEXT_FISCAL_YEAR
|
|
691
|
+
THIS_WEEK
|
|
692
|
+
LAST_YEAR
|
|
693
|
+
NEXT_FISCAL_QUARTER
|
|
694
|
+
THIS_MONTH
|
|
695
|
+
THIS_YEAR
|
|
691
696
|
LAST_FISCAL_YEAR
|
|
697
|
+
LAST_WEEK
|
|
698
|
+
LAST_90_DAYS
|
|
699
|
+
THIS_FISCAL_QUARTER
|
|
700
|
+
NEXT_YEAR
|
|
701
|
+
NEXT_90_DAYS
|
|
702
|
+
LAST_QUARTER
|
|
703
|
+
LAST_FISCAL_QUARTER
|
|
692
704
|
NEXT_WEEK
|
|
705
|
+
TODAY
|
|
693
706
|
YESTERDAY
|
|
694
|
-
THIS_WEEK
|
|
695
|
-
NEXT_MONTH
|
|
696
707
|
LAST_MONTH
|
|
708
|
+
TOMORROW
|
|
709
|
+
NEXT_MONTH
|
|
710
|
+
THIS_QUARTER
|
|
697
711
|
}
|
|
698
712
|
|
|
699
713
|
type __EnumValue {
|
|
@@ -1000,7 +1014,7 @@ input DateFunctionInput {
|
|
|
1000
1014
|
|
|
1001
1015
|
# Mutations aren't supported yet.
|
|
1002
1016
|
#type Mutation {
|
|
1003
|
-
# uiapi: UIAPIMutations!
|
|
1017
|
+
# uiapi(input: UIAPIMutationsInput): UIAPIMutations!
|
|
1004
1018
|
#}
|
|
1005
1019
|
|
|
1006
1020
|
type DependentField {
|
|
@@ -1122,6 +1136,7 @@ type ObjectInfo {
|
|
|
1122
1136
|
searchable: Boolean!
|
|
1123
1137
|
themeInfo: ThemeInfo
|
|
1124
1138
|
updateable: Boolean!
|
|
1139
|
+
locale: String
|
|
1125
1140
|
}
|
|
1126
1141
|
|
|
1127
1142
|
input LongitudeOperators {
|
|
@@ -1242,8 +1257,8 @@ type UIAPIMutations {
|
|
|
1242
1257
|
}
|
|
1243
1258
|
|
|
1244
1259
|
input DateTimeFunctionInput {
|
|
1245
|
-
value:
|
|
1246
|
-
convertTimezoneValue:
|
|
1260
|
+
value: DatePrimitiveOperators
|
|
1261
|
+
convertTimezoneValue: DatePrimitiveOperators
|
|
1247
1262
|
}
|
|
1248
1263
|
|
|
1249
1264
|
type Base64Value implements FieldValue {
|
|
@@ -1334,17 +1349,6 @@ input DateTimeInput {
|
|
|
1334
1349
|
range: DateRange
|
|
1335
1350
|
}
|
|
1336
1351
|
|
|
1337
|
-
input DateTimePrimitiveOperators {
|
|
1338
|
-
eq: DateTime
|
|
1339
|
-
ne: DateTime
|
|
1340
|
-
lt: DateTime
|
|
1341
|
-
gt: DateTime
|
|
1342
|
-
lte: DateTime
|
|
1343
|
-
gte: DateTime
|
|
1344
|
-
in: [DateTime]
|
|
1345
|
-
nin: [DateTime]
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
1352
|
type ChildRelationship {
|
|
1349
1353
|
childObjectApiName: String!
|
|
1350
1354
|
fieldName: String
|
|
@@ -1391,10 +1395,10 @@ type DateFunctionAggregation {
|
|
|
1391
1395
|
}
|
|
1392
1396
|
|
|
1393
1397
|
type RecordQuery {
|
|
1394
|
-
# scope should be type RecordScope but
|
|
1398
|
+
# scope should be type RecordScope but that's empty enum.
|
|
1395
1399
|
recordQuery(first: Int, after: String, where: RecordFilter, orderBy: RecordOrderBy, scope: String, upperBound: Int): RecordConnection @fieldCategory
|
|
1396
1400
|
}
|
|
1397
1401
|
|
|
1398
1402
|
directive @generic on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT
|
|
1399
1403
|
directive @fieldCategory on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
|
|
1400
|
-
directive @category on FIELD
|
|
1404
|
+
directive @category(name: String!) on FIELD
|