@salesforce/lds-adapters-platform-flow 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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/platform-flow.js +628 -0
- package/dist/es/es2018/types/src/adapters/invokeAction.d.ts +6 -0
- package/dist/es/es2018/types/src/adapters/navigateFlow.d.ts +6 -0
- package/dist/es/es2018/types/src/adapters/resumeFlow.d.ts +6 -0
- package/dist/es/es2018/types/src/adapters/startFlow.d.ts +6 -0
- package/dist/es/es2018/types/src/artifacts/main.d.ts +4 -0
- package/dist/es/es2018/types/src/artifacts/sfdc.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/invokeAction.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/navigateFlow.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/resumeFlow.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/startFlow.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +9 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectInteractionRuntimeInvokeAction.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectInteractionRuntimeNavigateFlow.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectInteractionRuntimeResumeFlow.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectInteractionRuntimeStartFlow.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeHashbagRepresentation.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeInvokeActionInputRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeInvokeActionInputWrapperRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeNavigateFlowRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeNavigateFlowWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeNavigationFieldValue.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeNavigationResult.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeResponseRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeResumeFlowRepresentation.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeRunFlowRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +69 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +655 -0
- package/src/raml/api.raml +210 -0
- package/src/raml/luvio.raml +44 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
# TODO: This file was manually constructed; we need to switch to generated copy. See W-9770842.
|
|
3
|
+
securedBy:
|
|
4
|
+
- OAuth2
|
|
5
|
+
title: Flow Adapter API
|
|
6
|
+
version: '53.0'
|
|
7
|
+
mediaType: application/json
|
|
8
|
+
protocols:
|
|
9
|
+
- https
|
|
10
|
+
baseUri: /services/data/v66.0
|
|
11
|
+
securitySchemes:
|
|
12
|
+
OAuth2:
|
|
13
|
+
type: OAuth 2.0
|
|
14
|
+
settings:
|
|
15
|
+
authorizationUri: https://example.com/oauth/authorize
|
|
16
|
+
accessTokenUri: ''
|
|
17
|
+
authorizationGrants:
|
|
18
|
+
- implicit
|
|
19
|
+
annotationTypes:
|
|
20
|
+
oas-readOnly:
|
|
21
|
+
type: boolean
|
|
22
|
+
allowedTargets: TypeDeclaration
|
|
23
|
+
oas-collectionFormat:
|
|
24
|
+
type: string
|
|
25
|
+
oas-body-name:
|
|
26
|
+
type: string
|
|
27
|
+
allowedTargets: TypeDeclaration
|
|
28
|
+
types:
|
|
29
|
+
FlowRuntimeRunFlowRepresentation:
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
flowDevName:
|
|
33
|
+
type: string
|
|
34
|
+
required: true
|
|
35
|
+
flowVersionId:
|
|
36
|
+
type: string
|
|
37
|
+
required: false
|
|
38
|
+
arguments:
|
|
39
|
+
type: string
|
|
40
|
+
required: false
|
|
41
|
+
enableTrace:
|
|
42
|
+
type: boolean
|
|
43
|
+
required: false
|
|
44
|
+
enableRollbackMode:
|
|
45
|
+
type: boolean
|
|
46
|
+
required: false
|
|
47
|
+
useLatestSubflow:
|
|
48
|
+
type: boolean
|
|
49
|
+
required: false
|
|
50
|
+
debugAsUserId:
|
|
51
|
+
type: string
|
|
52
|
+
required: false
|
|
53
|
+
isBuilderDebug:
|
|
54
|
+
type: boolean
|
|
55
|
+
required: false
|
|
56
|
+
|
|
57
|
+
FlowRuntimeHashbagRepresentation:
|
|
58
|
+
type: object
|
|
59
|
+
properties:
|
|
60
|
+
//:
|
|
61
|
+
type: any
|
|
62
|
+
|
|
63
|
+
FlowRuntimeNavigationFieldValue:
|
|
64
|
+
type: object
|
|
65
|
+
properties:
|
|
66
|
+
field:
|
|
67
|
+
type: string
|
|
68
|
+
required: true
|
|
69
|
+
isVisible:
|
|
70
|
+
type: boolean | nil
|
|
71
|
+
required: false
|
|
72
|
+
value:
|
|
73
|
+
type: any
|
|
74
|
+
required: false
|
|
75
|
+
|
|
76
|
+
FlowRuntimeNavigateFlowWrapperRepresentation:
|
|
77
|
+
type: object
|
|
78
|
+
properties:
|
|
79
|
+
request:
|
|
80
|
+
type: FlowRuntimeNavigateFlowRepresentation
|
|
81
|
+
required: true
|
|
82
|
+
|
|
83
|
+
FlowRuntimeNavigateFlowRepresentation:
|
|
84
|
+
type: object
|
|
85
|
+
properties:
|
|
86
|
+
action:
|
|
87
|
+
type: string
|
|
88
|
+
required: true
|
|
89
|
+
serializedState:
|
|
90
|
+
type: string
|
|
91
|
+
required: true
|
|
92
|
+
fields:
|
|
93
|
+
type: array
|
|
94
|
+
required: false
|
|
95
|
+
items:
|
|
96
|
+
type: FlowRuntimeNavigationFieldValue
|
|
97
|
+
uiElementVisited:
|
|
98
|
+
type: boolean
|
|
99
|
+
required: false
|
|
100
|
+
enableTrace:
|
|
101
|
+
type: boolean
|
|
102
|
+
required: false
|
|
103
|
+
lcErrors:
|
|
104
|
+
type: FlowRuntimeHashbagRepresentation
|
|
105
|
+
required: false
|
|
106
|
+
isBuilderDebug:
|
|
107
|
+
type: boolean
|
|
108
|
+
required: false
|
|
109
|
+
|
|
110
|
+
FlowRuntimeResumeFlowRepresentation:
|
|
111
|
+
type: object
|
|
112
|
+
properties:
|
|
113
|
+
pausedInterviewId:
|
|
114
|
+
type: string
|
|
115
|
+
required: true
|
|
116
|
+
|
|
117
|
+
FlowRuntimeNavigationResult:
|
|
118
|
+
type: object
|
|
119
|
+
properties:
|
|
120
|
+
//:
|
|
121
|
+
type: any
|
|
122
|
+
|
|
123
|
+
FlowRuntimeResponseRepresentation:
|
|
124
|
+
type: object
|
|
125
|
+
properties:
|
|
126
|
+
error:
|
|
127
|
+
type: any
|
|
128
|
+
required: false
|
|
129
|
+
response:
|
|
130
|
+
type: FlowRuntimeNavigationResult | nil
|
|
131
|
+
required: false
|
|
132
|
+
|
|
133
|
+
FlowRuntimeInvokeActionInputWrapperRepresentation:
|
|
134
|
+
type: object
|
|
135
|
+
properties:
|
|
136
|
+
request:
|
|
137
|
+
type: FlowRuntimeInvokeActionInputRepresentation
|
|
138
|
+
required: true
|
|
139
|
+
|
|
140
|
+
FlowRuntimeInvokeActionInputRepresentation:
|
|
141
|
+
description: Invocable actions input values representation
|
|
142
|
+
type: object
|
|
143
|
+
properties:
|
|
144
|
+
actionName:
|
|
145
|
+
description: ActionName
|
|
146
|
+
type: string
|
|
147
|
+
actionType:
|
|
148
|
+
description: ActionType
|
|
149
|
+
type: string
|
|
150
|
+
flowVersionId:
|
|
151
|
+
description: FlowVersionId
|
|
152
|
+
type: string
|
|
153
|
+
inputValues:
|
|
154
|
+
description: InputValues
|
|
155
|
+
type: object
|
|
156
|
+
properties:
|
|
157
|
+
//:
|
|
158
|
+
type: any
|
|
159
|
+
|
|
160
|
+
/connect/interaction/runtime/startFlow:
|
|
161
|
+
post:
|
|
162
|
+
responses:
|
|
163
|
+
'200':
|
|
164
|
+
description: Success
|
|
165
|
+
body:
|
|
166
|
+
application/json:
|
|
167
|
+
type: FlowRuntimeResponseRepresentation
|
|
168
|
+
body:
|
|
169
|
+
application/json:
|
|
170
|
+
type: FlowRuntimeRunFlowRepresentation
|
|
171
|
+
|
|
172
|
+
/connect/interaction/runtime/navigateFlow:
|
|
173
|
+
post:
|
|
174
|
+
responses:
|
|
175
|
+
'200':
|
|
176
|
+
description: Success
|
|
177
|
+
body:
|
|
178
|
+
application/json:
|
|
179
|
+
type: FlowRuntimeResponseRepresentation
|
|
180
|
+
body:
|
|
181
|
+
application/json:
|
|
182
|
+
type: FlowRuntimeNavigateFlowWrapperRepresentation
|
|
183
|
+
(oas-body-name): request
|
|
184
|
+
|
|
185
|
+
/connect/interaction/runtime/resumeFlow:
|
|
186
|
+
post:
|
|
187
|
+
responses:
|
|
188
|
+
'200':
|
|
189
|
+
description: Success
|
|
190
|
+
body:
|
|
191
|
+
application/json:
|
|
192
|
+
type: FlowRuntimeResponseRepresentation
|
|
193
|
+
body:
|
|
194
|
+
application/json:
|
|
195
|
+
type: FlowRuntimeResumeFlowRepresentation
|
|
196
|
+
|
|
197
|
+
/connect/interaction/runtime/invokeAction:
|
|
198
|
+
post:
|
|
199
|
+
displayName: postFlowRuntimeInvokeAction
|
|
200
|
+
description: Invokes an invocable action
|
|
201
|
+
responses:
|
|
202
|
+
'200':
|
|
203
|
+
description: Success
|
|
204
|
+
body:
|
|
205
|
+
application/json:
|
|
206
|
+
type: FlowRuntimeResponseRepresentation
|
|
207
|
+
body:
|
|
208
|
+
application/json:
|
|
209
|
+
type: FlowRuntimeInvokeActionInputWrapperRepresentation
|
|
210
|
+
(oas-body-name): request
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'FlowRuntime'
|
|
8
|
+
(luvio.ttl): 2592000000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
FlowRuntimeResponseRepresentation:
|
|
12
|
+
(luvio.opaque): true
|
|
13
|
+
|
|
14
|
+
FlowRuntimeInvokeActionInputRepresentation:
|
|
15
|
+
(luvio.ttl): 500
|
|
16
|
+
(luvio.opaque): true
|
|
17
|
+
|
|
18
|
+
FlowRuntimeInvokeActionOutputRepresentation:
|
|
19
|
+
(luvio.ttl): 500
|
|
20
|
+
(luvio.opaque): true
|
|
21
|
+
|
|
22
|
+
/connect/interaction/runtime/startFlow:
|
|
23
|
+
post:
|
|
24
|
+
(luvio.adapter):
|
|
25
|
+
name: startFlow
|
|
26
|
+
(luvio.method): get
|
|
27
|
+
|
|
28
|
+
/connect/interaction/runtime/navigateFlow:
|
|
29
|
+
post:
|
|
30
|
+
(luvio.adapter):
|
|
31
|
+
name: navigateFlow
|
|
32
|
+
(luvio.method): get
|
|
33
|
+
|
|
34
|
+
/connect/interaction/runtime/resumeFlow:
|
|
35
|
+
post:
|
|
36
|
+
(luvio.adapter):
|
|
37
|
+
name: resumeFlow
|
|
38
|
+
(luvio.method): get
|
|
39
|
+
|
|
40
|
+
/connect/interaction/runtime/invokeAction:
|
|
41
|
+
post:
|
|
42
|
+
(luvio.adapter):
|
|
43
|
+
name: invokeAction
|
|
44
|
+
(luvio.method): get
|