@salesforce/lds-adapters-platform-cdp-machine-learning 1.310.0 → 1.311.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/platform-cdp-machine-learning.js +1054 -602
- package/dist/es/es2018/types/src/generated/adapters/createCdpMlPredictResult.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postSsotMachineLearningPredict.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlAggregatePredictConditionRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlAggregatePredictionRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictRawDataInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictResultRepresentation.d.ts +54 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictSettingsInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictionBaseRepresentation.d.ts +29 -0
- package/package.json +3 -3
- package/sfdc/index.js +589 -134
- package/src/raml/api.raml +134 -0
- package/src/raml/luvio.raml +21 -1
package/src/raml/api.raml
CHANGED
|
@@ -1205,6 +1205,100 @@ types:
|
|
|
1205
1205
|
url:
|
|
1206
1206
|
description: Url
|
|
1207
1207
|
type: string
|
|
1208
|
+
CdpMlAggregatePredictConditionRepresentation:
|
|
1209
|
+
description: Cdp Ml Aggregate Prediction Contribution
|
|
1210
|
+
type: object
|
|
1211
|
+
properties:
|
|
1212
|
+
count?:
|
|
1213
|
+
description: Count of rows included in the aggregate condition
|
|
1214
|
+
type: integer
|
|
1215
|
+
CdpMlPredictionBaseRepresentation:
|
|
1216
|
+
description: Base representation for a prediction result
|
|
1217
|
+
type: object
|
|
1218
|
+
properties:
|
|
1219
|
+
status?:
|
|
1220
|
+
description: prediction status
|
|
1221
|
+
type: string | nil
|
|
1222
|
+
enum:
|
|
1223
|
+
- Success
|
|
1224
|
+
- Error
|
|
1225
|
+
CdpMlAggregatePredictionRepresentation:
|
|
1226
|
+
description: Cdp Ml Prediction result representation
|
|
1227
|
+
type: object
|
|
1228
|
+
properties:
|
|
1229
|
+
status?:
|
|
1230
|
+
description: Status of aggregate prediction
|
|
1231
|
+
type: string | nil
|
|
1232
|
+
enum:
|
|
1233
|
+
- Success
|
|
1234
|
+
- Error
|
|
1235
|
+
type?:
|
|
1236
|
+
description: Type of aggregate prediction
|
|
1237
|
+
type: string | nil
|
|
1238
|
+
enum:
|
|
1239
|
+
- Average
|
|
1240
|
+
- Median
|
|
1241
|
+
- Sum
|
|
1242
|
+
factors?:
|
|
1243
|
+
description: Top factors associated to this aggregate prediction
|
|
1244
|
+
type: array
|
|
1245
|
+
items:
|
|
1246
|
+
type: CdpMlAggregatePredictConditionRepresentation
|
|
1247
|
+
prescriptions?:
|
|
1248
|
+
description: Prescriptions associated to this aggregate prediction
|
|
1249
|
+
type: array
|
|
1250
|
+
items:
|
|
1251
|
+
type: CdpMlAggregatePredictConditionRepresentation
|
|
1252
|
+
value?:
|
|
1253
|
+
description: Aggregate prediction value
|
|
1254
|
+
format: double
|
|
1255
|
+
type: number
|
|
1256
|
+
CdpMlPredictSettingsInputRepresentation:
|
|
1257
|
+
description: Predict Settings Representation
|
|
1258
|
+
type: object
|
|
1259
|
+
properties:
|
|
1260
|
+
maxPrescriptions?:
|
|
1261
|
+
description: Maximum recommendation count. Default value is -1 (unlimited) and the allowed range is [-1, 200]
|
|
1262
|
+
type: integer
|
|
1263
|
+
prescriptionImpactPercentage?:
|
|
1264
|
+
description: Impact Percentage of Prescriptions, Default is set at 0
|
|
1265
|
+
type: integer
|
|
1266
|
+
maxTopFactors?:
|
|
1267
|
+
description: Maximum top factor count. Default value is 0 and the allowed range is [0, 3]
|
|
1268
|
+
type: integer
|
|
1269
|
+
aggregateFunctions?:
|
|
1270
|
+
description: List of aggregate functions
|
|
1271
|
+
type: array
|
|
1272
|
+
items:
|
|
1273
|
+
type: string | nil
|
|
1274
|
+
CdpMlPredictResultRepresentation:
|
|
1275
|
+
description: Cdp Ml Prediction result representation
|
|
1276
|
+
type: object
|
|
1277
|
+
properties:
|
|
1278
|
+
model:
|
|
1279
|
+
description: Model asset reference used as part of the prediction request
|
|
1280
|
+
type: CdpAssetReferenceRepresentation
|
|
1281
|
+
predictionType:
|
|
1282
|
+
description: Prediction Type
|
|
1283
|
+
type: string
|
|
1284
|
+
enum:
|
|
1285
|
+
- Regression
|
|
1286
|
+
- BinaryClassification
|
|
1287
|
+
- MulticlassClassification
|
|
1288
|
+
- Generic/Unknown
|
|
1289
|
+
predictions?:
|
|
1290
|
+
description: A list of prediction results
|
|
1291
|
+
type: array
|
|
1292
|
+
items:
|
|
1293
|
+
type: CdpMlPredictionBaseRepresentation
|
|
1294
|
+
aggregatePredictions?:
|
|
1295
|
+
description: Aggregate Result List
|
|
1296
|
+
type: array
|
|
1297
|
+
items:
|
|
1298
|
+
type: CdpMlAggregatePredictionRepresentation
|
|
1299
|
+
settings?:
|
|
1300
|
+
description: Settings used for the prediction
|
|
1301
|
+
type: CdpMlPredictSettingsInputRepresentation
|
|
1208
1302
|
MlConfiguredModelInputRepresentation:
|
|
1209
1303
|
description: Input representation for a Ml Configured Model
|
|
1210
1304
|
type: object
|
|
@@ -1240,6 +1334,32 @@ types:
|
|
|
1240
1334
|
enum:
|
|
1241
1335
|
- Disabled
|
|
1242
1336
|
- Enabled
|
|
1337
|
+
CdpMlPredictRawDataInputRepresentation:
|
|
1338
|
+
description: Raw Data Input Representation
|
|
1339
|
+
type: object
|
|
1340
|
+
properties:
|
|
1341
|
+
type:
|
|
1342
|
+
description: prediction type enum
|
|
1343
|
+
type: string
|
|
1344
|
+
enum:
|
|
1345
|
+
- Records
|
|
1346
|
+
- RawData
|
|
1347
|
+
- RecordOverrides
|
|
1348
|
+
model:
|
|
1349
|
+
description: Model Reference
|
|
1350
|
+
type: CdpAssetReferenceInputRepresentation
|
|
1351
|
+
fieldNames:
|
|
1352
|
+
description: Field names
|
|
1353
|
+
type: array
|
|
1354
|
+
items:
|
|
1355
|
+
type: string
|
|
1356
|
+
rows:
|
|
1357
|
+
description: Rows of values
|
|
1358
|
+
type: array
|
|
1359
|
+
items:
|
|
1360
|
+
type: array
|
|
1361
|
+
items:
|
|
1362
|
+
type: string
|
|
1243
1363
|
/ssot:
|
|
1244
1364
|
/machine-learning:
|
|
1245
1365
|
/model-artifacts:
|
|
@@ -1539,3 +1659,17 @@ types:
|
|
|
1539
1659
|
workspaceIdOrName:
|
|
1540
1660
|
type: string
|
|
1541
1661
|
required: true
|
|
1662
|
+
/predict:
|
|
1663
|
+
post:
|
|
1664
|
+
displayName: CdpMlPredictResult
|
|
1665
|
+
description: Get prediction result
|
|
1666
|
+
responses:
|
|
1667
|
+
'200':
|
|
1668
|
+
description: Success
|
|
1669
|
+
body:
|
|
1670
|
+
application/json:
|
|
1671
|
+
type: CdpMlPredictResultRepresentation
|
|
1672
|
+
body:
|
|
1673
|
+
application/json:
|
|
1674
|
+
type: CdpMlPredictRawDataInputRepresentation
|
|
1675
|
+
(oas-body-name): predictInput
|
package/src/raml/luvio.raml
CHANGED
|
@@ -40,7 +40,23 @@ types:
|
|
|
40
40
|
(luvio.opaque): true
|
|
41
41
|
(luvio.key):
|
|
42
42
|
configuredModelIdOrName: name
|
|
43
|
-
|
|
43
|
+
CdpMlAggregatePredictConditionRepresentation:
|
|
44
|
+
(luvio.ttl): 1000
|
|
45
|
+
(luvio.opaque): true
|
|
46
|
+
CdpMlPredictionBaseRepresentation:
|
|
47
|
+
(luvio.ttl): 1000
|
|
48
|
+
(luvio.opaque): true
|
|
49
|
+
CdpMlAggregatePredictionRepresentation:
|
|
50
|
+
(luvio.ttl): 1000
|
|
51
|
+
(luvio.opaque): true
|
|
52
|
+
CdpMlPredictSettingsInputRepresentation:
|
|
53
|
+
(luvio.ttl): 1000
|
|
54
|
+
(luvio.opaque): true
|
|
55
|
+
CdpMlPredictResultRepresentation:
|
|
56
|
+
(luvio.ttl): 1000
|
|
57
|
+
(luvio.opaque): true
|
|
58
|
+
(luvio.key):
|
|
59
|
+
predictionType: predictionType
|
|
44
60
|
/ssot:
|
|
45
61
|
/machine-learning:
|
|
46
62
|
/model-artifacts:
|
|
@@ -103,3 +119,7 @@ types:
|
|
|
103
119
|
uriParameters:
|
|
104
120
|
modelIdOrName:
|
|
105
121
|
workspaceIdOrName:
|
|
122
|
+
/predict:
|
|
123
|
+
post:
|
|
124
|
+
(luvio.adapter):
|
|
125
|
+
name: createCdpMlPredictResult
|