@salesforce/lds-adapters-industries-einstein-aiaccelerator 1.308.0-dev1 → 1.309.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/src/raml/api.raml CHANGED
@@ -2,7 +2,7 @@
2
2
  securedBy:
3
3
  - OAuth2
4
4
  title: Salesforce Connect API
5
- version: '56.0'
5
+ version: '62.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
@@ -82,6 +82,18 @@ types:
82
82
  description: Map of the Field Map.
83
83
  type: NullableFeatureExtractionParametersMapValue | nil # TODO Hand-rolled W-7093257
84
84
  required: false
85
+ FieldCount:
86
+ description: .
87
+ type: object
88
+ properties:
89
+ count:
90
+ description: .
91
+ type: integer
92
+ required: false # TODO Hand-rolled W-16235747
93
+ fieldValue:
94
+ description: .
95
+ type: string
96
+ required: false # TODO Hand-rolled W-16235747
85
97
  Insight:
86
98
  description: .
87
99
  type: object
@@ -300,6 +312,53 @@ types:
300
312
  items:
301
313
  type: Suggestion | nil
302
314
  required: false
315
+ PredictionOutput:
316
+ description: Predicted object representation for prediction.
317
+ type: object
318
+ properties:
319
+ customPredictionLabel:
320
+ description: .
321
+ type: string
322
+ required: false # TODO Hand-rolled W-9314597
323
+ predictionScore:
324
+ description: .
325
+ format: float
326
+ type: number
327
+ required: false # TODO Hand-rolled W-16235747
328
+ topPredictors:
329
+ description: .
330
+ type: array
331
+ items:
332
+ type: Predictor
333
+ required: false # TODO Hand-rolled W-16235747
334
+ PredictionOutputObject:
335
+ description: Prediction for a given record
336
+ type: object
337
+ properties:
338
+ errors:
339
+ description: .
340
+ type: array
341
+ items:
342
+ type: Error
343
+ required: false # TODO Hand-rolled W-16235747
344
+ isSuccess:
345
+ description: .
346
+ type: boolean | nil
347
+ required: true # TODO Hand-rolled W-16235747
348
+ predictionOutput:
349
+ description: .
350
+ type: array
351
+ items:
352
+ type: PredictionOutput
353
+ required: false # TODO Hand-rolled W-16235747
354
+ predictionWarning:
355
+ description: .
356
+ type: PredictionWarning
357
+ required: false # TODO Hand-rolled W-16235747
358
+ recordId:
359
+ description: .
360
+ type: string
361
+ required: true # TODO Hand-rolled W-16235747
303
362
  PredictionOutputRepresentation:
304
363
  description: Predictions for a given request
305
364
  type: object
@@ -397,7 +456,146 @@ types:
397
456
  description: Indicates whether the call succeeded or failed, and in case of
398
457
  failure also provides the reason.
399
458
  type: Status
459
+ required: true # TODO Hand-rolled W-16235747
460
+ PredictionRequestRepresentation:
461
+ description: Request for which predictions are fetched.
462
+ type: object
463
+ properties:
464
+ maxInsights:
465
+ description: .
466
+ type: integer
467
+ required: false # TODO Hand-rolled W-9314597
468
+ predictionModel:
469
+ description: .
470
+ type: string
471
+ required: false # TODO Hand-rolled W-16235747
472
+ predictionPlatform:
473
+ description: .
474
+ type: string
475
+ required: false # TODO Hand-rolled W-16235747
476
+ records:
477
+ type: WrappedList | nil
478
+ required: true # TODO Hand-rolled W-9314597
479
+ scoreFilterCriteria:
480
+ description: .
481
+ type: string
482
+ enum:
483
+ - GreaterThan
484
+ - GreaterThanEquals
485
+ - LessThan
486
+ required: false # TODO Hand-rolled W-9314597
487
+ scoringThreshold:
488
+ description: .
489
+ format: float
490
+ type: number
491
+ required: false # TODO Hand-rolled W-9314597
492
+ sortingOrder:
493
+ description: .
494
+ type: string
495
+ enum:
496
+ - Asc
497
+ - Desc
498
+ required: false # TODO Hand-rolled W-9314597
499
+ usecaseName:
500
+ description: .
501
+ type: string
502
+ required: true # TODO Hand-rolled W-16235747
503
+ PredictionResponseRepresentation:
504
+ description: Predictions for a given request
505
+ type: object
506
+ properties:
507
+ predictionModel:
508
+ description: .
509
+ type: string
510
+ required: false # TODO Hand-rolled W-9314597
511
+ predictionOutputObjects:
512
+ description: .
513
+ type: array
514
+ items:
515
+ type: PredictionOutputObject
516
+ required: false # TODO Hand-rolled W-9314597
517
+ predictionPlatform:
518
+ description: .
519
+ type: string
520
+ required: false # TODO Hand-rolled W-9314597
521
+ predictionType:
522
+ description: .
523
+ type: string
524
+ required: false # TODO Hand-rolled W-9314597
525
+ status:
526
+ description: .
527
+ type: Status
400
528
  required: true
