@salesforce/lds-adapters-platform-external-services 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 (54) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-external-services.js +2748 -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/getActionDetailsForService.d.ts +27 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getDataShape.d.ts +29 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getOpenApiSpec.d.ts +29 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getStatistics.d.ts +26 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getStatisticsForService.d.ts +27 -0
  9. package/dist/es/es2018/types/src/generated/adapters/sendTestConnectionRequest.d.ts +29 -0
  10. package/dist/es/es2018/types/src/generated/adapters/validateSchema.d.ts +17 -0
  11. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +7 -0
  12. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +14 -0
  13. package/dist/es/es2018/types/src/generated/resources/getExternalservicesActionsServicesByActionName.d.ts +15 -0
  14. package/dist/es/es2018/types/src/generated/resources/getExternalservicesExternalserviceschemarequest.d.ts +17 -0
  15. package/dist/es/es2018/types/src/generated/resources/getExternalservicesStatisticsServices.d.ts +12 -0
  16. package/dist/es/es2018/types/src/generated/resources/getExternalservicesStatisticsServicesByRegistrationName.d.ts +15 -0
  17. package/dist/es/es2018/types/src/generated/resources/postExternalservicesInferenceDatashapeByVersion.d.ts +19 -0
  18. package/dist/es/es2018/types/src/generated/resources/postExternalservicesInferenceDatashapeSendrequestByVersion.d.ts +19 -0
  19. package/dist/es/es2018/types/src/generated/resources/postExternalservicesInferenceOpenapispecByVersion.d.ts +19 -0
  20. package/dist/es/es2018/types/src/generated/resources/postExternalservicesSchemasValidationBySchemaName.d.ts +16 -0
  21. package/dist/es/es2018/types/src/generated/types/ApiInfoRepresentation.d.ts +37 -0
  22. package/dist/es/es2018/types/src/generated/types/ApiListRepresentation.d.ts +29 -0
  23. package/dist/es/es2018/types/src/generated/types/ApiSchemaRepresentation.d.ts +28 -0
  24. package/dist/es/es2018/types/src/generated/types/DataShapeInferenceOutputRepresentation.d.ts +48 -0
  25. package/dist/es/es2018/types/src/generated/types/ExternalServiceActionOutputRepresentation.d.ts +41 -0
  26. package/dist/es/es2018/types/src/generated/types/ExternalServiceActionParameterRepresentation.d.ts +37 -0
  27. package/dist/es/es2018/types/src/generated/types/ExternalServiceSchemaRequestRepresentation.d.ts +31 -0
  28. package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsBreakdownRepresentation.d.ts +43 -0
  29. package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsForServiceRepresentation.d.ts +41 -0
  30. package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsOutputRepresentation.d.ts +36 -0
  31. package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsOverviewRepresentation.d.ts +34 -0
  32. package/dist/es/es2018/types/src/generated/types/InferenceErrorMessageRepresentation.d.ts +31 -0
  33. package/dist/es/es2018/types/src/generated/types/NamedCredentialListRepresentation.d.ts +29 -0
  34. package/dist/es/es2018/types/src/generated/types/NamedCredentialRepresentation.d.ts +34 -0
  35. package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceInputRepresentation.d.ts +56 -0
  36. package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceInputWrapperRepresentation.d.ts +28 -0
  37. package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceOutputRepresentation.d.ts +36 -0
  38. package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceParameterRepresentation.d.ts +43 -0
  39. package/dist/es/es2018/types/src/generated/types/SchemaValidationInputRepresentation.d.ts +34 -0
  40. package/dist/es/es2018/types/src/generated/types/SchemaValidationInputWrapperRepresentation.d.ts +28 -0
  41. package/dist/es/es2018/types/src/generated/types/SchemaValidationMessageRepresentation.d.ts +52 -0
  42. package/dist/es/es2018/types/src/generated/types/SchemaValidationOutputRepresentation.d.ts +50 -0
  43. package/dist/es/es2018/types/src/generated/types/TestConnectionInputRepresentation.d.ts +44 -0
  44. package/dist/es/es2018/types/src/generated/types/TestConnectionInputWrapperRepresentation.d.ts +28 -0
  45. package/dist/es/es2018/types/src/generated/types/TestConnectionOutputRepresentation.d.ts +40 -0
  46. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  47. package/dist/es/es2018/types/src/main.d.ts +6 -0
  48. package/dist/es/es2018/types/src/raml-artifacts/types/ExternalServiceStatisticsOutputRepresentation/notifyUpdateAvailableFactory.d.ts +2 -0
  49. package/dist/es/es2018/types/src/sfdc.d.ts +7 -0
  50. package/package.json +76 -0
  51. package/sfdc/index.d.ts +1 -0
  52. package/sfdc/index.js +2856 -0
  53. package/src/raml/api.raml +615 -0
  54. package/src/raml/luvio.raml +55 -0
