@salesforce/lds-adapters-platform-flow-builder 0.131.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.
Files changed (29) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-flow-builder.js +881 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getRules.d.ts +28 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
  7. package/dist/es/es2018/types/src/generated/resources/getConnectInteractionBuilderRules.d.ts +17 -0
  8. package/dist/es/es2018/types/src/generated/resources/getConnectInteractionOrchestrationInstances.d.ts +15 -0
  9. package/dist/es/es2018/types/src/generated/resources/postConnectInteractionRuntimeNavigateFlowByFlowDevName.d.ts +22 -0
  10. package/dist/es/es2018/types/src/generated/resources/postConnectInteractionRuntimeResumeFlowByFlowDevName.d.ts +15 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectInteractionRuntimeStartFlowByFlowDevName.d.ts +19 -0
  12. package/dist/es/es2018/types/src/generated/types/FlowOperatorParameterRepresentation.d.ts +53 -0
  13. package/dist/es/es2018/types/src/generated/types/FlowOperatorRepresentation.d.ts +29 -0
  14. package/dist/es/es2018/types/src/generated/types/FlowOperatorRuleCollectionRepresentation.d.ts +30 -0
  15. package/dist/es/es2018/types/src/generated/types/FlowOperatorRuleRepresentation.d.ts +52 -0
  16. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationInstanceCollectionRepresentation.d.ts +30 -0
  17. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationInstanceRepresentation.d.ts +48 -0
  18. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationStageInstanceRepresentation.d.ts +42 -0
  19. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationStepInstanceRepresentation.d.ts +45 -0
  20. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationWorkItemRepresentation.d.ts +53 -0
  21. package/dist/es/es2018/types/src/generated/types/FlowRuntimeNavigateRequestRepresentation.d.ts +48 -0
  22. package/dist/es/es2018/types/src/generated/types/FlowRuntimeNavigationFieldValueRepresentation.d.ts +35 -0
  23. package/dist/es/es2018/types/src/generated/types/FlowRuntimeResponseRepresentation.d.ts +32 -0
  24. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
  25. package/package.json +63 -0
  26. package/sfdc/index.d.ts +1 -0
  27. package/sfdc/index.js +913 -0
  28. package/src/raml/api.raml +442 -0
  29. package/src/raml/luvio.raml +39 -0
