@salesforce/lds-adapters-cms-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 (31) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/cms-orchestrator.js +1871 -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/createManagedContentOrchestrationInstance.d.ts +16 -0
  5. package/dist/es/es2018/types/src/generated/adapters/deleteManagedContentCancelOrchestrationInstance.d.ts +14 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getManagedContentOrchestrationDefinitions.d.ts +29 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getManagedContentOrchestrationInstance.d.ts +28 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getManagedContentOrchestrationInstances.d.ts +27 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getManagedContentRunningOrchestrationHistoryEvents.d.ts +27 -0
  10. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
  11. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +12 -0
  12. package/dist/es/es2018/types/src/generated/resources/deleteConnectCmsContentsOrchestrationInstancesByMContentOrchInstanceId.d.ts +12 -0
  13. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationDefinitions.d.ts +17 -0
  14. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationHistoryEvents.d.ts +15 -0
  15. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationInstances.d.ts +15 -0
  16. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationInstancesByMContentOrchInstanceId.d.ts +16 -0
  17. package/dist/es/es2018/types/src/generated/resources/postConnectCmsContentsOrchestrationInstances.d.ts +13 -0
  18. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationDefinitionCollectionRepresentation.d.ts +51 -0
  19. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationDefinitionRepresentation.d.ts +50 -0
  20. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceCollectionRepresentation.d.ts +39 -0
  21. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceInputRepresentation.d.ts +31 -0
  22. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceInputWrapperRepresentation.d.ts +28 -0
  23. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceRepresentation.d.ts +57 -0
  24. package/dist/es/es2018/types/src/generated/types/ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation.d.ts +30 -0
  25. package/dist/es/es2018/types/src/generated/types/ManagedContentRunningOrchestrationHistoryEventRepresentation.d.ts +71 -0
  26. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  27. package/package.json +71 -0
  28. package/sfdc/index.d.ts +1 -0
  29. package/sfdc/index.js +1998 -0
  30. package/src/raml/api.raml +261 -0
  31. package/src/raml/luvio.raml +52 -0
