@salesforce/lds-adapters-cms-orchestrator 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 (29) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/cms-orchestrator.js +1770 -0
  3. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/types/src/generated/adapters/createManagedContentOrchestrationInstance.d.ts +15 -0
  5. package/dist/types/src/generated/adapters/getManagedContentOrchestrationDefinitions.d.ts +28 -0
  6. package/dist/types/src/generated/adapters/getManagedContentOrchestrationInstances.d.ts +26 -0
  7. package/dist/types/src/generated/adapters/getManagedContentRunningOrchestrationHistoryEvents.d.ts +26 -0
  8. package/dist/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/types/src/generated/artifacts/sfdc.d.ts +8 -0
  10. package/dist/types/src/generated/resources/getConnectCmsContentsOrchestrationDefinitions.d.ts +17 -0
  11. package/dist/types/src/generated/resources/getConnectCmsContentsOrchestrationHistoryEvents.d.ts +15 -0
  12. package/dist/types/src/generated/resources/getConnectCmsContentsOrchestrationInstances.d.ts +15 -0
  13. package/dist/types/src/generated/resources/postConnectCmsContentsOrchestrationInstances.d.ts +13 -0
  14. package/dist/types/src/generated/types/ManagedContentOrchestrationDefinitionCollectionRepresentation.d.ts +52 -0
  15. package/dist/types/src/generated/types/ManagedContentOrchestrationDefinitionRepresentation.d.ts +51 -0
  16. package/dist/types/src/generated/types/ManagedContentOrchestrationInstanceCollectionRepresentation.d.ts +40 -0
  17. package/dist/types/src/generated/types/ManagedContentOrchestrationInstanceInputRepresentation.d.ts +32 -0
  18. package/dist/types/src/generated/types/ManagedContentOrchestrationInstanceInputWrapperRepresentation.d.ts +29 -0
  19. package/dist/types/src/generated/types/ManagedContentOrchestrationInstanceRepresentation.d.ts +55 -0
  20. package/dist/types/src/generated/types/ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation.d.ts +31 -0
  21. package/dist/types/src/generated/types/ManagedContentRunningOrchestrationHistoryEventRepresentation.d.ts +69 -0
  22. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  23. package/dist/umd/es2018/cms-orchestrator.js +1781 -0
  24. package/dist/umd/es5/cms-orchestrator.js +1788 -0
  25. package/package.json +67 -0
  26. package/sfdc/index.d.ts +1 -0
  27. package/sfdc/index.js +1824 -0
  28. package/src/raml/api.raml +236 -0
  29. package/src/raml/luvio.raml +41 -0
@@ -0,0 +1,236 @@
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
+ endTimestamp:
140
+ description: End Timestamp
141
+ type: string | nil
142
+ orchestrationName:
143
+ description: Orchestration Name
144
+ type: string
145
+ orchestrationVersion:
146
+ description: Orchestration Version
147
+ type: integer
148
+ stageDevName:
149
+ description: Stage Dev Name
150
+ type: string
151
+ stageLabel:
152
+ description: Stage Label
153
+ type: string
154
+ startTimestamp:
155
+ description: Start Timestamp
156
+ type: string
157
+ status:
158
+ description: Status
159
+ type: string
160
+ enum:
161
+ - Canceled
162
+ - Completed
163
+ - Failed
164
+ - InProgress
165
+ stepDevName:
166
+ description: Step Dev Name
167
+ type: string
168
+ stepLabel:
169
+ description: Step Label
170
+ type: string
171
+
172
+ /connect:
173
+ /cms:
174
+ /contents:
175
+ /orchestration-definitions:
176
+ get:
177
+ description: Gets a collection of managed content orchestration definitions
178
+ compatible with the provided variant ID.
179
+ responses:
180
+ '200':
181
+ description: Success
182
+ body:
183
+ application/json:
184
+ type: ManagedContentOrchestrationDefinitionCollectionRepresentation
185
+ queryParameters:
186
+ managedContentVariantId:
187
+ type: string
188
+ required: false
189
+ page:
190
+ type: integer
191
+ required: false
192
+ pageSize:
193
+ type: integer
194
+ required: false
195
+ /orchestration-instances:
196
+ get:
197
+ description: Gets a collection of managed content orchestration instances
198
+ related to the specified variant.
199
+ responses:
200
+ '200':
201
+ description: Success
202
+ body:
203
+ application/json:
204
+ type: ManagedContentOrchestrationInstanceCollectionRepresentation
205
+ queryParameters:
206
+ managedContentVariantId:
207
+ type: string
208
+ required: false
209
+ post:
210
+ description: Creates a managed content orchestration instance for the
211
+ specified variant.
212
+ responses:
213
+ '200':
214
+ description: Success
215
+ body:
216
+ application/json:
217
+ type: ManagedContentOrchestrationInstanceRepresentation
218
+ body:
219
+ application/json:
220
+ type: ManagedContentOrchestrationInstanceInputWrapperRepresentation # TODO Hand-rolled W-8334626
221
+ #required: false # TODO hand rolled. W-10780573
222
+ (oas-body-name): mContentOrchInstanceInput
223
+ /orchestration-history-events:
224
+ get:
225
+ description: Gets a collection of the history of the managed content orchestration
226
+ running on the specified variant.
227
+ responses:
228
+ '200':
229
+ description: Success
230
+ body:
231
+ application/json:
232
+ type: ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation
233
+ queryParameters:
234
+ managedContentVariantId:
235
+ type: string
236
+ 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