@salesforce/lds-adapters-cdp-byoc 1.353.1 → 1.354.0-dev10
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.
- package/dist/es/es2018/cdp-byoc.js +878 -209
- package/dist/es/es2018/types/src/generated/adapters/getCustomCodeDeployments.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/adapters/getCustomCodeExecutionLogs.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getCustomCodeExecutions.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/getSsotDataCustomCode.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotDataCustomCodeExecutionsByCustomCodeNameOrId.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotDataCustomCodeExecutionsLogsByCustomCodeExecutionIdAndCustomCodeNameOrId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/CustomCodeDeploymentRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CustomCodeExecutionBaseRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/CustomCodeExecutionCollectionRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CustomCodeExecutionLogRepresentation.d.ts +28 -0
- package/package.json +3 -3
- package/sfdc/index.js +918 -230
- package/src/raml/api.raml +133 -2
- package/src/raml/luvio.raml +10 -0
package/src/raml/api.raml
CHANGED
|
@@ -6,7 +6,7 @@ version: '63.0'
|
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
9
|
-
baseUri: /services/data/
|
|
9
|
+
baseUri: /services/data/v64.0
|
|
10
10
|
securitySchemes:
|
|
11
11
|
OAuth2:
|
|
12
12
|
type: OAuth 2.0
|
|
@@ -186,7 +186,8 @@ types:
|
|
|
186
186
|
type: object
|
|
187
187
|
properties:
|
|
188
188
|
//:
|
|
189
|
-
type
|
|
189
|
+
# Hand rolled as we are using the Object type in Java which can refer to any data class
|
|
190
|
+
type: any
|
|
190
191
|
status:
|
|
191
192
|
description: Sync status of the custom code deployment
|
|
192
193
|
type: string
|
|
@@ -222,6 +223,83 @@ types:
|
|
|
222
223
|
totalSize:
|
|
223
224
|
description: Total size of collection
|
|
224
225
|
type: integer
|
|
226
|
+
CustomCodeExecutionBaseRepresentation:
|
|
227
|
+
description: BYOC Custom Code Executions
|
|
228
|
+
type: object
|
|
229
|
+
properties:
|
|
230
|
+
durationInSeconds:
|
|
231
|
+
description: duration of code execution in seconds
|
|
232
|
+
type: integer
|
|
233
|
+
endTime:
|
|
234
|
+
description: end time of code execution
|
|
235
|
+
type: string
|
|
236
|
+
errorCode?:
|
|
237
|
+
description: error code
|
|
238
|
+
type: integer
|
|
239
|
+
errorMessage?:
|
|
240
|
+
description: detailed error message
|
|
241
|
+
type: string
|
|
242
|
+
id:
|
|
243
|
+
description: BYOC Custom Code Execution Id
|
|
244
|
+
type: string
|
|
245
|
+
rowsRead:
|
|
246
|
+
description: number of objects read
|
|
247
|
+
# Hand-rolled: The current API spec defines this are int64 but Luvio
|
|
248
|
+
# only supports a max of int32. The actual service producing the value
|
|
249
|
+
# casts this as a standard Java int which allows us to use the default
|
|
250
|
+
# of int32
|
|
251
|
+
# format: int64
|
|
252
|
+
type: integer
|
|
253
|
+
rowsWritten:
|
|
254
|
+
description: number of objects written
|
|
255
|
+
# Hand-rolled: The current API spec defines this are int64 but Luvio
|
|
256
|
+
# only supports a max of int32. The actual service producing the value
|
|
257
|
+
# casts this as a standard Java int which allows us to use the default
|
|
258
|
+
# of int32
|
|
259
|
+
# format: int64
|
|
260
|
+
type: integer
|
|
261
|
+
startTime:
|
|
262
|
+
description: start time of code execution
|
|
263
|
+
type: string
|
|
264
|
+
status:
|
|
265
|
+
description: BYOC Custom Code Execution Status
|
|
266
|
+
type: string
|
|
267
|
+
enum:
|
|
268
|
+
- Cancelled
|
|
269
|
+
- Failure
|
|
270
|
+
- Running
|
|
271
|
+
- Success
|
|
272
|
+
submittedTime:
|
|
273
|
+
description: time when execution was submitted
|
|
274
|
+
type: string
|
|
275
|
+
CustomCodeExecutionCollectionRepresentation:
|
|
276
|
+
description: BYOC Custom Code Execution Collection
|
|
277
|
+
# Hand-rolled: Combines this object with the original
|
|
278
|
+
# base object (CdpPaginatedResponseBaseRepresentation) as Luvio
|
|
279
|
+
# does not like multiple levels of inheritance in objects
|
|
280
|
+
type: object
|
|
281
|
+
properties:
|
|
282
|
+
currentPageUrl?:
|
|
283
|
+
description: Current page url
|
|
284
|
+
type: string
|
|
285
|
+
executions:
|
|
286
|
+
description: BYOC Custom Code Collection of Executions
|
|
287
|
+
type: array
|
|
288
|
+
items:
|
|
289
|
+
type: CustomCodeExecutionBaseRepresentation
|
|
290
|
+
nextPageUrl?:
|
|
291
|
+
description: Next page url if it exists
|
|
292
|
+
type: string
|
|
293
|
+
totalSize?:
|
|
294
|
+
description: Total size of collection
|
|
295
|
+
type: integer
|
|
296
|
+
CustomCodeExecutionLogRepresentation:
|
|
297
|
+
description: BYOC Custom Code Execution Log
|
|
298
|
+
type: object
|
|
299
|
+
properties:
|
|
300
|
+
downloadUrl:
|
|
301
|
+
description: BYOC Custom Code Execution Log
|
|
302
|
+
type: string
|
|
225
303
|
CustomCodePatchInputRepresentation:
|
|
226
304
|
description: Input representation for updating a Custom Code Deployment
|
|
227
305
|
type: object
|
|
@@ -279,6 +357,21 @@ types:
|
|
|
279
357
|
application/json:
|
|
280
358
|
type: CustomCodeDeploymentCollectionRepresentation
|
|
281
359
|
queryParameters:
|
|
360
|
+
codeType:
|
|
361
|
+
type: string
|
|
362
|
+
required: false
|
|
363
|
+
enum:
|
|
364
|
+
- Function
|
|
365
|
+
- Script
|
|
366
|
+
deploymentStatus:
|
|
367
|
+
type: string
|
|
368
|
+
required: false
|
|
369
|
+
enum:
|
|
370
|
+
- Deployed
|
|
371
|
+
- Error
|
|
372
|
+
- Initializing
|
|
373
|
+
- Pending
|
|
374
|
+
- Scanning
|
|
282
375
|
limit:
|
|
283
376
|
type: integer
|
|
284
377
|
required: false
|
|
@@ -326,3 +419,41 @@ types:
|
|
|
326
419
|
customCodeNameOrId:
|
|
327
420
|
type: string
|
|
328
421
|
required: true
|
|
422
|
+
/data-custom-code/{customCodeNameOrId}/executions:
|
|
423
|
+
get:
|
|
424
|
+
displayName: getCdpCustomCodeExecution
|
|
425
|
+
description: BYOC Custom Code Executions
|
|
426
|
+
responses:
|
|
427
|
+
'200':
|
|
428
|
+
description: Success
|
|
429
|
+
body:
|
|
430
|
+
application/json:
|
|
431
|
+
type: CustomCodeExecutionCollectionRepresentation
|
|
432
|
+
queryParameters:
|
|
433
|
+
limit:
|
|
434
|
+
type: integer
|
|
435
|
+
required: false
|
|
436
|
+
offset:
|
|
437
|
+
type: integer
|
|
438
|
+
required: false
|
|
439
|
+
uriParameters:
|
|
440
|
+
customCodeNameOrId:
|
|
441
|
+
type: string
|
|
442
|
+
required: true
|
|
443
|
+
/data-custom-code/{customCodeNameOrId}/executions/{customCodeExecutionId}/logs:
|
|
444
|
+
get:
|
|
445
|
+
displayName: getCdpCustomCodeExecutionLog
|
|
446
|
+
description: BYOC Custom Code logs for an Execution
|
|
447
|
+
responses:
|
|
448
|
+
'200':
|
|
449
|
+
description: Success
|
|
450
|
+
body:
|
|
451
|
+
application/json:
|
|
452
|
+
type: CustomCodeExecutionLogRepresentation
|
|
453
|
+
uriParameters:
|
|
454
|
+
customCodeExecutionId:
|
|
455
|
+
type: string
|
|
456
|
+
required: true
|
|
457
|
+
customCodeNameOrId:
|
|
458
|
+
type: string
|
|
459
|
+
required: true
|
package/src/raml/luvio.raml
CHANGED
|
@@ -40,3 +40,13 @@ types:
|
|
|
40
40
|
name: deleteCustomCodeDeployment
|
|
41
41
|
(luvio.key):
|
|
42
42
|
id: urlParams.customCodeNameOrId
|
|
43
|
+
/executions:
|
|
44
|
+
get:
|
|
45
|
+
(luvio.adapter):
|
|
46
|
+
name: getCustomCodeExecutions
|
|
47
|
+
(lvuio.key):
|
|
48
|
+
id: urlParams.customCodeNameOrId
|
|
49
|
+
/{customCodeExecutionId}/logs:
|
|
50
|
+
get:
|
|
51
|
+
(luvio.adapter):
|
|
52
|
+
name: getCustomCodeExecutionLogs
|