@@ -0,0 +1,261 @@
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/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
+ ManagedContentOrchestrationDefinitionCollectionRepresentation:
29
+ description: Managed content orchestration definition collection representation.
30
+ type: object
31
+ properties:
32
+ currentPageUri:
33
+ description: Uri to the current page of Managed content orchestration definitions.
34
+ type: string
35
+ nextPageUri:
36
+ description: Uri to the next page of Managed content orchestration definitions.
37
+ type: string | nil
38
+ orchestrationDefinitions:
39
+ description: Managed content orchestration definitions.
40
+ type: array
41
+ items:
42
+ type: ManagedContentOrchestrationDefinitionRepresentation
43
+ previousPageUri:
44
+ description: Uri to the previous page of Managed content orchestration definitions.
45
+ type: string | nil
46
+ totalDefinitions:
47
+ description: Total number of Managed content orchestration definitions.
48
+ type: integer
49
+ ManagedContentOrchestrationDefinitionRepresentation:
50
+ description: Managed content orchestration definition representation.
51
+ type: object
52
+ properties:
53
+ definitionId:
54
+ description: Managed content orchestration definition ID.
55
+ type: string
56
+ description:
57
+ description: Managed content orchestration description.
58
+ type: string | nil
59
+ developerName:
60
+ description: Managed content orchestration developer name.
61
+ type: string
62
+ label:
63
+ description: Managed content orchestration label.
64
+ type: string
65
+ versionId:
66
+ description: Managed content orchestration version ID.
67
+ type: string
68
+ ManagedContentOrchestrationInstanceCollectionRepresentation:
69
+ description: Managed content orchestration instance collection representation.
70
+ type: object
71
+ properties:
72
+ orchestrationInstances:
73
+ description: Managed content orchestration instances.
74
+ type: array
75
+ items:
76
+ type: ManagedContentOrchestrationInstanceRepresentation
77
+ ManagedContentOrchestrationInstanceInputRepresentation:
78
+ description: Input representation for Managed Content Orchestration Instance.
79
+ type: object
80
+ properties:
81
+ managedContentVariantId:
82
+ description: Managed Content Variant Id.
83
+ type: string
84
+ orchestrationDefinitionDeveloperName:
85
+ description: Orchestration Definition Developer name.
86
+ type: string
87
+ ManagedContentOrchestrationInstanceRepresentation:
88
+ description: Managed content orchestration instance representation.
89
+ type: object
90
+ properties:
91
+ managedContentOrchestrationInstanceId:
92
+ description: Managed content orchestration instance ID.
93
+ type: string
94
+ managedContentVariantId:
95
+ description: Managed Content Variant ID.
96
+ type: string
97
+ orchestrationDefinition:
98
+ description: Managed content orchestration definition.
99
+ type: ManagedContentOrchestrationDefinitionRepresentation
100
+ orchestrationInstanceId:
101
+ description: Flow orchestration instance ID.
102
+ type: string
103
+ ManagedContentOrchestrationInstanceInputWrapperRepresentation: # TODO Hand-rolled W-8334626
104
+ description: Wrapper around input representation for Managed Content Orchestration Instance.
105
+ type: object
106
+ properties:
107
+ mContentOrchInstanceInput:
108
+ type: ManagedContentOrchestrationInstanceInputRepresentation
109
+ ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation:
110
+ description: Managed content running orchestration history event collection representation.
111
+ type: object
112
+ properties:
113
+ historyEvents:
114
+ description: Managed content running orchestration history events
115
+ type: array
116
+ items:
117
+ type: ManagedContentRunningOrchestrationHistoryEventRepresentation
118
+ ManagedContentRunningOrchestrationHistoryEventRepresentation:
119
+ description: Managed content running orchestration history event representation.
120
+ type: object
121
+ properties:
122
+ actorEmail:
123
+ description: Actor Email
124
+ type: string | nil
125
+ actorName:
126
+ description: Actor Name
127
+ type: string | nil
128
+ assigneeDevNameOrEmail:
129
+ description: Assignee Dev Name or Email
130
+ type: string | nil
131
+ assigneeName:
132
+ description: Assignee Name
133
+ type: string | nil
134
+ assigneeType:
135
+ description: Assignee Type
136
+ type: string | nil
137
+ enum:
138
+ - CmsRole
139
+ - Group
140
+ - Queue
141
+ - User
142
+ comments:
143
+ description: Comments
144
+ type: string | nil
145
+ endTimestamp:
146
+ description: End Timestamp
147
+ type: string | nil
148
+ orchestrationName:
149
+ description: Orchestration Name
150
+ type: string
151
+ orchestrationVersion:
152
+ description: Orchestration Version
153
+ type: integer
154
+ stageDevName:
155
+ description: Stage Dev Name
156
+ type: string
157
+ stageLabel:
158
+ description: Stage Label
159
+ type: string
160
+ startTimestamp:
161
+ description: Start Timestamp
162
+ type: string
163
+ status:
164
+ description: Status
165
+ type: string
166
+ enum:
167
+ - Canceled
168
+ - Completed
169
+ - Failed
170
+ - InProgress
171
+ stepDevName:
172
+ description: Step Dev Name
173
+ type: string
174
+ stepLabel:
175
+ description: Step Label
176
+ type: string
177
+
178
+ /connect:
179
+ /cms:
180
+ /contents:
181
+ /orchestration-definitions:
182
+ get:
183
+ description: Gets a collection of managed content orchestration definitions
184
+ compatible with the provided variant ID.
185
+ responses:
186
+ '200':
187
+ description: Success
188
+ body:
189
+ application/json:
190
+ type: ManagedContentOrchestrationDefinitionCollectionRepresentation
191
+ queryParameters:
192
+ managedContentVariantId:
193
+ type: string
194
+ required: false
195
+ page:
196
+ type: integer
197
+ required: false
198
+ pageSize:
199
+ type: integer
200
+ required: false
201
+ /orchestration-instances:
202
+ get:
203
+ description: Gets a collection of managed content orchestration instances
204
+ related to the specified variant.
205
+ responses:
206
+ '200':
207
+ description: Success
208
+ body:
209
+ application/json:
210
+ type: ManagedContentOrchestrationInstanceCollectionRepresentation
211
+ queryParameters:
212
+ managedContentVariantId:
213
+ type: string
214
+ required: false
215
+ post:
216
+ description: Creates a managed content orchestration instance for the
217
+ specified variant.
218
+ responses:
219
+ '200':
220
+ description: Success
221
+ body:
222
+ application/json:
223
+ type: ManagedContentOrchestrationInstanceRepresentation
224
+ body:
225
+ application/json:
226
+ type: ManagedContentOrchestrationInstanceInputWrapperRepresentation # TODO Hand-rolled W-8334626
227
+ #required: false # TODO hand rolled. W-10780573
228
+ (oas-body-name): mContentOrchInstanceInput
229
+ /orchestration-instances/{mContentOrchInstanceId}:
230
+ # TODO: hand rolled. W-13030581
231
+ get:
232
+ description: Gets a managed content orchestration instance related to the specified variant.
233
+ responses:
234
+ '200':
235
+ description: Success
236
+ body:
237
+ application/json:
238
+ type: ManagedContentOrchestrationInstanceRepresentation
239
+ delete:
240
+ description: Cancel a running managed content orchestration
241
+ responses:
242
+ '200':
243
+ description: Success
244
+ uriParameters:
245
+ mContentOrchInstanceId:
246
+ type: string
247
+ required: true
248
+ /orchestration-history-events:
249
+ get:
250
+ description: Gets a collection of the history of the managed content orchestration
251
+ running on the specified variant.
252
+ responses:
253
+ '200':
254
+ description: Success
255
+ body:
256
+ application/json:
257
+ type: ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation
258
+ queryParameters:
259
+ managedContentVariantId:
260
+ type: string
261
+ required: false
@@ -0,0 +1,52 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'CMSOrchestrator'
8
+
9
+ types:
10
+ ManagedContentOrchestrationDefinitionCollectionRepresentation:
11
+ (luvio.ttl): 3600000
12
+ ManagedContentOrchestrationDefinitionRepresentation:
13
+ (luvio.ttl): 3600000
14
+ (luvio.key):
15
+ id: developerName
16
+ ManagedContentOrchestrationInstanceCollectionRepresentation:
17
+ (luvio.ttl): 100
18
+ ManagedContentOrchestrationInstanceRepresentation:
19
+ (luvio.ttl): 100
20
+ (luvio.key):
21
+ id: managedContentVariantId
22
+ ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation:
23
+ (luvio.ttl): 100
24
+ ManagedContentRunningOrchestrationHistoryEventRepresentation:
25
+ (luvio.ttl): 1000
26
+
27
+ /connect/cms/contents/orchestration-instances:
28
+ get:
29
+ (luvio.adapter):
30
+ name: getManagedContentOrchestrationInstances
31
+ post:
32
+ (luvio.adapter):
33
+ name: createManagedContentOrchestrationInstance
34
+ /connect/cms/contents/orchestration-instances/{mContentOrchInstanceId}:
35
+ get:
36
+ (luvio.adapter):
37
+ name: getManagedContentOrchestrationInstance
38
+ (luvio.key):
39
+ id: urlParams.mContentOrchInstanceId
40
+ delete:
41
+ (luvio.adapter):
42
+ name: deleteManagedContentCancelOrchestrationInstance
43
+ (luvio.key):
44
+ id: urlParams.mContentOrchInstanceId
45
+ /connect/cms/contents/orchestration-definitions:
46
+ get:
47
+ (luvio.adapter):
48
+ name: getManagedContentOrchestrationDefinitions
49
+ /connect/cms/contents/orchestration-history-events:
50
+ get:
51
+ (luvio.adapter):
52
+ name: getManagedContentRunningOrchestrationHistoryEvents