@salesforce/lds-adapters-cdp-byoc 1.332.0-dev18

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.
@@ -0,0 +1,220 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '63.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v63.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
+ CdpUserRepresentation:
29
+ description: Represents a user
30
+ type: object
31
+ properties:
32
+ id:
33
+ description: The 18 character user ID
34
+ type: string
35
+ name:
36
+ description: The name of the user
37
+ type: string
38
+ profilePhotoUrl:
39
+ description: The Chatter profile photo of the user
40
+ type: string
41
+ CustomCodeDeploymentInputRepresentation:
42
+ description: Input representation for creating a Custom Code Deployment
43
+ # Hand-rolled: Combines this object with the original
44
+ # base object (CdpAssetBaseInputRepresentation) as Luvio
45
+ # does not like multiple levels of inheritance in objects
46
+ type: object
47
+ properties:
48
+ # Hand-rolled: Our Connect API does not require a value be passed in here
49
+ codeType?:
50
+ description: Custom code type
51
+ type: string
52
+ enum:
53
+ - Function
54
+ - Script
55
+ computeType:
56
+ description: Compute type for executions of the custom code
57
+ type: string
58
+ enum:
59
+ - Cpu_l
60
+ - Cpu_m
61
+ - Cpu_s
62
+ - Cpu_xs
63
+ - High_cpu_l
64
+ - High_cpu_m
65
+ - High_cpu_s
66
+ - High_cpu_xs
67
+ - High_memory_cpu_l
68
+ - High_memory_cpu_m
69
+ - High_memory_cpu_s
70
+ - High_memory_cpu_xs
71
+ # Hand-rolled: Our Connect API does not require a value be passed in here
72
+ description?:
73
+ description: Description of the custom code deployment
74
+ type: string
75
+ # Hand-rolled: Our Connect API does not require an ID for all endpoints
76
+ id?:
77
+ description: Id
78
+ type: string
79
+ label:
80
+ description: Label of the custom code deployment
81
+ type: string
82
+ name:
83
+ description: Name
84
+ type: string
85
+ # Hand-rolled: Our Connect API does not use the namespace field currently
86
+ namespace?:
87
+ description: Namespace
88
+ type: string
89
+ # Hand-rolled: Our Connect API does not require a value be passed in here
90
+ parameters?:
91
+ description: Parameters of the custom code deployment
92
+ type: object
93
+ properties:
94
+ //:
95
+ type: string
96
+ version:
97
+ description: Version of the custom code
98
+ type: string
99
+ CustomCodeDeploymentRepresentation:
100
+ description: A custom code deployment.
101
+ # Hand-rolled: Combines this object with the original
102
+ # base object (CdpAssetBaseRepresentation) as Luvio
103
+ # does not like multiple levels of inheritance in objects
104
+ type: object
105
+ properties:
106
+ # Hand-rolled: Our Connect API does not always return a value here
107
+ codeType:
108
+ description: Custom code type
109
+ type: string
110
+ enum:
111
+ - Function
112
+ - Script
113
+ functionInvokeOptions?:
114
+ description: List of function invoke options
115
+ type: array
116
+ items:
117
+ type: string
118
+ enum:
119
+ - UnstructuredChunking
120
+ computeType:
121
+ description: Compute type for executions of the custom code
122
+ type: string
123
+ enum:
124
+ - Cpu_l
125
+ - Cpu_m
126
+ - Cpu_s
127
+ - Cpu_xs
128
+ - High_cpu_l
129
+ - High_cpu_m
130
+ - High_cpu_s
131
+ - High_cpu_xs
132
+ - High_memory_cpu_l
133
+ - High_memory_cpu_m
134
+ - High_memory_cpu_s
135
+ - High_memory_cpu_xs
136
+ createdBy:
137
+ description: Created by
138
+ type: CdpUserRepresentation
139
+ createdDate:
140
+ description: Created date
141
+ type: string
142
+ # Hand-rolled: Connect API does not return this value when null
143
+ deploymentFailureCode?:
144
+ description: Failure code for the custom code deployment
145
+ type: integer
146
+ # Hand-rolled: Connect API does not return this value when null
147
+ deploymentFailureReason?:
148
+ description: Failure reason for the custom code deployment
149
+ type: string
150
+ deploymentStatus:
151
+ description: Deployment status of the custom code
152
+ type: string
153
+ enum:
154
+ - Deployed
155
+ - Error
156
+ - Initializing
157
+ - Scanning
158
+ # Hand-rolled: Connect API does not return this value when not provided on input
159
+ description?:
160
+ description: Description of the custom code deployment
161
+ type: string
162
+ fileUploadUrl:
163
+ description: URL to use for custom code file upload
164
+ type: string
165
+ id:
166
+ description: The 18 character ID of the asset
167
+ type: string
168
+ label:
169
+ description: Label of the asset
170
+ type: string
171
+ lastModifiedBy:
172
+ description: Last modified by
173
+ type: CdpUserRepresentation
174
+ lastModifiedDate:
175
+ description: Last modified date
176
+ type: string
177
+ name:
178
+ description: Name of the asset
179
+ type: string
180
+ # Hand-rolled: namespace is not returned by our Connect API implementation
181
+ namespace?:
182
+ description: Namespace of the asset
183
+ type: string
184
+ parameters:
185
+ description: Parameters of custom code deployment
186
+ type: object
187
+ properties:
188
+ //:
189
+ type: string
190
+ status:
191
+ description: Sync status of the custom code deployment
192
+ type: string
193
+ enum:
194
+ - Active
195
+ - Deleting
196
+ - Error
197
+ - Processing
198
+ url:
199
+ description: Url
200
+ type: string
201
+ version:
202
+ description: Version of the custom code
203
+ type: string
204
+ /ssot:
205
+ /data-custom-code:
206
+ post:
207
+ displayName: postCdpCustomCodeDeploymentCollection
208
+ description: Create a new custom code deployment
209
+ responses:
210
+ '200':
211
+ description: Success
212
+ body:
213
+ application/json:
214
+ type: CustomCodeDeploymentRepresentation
215
+ body:
216
+ application/json:
217
+ type: CustomCodeDeploymentInputRepresentation
218
+ # TODO Hand-rolled W-9271732
219
+ # required: false
220
+ (oas-body-name): customCodeDeployment
@@ -0,0 +1,25 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'byoc'
8
+ (luvio.ttl): 60000
9
+
10
+ types:
11
+ CdpAssetBaseRepresentation:
12
+ (luvio.key):
13
+ id: id
14
+ CustomCodeDeploymentInputRepresentation:
15
+ (luvio.key):
16
+ name: name
17
+ CustomCodeDeploymentRepresentation:
18
+ (luvio.key):
19
+ id: id
20
+
21
+ /ssot:
22
+ /data-custom-code:
23
+ post:
24
+ (luvio.adapter):
25
+ name: createCustomCodeDeployment