@salesforce/lds-adapters-industries-decisiontable 1.294.0 → 1.295.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
@@ -161,6 +161,46 @@ types:
161
161
  description: Represents the Error Message if Transaction failed for any reason.
162
162
  type: string
163
163
  required: false
164
+ DecisionTableRowInputRepresentation:
165
+ description: Represents the information required to update or delete a row
166
+ type: object
167
+ properties:
168
+ action:
169
+ description: Represents the action to this Decision Table Row, null if is
170
+ add
171
+ type: string
172
+ id:
173
+ description: Represents the id of the Decision Table Row, null it if is a
174
+ new row
175
+ type: string
176
+ name:
177
+ description: Represents the name of the Decision Table Row
178
+ type: string
179
+ rowData:
180
+ description: Represents the key value pair of the Decision Table Row.
181
+ type: object
182
+ properties:
183
+ //:
184
+ type: object
185
+ DecisionTableRowsListInputRepresentation:
186
+ description: Represents the information to update the rows in CSV based Decision
187
+ Table
188
+ type: object
189
+ properties:
190
+ deleteAllRows:
191
+ description: Specifies if rows should be deleted
192
+ type: boolean
193
+ required: false
194
+ fileId:
195
+ description: Represents the id of the CSV file
196
+ type: string
197
+ required: false
198
+ rows:
199
+ description: Represents a list of rows to be updated
200
+ type: array
201
+ items:
202
+ type: DecisionTableRowInputRepresentation
203
+ required: false
164
204
  DecisionTableParameterOutputRepresentation:
165
205
  description: Represents the decision table parameter
166
206
  type: object
@@ -391,6 +431,28 @@ types:
391
431
  required: false
392
432
  items:
393
433
  type: ErrorOutputRepresentation
434
+ DecisionTableDataOutputRepresentation:
435
+ description: Representation of the status of an action performed
436
+ type: object
437
+ properties:
438
+ errorFileId:
439
+ description: Represents the Error Code if Transaction failed for any reason.
440
+ type: string
441
+ required: false
442
+ errors:
443
+ description: Represents the list of Error Messages if Transaction failed for
444
+ any reason.
445
+ type: array
446
+ items:
447
+ type: string
448
+ required: false
449
+ message:
450
+ description: Represents the Error Message if Transaction failed for any reason.
451
+ type: string
452
+ success:
453
+ description: Returns TRUE or FALSE depending on Decision Table Definition
454
+ creation is successful or some error encountered.
455
+ type: boolean
394
456
  /connect:
395
457
  /business-rules/decision-table:
396
458
  /definitions/{decisionTableId}:
@@ -436,3 +498,22 @@ types:
436
498
  templateName:
437
499
  type: string
438
500
  required: true
501
+ /{decisionTableId}/data:
502
+ post:
503
+ displayName: postDecisionTableRows
504
+ description: POST Resource method to update Rows in a CSV Based Decision Table.
505
+ responses:
506
+ '200':
507
+ description: Success
508
+ body:
509
+ application/json:
510
+ type: DecisionTableDataOutputRepresentation
511
+ body:
512
+ application/json:
513
+ type: DecisionTableRowsListInputRepresentation
514
+ (oas-body-name): rowsInput
515
+ uriParameters:
516
+ decisionTableId:
517
+ description: Unique ID used to represent a decision table.
518
+ type: string
519
+ required: true
@@ -38,6 +38,11 @@ types:
38
38
  DecisionTableTemplatesListOutputRepresentation:
39
39
  (luvio.ttl): 1000
40
40
  (luvio.opaque): true
41
+ DecisionTableDataOutputRepresentation:
42
+ (luvio.ttl): 1000
43
+ (luvio.opaque): true
44
+ (luvio.key):
45
+ success: success
41
46
  /connect:
42
47
  /business-rules/decision-table:
43
48
  /definitions/{decisionTableId}:
@@ -52,3 +57,7 @@ types:
52
57
  get:
53
58
  (luvio.adapter):
54
59
  name: getDecisionTableTemplate
60
+ /{decisionTableId}/data:
61
+ post:
62
+ (luvio.adapter):
63
+ name: postDecisionTableRows