@salesforce/lds-adapters-cdp-semantic-engine 0.1.0-dev1

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.
@@ -0,0 +1,170 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '61.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v66.0
10
+ securitySchemes:
11
+ OAuth2:
12
+ type: OAuth 2.0
13
+ settings:
14
+ authorizationUri: https://example.com/oauth/authorize
15
+ accessTokenUri: ''
16
+ authorizationGrants:
17
+ - implicit
18
+ annotationTypes:
19
+ oas-readOnly:
20
+ type: boolean
21
+ allowedTargets: TypeDeclaration
22
+ oas-collectionFormat:
23
+ type: string
24
+ oas-body-name:
25
+ type: string
26
+ allowedTargets: TypeDeclaration
27
+ types:
28
+ FormulaMetadataRepresentation:
29
+ description: Represents Formula Metadata
30
+ type: object
31
+ properties:
32
+ formulaCategory:
33
+ description: formulaCategory
34
+ type: string
35
+ enum:
36
+ - AggregationFunction
37
+ - DateAndTimeFunctions
38
+ - DateFunctions
39
+ - LogicalFunctions
40
+ - LogicalOperators
41
+ - MathFunctions
42
+ - MathOperators
43
+ - Nan
44
+ - NumberFunctions
45
+ - TextFunctions
46
+ formulaDescription:
47
+ description: formulaDescription
48
+ type: string
49
+ formulaName:
50
+ description: formulaName
51
+ type: string
52
+ formulaUsageExample:
53
+ description: formulaUsageExample
54
+ type: string
55
+ # TODO hand-rolled (removed semanticDataModel - deprecated)
56
+ SemanticFormulaMetadataAuthoringResponseRepresentation:
57
+ description: Represents Formula Metadata Authoring Response
58
+ type: object
59
+ properties:
60
+ supportedFormulaMetadataList:
61
+ description: supportedFormulaMetadataList
62
+ type: array
63
+ items:
64
+ type: FormulaMetadataRepresentation
65
+ SemanticQueryRequest:
66
+ description: Input representation for creating Semantic Query
67
+ type: object
68
+ properties:
69
+ cachingLevelRequest:
70
+ description: caching Level Request
71
+ type: string
72
+ required: false # TODO hand-rolled (required: false)
73
+ context:
74
+ description: context
75
+ type: object
76
+ required: false # TODO hand-rolled (required: false)
77
+ properties:
78
+ //:
79
+ type: any # TODO hand-rolled (changed from object with no properties)
80
+ dataspace:
81
+ description: Data space
82
+ type: string
83
+ groupId:
84
+ description: Group id
85
+ type: string
86
+ required: false # TODO hand-rolled (required: false)
87
+ # TODO hand-rolled (removed semanticContainer and semanticDataModel - deprecated)
88
+ semanticModel:
89
+ description: Set SemanticModel
90
+ type: any # TODO hand-rolled (changed from object with no properties)
91
+ required: false # TODO hand-rolled (required: false)
92
+ semanticModelApiName:
93
+ description: Set semanticModelApiName
94
+ type: string
95
+ required: false # TODO hand-rolled (required: false)
96
+ semanticModelId:
97
+ description: Set SemanticModelId
98
+ type: string
99
+ required: false # TODO hand-rolled (required: false)
100
+ source:
101
+ description: source
102
+ type: string
103
+ structuredSemanticQuery:
104
+ description: structuredSemanticQuery
105
+ type: any # TODO hand-rolled (changed from object with no properties)
106
+ SemanticQueryResponse:
107
+ description: Represents Semantic Engine query output
108
+ type: object
109
+ properties:
110
+ cacheLevel:
111
+ description: cacheLevel
112
+ type: string
113
+ required: false # TODO hand-rolled (required: false)
114
+ context:
115
+ description: context
116
+ type: object
117
+ required: false # TODO hand-rolled (required: false)
118
+ properties:
119
+ //:
120
+ type: any # TODO hand-rolled (changed from object with no properties)
121
+ errorMessage:
122
+ description: Error message
123
+ type: string
124
+ required: false # TODO hand-rolled (required: false)
125
+ queryResults:
126
+ description: Query Results
127
+ type: any # TODO hand-rolled (changed from object with no properties)
128
+ status:
129
+ description: Status ENUM
130
+ type: string
131
+ /semantic-engine/gateway:
132
+ post:
133
+ displayName: postSemanticQuery
134
+ description: POST method for query Semantic Engine
135
+ responses:
136
+ '200':
137
+ description: Success
138
+ body:
139
+ application/json:
140
+ type: SemanticQueryResponse
141
+ body:
142
+ application/json:
143
+ type: SemanticQueryRequest
144
+ # TODO hand-rolled W-9271732 (removed required: false)
145
+ (oas-body-name): semanticQueryRequest
146
+ /semantic-engine/gateway/non-interactive: # not exposed in LDS
147
+ post:
148
+ displayName: postSemanticNonInteractiveQuery
149
+ description: POST method for non interactive query Semantic Engine
150
+ responses:
151
+ '200':
152
+ description: Success
153
+ body:
154
+ application/json:
155
+ type: SemanticQueryResponse
156
+ body:
157
+ application/json:
158
+ type: SemanticQueryRequest
159
+ # TODO hand-rolled W-9271732 (removed required: false)
160
+ (oas-body-name): semanticNonInteractiveQueryRequest
161
+ /ssot/semantic/models/formula-metadata: # not exposed in LDS
162
+ get:
163
+ displayName: getFormulaMetadata
164
+ description: GET method for Semantic Engine
165
+ responses:
166
+ '200':
167
+ description: Success
168
+ body:
169
+ application/json:
170
+ type: SemanticFormulaMetadataAuthoringResponseRepresentation
@@ -0,0 +1,24 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'SemanticEngine'
8
+ (luvio.ttl): 360000
9
+
10
+ types:
11
+ SemanticQueryRequest:
12
+ (luvio.opaque): true
13
+ SemanticQueryResponse:
14
+ (luvio.opaque): true
15
+ (luvio.key):
16
+ # There is no unique key in our output representation. Without a key in the output representation, the RAML compilation is throwing an error
17
+ status: status
18
+ # Setting the cache entry to 100ms to ensure repeated replacement
19
+ (luvio.ttl): 100
20
+
21
+ /semantic-engine/gateway:
22
+ post:
23
+ (luvio.adapter):
24
+ name: executeSemanticQuery