@salesforce/lds-adapters-platform-interaction-orchestrator 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.
Files changed (21) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-interaction-orchestrator.js +1548 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getOrchestrationInstance.d.ts +27 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getOrchestrationInstanceCollection.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
  8. package/dist/es/es2018/types/src/generated/resources/getConnectInteractionOrchestrationInstanceDetail.d.ts +15 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectInteractionOrchestrationInstances.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationInstanceCollectionRepresentation.d.ts +30 -0
  11. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationInstanceRepresentation.d.ts +48 -0
  12. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationStageInstanceRepresentation.d.ts +44 -0
  13. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationStepInstanceRepresentation.d.ts +62 -0
  14. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationWorkAssignmentRepresentation.d.ts +25 -0
  15. package/dist/es/es2018/types/src/generated/types/FlowOrchestrationWorkItemRepresentation.d.ts +61 -0
  16. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  17. package/package.json +72 -0
  18. package/sfdc/index.d.ts +1 -0
  19. package/sfdc/index.js +1598 -0
  20. package/src/raml/api.raml +244 -0
  21. package/src/raml/luvio.raml +29 -0
@@ -0,0 +1,244 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '52.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v66.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
+ FlowOrchestrationInstanceCollectionRepresentation:
29
+ description: Information about a collection of Orchestration instances.
30
+ type: object
31
+ properties:
32
+ instances:
33
+ description: Collection of Orchestration instances
34
+ type: array
35
+ items:
36
+ type: FlowOrchestrationInstanceRepresentation
37
+ FlowOrchestrationInstanceRepresentation:
38
+ description: Information about an Orchestration instance.
39
+ type: object
40
+ properties:
41
+ flowDefinitionDeveloperName:
42
+ description: Developer name of the flow definition
43
+ type: string | nil
44
+ flowDefinitionId:
45
+ description: Id of the flow definition
46
+ type: string | nil
47
+ flowDefinitionName:
48
+ description: Name of the flow definition
49
+ type: string | nil
50
+ id:
51
+ description: Orchestrator instance id
52
+ type: string
53
+ interviewId:
54
+ description: Id of the interview to resume
55
+ type: string | nil
56
+ stageInstances:
57
+ description: The Orchestrator Instance stages
58
+ type: array
59
+ items:
60
+ type: FlowOrchestrationStageInstanceRepresentation
61
+ status:
62
+ description: The Orchestrator Instance status
63
+ type: string
64
+ enum:
65
+ - Canceled
66
+ - Completed
67
+ - Discontinued
68
+ - Error
69
+ - InProgress
70
+ - NotStarted
71
+ - Suspended
72
+ FlowOrchestrationStageInstanceRepresentation:
73
+ description: Information about an Orchestration stage instance.
74
+ type: object
75
+ properties:
76
+ completionTime:
77
+ description: Orchestration stage instance completion time in seconds
78
+ type: string | nil
79
+ id:
80
+ description: Orchestration stage instance id
81
+ type: string
82
+ label:
83
+ description: Orchestration stage instance label
84
+ type: string | nil
85
+ name:
86
+ description: Orchestration stage instance name
87
+ type: string | nil
88
+ status:
89
+ description: The Orchestration Stage Instance status
90
+ type: string
91
+ enum:
92
+ - Canceled
93
+ - Completed
94
+ - Discontinued
95
+ - Error
96
+ - InProgress
97
+ - NotStarted
98
+ - Suspended
99
+ stepInstances:
100
+ description: Orchestration stage instance steps
101
+ type: array
102
+ items:
103
+ type: FlowOrchestrationStepInstanceRepresentation
104
+ FlowOrchestrationStepInstanceRepresentation:
105
+ description: Information about an Orchestration step instance.
106
+ type: object
107
+ properties:
108
+ assignedTo:
109
+ description: Orchestration step assignee
110
+ type: string | nil
111
+ assigneeType:
112
+ description: Orchestration step assignee type
113
+ type: string | nil
114
+ comments:
115
+ description: Orchestration step instance comments
116
+ type: string | nil
117
+ completedBy:
118
+ description: Orchestration step completed by
119
+ type: string | nil
120
+ completionTime:
121
+ description: Orchestration step instance completion time in seconds
122
+ type: string | nil
123
+ description:
124
+ description: Orchestration step instance description
125
+ type: string | nil
126
+ id:
127
+ description: Orchestration step instance id
128
+ type: string
129
+ label:
130
+ description: Orchestration step instance label
131
+ type: string | nil
132
+ name:
133
+ description: Orchestration step instance name
134
+ type: string | nil
135
+ status:
136
+ description: The Orchestration Step Instance status
137
+ type: string
138
+ enum:
139
+ - Canceled
140
+ - Completed
141
+ - Discontinued
142
+ - Error
143
+ - InProgress
144
+ - NotStarted
145
+ - Suspended
146
+ stepType:
147
+ description: The Orchestration Step Instance step type
148
+ type: string
149
+ enum:
150
+ - ApprovalStep
151
+ - AsynchronousBackgroundStep
152
+ - BackgroundStep
153
+ - InteractiveStep
154
+ - ManagedContentRoleInteractiveStep
155
+ - ManagedContentVariantAutoPublishBackgroundStep
156
+ - ManagedContentVariantAutoUnpublishBackgroundStep
157
+ - ManagedContentVariantSetLockBackgroundStep
158
+ - ManagedContentVariantSetReadyBackgroundStep
159
+ workItems:
160
+ description: Orchestration step instance work items
161
+ type: array
162
+ items:
163
+ type: FlowOrchestrationWorkItemRepresentation
164
+ FlowOrchestrationWorkAssignmentRepresentation:
165
+ description: Information about an Orchestration work assignment.
166
+ type: object
167
+ properties: {}
168
+ FlowOrchestrationWorkItemRepresentation:
169
+ description: Information about an Orchestration work item.
170
+ type: object
171
+ properties:
172
+ assigneeId:
173
+ description: The assignee for this Orchestrator work item
174
+ type: string
175
+ createdDate:
176
+ description: Date the work item was created
177
+ type: string
178
+ description:
179
+ description: Description for this Orchestration work item
180
+ type: string | nil
181
+ flowType:
182
+ description: The flow type of the orchestration that created the orchestration work item
183
+ type: string | nil
184
+ id:
185
+ description: Orchestration work item id
186
+ type: string
187
+ label:
188
+ description: Label key for this work item
189
+ type: string | nil
190
+ lastModifiedDate:
191
+ description: Date the work item was last modified
192
+ type: string
193
+ relatedRecordId:
194
+ description: The record this work item is related to
195
+ type: string | nil
196
+ screenFlowDeveloperName:
197
+ description: Developer name of the screen flow to start when assignees work
198
+ on this work item
199
+ type: string
200
+ screenFlowId:
201
+ description: Id of the screen flow to start when assignees work on this work
202
+ item
203
+ type: string
204
+ screenFlowInputs:
205
+ description: Input parameters for the screen flow
206
+ type: string
207
+ status:
208
+ description: This work item status
209
+ type: string
210
+ enum:
211
+ - Assigned
212
+ - Completed
213
+ - InProgress
214
+ - NotStarted
215
+ /connect/interaction/orchestration:
216
+ /instance/detail:
217
+ get:
218
+ description: Retrieves run details of an Orchestration instance
219
+ responses:
220
+ '200':
221
+ description: Success
222
+ body:
223
+ application/json:
224
+ type: FlowOrchestrationInstanceRepresentation
225
+ queryParameters:
226
+ instanceId:
227
+ type: string
228
+ required: false
229
+ /instances:
230
+ get:
231
+ description: Retrieves a collection of Orchestration instances
232
+ responses:
233
+ '200':
234
+ description: Success
235
+ body:
236
+ application/json:
237
+ type: FlowOrchestrationInstanceCollectionRepresentation
238
+ queryParameters:
239
+ contextRecordId:
240
+ type: string
241
+ required: false
242
+ relatedRecordId:
243
+ type: string
244
+ required: false
@@ -0,0 +1,29 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'InteractionOrchestrator'
8
+ (luvio.ttl): 2592000000
9
+
10
+ types:
11
+ FlowOrchestrationInstanceRepresentation:
12
+ (luvio.ttl): 100
13
+ FlowOrchestrationInstanceCollectionRepresentation:
14
+ (luvio.ttl): 100
15
+
16
+ /connect/interaction/orchestration:
17
+ /instance/detail:
18
+ get:
19
+ (luvio.adapter):
20
+ name: getOrchestrationInstance
21
+ oneOfParams:
22
+ - instanceId
23
+ /instances:
24
+ get:
25
+ (luvio.adapter):
26
+ name: getOrchestrationInstanceCollection
27
+ oneOfParams:
28
+ - relatedRecordId
29
+ #in 234 add optional params here