@salesforce/lds-adapters-uiapi 1.277.1 → 1.278.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/getPathLayout.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc_restAdapters.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getUiApiPathLayoutByObjectApiName.d.ts +21 -0
- package/dist/es/es2018/types/src/main.d.ts +1 -0
- package/dist/es/es2018/types/src/sfdc_rest.d.ts +1 -1
- package/dist/es/es2018/uiapi-records-service.js +2097 -1947
- package/package.json +6 -6
- package/sfdc/graphqlAdapters.js +1 -1
- package/sfdc/index.js +1953 -1795
- package/src/raml/api.raml +32 -0
- package/src/raml/luvio.raml +35 -0
package/src/raml/api.raml
CHANGED
|
@@ -3230,6 +3230,7 @@ types:
|
|
|
3230
3230
|
- Mdp
|
|
3231
3231
|
- Search
|
|
3232
3232
|
- Service_Document
|
|
3233
|
+
- Path_Assistant
|
|
3233
3234
|
mode:
|
|
3234
3235
|
description: Mode.
|
|
3235
3236
|
type: string
|
|
@@ -6805,6 +6806,37 @@ types:
|
|
|
6805
6806
|
objectApiName:
|
|
6806
6807
|
type: string
|
|
6807
6808
|
required: true
|
|
6809
|
+
/path:
|
|
6810
|
+
/layout/{objectApiName}:
|
|
6811
|
+
get:
|
|
6812
|
+
displayName: getPathLayout
|
|
6813
|
+
description: Retrieve a specific layout for Path.
|
|
6814
|
+
responses:
|
|
6815
|
+
'200':
|
|
6816
|
+
description: Success
|
|
6817
|
+
body:
|
|
6818
|
+
application/json:
|
|
6819
|
+
type: RecordLayoutRepresentation
|
|
6820
|
+
queryParameters:
|
|
6821
|
+
formFactor:
|
|
6822
|
+
type: string
|
|
6823
|
+
required: false
|
|
6824
|
+
layoutOverride:
|
|
6825
|
+
type: string
|
|
6826
|
+
required: true
|
|
6827
|
+
mode:
|
|
6828
|
+
type: string
|
|
6829
|
+
required: false
|
|
6830
|
+
enum:
|
|
6831
|
+
- Edit
|
|
6832
|
+
- View
|
|
6833
|
+
recordTypeId:
|
|
6834
|
+
type: string
|
|
6835
|
+
required: false
|
|
6836
|
+
uriParameters:
|
|
6837
|
+
objectApiName:
|
|
6838
|
+
type: string
|
|
6839
|
+
required: true
|
|
6808
6840
|
/predupe:
|
|
6809
6841
|
post:
|
|
6810
6842
|
displayName: postPredupe
|
package/src/raml/luvio.raml
CHANGED
|
@@ -312,6 +312,7 @@ types:
|
|
|
312
312
|
RecordLayoutRepresentation:
|
|
313
313
|
examples:
|
|
314
314
|
mockLayoutOpportunityFull: !include ../mocks/types/RecordLayoutRepresentation/layout-Opportunity-Full.json
|
|
315
|
+
mockLayoutOpportunityPath: !include ../mocks/types/RecordLayoutRepresentation/layout-Opportunity-Path.json
|
|
315
316
|
(luvio.integrity):
|
|
316
317
|
- eTag
|
|
317
318
|
(luvio.ttl): 900000
|
|
@@ -1158,6 +1159,40 @@ types:
|
|
|
1158
1159
|
"navItemNames": ["item1","item2"],
|
|
1159
1160
|
"page":100
|
|
1160
1161
|
}
|
|
1162
|
+
/path:
|
|
1163
|
+
'/layout/{objectApiName}':
|
|
1164
|
+
uriParameters:
|
|
1165
|
+
objectApiName:
|
|
1166
|
+
examples:
|
|
1167
|
+
mockLayoutOpportunityPath: 'Opportunity'
|
|
1168
|
+
get:
|
|
1169
|
+
queryParameters:
|
|
1170
|
+
layoutOverride:
|
|
1171
|
+
examples:
|
|
1172
|
+
mockLayoutOpportunityPath: 'Prospecting'
|
|
1173
|
+
(luvio.adapter):
|
|
1174
|
+
name: getPathLayout
|
|
1175
|
+
coercedParams:
|
|
1176
|
+
objectApiName: SalesforceObjectId
|
|
1177
|
+
mode: SalesforceLayoutMode
|
|
1178
|
+
recordTypeId: SalesforceRecordId18
|
|
1179
|
+
tests:
|
|
1180
|
+
expectedResponses:
|
|
1181
|
+
- configInput: |
|
|
1182
|
+
{
|
|
1183
|
+
"objectApiName": "Opportunity",
|
|
1184
|
+
"layoutOverride": "Prospecting",
|
|
1185
|
+
"mode": "View",
|
|
1186
|
+
"recordTypeId": "012000000000000AAA"
|
|
1187
|
+
}
|
|
1188
|
+
mockPayloadId: mockLayoutOpportunityPath
|
|
1189
|
+
(luvio.key):
|
|
1190
|
+
objectApiName: urlParams.objectApiName
|
|
1191
|
+
layoutType: '"PathAssistant"'
|
|
1192
|
+
layoutOverride: queryParams.layoutOverride
|
|
1193
|
+
formFactor: queryParams.formFactor || ""
|
|
1194
|
+
mode: queryParams.mode || ""
|
|
1195
|
+
recordTypeId: queryParams.recordTypeId || ""
|
|
1161
1196
|
/record-avatars:
|
|
1162
1197
|
'/batch/{recordIds}':
|
|
1163
1198
|
uriParameters:
|