@@ -0,0 +1,442 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '56.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v58.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
+ FlowOperatorParameterRepresentation:
29
+ description: Parameter on the left or right hand side of an operation
30
+ type: object
31
+ properties:
32
+ canBeApexProperty:
33
+ description: Whether or not this parameter can be an Apex property
34
+ type: string | nil
35
+ canBeSobjectField:
36
+ description: Whether or not this parameter can be an SObject field
37
+ type: string | nil
38
+ canBeSystemVariable:
39
+ description: Whether or not this parameter can be a System variable
40
+ type: string | nil
41
+ cannotBeElements:
42
+ description: List of elements this parameter cannot be
43
+ type: array
44
+ items:
45
+ type: string
46
+ dataType:
47
+ description: Parameter Data type (if param type is Data)
48
+ type: string | nil
49
+ isCollection:
50
+ description: Whether or not this parameter is a collection
51
+ type: boolean
52
+ isNull:
53
+ description: Whether or not this parameter is nullable
54
+ type: boolean
55
+ mustBeElements:
56
+ description: List of elements this parameter must be
57
+ type: array
58
+ items:
59
+ type: string
60
+ paramType:
61
+ description: Parameter type (Data, Element)
62
+ type: string | nil
63
+ FlowOperatorRepresentation:
64
+ description: Operator in rules
65
+ type: object
66
+ properties:
67
+ value:
68
+ description: Operator value
69
+ type: string | nil
70
+ FlowOperatorRuleCollectionRepresentation:
71
+ description: Collection of Flow Operator rules
72
+ type: object
73
+ properties:
74
+ rules:
75
+ description: Collection of Flow Operator rules
76
+ type: array
77
+ items:
78
+ type: FlowOperatorRuleRepresentation
79
+ FlowOperatorRuleRepresentation:
80
+ description: 'Flow operator rule: LHS parameter type, operator, RHS parameter
81
+ types, list of elements it can be applied to'
82
+ type: object
83
+ properties:
84
+ assignmentOperator:
85
+ description: Assignment operator or null if it is not an assignment
86
+ type: FlowOperatorRepresentation
87
+ comparisonOperator:
88
+ description: Comparison operator or null if it is not a comparison
89
+ type: FlowOperatorRepresentation
90
+ excludeElems:
91
+ description: List of elements to be excluded
92
+ type: array
93
+ items:
94
+ type: string
95
+ includeElems:
96
+ description: List of available elements for this rules
97
+ type: array
98
+ items:
99
+ type: string
100
+ left:
101
+ description: Left parameter of the rule
102
+ type: FlowOperatorParameterRepresentation
103
+ rhsParams:
104
+ description: List of available rhs parameters
105
+ type: array
106
+ items:
107
+ type: FlowOperatorParameterRepresentation
108
+ ruleType:
109
+ description: Rule type (assignment, comparison)
110
+ type: string
111
+ validationType:
112
+ description: Validation type (info, warning, error)
113
+ type: string | nil
114
+ FlowOrchestrationInstanceCollectionRepresentation:
115
+ description: Information about a collection of Orchestration instances.
116
+ type: object
117
+ properties:
118
+ instances:
119
+ description: Collection of Orchestration instances
120
+ type: array
121
+ items:
122
+ type: FlowOrchestrationInstanceRepresentation
123
+ FlowOrchestrationInstanceRepresentation:
124
+ description: Information about an Orchestration instance.
125
+ type: object
126
+ properties:
127
+ flowDefinitionDeveloperName:
128
+ description: Developer name of the flow definition
129
+ type: string | nil
130
+ flowDefinitionId:
131
+ description: Id of the flow definition
132
+ type: string | nil
133
+ flowDefinitionName:
134
+ description: Name of the flow definition
135
+ type: string | nil
136
+ id:
137
+ description: Orchestrator instance id
138
+ type: string
139
+ interviewId:
140
+ description: Id of the interview to resume
141
+ type: string | nil
142
+ stageInstances:
143
+ description: The Orchestrator Instance stages
144
+ type: array
145
+ items:
146
+ type: FlowOrchestrationStageInstanceRepresentation
147
+ status:
148
+ description: The Orchestrator Instance status
149
+ type: string
150
+ enum:
151
+ - Completed
152
+ - InProgress
153
+ - NotStarted
154
+ FlowOrchestrationStageInstanceRepresentation:
155
+ description: Information about an Orchestration stage instance.
156
+ type: object
157
+ properties:
158
+ id:
159
+ description: Orchestration stage instance id
160
+ type: string
161
+ label:
162
+ description: Orchestration stage instance label
163
+ type: string | nil
164
+ name:
165
+ description: Orchestration stage instance name
166
+ type: string | nil
167
+ status:
168
+ description: The Orchestration Stage Instance status
169
+ type: string
170
+ enum:
171
+ - Completed
172
+ - InProgress
173
+ - NotStarted
174
+ stepInstances:
175
+ description: Orchestration stage instance steps
176
+ type: array
177
+ items:
178
+ type: FlowOrchestrationStepInstanceRepresentation
179
+ FlowOrchestrationStepInstanceRepresentation:
180
+ description: Information about an Orchestration step instance.
181
+ type: object
182
+ properties:
183
+ id:
184
+ description: Orchestration step instance id
185
+ type: string
186
+ label:
187
+ description: Orchestration step instance label
188
+ type: string | nil
189
+ name:
190
+ description: Orchestration step instance name
191
+ type: string | nil
192
+ status:
193
+ description: The Orchestration Step Instance status
194
+ type: string
195
+ enum:
196
+ - Completed
197
+ - InProgress
198
+ - NotStarted
199
+ stepType:
200
+ description: The Orchestration Step Instance step type
201
+ type: string
202
+ enum:
203
+ - AsynchronousBackgroundStep
204
+ - BackgroundStep
205
+ - InteractiveStep
206
+ workItems:
207
+ description: Orchestration step instance work items
208
+ type: array
209
+ items:
210
+ type: FlowOrchestrationWorkItemRepresentation
211
+ FlowOrchestrationWorkItemRepresentation:
212
+ description: Information about an Orchestration work item.
213
+ type: object
214
+ properties:
215
+ assigneeId:
216
+ description: The assignee for this Orchestrator work item
217
+ type: string
218
+ description:
219
+ description: Description for this Orchestration work item
220
+ type: string | nil
221
+ id:
222
+ description: Orchestration work item id
223
+ type: string
224
+ label:
225
+ description: Label key for this work item
226
+ type: string | nil
227
+ relatedRecordId:
228
+ description: The record this work item is related to
229
+ type: string | nil
230
+ screenFlowDeveloperName:
231
+ description: Developer name of the screen flow to start when assignees work
232
+ on this work item
233
+ type: string
234
+ screenFlowId:
235
+ description: Id of the screen flow to start when assignees work on this work
236
+ item
237
+ type: string
238
+ screenFlowInputs:
239
+ description: Input parameters for the screen flow
240
+ type: string
241
+ status:
242
+ description: This work item status
243
+ type: string
244
+ enum:
245
+ - Assigned
246
+ - Completed
247
+ FlowRuntimeNavigateRequestRepresentation:
248
+ description: Flow navigate request
249
+ type: object
250
+ properties:
251
+ action:
252
+ description: Navigate action
253
+ type: string
254
+ enableTrace:
255
+ description: Enable trace
256
+ type: boolean
257
+ fields:
258
+ description: Values of input fields on a flow screen
259
+ type: array
260
+ items:
261
+ type: object
262
+ lcErrors:
263
+ description: Lightning components errors
264
+ type: object
265
+ properties:
266
+ //:
267
+ type: object
268
+ serializedState:
269
+ description: Serialized state
270
+ type: string
271
+ uiElementVisited:
272
+ description: Element visited
273
+ type: boolean
274
+ FlowRuntimeNavigationFieldValueRepresentation:
275
+ description: A value of an input field on a flow screen
276
+ type: object
277
+ properties:
278
+ field:
279
+ description: Field
280
+ type: string
281
+ isVisible:
282
+ description: Is the field visible?
283
+ type: boolean
284
+ value:
285
+ description: Value
286
+ type: object
287
+ FlowRuntimeResponseRepresentation:
288
+ description: Flow Runtime Response Representation
289
+ type: object
290
+ properties:
291
+ error:
292
+ description: Error
293
+ type: object
294
+ response:
295
+ description: Navigation Result
296
+ type: object
297
+ /connect/interaction:
298
+ /builder/rules:
299
+ get:
300
+ description: Retrieves the list of all rules for given process type, trigger
301
+ type and record trigger type
302
+ responses:
303
+ '200':
304
+ description: Success
305
+ body:
306
+ application/json:
307
+ type: FlowOperatorRuleCollectionRepresentation
308
+ queryParameters:
309
+ flowProcessType:
310
+ type: string
311
+ required: false
312
+ enum:
313
+ - ActionCadenceFlow
314
+ - ActionPlan
315
+ - Appointments
316
+ - AutoLaunchedFlow
317
+ - CartAsyncFlow
318
+ - CheckoutFlow
319
+ - CmsOrchestrator
320
+ - ContactRequestFlow
321
+ - CustomEvent
322
+ - CustomerLifecycle
323
+ - DigitalForm
324
+ - EvaluationFlow
325
+ - FieldServiceMobile
326
+ - FieldServiceWeb
327
+ - Flow
328
+ - FscLending
329
+ - InvocableProcess
330
+ - Journey
331
+ - JourneyBuilderIntegration
332
+ - LoginFlow
333
+ - LoyaltyManagementFlow
334
+ - ManagedContentFlow
335
+ - OfflineFlow
336
+ - OrchestrationFlow
337
+ - Orchestrator
338
+ - RecommendationStrategy
339
+ - RoutingFlow
340
+ - ServiceCatalogItemFlow
341
+ - Survey
342
+ - SurveyEnrich
343
+ - TransactionSecurityFlow
344
+ - UserProvisioningFlow
345
+ - Workflow
346
+ flowTriggerType:
347
+ type: string
348
+ required: false
349
+ enum:
350
+ - None
351
+ - PlatformEvent
352
+ - RecordAfterSave
353
+ - RecordBeforeDelete
354
+ - RecordBeforeSave
355
+ - Scheduled
356
+ - ScheduledJourney
357
+ recordTriggerType:
358
+ type: string
359
+ required: false
360
+ enum:
361
+ - Create
362
+ - CreateAndUpdate
363
+ - Delete
364
+ - None
365
+ - Update
366
+ /orchestration/instances:
367
+ get:
368
+ description: Retrieves a collection of Orchestration instances
369
+ responses:
370
+ '200':
371
+ description: Success
372
+ body:
373
+ application/json:
374
+ type: FlowOrchestrationInstanceCollectionRepresentation
375
+ queryParameters:
376
+ relatedRecordId:
377
+ type: string
378
+ required: false
379
+ /runtime/{flowDevName}:
380
+ /navigateFlow:
381
+ post:
382
+ description: Navigate a flow
383
+ responses:
384
+ '200':
385
+ description: Success
386
+ body:
387
+ application/json:
388
+ type: FlowRuntimeResponseRepresentation
389
+ body:
390
+ application/json:
391
+ type: FlowRuntimeNavigateRequestRepresentation
392
+ (oas-body-name): request
393
+ uriParameters:
394
+ flowDevName:
395
+ type: string
396
+ required: true
397
+ /resumeFlow:
398
+ post:
399
+ description: Resume a flow
400
+ responses:
401
+ '200':
402
+ description: Success
403
+ body:
404
+ application/json:
405
+ type: FlowRuntimeResponseRepresentation
406
+ queryParameters:
407
+ pausedInterviewId:
408
+ type: string
409
+ required: false
410
+ uriParameters:
411
+ flowDevName:
412
+ type: string
413
+ required: true
414
+ /startFlow:
415
+ post:
416
+ description: Starts a flow
417
+ responses:
418
+ '200':
419
+ description: Success
420
+ body:
421
+ application/json:
422
+ type: FlowRuntimeResponseRepresentation
423
+ queryParameters:
424
+ arguments:
425
+ type: string
426
+ required: false
427
+ debugAsUserId:
428
+ type: string
429
+ required: false
430
+ enableRollbackMode:
431
+ type: boolean
432
+ required: false
433
+ enableTrace:
434
+ type: boolean
435
+ required: false
436
+ flowVersionId:
437
+ type: string
438
+ required: false
439
+ uriParameters:
440
+ flowDevName:
441
+ type: string
442
+ required: true
@@ -0,0 +1,39 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'flow-builder'
8
+ (luvio.ttl): 2592000000
9
+
10
+ types:
11
+ FlowOperatorRuleCollectionRepresentation:
12
+ examples:
13
+ allRules: !include ../mocks/types/allRules.json
14
+
15
+ /connect/interaction/builder/rules:
16
+ get:
17
+ (luvio.adapter):
18
+ name: getRules
19
+ tests:
20
+ validConfigs:
21
+ - |
22
+ {
23
+ "flowTriggerType": "Scheduled",
24
+ "recordTriggerType": "Update"
25
+ }
26
+ expectedResponses:
27
+ - configInput: |
28
+ {
29
+ "flowTriggerType": "None",
30
+ "recordTriggerType": "None"
31
+ }
32
+ mockPayloadId: allRules
33
+ queryParameters:
34
+ flowTriggerType:
35
+ examples:
36
+ allRules: 'None'
37
+ recordTriggerType:
38
+ examples:
39
+ allRules: 'None'