@salesforce/lds-adapters-platform-flow 1.100.2

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 (32) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-flow.js +581 -0
  3. package/dist/types/src/adapters/navigateFlow.d.ts +6 -0
  4. package/dist/types/src/adapters/resumeFlow.d.ts +6 -0
  5. package/dist/types/src/adapters/startFlow.d.ts +6 -0
  6. package/dist/types/src/artifacts/main.d.ts +3 -0
  7. package/dist/types/src/artifacts/sfdc.d.ts +4 -0
  8. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  9. package/dist/types/src/generated/adapters/navigateFlow.d.ts +27 -0
  10. package/dist/types/src/generated/adapters/resumeFlow.d.ts +26 -0
  11. package/dist/types/src/generated/adapters/startFlow.d.ts +31 -0
  12. package/dist/types/src/generated/artifacts/main.d.ts +3 -0
  13. package/dist/types/src/generated/artifacts/sfdc.d.ts +7 -0
  14. package/dist/types/src/generated/resources/postConnectInteractionRuntimeNavigateFlow.d.ts +16 -0
  15. package/dist/types/src/generated/resources/postConnectInteractionRuntimeResumeFlow.d.ts +15 -0
  16. package/dist/types/src/generated/resources/postConnectInteractionRuntimeStartFlow.d.ts +20 -0
  17. package/dist/types/src/generated/types/FlowRuntimeHashbagRepresentation.d.ts +28 -0
  18. package/dist/types/src/generated/types/FlowRuntimeNavigateFlowRepresentation.d.ts +40 -0
  19. package/dist/types/src/generated/types/FlowRuntimeNavigateFlowWrapperRepresentation.d.ts +29 -0
  20. package/dist/types/src/generated/types/FlowRuntimeNavigationFieldValue.d.ts +32 -0
  21. package/dist/types/src/generated/types/FlowRuntimeNavigationResult.d.ts +28 -0
  22. package/dist/types/src/generated/types/FlowRuntimeResponseRepresentation.d.ts +31 -0
  23. package/dist/types/src/generated/types/FlowRuntimeResumeFlowRepresentation.d.ts +28 -0
  24. package/dist/types/src/generated/types/FlowRuntimeRunFlowRepresentation.d.ts +38 -0
  25. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  26. package/dist/umd/es2018/platform-flow.js +591 -0
  27. package/dist/umd/es5/platform-flow.js +600 -0
  28. package/package.json +65 -0
  29. package/sfdc/index.d.ts +1 -0
  30. package/sfdc/index.js +609 -0
  31. package/src/raml/api.raml +159 -0
  32. package/src/raml/luvio.raml +30 -0
@@ -0,0 +1,159 @@
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/v58.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
+ debugAsUserId:
48
+ type: string
49
+ required: false
50
+
51
+ FlowRuntimeHashbagRepresentation:
52
+ type: object
53
+ properties:
54
+ //:
55
+ type: any
56
+
57
+ FlowRuntimeNavigationFieldValue:
58
+ type: object
59
+ properties:
60
+ field:
61
+ type: string
62
+ required: true
63
+ isVisible:
64
+ type: boolean | nil
65
+ required: false
66
+ value:
67
+ type: any
68
+ required: false
69
+
70
+ FlowRuntimeNavigateFlowWrapperRepresentation:
71
+ type: object
72
+ properties:
73
+ request:
74
+ type: FlowRuntimeNavigateFlowRepresentation
75
+ required: true
76
+
77
+ FlowRuntimeNavigateFlowRepresentation:
78
+ type: object
79
+ properties:
80
+ action:
81
+ type: string
82
+ required: true
83
+ serializedState:
84
+ type: string
85
+ required: true
86
+ fields:
87
+ type: array
88
+ required: false
89
+ items:
90
+ type: FlowRuntimeNavigationFieldValue
91
+ uiElementVisited:
92
+ type: boolean
93
+ required: false
94
+ enableTrace:
95
+ type: boolean
96
+ required: false
97
+ lcErrors:
98
+ type: FlowRuntimeHashbagRepresentation
99
+ required: false
100
+
101
+ FlowRuntimeResumeFlowRepresentation:
102
+ type: object
103
+ properties:
104
+ pausedInterviewId:
105
+ type: string
106
+ required: true
107
+
108
+ FlowRuntimeNavigationResult:
109
+ type: object
110
+ properties:
111
+ //:
112
+ type: any
113
+
114
+ FlowRuntimeResponseRepresentation:
115
+ type: object
116
+ properties:
117
+ error:
118
+ type: any
119
+ required: false
120
+ response:
121
+ type: FlowRuntimeNavigationResult | nil
122
+ required: false
123
+
124
+ /connect/interaction/runtime/startFlow:
125
+ post:
126
+ responses:
127
+ '200':
128
+ description: Success
129
+ body:
130
+ application/json:
131
+ type: FlowRuntimeResponseRepresentation
132
+ body:
133
+ application/json:
134
+ type: FlowRuntimeRunFlowRepresentation
135
+
136
+ /connect/interaction/runtime/navigateFlow:
137
+ post:
138
+ responses:
139
+ '200':
140
+ description: Success
141
+ body:
142
+ application/json:
143
+ type: FlowRuntimeResponseRepresentation
144
+ body:
145
+ application/json:
146
+ type: FlowRuntimeNavigateFlowWrapperRepresentation
147
+ (oas-body-name): request
148
+
149
+ /connect/interaction/runtime/resumeFlow:
150
+ post:
151
+ responses:
152
+ '200':
153
+ description: Success
154
+ body:
155
+ application/json:
156
+ type: FlowRuntimeResponseRepresentation
157
+ body:
158
+ application/json:
159
+ type: FlowRuntimeResumeFlowRepresentation
@@ -0,0 +1,30 @@
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
+ /connect/interaction/runtime/startFlow:
15
+ post:
16
+ (luvio.adapter):
17
+ name: startFlow
18
+ (luvio.method): get
19
+
20
+ /connect/interaction/runtime/navigateFlow:
21
+ post:
22
+ (luvio.adapter):
23
+ name: navigateFlow
24
+ (luvio.method): get
25
+
26
+ /connect/interaction/runtime/resumeFlow:
27
+ post:
28
+ (luvio.adapter):
29
+ name: resumeFlow
30
+ (luvio.method): get