529
+ usecaseName:
530
+ description: .
531
+ type: string
532
+ required: true # TODO Hand-rolled W-9314597
533
+ # TODO Hand-rolled W-16235747
534
+ PredictionRequestWrapperRepresentation:
535
+ description: Wrapper for PredictionRequestRepresentation.
536
+ type: object
537
+ properties:
538
+ predictionRequest:
539
+ description: oas body name.
540
+ type: PredictionRequestRepresentation
541
+
542
+ PredictionWarning:
543
+ description: Warning for a prediction of a particular record
544
+ type: object
545
+ properties:
546
+ missingFieldNames:
547
+ description: .
548
+ type: array
549
+ items:
550
+ type: string
551
+ required: false # TODO Hand-rolled W-16235747
552
+
553
+ outOfBoundFields:
554
+ description: .
555
+ type: array
556
+ items:
557
+ type: FieldCount
558
+ required: false # TODO Hand-rolled W-16235747
559
+
560
+ Predictor:
561
+ description: Predicted object representation for prediction
562
+ type: object
563
+ properties:
564
+ predictorFields:
565
+ description: .
566
+ type: array
567
+ items:
568
+ type: PredictorField
569
+ required: false # TODO Hand-rolled W-16235747
570
+ contributionValue:
571
+ description: .
572
+ format: float
573
+ type: number
574
+ required: false # TODO Hand-rolled W-16235747
575
+ PredictorField:
576
+ description: Field representation for predictor.
577
+ type: object
578
+ properties:
579
+ customText:
580
+ description: .
581
+ type: string
582
+ required: false # TODO Hand-rolled W-16235747
583
+ label:
584
+ description: .
585
+ type: string
586
+ required: false # TODO Hand-rolled W-16235747
587
+ name:
588
+ description: .
589
+ type: string
590
+ required: false # TODO Hand-rolled W-16235747
591
+ prescribedValue:
592
+ description: .
593
+ type: string
594
+ required: false # TODO Hand-rolled W-16235747
595
+ value:
596
+ description: .
597
+ type: string
598
+ required: false # TODO Hand-rolled W-16235747
401
599
  Prescription:
402
600
  description: .
403
601
  type: object
@@ -703,3 +901,19 @@ types:
703
901
  # TODO Hand-rolled W-10128739. Original type: RecommendationInputRepresentation
704
902
  type: RecommendationInputWrapperRepresentation
705
903
  (oas-body-name): recommendationInput
904
+ /v2/predictions:
905
+ post:
906
+ displayName: postAIPrediction
907
+ description: POST resource to fetch the predictions that need to be performed
908
+ at the store by the sales rep.
909
+ responses:
910
+ '200':
911
+ description: Success
912
+ body:
913
+ application/json:
914
+ type: PredictionResponseRepresentation
915
+ body:
916
+ application/json:
917
+ # TODO Hand-rolled W-10128739. Original type: PredictionRequestRepresentation
918
+ type: PredictionRequestWrapperRepresentation
919
+ (oas-body-name): predictionRequest
@@ -18,7 +18,11 @@ types:
18
18
  (luvio.opaque): true
19
19
  (luvio.key):
20
20
  status: status.message
21
-
21
+ PredictionResponseRepresentation:
22
+ (luvio.ttl): 1000
23
+ (luvio.opaque): true
24
+ (luvio.key):
25
+ status: status.message
22
26
  /connect:
23
27
  /aiaccelerator:
24
28
  /predictions:
@@ -29,3 +33,7 @@ types:
29
33
  post:
30
34
  (luvio.adapter):
31
35
  name: fetchRecommendations
36
+ /v2/predictions:
37
+ post:
38
+ (luvio.adapter):
39
+ name: getPredictions