@salesforce/lds-adapters-uiapi 1.247.0 → 1.249.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.
Files changed (25) hide show
  1. package/dist/es/es2018/types/src/generated/adapters/getKeywordSearchResults.d.ts +3 -3
  2. package/dist/es/es2018/types/src/generated/adapters/getSearchResults.d.ts +3 -3
  3. package/dist/es/es2018/types/src/generated/adapters/updateListPreferences.d.ts +24 -0
  4. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/sfdc_restAdapters.d.ts +3 -1
  6. package/dist/es/es2018/types/src/generated/resources/patchUiApiListPreferencesByListViewApiNameAndObjectApiName.d.ts +23 -0
  7. package/dist/es/es2018/types/src/generated/resources/postUiApiSearchResults.d.ts +1 -1
  8. package/dist/es/es2018/types/src/generated/resources/postUiApiSearchResultsKeyword.d.ts +1 -1
  9. package/dist/es/es2018/types/src/generated/types/BatchInputRepresentation.d.ts +4 -3
  10. package/dist/es/es2018/types/src/generated/types/BatchOperationInputRepresentation.d.ts +4 -3
  11. package/dist/es/es2018/types/src/generated/types/KeywordSearchRequestInputRepresentation.d.ts +4 -1
  12. package/dist/es/es2018/types/src/generated/types/KeywordSearchResultsSummaryRepresentation.d.ts +7 -1
  13. package/dist/es/es2018/types/src/generated/types/ListPreferencesInputRepresentation.d.ts +43 -0
  14. package/dist/es/es2018/types/src/generated/types/SearchRequestInputRepresentation.d.ts +4 -1
  15. package/dist/es/es2018/types/src/generated/types/SearchResultsSummaryRepresentation.d.ts +7 -1
  16. package/dist/es/es2018/types/src/util/records.d.ts +3 -1
  17. package/dist/es/es2018/types/src/wire/executeBatchRecordOperations/index.d.ts +16 -0
  18. package/dist/es/es2018/types/src/wire/executeBatchRecordOperations/postUiApiRecordsBatch.d.ts +40 -0
  19. package/dist/es/es2018/uiapi-records-service.js +1930 -1510
  20. package/package.json +2 -2
  21. package/sfdc/graphqlAdapters.js +7 -6
  22. package/sfdc/index.js +1895 -1470
  23. package/sfdc/uiapi-static-functions.js +1 -1
  24. package/src/raml/api.raml +55 -19
  25. package/src/raml/luvio.raml +9 -0
@@ -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.151.0-f29c1c57
98
+ // engine version: 0.152.2-f6f687b3
99
99
 
100
100
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
101
101
 
package/src/raml/api.raml CHANGED
@@ -392,7 +392,7 @@ types:
392
392
  description: Set operations
393
393
  type: array
394
394
  items:
395
- type: object
395
+ type: BatchOperationInputRepresentation
396
396
  BatchOperationInputRepresentation:
397
397
  description: Batch operation.
398
398
  type: object
@@ -401,7 +401,7 @@ types:
401
401
  description: Set records param
402
402
  type: array
403
403
  items:
404
- type: object
404
+ type: RecordInputRepresentation
405
405
  type:
406
406
  description: Set records param
407
407
  type: string
@@ -1165,6 +1165,10 @@ types:
1165
1165
  description: Input parameters to request on Search for keyword type
1166
1166
  type: object
1167
1167
  properties:
1168
+ configurationName:
1169
+ description: A configuration name defined in Search Manager
1170
+ type: string
1171
+ required: false #TODO: handrolled for W-13591079
1168
1172
  filters:
1169
1173
  description: Filters to apply on our results
1170
1174
  type: array
@@ -1197,6 +1201,9 @@ types:
1197
1201
  description: Root of the keyword search response
1198
1202
  type: object
1199
1203
  properties:
1204
+ configurationName:
1205
+ description: Configuration Name to be applied
1206
+ type: string | nil
1200
1207
  keywordSearchResult:
1201
1208
  description: Search’s scoped result collection
1202
1209
  type: SearchResultCollectionRepresentation
@@ -1686,6 +1693,30 @@ types:
1686
1693
  isAscending:
1687
1694
  description: Boolean describing if the orderBy should be ascending.
1688
1695
  type: boolean
1696
+ ListPreferencesInputRepresentation:
1697
+ description: Representation of a List Preferences input.
1698
+ type: object
1699
+ properties:
1700
+ columnWidths:
1701
+ description: Input representation for column widths.
1702
+ type: object
1703
+ required: false
1704
+ properties:
1705
+ //:
1706
+ type: integer
1707
+ columnWrap:
1708
+ description: Input representation for column wrap.
1709
+ type: object
1710
+ required: false
1711
+ properties:
1712
+ //:
1713
+ type: boolean
1714
+ orderedBy:
1715
+ description: Input representation for ordered by.
1716
+ type: array
1717
+ required: false
1718
+ items:
1719
+ type: ListOrderedByInfoInputRepresentation
1689
1720
  ListPreferencesRepresentation:
1690
1721
  description: ListPreferencesRepresentation
1691
1722
  type: object
