@salesforce/lds-adapters-industries-decisiontable 1.248.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.
@@ -0,0 +1,309 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '60.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v60.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
+ DecisionTableDefinitionOutputRepresentation:
29
+ description: Represents the decision table definition
30
+ type: object
31
+ properties:
32
+ collectOperator:
33
+ description: Collect operator used in case of Collect Hit Policy
34
+ type: string
35
+ required: false
36
+ enum:
37
+ - Count
38
+ - Maximum
39
+ - Minimum
40
+ - None
41
+ - Sum
42
+ conditionCriteria:
43
+ description: The custom logic that's used to decide how the input fields are
44
+ processed
45
+ type: string
46
+ required: false
47
+ conditionType:
48
+ description: The condition logic that's used for input fields
49
+ type: string
50
+ required: false
51
+ enum:
52
+ - All
53
+ - Any
54
+ - Custom
55
+ decisionResultPolicy:
56
+ description: Hit policy to specify what will be the result of the decision
57
+ table
58
+ type: string
59
+ required: false
60
+ enum:
61
+ - AnyValue
62
+ - CollectOperator
63
+ - FirstMatch
64
+ - OutputOrder
65
+ - Priority
66
+ - RuleOrder
67
+ - UniqueValues
68
+ description:
69
+ description: Description of the decision table
70
+ type: string
71
+ required: false
72
+ fullName:
73
+ description: Unique name of the rule definition
74
+ type: string
75
+ required: false
76
+ id:
77
+ description: ID of the decision table
78
+ type: string
79
+ required: false
80
+ parameters:
81
+ description: Represents an array of input fields defined for the decision
82
+ table
83
+ type: array
84
+ items:
85
+ type: DecisionTableParameterOutputRepresentation
86
+ setupName:
87
+ description: Name of the decision table
88
+ type: string
89
+ required: false
90
+ sourceCriteria:
91
+ description: Output array representation of source filters fieldName, operators,
92
+ valueType etc.
93
+ type: array
94
+ items:
95
+ type: DecisionTableSourceCriteriaOutputRepresentation
96
+ sourceObject:
97
+ description: The Object on which the decision table is based
98
+ type: string
99
+ required: false
100
+ sourceType:
101
+ description: The source from where decision table data is sourced
102
+ type: string
103
+ required: false
104
+ enum:
105
+ - CsvUpload
106
+ - MultipleSobjects
107
+ - SingleSobject
108
+ sourceconditionLogic:
109
+ description: Custom logic that's used to decide how criteria on source is
110
+ applied
111
+ type: string
112
+ required: false
113
+ status:
114
+ description: Status of the decision table
115
+ type: string
116
+ required: false
117
+ enum:
118
+ - ActivationInProgress
119
+ - Active
120
+ - Draft
121
+ - Inactive
122
+ usageType:
123
+ description: The process type that uses this decision table
124
+ type: string
125
+ required: false
126
+ enum:
127
+ - AiAcceleratorSubscriberChurnPrediction
128
+ - Bre
129
+ - CustomLoyalty
130
+ - DefaultPricing
131
+ - Pricing
132
+ - ProductCategoryQualification
133
+ - ProductEligibility
134
+ - ProductQualification
135
+ - RecordAlert
136
+ - ShipAndDebit
137
+ - TestProcess
138
+ - TierProcessing
139
+ - TransactionJournal
140
+ - WarrantyClaim
141
+ DecisionTableOutputRepresentation:
142
+ description: Represents the decision table creation/fetch/delete response and
143
+ its status
144
+ type: object
145
+ properties:
146
+ code:
147
+ description: Represents the Error Code if Decision Table Definition creation
148
+ failed for any reason.
149
+ type: string
150
+ required: false
151
+ decisionTable:
152
+ description: Represents the Decision Table Definition Output Representation
153
+ type
154
+ type: DecisionTableDefinitionOutputRepresentation
155
+ isSuccess:
156
+ description: Returns TRUE or FALSE depending on Decision Table Definition
157
+ creation is successful or some error encountered.
158
+ type: boolean
159
+ required: false
160
+ message:
161
+ description: Represents the Error Message if Transaction failed for any reason.
162
+ type: string
163
+ required: false
164
+ DecisionTableParameterOutputRepresentation:
165
+ description: Represents the decision table parameter
166
+ type: object
167
+ properties:
168
+ columnMapping:
169
+ description: Specifies the source object path for the mapping to the column
170
+ of an entity
171
+ type: string
172
+ required: false
173
+ dataType:
174
+ description: Data Type of the field used
175
+ type: string
176
+ required: false
177
+ enum:
178
+ - Boolean
179
+ - Currency
180
+ - Date
181
+ - Number
182
+ - Percent
183
+ - String
184
+ decimalScale:
185
+ description: Precision of the field used
186
+ type: integer
187
+ required: false
188
+ domainEntity:
189
+ description: Specifies the entity domain field is mapped to
190
+ type: string
191
+ required: false
192
+ fieldName:
193
+ description: The name of the field to be used in the decision table
194
+ type: string
195
+ required: false
196
+ isGroupByField:
197
+ description: Indicates whether the field is used to group the business rules
198
+ of the decision table
199
+ type: boolean
200
+ required: false
201
+ isPriority:
202
+ description: Whether it is priority field or not
203
+ type: boolean
204
+ required: false
205
+ isRequired:
206
+ description: Valid operators for a field based on its usage
207
+ type: boolean
208
+ required: false
209
+ maxlength:
210
+ description: Maximum length of the field used
211
+ type: integer
212
+ required: false
213
+ operator:
214
+ description: Indicates whether the field is mandatory to be provided during
215
+ lookup for hashing column data
216
+ type: string
217
+ required: false
218
+ enum:
219
+ - Between
220
+ - DoesNotExistIn
221
+ - Equals
222
+ - ExistsIn
223
+ - GreaterOrEqual
224
+ - GreaterThan
225
+ - LessOrEqual
226
+ - LessThan
227
+ - Matches
228
+ - NotEquals
229
+ sequence:
230
+ description: The sequence in which input fields are processed.
231
+ type: integer
232
+ required: false
233
+ sortType:
234
+ description: Specifies the type of sorting done on the rows of a decision
235
+ table
236
+ type: string
237
+ required: false
238
+ enum:
239
+ - AscNullFirst
240
+ - AscNullLast
241
+ - DescNullFirst
242
+ - DescNullLast
243
+ - None
244
+ usage:
245
+ description: A picklist to select whether a particular field will be used
246
+ as input or output
247
+ type: string
248
+ required: false
249
+ enum:
250
+ - Input
251
+ - Output
252
+ DecisionTableSourceCriteriaOutputRepresentation:
253
+ description: Represents the decision table source criteria
254
+ type: object
255
+ properties:
256
+ operator:
257
+ description: Specifies the operator used in the filter criteria
258
+ type: string
259
+ required: false
260
+ enum:
261
+ - DoesNotExistIn
262
+ - Equals
263
+ - ExistsIn
264
+ - GreaterOrEqual
265
+ - GreaterThan
266
+ - LessOrEqual
267
+ - LessThan
268
+ - Matches
269
+ - NotEquals
270
+ sequenceNumber:
271
+ description: The sequence number of the filter criteria in the associated
272
+ decision table source condition
273
+ type: integer
274
+ required: false
275
+ sourceFieldName:
276
+ description: The name of the field that's used in the filter criteria
277
+ type: string
278
+ required: false
279
+ value:
280
+ description: The expected value of the field
281
+ type: string
282
+ required: false
283
+ valueType:
284
+ description: Specifies the type of filter value
285
+ type: string
286
+ required: false
287
+ enum:
288
+ - Formula
289
+ - Literal
290
+ - Lookup
291
+ - Parameter
292
+ - PickList
293
+ /connect:
294
+ /business-rules/decision-table:
295
+ /definitions/{decisionTableId}:
296
+ get:
297
+ displayName: getDecisionTable
298
+ description: Get information about decision table details.
299
+ responses:
300
+ '200':
301
+ description: Success
302
+ body:
303
+ application/json:
304
+ type: DecisionTableOutputRepresentation
305
+
306
+ uriParameters:
307
+ decisionTableId:
308
+ type: string
309
+ required: true
@@ -0,0 +1,28 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'DecisionTable'
8
+ (luvio.ttl): 360000
9
+
10
+ types:
11
+ DecisionTableOutputRepresentation:
12
+ (luvio.ttl): 1000
13
+ (luvio.opaque): true
14
+ DecisionTableDefinitionOutputRepresentation:
15
+ (luvio.ttl): 1000
16
+ (luvio.opaque): true
17
+ DecisionTableParameterOutputRepresentation:
18
+ (luvio.ttl): 1000
19
+ (luvio.opaque): true
20
+ DecisionTableSourceCriteriaOutputRepresentation:
21
+ (luvio.ttl): 1000
22
+ (luvio.opaque): true
23
+ /connect:
24
+ /business-rules/decision-table:
25
+ /definitions/{decisionTableId}:
26
+ get:
27
+ (luvio.adapter):
28
+ name: getDecisionTable