@salesforce/lds-adapters-platform-external-services 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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/platform-external-services.js +2228 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +66 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataShape.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getOpenApiSpec.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getStatistics.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/adapters/getStatisticsForService.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/adapters/validateSchema.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +10 -0
- package/dist/es/es2018/types/src/generated/resources/getExternalservicesExternalserviceschemarequest.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getExternalservicesStatisticsServices.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getExternalservicesStatisticsServicesByRegistrationName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postExternalservicesInferenceDatashapeByVersion.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postExternalservicesInferenceOpenapispecByVersion.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postExternalservicesSchemasValidationBySchemaName.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/ApiInfoRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/ApiListRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/ApiSchemaRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/DataShapeInferenceOutputRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/ExternalServiceSchemaRequestRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsBreakdownRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsForServiceRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsOutputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsOverviewRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/InferenceErrorMessageRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/NamedCredentialListRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/NamedCredentialRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceInputRepresentation.d.ts +57 -0
- package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceInputWrapperRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceOutputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceParameterRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/SchemaValidationInputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/SchemaValidationInputWrapperRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/SchemaValidationMessageRepresentation.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/SchemaValidationOutputRepresentation.d.ts +51 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
- package/package.json +67 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +2291 -0
- package/src/raml/api.raml +485 -0
- package/src/raml/luvio.raml +43 -0
|
@@ -0,0 +1,485 @@
|
|
|
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/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
|
+
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
|
+
ExternalServiceStatisticsOutputRepresentation:
|
|
147
|
+
description: External Services statistics results for a single service or overview
|
|
148
|
+
of all services
|
|
149
|
+
type: object
|
|
150
|
+
properties:
|
|
151
|
+
serviceCount:
|
|
152
|
+
description: Number of external service registrations
|
|
153
|
+
type: integer
|
|
154
|
+
services:
|
|
155
|
+
description: List of the services statistics breakdown
|
|
156
|
+
type: array
|
|
157
|
+
items:
|
|
158
|
+
type: ExternalServiceStatisticsForServiceRepresentation
|
|
159
|
+
statistics:
|
|
160
|
+
description: Count statistics overview for operation and object components
|
|
161
|
+
type: array
|
|
162
|
+
items:
|
|
163
|
+
type: ExternalServiceStatisticsOverviewRepresentation
|
|
164
|
+
ExternalServiceStatisticsOverviewRepresentation:
|
|
165
|
+
description: External Services statistics overview results for Operation and Object
|
|
166
|
+
type: object
|
|
167
|
+
properties:
|
|
168
|
+
activeCount:
|
|
169
|
+
description: The active count of the component
|
|
170
|
+
type: integer
|
|
171
|
+
statisticFor:
|
|
172
|
+
description: The component type of this statistics for
|
|
173
|
+
type: string
|
|
174
|
+
totalCount:
|
|
175
|
+
description: The total count of the component
|
|
176
|
+
type: integer
|
|
177
|
+
InferenceErrorMessageRepresentation:
|
|
178
|
+
description: Data shape inferring errors
|
|
179
|
+
type: object
|
|
180
|
+
properties:
|
|
181
|
+
message:
|
|
182
|
+
description: Error message
|
|
183
|
+
type: string
|
|
184
|
+
severityLevel:
|
|
185
|
+
description: Severity of the error
|
|
186
|
+
type: string
|
|
187
|
+
enum:
|
|
188
|
+
- Error
|
|
189
|
+
- Info
|
|
190
|
+
- Warning
|
|
191
|
+
NamedCredentialListRepresentation:
|
|
192
|
+
description: A list of Named Credentials.
|
|
193
|
+
type: object
|
|
194
|
+
properties:
|
|
195
|
+
namedCredentials:
|
|
196
|
+
description: List of Named Credentials
|
|
197
|
+
type: array
|
|
198
|
+
items:
|
|
199
|
+
type: NamedCredentialRepresentation
|
|
200
|
+
NamedCredentialRepresentation:
|
|
201
|
+
description: Information about a Named Credential.
|
|
202
|
+
type: object
|
|
203
|
+
properties:
|
|
204
|
+
endpoint:
|
|
205
|
+
description: Endpoint of this Named Credential
|
|
206
|
+
type: string
|
|
207
|
+
masterLabel:
|
|
208
|
+
description: Master Label of this Named Credential
|
|
209
|
+
type: string
|
|
210
|
+
name:
|
|
211
|
+
description: Name of this Named Credential
|
|
212
|
+
type: string
|
|
213
|
+
OpenApiSpecInferenceInputWrapperRepresentation: # TODO: Hand-rolled (W-8334626) due to issue #29 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
214
|
+
description: Wrapper for data input for inferring Open Api specification
|
|
215
|
+
type: object
|
|
216
|
+
properties:
|
|
217
|
+
input:
|
|
218
|
+
description: Data input for inferring Open Api specification
|
|
219
|
+
type: OpenApiSpecInferenceInputRepresentation
|
|
220
|
+
OpenApiSpecInferenceInputRepresentation:
|
|
221
|
+
description: Data input for inferring Open Api specification
|
|
222
|
+
type: object
|
|
223
|
+
properties:
|
|
224
|
+
description:
|
|
225
|
+
description: Sets the description of the external service
|
|
226
|
+
type: string
|
|
227
|
+
externalServiceId?:
|
|
228
|
+
description: Sets the external service Id
|
|
229
|
+
type: string
|
|
230
|
+
method:
|
|
231
|
+
description: Sets the method of the external service
|
|
232
|
+
type: string
|
|
233
|
+
name:
|
|
234
|
+
description: Sets the name of the external service
|
|
235
|
+
type: string
|
|
236
|
+
operationDescription:
|
|
237
|
+
description: Sets the descripton of the external service action/operation
|
|
238
|
+
type: string
|
|
239
|
+
operationName:
|
|
240
|
+
description: Sets the name of the external service action/operation
|
|
241
|
+
type: string
|
|
242
|
+
parameters:
|
|
243
|
+
description: Sets the parameters of the external service
|
|
244
|
+
type: array
|
|
245
|
+
items:
|
|
246
|
+
type: OpenApiSpecInferenceParameterRepresentation
|
|
247
|
+
path:
|
|
248
|
+
description: Sets the path of the external service
|
|
249
|
+
type: string
|
|
250
|
+
requestBody?:
|
|
251
|
+
description: Sets the request body
|
|
252
|
+
type: object
|
|
253
|
+
responseBody:
|
|
254
|
+
description: Sets the response body
|
|
255
|
+
type: object
|
|
256
|
+
OpenApiSpecInferenceOutputRepresentation:
|
|
257
|
+
description: Represents the inferred Open Api specification
|
|
258
|
+
type: object
|
|
259
|
+
properties:
|
|
260
|
+
errorMessages:
|
|
261
|
+
description: Error messages
|
|
262
|
+
type: array
|
|
263
|
+
items:
|
|
264
|
+
type: InferenceErrorMessageRepresentation
|
|
265
|
+
schema:
|
|
266
|
+
description: Inferred schema of the Open Api specification
|
|
267
|
+
type: string
|
|
268
|
+
success:
|
|
269
|
+
description: Whether or not the inference was successful
|
|
270
|
+
type: boolean
|
|
271
|
+
OpenApiSpecInferenceParameterRepresentation:
|
|
272
|
+
description: Represents information of a parameter
|
|
273
|
+
type: object
|
|
274
|
+
properties:
|
|
275
|
+
description?:
|
|
276
|
+
description: Sets the description for the parameter
|
|
277
|
+
type: string
|
|
278
|
+
location:
|
|
279
|
+
description: Sets the location of the parameter
|
|
280
|
+
type: string
|
|
281
|
+
name:
|
|
282
|
+
description: Sets the name of the parameter
|
|
283
|
+
type: string
|
|
284
|
+
required:
|
|
285
|
+
description: Sets requiredness of the parameter
|
|
286
|
+
type: boolean
|
|
287
|
+
type:
|
|
288
|
+
description: Sets the data type of the parameter
|
|
289
|
+
type: string
|
|
290
|
+
# TODO Hand-Rolled due to issue #29 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
291
|
+
SchemaValidationInputWrapperRepresentation:
|
|
292
|
+
description: Wrapper for input representation for schema validation
|
|
293
|
+
type: object
|
|
294
|
+
properties:
|
|
295
|
+
schema:
|
|
296
|
+
description: Input representation for schema validation
|
|
297
|
+
type: SchemaValidationInputRepresentation
|
|
298
|
+
SchemaValidationInputRepresentation:
|
|
299
|
+
description: Input representation for schema validation
|
|
300
|
+
type: object
|
|
301
|
+
properties:
|
|
302
|
+
schema:
|
|
303
|
+
description: Sets the schema of the external service
|
|
304
|
+
type: string
|
|
305
|
+
schemaName:
|
|
306
|
+
description: Sets the external service name
|
|
307
|
+
type: string
|
|
308
|
+
systemVersion:
|
|
309
|
+
description: Sets the system version of the external service
|
|
310
|
+
type: integer
|
|
311
|
+
SchemaValidationMessageRepresentation:
|
|
312
|
+
description: Information about a schema validation result
|
|
313
|
+
type: object
|
|
314
|
+
properties:
|
|
315
|
+
endColumn:
|
|
316
|
+
description: End column corresponding to the schema validation result
|
|
317
|
+
type: integer | nil
|
|
318
|
+
required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
319
|
+
endLine:
|
|
320
|
+
description: End line corresponding to the schema validation result
|
|
321
|
+
type: integer | nil
|
|
322
|
+
required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
323
|
+
endPosition:
|
|
324
|
+
description: End position corresponding to the schema validation result
|
|
325
|
+
type: integer | nil
|
|
326
|
+
required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
327
|
+
message:
|
|
328
|
+
description: Message for schema validation result
|
|
329
|
+
type: string
|
|
330
|
+
startColumn:
|
|
331
|
+
description: Start column corresponding to the schema validation result
|
|
332
|
+
type: integer | nil
|
|
333
|
+
required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
334
|
+
startLine:
|
|
335
|
+
description: Start line corresponding to the schema validation result
|
|
336
|
+
type: integer | nil
|
|
337
|
+
required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
338
|
+
startPosition:
|
|
339
|
+
description: Start position corresponding to the schema validation result
|
|
340
|
+
type: integer | nil
|
|
341
|
+
required: false # TODO Hand-Rolled due to issue #1 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
342
|
+
validationClass:
|
|
343
|
+
description: Validation class for schema validation result
|
|
344
|
+
type: string
|
|
345
|
+
enum:
|
|
346
|
+
- Semantic
|
|
347
|
+
- Syntax
|
|
348
|
+
validationLevel:
|
|
349
|
+
description: Validation level for schema validation result
|
|
350
|
+
type: string
|
|
351
|
+
enum:
|
|
352
|
+
- Error
|
|
353
|
+
- Info
|
|
354
|
+
- Warning
|
|
355
|
+
SchemaValidationOutputRepresentation:
|
|
356
|
+
description: A list of schema validation results
|
|
357
|
+
type: object
|
|
358
|
+
properties:
|
|
359
|
+
schemaName:
|
|
360
|
+
description: Name of this schema
|
|
361
|
+
type: string
|
|
362
|
+
schemaSize:
|
|
363
|
+
description: Size of the schema
|
|
364
|
+
type: integer
|
|
365
|
+
schemaType:
|
|
366
|
+
description: Type of schema
|
|
367
|
+
type: string
|
|
368
|
+
enum:
|
|
369
|
+
- OpenApi
|
|
370
|
+
- OpenApi3
|
|
371
|
+
schemaValidation:
|
|
372
|
+
description: List of schema validation messages
|
|
373
|
+
type: array
|
|
374
|
+
items:
|
|
375
|
+
type: SchemaValidationMessageRepresentation
|
|
376
|
+
systemVersion:
|
|
377
|
+
description: System version used for this schema
|
|
378
|
+
type: integer
|
|
379
|
+
/externalservices:
|
|
380
|
+
/externalserviceschemarequest:
|
|
381
|
+
get:
|
|
382
|
+
description: Retrieves an external service schema
|
|
383
|
+
responses:
|
|
384
|
+
'200':
|
|
385
|
+
description: Success
|
|
386
|
+
body:
|
|
387
|
+
application/json:
|
|
388
|
+
type: ExternalServiceSchemaRequestRepresentation
|
|
389
|
+
queryParameters:
|
|
390
|
+
namedCredentialId:
|
|
391
|
+
type: string
|
|
392
|
+
required: false
|
|
393
|
+
schemaAbsolutePath:
|
|
394
|
+
type: string
|
|
395
|
+
required: false
|
|
396
|
+
schemaPath:
|
|
397
|
+
type: string
|
|
398
|
+
required: false
|
|
399
|
+
/inference:
|
|
400
|
+
/datashape/{version}:
|
|
401
|
+
post:
|
|
402
|
+
description: Infer data shape from example data
|
|
403
|
+
responses:
|
|
404
|
+
'200':
|
|
405
|
+
description: Success
|
|
406
|
+
body:
|
|
407
|
+
application/json:
|
|
408
|
+
type: DataShapeInferenceOutputRepresentation
|
|
409
|
+
queryParameters:
|
|
410
|
+
exampleData:
|
|
411
|
+
type: string
|
|
412
|
+
required: false
|
|
413
|
+
mediaType:
|
|
414
|
+
type: string
|
|
415
|
+
required: false
|
|
416
|
+
uriParameters:
|
|
417
|
+
version:
|
|
418
|
+
description: Version of the Open Api Spec
|
|
419
|
+
type: string
|
|
420
|
+
required: true
|
|
421
|
+
/openapispec/{version}:
|
|
422
|
+
post:
|
|
423
|
+
description: Infer Open Api specification
|
|
424
|
+
responses:
|
|
425
|
+
'200':
|
|
426
|
+
description: Success
|
|
427
|
+
body:
|
|
428
|
+
application/json:
|
|
429
|
+
type: OpenApiSpecInferenceOutputRepresentation
|
|
430
|
+
body:
|
|
431
|
+
application/json:
|
|
432
|
+
type: OpenApiSpecInferenceInputWrapperRepresentation
|
|
433
|
+
# TODO: Hand-rolled W-11766973 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
434
|
+
# required: false
|
|
435
|
+
(oas-body-name): input
|
|
436
|
+
uriParameters:
|
|
437
|
+
version:
|
|
438
|
+
description: Version of the Open Api Spec
|
|
439
|
+
type: string
|
|
440
|
+
required: true
|
|
441
|
+
/schemas/{schemaName}/validation:
|
|
442
|
+
post:
|
|
443
|
+
description: Retrieves a list of schema validation results for a specific
|
|
444
|
+
external service and its schema
|
|
445
|
+
responses:
|
|
446
|
+
'200':
|
|
447
|
+
description: Success
|
|
448
|
+
body:
|
|
449
|
+
application/json:
|
|
450
|
+
type: SchemaValidationOutputRepresentation
|
|
451
|
+
body:
|
|
452
|
+
application/json:
|
|
453
|
+
type: SchemaValidationInputWrapperRepresentation
|
|
454
|
+
# TODO: Hand-rolled W-11766973 due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
455
|
+
# required: false
|
|
456
|
+
(oas-body-name): schema
|
|
457
|
+
uriParameters:
|
|
458
|
+
schemaName:
|
|
459
|
+
type: string
|
|
460
|
+
required: true
|
|
461
|
+
/statistics/services:
|
|
462
|
+
get:
|
|
463
|
+
description: Get external service statistics including service, operation
|
|
464
|
+
and object's total and active counts
|
|
465
|
+
responses:
|
|
466
|
+
'200':
|
|
467
|
+
description: Success
|
|
468
|
+
body:
|
|
469
|
+
application/json:
|
|
470
|
+
type: ExternalServiceStatisticsOutputRepresentation
|
|
471
|
+
/statistics/services/{registrationName}:
|
|
472
|
+
get:
|
|
473
|
+
description: Get external service statistics including service, operation
|
|
474
|
+
and object's total and active counts
|
|
475
|
+
responses:
|
|
476
|
+
'200':
|
|
477
|
+
description: Success
|
|
478
|
+
body:
|
|
479
|
+
application/json:
|
|
480
|
+
type: ExternalServiceStatisticsOutputRepresentation
|
|
481
|
+
uriParameters:
|
|
482
|
+
registrationName:
|
|
483
|
+
description: 'The external service registration name. Eg: namespace__serviceName'
|
|
484
|
+
type: string
|
|
485
|
+
required: true
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
|
|
19
|
+
/externalservices:
|
|
20
|
+
/inference:
|
|
21
|
+
/datashape/{version}:
|
|
22
|
+
post:
|
|
23
|
+
(luvio.method): get
|
|
24
|
+
(luvio.adapter):
|
|
25
|
+
name: getDataShape
|
|
26
|
+
/openapispec/{version}:
|
|
27
|
+
post:
|
|
28
|
+
(luvio.method): get
|
|
29
|
+
(luvio.adapter):
|
|
30
|
+
name: getOpenApiSpec
|
|
31
|
+
/statistics/services:
|
|
32
|
+
get:
|
|
33
|
+
(luvio.adapter):
|
|
34
|
+
name: getStatistics
|
|
35
|
+
|
|
36
|
+
/{registrationName}:
|
|
37
|
+
get:
|
|
38
|
+
(luvio.adapter):
|
|
39
|
+
name: getStatisticsForService
|
|
40
|
+
/schemas/{schemaName}/validation:
|
|
41
|
+
post:
|
|
42
|
+
(luvio.adapter):
|
|
43
|
+
name: validateSchema
|