@@ -0,0 +1,615 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '57.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
+ ApiInfoRepresentation:
29
+ description: Information about an available API.
30
+ type: object
31
+ properties:
32
+ description:
33
+ description: Description of this API
34
+ type: string
35
+ id:
36
+ description: Unique identifier for this API
37
+ type: string
38
+ name:
39
+ description: Name of this API
40
+ type: string
41
+ version:
42
+ description: Version of this API
43
+ type: string
44
+ ApiListRepresentation:
45
+ description: A list of available APIs.
46
+ type: object
47
+ properties:
48
+ apis:
49
+ description: List of available APIs
50
+ type: array
51
+ items:
52
+ type: ApiInfoRepresentation
53
+ ApiSchemaRepresentation:
54
+ description: The schema for an API.
55
+ type: object
56
+ properties:
57
+ schemaContents:
58
+ description: Schema document contents
59
+ type: string
60
+ DataShapeInferenceOutputRepresentation:
61
+ description: Represents inferred data shape
62
+ type: object
63
+ properties:
64
+ errorMessages:
65
+ description: Error messages
66
+ type: array
67
+ items:
68
+ type: InferenceErrorMessageRepresentation
69
+ example?:
70
+ description: Example of the inferred field
71
+ type: string
72
+ items:
73
+ description: Items of the inferred array field
74
+ type: array
75
+ items:
76
+ type: DataShapeInferenceOutputRepresentation
77
+ properties:
78
+ description: Properties of the inferred schema
79
+ type: object
80
+ properties:
81
+ //:
82
+ type: DataShapeInferenceOutputRepresentation
83
+ success:
84
+ description: Status of the inferring
85
+ type: boolean
86
+ type?:
87
+ description: Data type of the inferred field
88
+ type: string
89
+ ExternalServiceSchemaRequestRepresentation:
90
+ description: Results of an external service schema request
91
+ type: object
92
+ properties:
93
+ error:
94
+ description: Error encountered if any
95
+ type: string
96
+ serviceSchema:
97
+ description: Raw service schema retrieved using named credentials
98
+ type: string
99
+ ExternalServiceStatisticsBreakdownRepresentation:
100
+ description: External Services statistics breakdown results for a Service / Operation
101
+ component
102
+ type: object
103
+ properties:
104
+ active:
105
+ description: Is the parent component active
106
+ type: boolean
107
+ activeCount:
108
+ description: The active count of the component
109
+ type: integer
110
+ component:
111
+ description: The name of the parent component
112
+ type: string
113
+ componentType:
114
+ description: The type of the parent component
115
+ type: string
116
+ statisticFor:
117
+ description: The component type of this statistics for
118
+ type: string
119
+ totalCount:
120
+ description: The total count of the component
121
+ type: integer
122
+ ExternalServiceStatisticsForServiceRepresentation:
123
+ description: External Services statistics results for a Service component
124
+ type: object
125
+ properties:
126
+ schemaSize:
127
+ description: The size of the schema
128
+ type: integer
129
+ schemaType:
130
+ description: The type of the schema
131
+ type: string
132
+ enum:
133
+ - OpenApi
134
+ - OpenApi3
135
+ serviceName:
136
+ description: The External Service registration name
137
+ type: string
138
+ statistics:
139
+ description: The statistics of the children components of this service
140
+ type: array
141
+ items:
142
+ type: ExternalServiceStatisticsBreakdownRepresentation
143
+ systemVersion:
144
+ description: The system version of the service registration
145
+ type: integer
146
+ ExternalServiceActionOutputRepresentation:
147
+ description: Represents the Ext Service Action Details
148
+ type: object
149
+ properties:
150
+ externalServicePath:
151
+ description: The path for the external services edit page
152
+ type: string
153
+ method:
154
+ description: Http Method type of the service
155
+ type: string
156
+ parameters:
157
+ description: Path/query parameters details of the service
158
+ type: array
159
+ items:
160
+ type: ExternalServiceActionParameterRepresentation
161
+ path:
162
+ description: Url Path used by the service
163
+ type: string
164
+ registrationName:
165
+ description: Registration name of the action service.
166
+ type: string
167
+ ExternalServiceActionParameterRepresentation:
168
+ description: Input Parameter details of the external service
169
+ type: object
170
+ properties:
171
+ description:
172
+ description: Description of the parameter
173
+ type: string
174
+ location:
175
+ description: Type of Parameter i.e. Path/Query
176
+ type: string
177
+ name:
178
+ description: Name of the Parameter
179
+ type: string
180
+ required:
181
+ description: Is the parameter a required field
182
+ type: boolean
183
+ ExternalServiceStatisticsOutputRepresentation:
184
+ description: External Services statistics results for a single service or overview
185
+ of all services
186
+ type: object
187
+ properties:
188
+ serviceCount:
189
+ description: Number of external service registrations
190
+ type: integer
191
+ services:
192
+ description: List of the services statistics breakdown
193
+ type: array
194
+ items:
195
+ type: ExternalServiceStatisticsForServiceRepresentation
196
+ statistics:
197
+ description: Count statistics overview for operation and object components
198
+ type: array
199
+ items:
200
+ type: ExternalServiceStatisticsOverviewRepresentation
201
+ ExternalServiceStatisticsOverviewRepresentation:
202
+ description: External Services statistics overview results for Operation and Object
203
+ type: object
204
+ properties:
205
+ activeCount:
206
+ description: The active count of the component
207
+ type: integer
208
+ statisticFor:
209
+ description: The component type of this statistics for
210
+ type: string
211
+ totalCount:
212
+ description: The total count of the component
213
+ type: integer
214
+ InferenceErrorMessageRepresentation:
215
+ description: Data shape inferring errors
216
+ type: object
217
+ properties:
218
+ message:
219
+ description: Error message
220
+ type: string
221
+ severityLevel:
222
+ description: Severity of the error
223
+ type: string
224
+ enum:
225
+ - Error
226
+ - Info
227
+ - Warning
228
+ NamedCredentialListRepresentation:
229
+ description: A list of Named Credentials.
230
+ type: object
231
+ properties:
232
+ namedCredentials:
233
+ description: List of Named Credentials
234
+ type: array
235
+ items:
236
+ type: NamedCredentialRepresentation
237
+ NamedCredentialRepresentation:
238
+ description: Information about a Named Credential.
239
+ type: object
240
+ properties:
241
+ endpoint:
242
+ description: Endpoint of this Named Credential
243
+ type: string
244
+ masterLabel:
245
+ description: Master Label of this Named Credential
246
+ type: string
247
+ name:
248
+ description: Name of this Named Credential
249
+ type: string
250
+ OpenApiSpecInferenceInputWrapperRepresentation: # TODO: Hand-rolled (W-8334626) due to issue #29 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
251
+ description: Wrapper for data input for inferring Open Api specification
252
+ type: object
253
+ properties:
254
+ input:
255
+ description: Data input for inferring Open Api specification
256
+ type: OpenApiSpecInferenceInputRepresentation
257
+ OpenApiSpecInferenceInputRepresentation:
258
+ description: Data input for inferring Open Api specification
259
+ type: object
260
+ properties:
261
+ description:
262
+ description: Sets the description of the external service
263
+ type: string
264
+ externalServiceId?:
265
+ description: Sets the external service Id
266
+ type: string
267
+ method:
268
+ description: Sets the method of the external service
269
+ type: string
270
+ name:
271
+ description: Sets the name of the external service
272
+ type: string
273
+ operationDescription:
274
+ description: Sets the descripton of the external service action/operation
275
+ type: string
276
+ operationName:
277
+ description: Sets the name of the external service action/operation
278
+ type: string
279
+ parameters:
280
+ description: Sets the parameters of the external service
281
+ type: array
282
+ items:
283
+ type: OpenApiSpecInferenceParameterRepresentation
284
+ path:
285
+ description: Sets the path of the external service
286
+ type: string
287
+ requestBody?:
288
+ description: Sets the request body
289
+ type: object
290
+ responseBody:
291
+ description: Sets the response body
292
+ type: object
293
+ OpenApiSpecInferenceOutputRepresentation:
294
+ description: Represents the inferred Open Api specification
295
+ type: object
296
+ properties:
297
+ errorMessages:
298
+ description: Error messages
299
+ type: array
300
+ items:
301
+ type: InferenceErrorMessageRepresentation
302
+ schema:
303
+ description: Inferred schema of the Open Api specification
304
+ type: string
305
+ success:
306
+ description: Whether or not the inference was successful
307
+ type: boolean
308
+ OpenApiSpecInferenceParameterRepresentation:
309
+ description: Represents information of a parameter
310
+ type: object
311
+ properties:
312
+ description?:
313
+ description: Sets the description for the parameter
314
+ type: string
315
+ example?:
316
+ description: Sets the example value for the parameter
317
+ type: string
318
+ location:
319
+ description: Sets the location of the parameter
320
+ type: string
321
+ name:
322
+ description: Sets the name of the parameter
323
+ type: string
324
+ required:
325
+ description: Sets requiredness of the parameter
326
+ type: boolean
327
+ type:
328
+ description: Sets the data type of the parameter
329
+ type: string
330
+ # TODO Hand-Rolled due to issue #29 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
331
+ SchemaValidationInputWrapperRepresentation:
332
+ description: Wrapper for input representation for schema validation
333
+ type: object
334
+ properties:
335
+ schema:
336
+ description: Input representation for schema validation
337
+ type: SchemaValidationInputRepresentation
338
+ SchemaValidationInputRepresentation:
339
+ description: Input representation for schema validation
340
+ type: object
341
+ properties:
342
+ schema:
343
+ description: Sets the schema of the external service
344
+ type: string
345
+ schemaName:
346
+ description: Sets the external service name
347
+ type: string
348
+ systemVersion:
349
+ description: Sets the system version of the external service
350
+ type: integer
351
+ SchemaValidationMessageRepresentation:
352
+ description: Information about a schema validation result
353
+ type: object
354
+ properties:
355
+ endColumn:
356
+ description: End column corresponding to the schema validation result
357
+ type: integer | nil
358
+ required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
359
+ endLine:
360
+ description: End line corresponding to the schema validation result
361
+ type: integer | nil
362
+ required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
363
+ endPosition:
364
+ description: End position corresponding to the schema validation result
365
+ type: integer | nil
366
+ required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
367
+ message:
368
+ description: Message for schema validation result
369
+ type: string
370
+ startColumn:
371
+ description: Start column corresponding to the schema validation result
372
+ type: integer | nil
373
+ required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
374
+ startLine:
375
+ description: Start line corresponding to the schema validation result
376
+ type: integer | nil
377
+ required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
378
+ startPosition:
379
+ description: Start position corresponding to the schema validation result
380
+ type: integer | nil
381
+ required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
382
+ validationClass:
383
+ description: Validation class for schema validation result
384
+ type: string
385
+ enum:
386
+ - Semantic
387
+ - Syntax
388
+ validationLevel:
389
+ description: Validation level for schema validation result
390
+ type: string
391
+ enum:
392
+ - Error
393
+ - Info
394
+ - Warning
395
+ SchemaValidationOutputRepresentation:
396
+ description: A list of schema validation results
397
+ type: object
398
+ properties:
399
+ schemaName:
400
+ description: Name of this schema
401
+ type: string
402
+ schemaSize:
403
+ description: Size of the schema
404
+ type: integer
405
+ schemaType:
406
+ description: Type of schema
407
+ type: string
408
+ enum:
409
+ - OpenApi
410
+ - OpenApi3
411
+ schemaValidation:
412
+ description: List of schema validation messages
413
+ type: array
414
+ items:
415
+ type: SchemaValidationMessageRepresentation
416
+ systemVersion:
417
+ description: System version used for this schema
418
+ type: integer
419
+ # TODO Hand-Rolled due to issue #29 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
420
+ TestConnectionInputWrapperRepresentation:
421
+ description:
422
+ Wrapper for input representation for testing a connection and inferring the datashape of
423
+ the response
424
+ type: object
425
+ properties:
426
+ configuration:
427
+ description: Input representation for test connection request
428
+ type: TestConnectionInputRepresentation
429
+ TestConnectionInputRepresentation:
430
+ description: Data input for testing a connection and inferring the datashape of
431
+ the response
432
+ type: object
433
+ properties:
434
+ mediaType:
435
+ description: Sets the name of the external service action/operation
436
+ type: string
437
+ method:
438
+ description: Sets the method of the external service
439
+ type: string
440
+ namedCredentialName:
441
+ description: Sets the name of the external service
442
+ type: string
443
+ parameters:
444
+ description: Sets the parameters of the external service
445
+ type: array
446
+ items:
447
+ type: OpenApiSpecInferenceParameterRepresentation
448
+ path:
449
+ description: Sets the path of the external service
450
+ type: string
451
+ requestBody?:
452
+ description: Sets the request body
453
+ type: object
454
+ TestConnectionOutputRepresentation:
455
+ description: Represents response and inferred data shape
456
+ type: object
457
+ properties:
458
+ dataShape:
459
+ description: The datashape of the response, only shown for valid calls
460
+ type: DataShapeInferenceOutputRepresentation | nil
461
+ required: false
462
+ errorMessages:
463
+ description: The error messages from testing the api
464
+ type: array
465
+ items:
466
+ type: InferenceErrorMessageRepresentation
467
+ rawData?:
468
+ description: The raw data received from the server
469
+ type: string
470
+ statusCode?:
471
+ description: The status code of the response
472
+ type: string
473
+ /externalservices:
474
+ /actions/services/{actionName}:
475
+ get:
476
+ displayName: getExternalServiceAction
477
+ description: Get the action details of the Http Action invocable action operation
478
+ responses:
479
+ '200':
480
+ description: Success
481
+ body:
482
+ application/json:
483
+ type: ExternalServiceActionOutputRepresentation
484
+ uriParameters:
485
+ actionName:
486
+ description: 'The external service action name. Eg: registrationName.operationName'
487
+ type: string
488
+ required: true
489
+ /externalserviceschemarequest:
490
+ get:
491
+ description: Retrieves an external service schema
492
+ responses:
493
+ '200':
494
+ description: Success
495
+ body:
496
+ application/json:
497
+ type: ExternalServiceSchemaRequestRepresentation
498
+ queryParameters:
499
+ namedCredentialId:
500
+ type: string
501
+ required: false
502
+ schemaAbsolutePath:
503
+ type: string
504
+ required: false
505
+ schemaPath:
506
+ type: string
507
+ required: false
508
+ /inference:
509
+ /datashape/{version}:
510
+ post:
511
+ description: Infer data shape from example data
512
+ responses:
513
+ '200':
514
+ description: Success
515
+ body:
516
+ application/json:
517
+ type: DataShapeInferenceOutputRepresentation
518
+ queryParameters:
519
+ exampleData:
520
+ type: string
521
+ required: false
522
+ mediaType:
523
+ type: string
524
+ required: false
525
+ uriParameters:
526
+ version:
527
+ description: Version of the Open Api Spec
528
+ type: string
529
+ required: true
530
+ /datashape/{version}/sendrequest:
531
+ post:
532
+ displayName: postTestConnectionInference
533
+ description: Infer Open Api specification
534
+ responses:
535
+ '200':
536
+ description: Success
537
+ body:
538
+ application/json:
539
+ type: TestConnectionOutputRepresentation
540
+ body:
541
+ application/json:
542
+ type: TestConnectionInputWrapperRepresentation
543
+ # TODO: Hand-rolled W-11766973 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
544
+ # required: false
545
+ (oas-body-name): configuration
546
+ uriParameters:
547
+ version:
548
+ description: Version of the Open Api Spec
549
+ type: string
550
+ required: true
551
+ /openapispec/{version}:
552
+ post:
553
+ description: Infer Open Api specification
554
+ responses:
555
+ '200':
556
+ description: Success
557
+ body:
558
+ application/json:
559
+ type: OpenApiSpecInferenceOutputRepresentation
560
+ body:
561
+ application/json:
562
+ type: OpenApiSpecInferenceInputWrapperRepresentation
563
+ # TODO: Hand-rolled W-11766973 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
564
+ # required: false
565
+ (oas-body-name): input
566
+ uriParameters:
567
+ version:
568
+ description: Version of the Open Api Spec
569
+ type: string
570
+ required: true
571
+ /schemas/{schemaName}/validation:
572
+ post:
573
+ description: Retrieves a list of schema validation results for a specific
574
+ external service and its schema
575
+ responses:
576
+ '200':
577
+ description: Success
578
+ body:
579
+ application/json:
580
+ type: SchemaValidationOutputRepresentation
581
+ body:
582
+ application/json:
583
+ type: SchemaValidationInputWrapperRepresentation
584
+ # TODO: Hand-rolled W-11766973 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
585
+ # required: false
586
+ (oas-body-name): schema
587
+ uriParameters:
588
+ schemaName:
589
+ type: string
590
+ required: true
591
+ /statistics/services:
592
+ get:
593
+ description: Get external service statistics including service, operation
594
+ and object's total and active counts
595
+ responses:
596
+ '200':
597
+ description: Success
598
+ body:
599
+ application/json:
600
+ type: ExternalServiceStatisticsOutputRepresentation
601
+ /statistics/services/{registrationName}:
602
+ get:
603
+ description: Get external service statistics including service, operation
604
+ and object's total and active counts
605
+ responses:
606
+ '200':
607
+ description: Success
608
+ body:
609
+ application/json:
610
+ type: ExternalServiceStatisticsOutputRepresentation
611
+ uriParameters:
612
+ registrationName:
613
+ description: 'The external service registration name. Eg: namespace__serviceName'
614
+ type: string
615
+ required: true
@@ -0,0 +1,55 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'external-services'
8
+ (luvio.ttl): 300000
9
+
10
+ types:
11
+ DataShapeInferenceOutputRepresentation:
12
+ (luvio.opaque): true
13
+ OpenApiSpecInferenceOutputRepresentation:
14
+ (luvio.ttl): 500
15
+ SchemaValidationOutputRepresentation:
16
+ (luvio.key):
17
+ schemaName: schemaName
18
+ TestConnectionOutputRepresentation:
19
+ (luvio.ttl): 100
20
+ (luvio.opaque): true
21
+
22
+ /externalservices:
23
+ /inference:
24
+ /datashape/{version}:
25
+ post:
26
+ (luvio.method): get
27
+ (luvio.adapter):
28
+ name: getDataShape
29
+ /datashape/{version}/sendrequest:
30
+ post:
31
+ (luvio.method): get
32
+ (luvio.adapter):
33
+ name: sendTestConnectionRequest
34
+ /openapispec/{version}:
35
+ post:
36
+ (luvio.method): get
37
+ (luvio.adapter):
38
+ name: getOpenApiSpec
39
+ /statistics/services:
40
+ get:
41
+ (luvio.adapter):
42
+ name: getStatistics
43
+
44
+ /{registrationName}:
45
+ get:
46
+ (luvio.adapter):
47
+ name: getStatisticsForService
48
+ /schemas/{schemaName}/validation:
49
+ post:
50
+ (luvio.adapter):
51
+ name: validateSchema
52
+ /actions/services/{actionName}:
53
+ get:
54
+ (luvio.adapter):
55
+ name: getActionDetailsForService