@salesforce/lds-adapters-industries-einstein-aiaccelerator 1.308.0-dev1 → 1.308.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,49 @@ 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
+ predictionScore:
320
+ description: .
321
+ format: float
322
+ type: number
323
+ required: false # TODO Hand-rolled W-16235747
324
+ topPredictors:
325
+ description: .
326
+ type: array
327
+ items:
328
+ type: Predictor
329
+ required: false # TODO Hand-rolled W-16235747
330
+ PredictionOutputObject:
331
+ description: Prediction for a given record
332
+ type: object
333
+ properties:
334
+ errors:
335
+ description: .
336
+ type: array
337
+ items:
338
+ type: Error
339
+ required: false # TODO Hand-rolled W-16235747
340
+ isSuccess:
341
+ description: .
342
+ type: string
343
+ required: true # TODO Hand-rolled W-16235747
344
+ predictionOutput:
345
+ description: .
346
+ type: array
347
+ items:
348
+ type: PredictionOutput
349
+ required: false # TODO Hand-rolled W-16235747
350
+ predictionWarning:
351
+ description: .
352
+ type: PredictionWarning
353
+ required: false # TODO Hand-rolled W-16235747
354
+ recordId:
355
+ description: .
356
+ type: string
357
+ required: true # TODO Hand-rolled W-16235747
303
358
  PredictionOutputRepresentation:
304
359
  description: Predictions for a given request
305
360
  type: object
@@ -397,7 +452,150 @@ types:
397
452
  description: Indicates whether the call succeeded or failed, and in case of
398
453
  failure also provides the reason.
399
454
  type: Status
455
+ required: true # TODO Hand-rolled W-16235747
456
+ PredictionRequestRepresentation:
457
+ description: Request for which predictions are fetched.
458
+ type: object
459
+ properties:
460
+ maxInsights:
461
+ description: .
462
+ type: integer
463
+ required: false # TODO Hand-rolled W-9314597
464
+ predictionModel:
465
+ description: .
466
+ type: string
467
+ required: false # TODO Hand-rolled W-16235747
468
+ predictionPlatform:
469
+ description: .
470
+ type: string
471
+ required: false # TODO Hand-rolled W-16235747
472
+ records:
473
+ type: WrappedList | nil
474
+ required: true # TODO Hand-rolled W-9314597
475
+ scoreFilterCriteria:
476
+ description: .
477
+ type: string
478
+ enum:
479
+ - GreaterThan
480
+ - GreaterThanEquals
481
+ - LessThan
482
+ required: false # TODO Hand-rolled W-9314597
483
+ scoringThreshold:
484
+ description: .
485
+ format: float
486
+ type: number
487
+ required: false # TODO Hand-rolled W-9314597
488
+ sortingOrder:
489
+ description: .
490
+ type: string
491
+ enum:
492
+ - Asc
493
+ - Desc
494
+ required: false # TODO Hand-rolled W-9314597
495
+ usecaseName:
496
+ description: .
497
+ type: string
498
+ required: true # TODO Hand-rolled W-16235747
499
+ PredictionResponseRepresentation:
500
+ description: Predictions for a given request
501
+ type: object
502
+ properties:
503
+ predictionModel:
504
+ description: .
505
+ type: string
506
+ required: false # TODO Hand-rolled W-9314597
507
+ predictionOutputObjects:
508
+ description: .
509
+ type: array
510
+ items:
511
+ type: PredictionOutputObject
512
+ required: false # TODO Hand-rolled W-9314597
513
+ predictionPlatform:
514
+ description: .
515
+ type: string
516
+ required: false # TODO Hand-rolled W-9314597
517
+ predictionType:
518
+ description: .
519
+ type: string
520
+ required: false # TODO Hand-rolled W-9314597
521
+ status:
522
+ description: .
523
+ type: Status
400
524
  required: true
525
+ usecaseName:
526
+ description: .
527
+ type: string
528
+ required: true # TODO Hand-rolled W-9314597
529
+ customPredictionLabel:
530
+ description: .
531
+ type: string
532
+ required: false # 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