@salesforce/lds-adapters-industries-einstein-aiaccelerator 1.308.0-dev4 → 1.308.0-dev6

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
@@ -112,6 +124,20 @@ types:
112
124
  description: insightsSettings
113
125
  type: NullableInsightsSettingsMap | nil
114
126
  required: false
127
+ NullableCustomAttributesMap:
128
+ description: Wrapper for Nullable Map Object.
129
+ type: object
130
+ properties:
131
+ //:
132
+ type: string | nil
133
+ CustomAttributesMap:
134
+ description: CustomAttributesMap wrapper object for use in PredictionInputRepresentation.
135
+ type: object
136
+ properties:
137
+ customAttributes:
138
+ description: customAttributes
139
+ type: NullableCustomAttributesMap | nil
140
+ required: false
115
141
  ModelFeature:
116
142
  description: .
117
143
  type: object
@@ -300,6 +326,57 @@ types:
300
326
  items:
301
327
  type: Suggestion | nil
302
328
  required: false
329
+ PredictionOutput:
330
+ description: Predicted object representation for prediction.
331
+ type: object
332
+ properties:
333
+ customAttributes:
334
+ description: .
335
+ type: CustomAttributesMap | nil
336
+ required: false # TODO Hand-rolled W-9314597
337
+ customPredictionLabel:
338
+ description: .
339
+ type: string
340
+ required: false # TODO Hand-rolled W-9314597
341
+ predictionScore:
342
+ description: .
343
+ format: float
344
+ type: number
345
+ required: false # TODO Hand-rolled W-16235747
346
+ topPredictors:
347
+ description: .
348
+ type: array
349
+ items:
350
+ type: Predictor
351
+ required: false # TODO Hand-rolled W-16235747
352
+ PredictionOutputObject:
353
+ description: Prediction for a given record
354
+ type: object
355
+ properties:
356
+ errors:
357
+ description: .
358
+ type: array
359
+ items:
360
+ type: Error
361
+ required: false # TODO Hand-rolled W-16235747
362
+ isSuccess:
363
+ description: .
364
+ type: boolean | nil
365
+ required: true # TODO Hand-rolled W-16235747
366
+ predictionOutput:
367
+ description: .
368
+ type: array
369
+ items:
370
+ type: PredictionOutput
371
+ required: false # TODO Hand-rolled W-16235747
372
+ predictionWarning:
373
+ description: .
374
+ type: PredictionWarning
375
+ required: false # TODO Hand-rolled W-16235747
376
+ recordId:
377
+ description: .
378
+ type: string
379
+ required: true # TODO Hand-rolled W-16235747
303
380
  PredictionOutputRepresentation:
304
381
  description: Predictions for a given request
305
382
  type: object
@@ -397,7 +474,146 @@ types:
397
474
  description: Indicates whether the call succeeded or failed, and in case of
398
475
  failure also provides the reason.
399
476
  type: Status
477
+ required: true # TODO Hand-rolled W-16235747
478
+ PredictionRequestRepresentation:
479
+ description: Request for which predictions are fetched.
480
+ type: object
481
+ properties:
482
+ maxInsights:
483
+ description: .
484
+ type: integer
485
+ required: false # TODO Hand-rolled W-9314597
486
+ predictionModel:
487
+ description: .
488
+ type: string
489
+ required: true # TODO Hand-rolled W-16235747
490
+ predictionPlatform:
491
+ description: .
492
+ type: string
493
+ required: false # TODO Hand-rolled W-16235747
494
+ records:
495
+ type: WrappedList | nil
496
+ required: false # TODO Hand-rolled W-9314597
497
+ scoreFilterCriteria:
498
+ description: .
499
+ type: string
500
+ enum:
501
+ - GreaterThan
502
+ - GreaterThanEquals
503
+ - LessThan
504
+ required: false # TODO Hand-rolled W-9314597
505
+ scoringThreshold:
506
+ description: .
507
+ format: float
508
+ type: number
509
+ required: false # TODO Hand-rolled W-9314597
510
+ sortingOrder:
511
+ description: .
512
+ type: string
513
+ enum:
514
+ - Asc
515
+ - Desc
516
+ required: false # TODO Hand-rolled W-9314597
517
+ usecaseName:
518
+ description: .
519
+ type: string
520
+ required: true # TODO Hand-rolled W-16235747
521
+ PredictionResponseRepresentation:
522
+ description: Predictions for a given request
523
+ type: object
524
+ properties:
525
+ predictionModel:
526
+ description: .
527
+ type: string
528
+ required: false # TODO Hand-rolled W-9314597
529
+ predictionOutputObjects:
530
+ description: .
531
+ type: array
532
+ items:
533
+ type: PredictionOutputObject
534
+ required: false # TODO Hand-rolled W-9314597
535
+ predictionPlatform:
536
+ description: .
537
+ type: string
538
+ required: false # TODO Hand-rolled W-9314597
539
+ predictionType:
540
+ description: .
541
+ type: string
542
+ required: false # TODO Hand-rolled W-9314597
543
+ status:
544
+ description: .
545
+ type: Status
400
546
  required: true