@@ -4143,6 +4174,10 @@ types:
4143
4174
  - KeywordSearchResults
4144
4175
  - QnAResult
4145
4176
  required: false #TODO: handrolled for W-10327520
4177
+ configurationName:
4178
+ description: A configuration name defined in Search Manager
4179
+ type: string
4180
+ required: false #TODO: handrolled for W-13591079
4146
4181
  objectApiNames:
4147
4182
  description: A list of supported objects, such as Account.
4148
4183
  type: array
@@ -4207,6 +4242,9 @@ types:
4207
4242
  description: Root of the search response
4208
4243
  type: object
4209
4244
  properties:
4245
+ configurationName:
4246
+ description: Configuration Name to be applied
4247
+ type: string | nil
4210
4248
  keywordSearchResults:
4211
4249
  description: Keyword Search Results Response
4212
4250
  type: KeywordSearchResultsRepresentation | nil
@@ -4430,7 +4468,6 @@ types:
4430
4468
  type: number
4431
4469
  result:
4432
4470
  type: RecordRepresentation
4433
-
4434
4471
  # These types are not generated. Why?
4435
4472
  ErrorSingleRecordAvatarRepresentation:
4436
4473
  type: object
@@ -5883,6 +5920,20 @@ types:
5883
5920
  body:
5884
5921
  application/json:
5885
5922
  type: ListPreferencesRepresentation
5923
+ patch:
5924
+ displayName: patchListPreferences
5925
+ description: Update list preferences
5926
+ responses:
5927
+ '200':
5928
+ description: Success
5929
+ body:
5930
+ application/json:
5931
+ type: ListPreferencesRepresentation
5932
+ body:
5933
+ application/json:
5934
+ type: ListPreferencesInputRepresentation
5935
+ # required: false - W-9109412: Property 'required' not supported in a RAML 1.0 object node
5936
+ (oas-body-name): listPreferencesInput
5886
5937
  uriParameters:
5887
5938
  listViewApiName:
5888
5939
  type: string
@@ -6748,22 +6799,6 @@ types:
6748
6799
  binaryInputList:
6749
6800
  type: file
6750
6801
  required: false
6751
- # TODO: Property '/batch' not supported in a RAML 1.0 operation node. Target Node: src/raml/api.raml#/web-api/end-points/%2Fui-api%2Frecords/post
6752
- # /batch:
6753
- # post:
6754
- # displayName: postBatchRecord
6755
- # description: Create new records.
6756
- # responses:
6757
- # '200':
6758
- # description: Success
6759
- # body:
6760
- # application/json:
6761
- # type: BatchRepresentation
6762
- # body:
6763
- # application/json:
6764
- # type: BatchInputRepresentation
6765
- # # required: false - W-9109412: Property 'required' not supported in a RAML 1.0 object node
6766
- # (oas-body-name): recordInput
6767
6802
  /batch/{recordIds}:
6768
6803
  get:
6769
6804
  displayName: getBatchRecordData
@@ -7429,6 +7464,7 @@ types:
7429
7464
  (oas-body-name): options
7430
7465
  /search/results/keyword:
7431
7466
  post:
7467
+ displayName: postKeywordSearchResults
7432
7468
  description: List all results over entities (or only one) for the keyword
7433
7469
  results type
7434
7470
  responses:
@@ -448,12 +448,14 @@ types:
448
448
  (luvio.ttl): 200
449
449
  (luvio.key): # to get it working, our key should be computed with input parameters.
450
450
  query: query
451
+ configurationName: configurationName
451
452
  KeywordSearchResultsSummaryRepresentation:
452
453
  (luvio.opaque): true
453
454
  (luvio.ttl): 200
454
455
  (luvio.key): # to get it working, our key should be computed with input parameters.
455
456
  query: query
456
457
  objectApiName: objectApiName
458
+ configurationName: configurationName
457
459
  SimplifiedBatchRepresentation:
458
460
  examples:
459
461
  mockGetObjectInfosResponse: !include ../mocks/types/SimplifiedBatchRepresentation/object-Opportunity-Account.json
@@ -925,6 +927,11 @@ types:
925
927
  (luvio.key):
926
928
  objectApiName: urlParams.objectApiName
927
929
  listViewApiName: urlParams.listViewApiName
930
+ patch:
931
+ (luvio.adapter):
932
+ name: updateListPreferences
933
+ coercedParams:
934
+ objectApiName: SalesforceObjectId
928
935
  /list-records:
929
936
  '/{listViewId}':
930
937
  get:
@@ -1721,6 +1728,7 @@ types:
1721
1728
  (luvio.method): get
1722
1729
  (luvio.key):
1723
1730
  query: queryParams.q
1731
+ configurationName: body.configurationName || null
1724
1732
  (luvio.adapter):
1725
1733
  name: getSearchResults
1726
1734
  /search/results/keyword:
@@ -1730,6 +1738,7 @@ types:
1730
1738
  (luvio.key):
1731
1739
  query: queryParams.q
1732
1740
  objectApiName: queryParams.objectApiName
1741
+ configurationName: body.configurationName || null
1733
1742
  (luvio.adapter):
1734
1743
  name: getKeywordSearchResults
1735
1744
  /predupe: