@salesforce/lds-adapters-cms-orchestrator 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 (27) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/cms-orchestrator.js +1805 -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/createManagedContentOrchestrationInstance.d.ts +15 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getManagedContentOrchestrationDefinitions.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getManagedContentOrchestrationInstances.d.ts +26 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getManagedContentRunningOrchestrationHistoryEvents.d.ts +26 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationDefinitions.d.ts +17 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationHistoryEvents.d.ts +15 -0
  12. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationInstances.d.ts +15 -0
  13. package/dist/es/es2018/types/src/generated/resources/postConnectCmsContentsOrchestrationInstances.d.ts +13 -0
  14. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationDefinitionCollectionRepresentation.d.ts +52 -0
  15. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationDefinitionRepresentation.d.ts +51 -0
  16. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceCollectionRepresentation.d.ts +40 -0
  17. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceInputRepresentation.d.ts +32 -0
  18. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceInputWrapperRepresentation.d.ts +29 -0
  19. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceRepresentation.d.ts +55 -0
  20. package/dist/es/es2018/types/src/generated/types/ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation.d.ts +31 -0
  21. package/dist/es/es2018/types/src/generated/types/ManagedContentRunningOrchestrationHistoryEventRepresentation.d.ts +72 -0
  22. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
  23. package/package.json +64 -0
  24. package/sfdc/index.d.ts +1 -0
  25. package/sfdc/index.js +1859 -0
  26. package/src/raml/api.raml +239 -0
  27. package/src/raml/luvio.raml +41 -0
@@ -0,0 +1,239 @@
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
+ 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
+ ManagedContentOrchestrationInstanceInputWrapperRepresentation: # TODO Hand-rolled W-8334626
101
+ description: Wrapper around input representation for Managed Content Orchestration Instance.
102
+ type: object
103
+ properties:
104
+ mContentOrchInstanceInput:
105
+ type: ManagedContentOrchestrationInstanceInputRepresentation
106
+ ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation:
107
+ description: Managed content running orchestration history event collection representation.
108
+ type: object
109
+ properties:
110
+ historyEvents:
111
+ description: Managed content running orchestration history events
112
+ type: array
113
+ items:
114
+ type: ManagedContentRunningOrchestrationHistoryEventRepresentation
115
+ ManagedContentRunningOrchestrationHistoryEventRepresentation:
116
+ description: Managed content running orchestration history event representation.
117
+ type: object
118
+ properties:
119
+ actorEmail:
120
+ description: Actor Email
121
+ type: string | nil
122
+ actorName:
123
+ description: Actor Name
124
+ type: string | nil
125
+ assigneeDevNameOrEmail:
126
+ description: Assignee Dev Name or Email
127
+ type: string | nil
128
+ assigneeName:
129
+ description: Assignee Name
130
+ type: string | nil
131
+ assigneeType:
132
+ description: Assignee Type
133
+ type: string | nil
134
+ enum:
135
+ - CmsRole
136
+ - Group
137
+ - Queue
138
+ - User
139
+ comments:
140
+ description: Comments
141
+ type: string | nil
142
+ endTimestamp:
143
+ description: End Timestamp
144
+ type: string | nil
145
+ orchestrationName:
146
+ description: Orchestration Name
147
+ type: string
148
+ orchestrationVersion:
149
+ description: Orchestration Version
150
+ type: integer
151
+ stageDevName:
152
+ description: Stage Dev Name
153
+ type: string
154
+ stageLabel:
155
+ description: Stage Label
156
+ type: string
157
+ startTimestamp:
158
+ description: Start Timestamp
159
+ type: string
160
+ status:
161
+ description: Status
162
+ type: string
163
+ enum:
164
+ - Canceled
165
+ - Completed
166
+ - Failed
167
+ - InProgress
168
+ stepDevName:
169
+ description: Step Dev Name
170
+ type: string
171
+ stepLabel:
172
+ description: Step Label
173
+ type: string
174
+
175
+ /connect:
176
+ /cms:
177
+ /contents:
178
+ /orchestration-definitions:
179
+ get:
180
+ description: Gets a collection of managed content orchestration definitions
181
+ compatible with the provided variant ID.
182
+ responses:
183
+ '200':
184
+ description: Success
185
+ body:
186
+ application/json:
187
+ type: ManagedContentOrchestrationDefinitionCollectionRepresentation
188
+ queryParameters:
189
+ managedContentVariantId:
190
+ type: string
191
+ required: false
192
+ page:
193
+ type: integer
194
+ required: false
195
+ pageSize:
196
+ type: integer
197
+ required: false
198
+ /orchestration-instances:
199
+ get:
200
+ description: Gets a collection of managed content orchestration instances
201
+ related to the specified variant.
202
+ responses:
203
+ '200':
204
+ description: Success
205
+ body:
206
+ application/json:
207
+ type: ManagedContentOrchestrationInstanceCollectionRepresentation
208
+ queryParameters:
209
+ managedContentVariantId:
210
+ type: string
211
+ required: false
212
+ post:
213
+ description: Creates a managed content orchestration instance for the
214
+ specified variant.
215
+ responses:
216
+ '200':
217
+ description: Success
218
+ body:
219
+ application/json:
220
+ type: ManagedContentOrchestrationInstanceRepresentation
221
+ body:
222
+ application/json:
223
+ type: ManagedContentOrchestrationInstanceInputWrapperRepresentation # TODO Hand-rolled W-8334626
224
+ #required: false # TODO hand rolled. W-10780573
225
+ (oas-body-name): mContentOrchInstanceInput
226
+ /orchestration-history-events:
227
+ get:
228
+ description: Gets a collection of the history of the managed content orchestration
229
+ running on the specified variant.
230
+ responses:
231
+ '200':
232
+ description: Success
233
+ body:
234
+ application/json:
235
+ type: ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation
236
+ queryParameters:
237
+ managedContentVariantId:
238
+ type: string
239
+ required: false
@@ -0,0 +1,41 @@
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-definitions:
35
+ get:
36
+ (luvio.adapter):
37
+ name: getManagedContentOrchestrationDefinitions
38
+ /connect/cms/contents/orchestration-history-events:
39
+ get:
40
+ (luvio.adapter):
41
+ name: getManagedContentRunningOrchestrationHistoryEvents