547
+ usecaseName:
548
+ description: .
549
+ type: string
550
+ required: true # TODO Hand-rolled W-9314597
551
+ # TODO Hand-rolled W-16235747
552
+ PredictionRequestWrapperRepresentation:
553
+ description: Wrapper for PredictionRequestRepresentation.
554
+ type: object
555
+ properties:
556
+ predictionRequest:
557
+ description: oas body name.
558
+ type: PredictionRequestRepresentation
559
+
560
+ PredictionWarning:
561
+ description: Warning for a prediction of a particular record
562
+ type: object
563
+ properties:
564
+ missingFieldNames:
565
+ description: .
566
+ type: array
567
+ items:
568
+ type: string
569
+ required: false # TODO Hand-rolled W-16235747
570
+
571
+ outOfBoundFields:
572
+ description: .
573
+ type: array
574
+ items:
575
+ type: FieldCount
576
+ required: false # TODO Hand-rolled W-16235747
577
+
578
+ Predictor:
579
+ description: Predicted object representation for prediction
580
+ type: object
581
+ properties:
582
+ predictorFields:
583
+ description: .
584
+ type: array
585
+ items:
586
+ type: PredictorField
587
+ required: false # TODO Hand-rolled W-16235747
588
+ contributionValue:
589
+ description: .
590
+ format: float
591
+ type: number
592
+ required: false # TODO Hand-rolled W-16235747
593
+ PredictorField:
594
+ description: Field representation for predictor.
595
+ type: object
596
+ properties:
597
+ customText:
598
+ description: .
599
+ type: string
600
+ required: false # TODO Hand-rolled W-16235747
601
+ label:
602
+ description: .
603
+ type: string
604
+ required: false # TODO Hand-rolled W-16235747
605
+ name:
606
+ description: .
607
+ type: string
608
+ required: false # TODO Hand-rolled W-16235747
609
+ prescribedValue:
610
+ description: .
611
+ type: string
612
+ required: false # TODO Hand-rolled W-16235747
613
+ value:
614
+ description: .
615
+ type: string
616
+ required: false # TODO Hand-rolled W-16235747
401
617
  Prescription:
402
618
  description: .
403
619
  type: object
@@ -703,3 +919,19 @@ types:
703
919
  # TODO Hand-rolled W-10128739. Original type: RecommendationInputRepresentation
704
920
  type: RecommendationInputWrapperRepresentation
705
921
  (oas-body-name): recommendationInput
922
+ /v2/predictions:
923
+ post:
924
+ displayName: postAIPrediction
925
+ description: POST resource to fetch the predictions that need to be performed
926
+ at the store by the sales rep.
927
+ responses:
928
+ '200':
929
+ description: Success
930
+ body:
931
+ application/json:
932
+ type: PredictionResponseRepresentation
933
+ body:
934
+ application/json:
935
+ # TODO Hand-rolled W-10128739. Original type: PredictionRequestRepresentation
936
+ type: PredictionRequestRepresentation
937
+ (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