@salesforce/lds-adapters-platform-lightning-types 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 (36) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-lightning-types.js +1887 -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/getLightningType.d.ts +32 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getLightningTypes.d.ts +33 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getTypes.d.ts +29 -0
  7. package/dist/es/es2018/types/src/generated/adapters/validateLightningModel.d.ts +32 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +9 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectLightningTypes.d.ts +21 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectLightningTypesByFullyQualifiedName.d.ts +22 -0
  12. package/dist/es/es2018/types/src/generated/resources/postConnectLightningModelTypes.d.ts +17 -0
  13. package/dist/es/es2018/types/src/generated/resources/postConnectLightningModelValidate.d.ts +20 -0
  14. package/dist/es/es2018/types/src/generated/types/LightningModelEditorConfigInputRepresentation.d.ts +37 -0
  15. package/dist/es/es2018/types/src/generated/types/LightningModelFilterConfigInputRepresentation.d.ts +28 -0
  16. package/dist/es/es2018/types/src/generated/types/LightningModelRendererConfigInputRepresentation.d.ts +37 -0
  17. package/dist/es/es2018/types/src/generated/types/LightningModelSchemaConfigInputRepresentation.d.ts +31 -0
  18. package/dist/es/es2018/types/src/generated/types/LightningModelSourceDescriptorInputRepresentation.d.ts +31 -0
  19. package/dist/es/es2018/types/src/generated/types/LightningModelTypesCollectionRepresentation.d.ts +30 -0
  20. package/dist/es/es2018/types/src/generated/types/LightningModelTypesConfigInputRepresentation.d.ts +44 -0
  21. package/dist/es/es2018/types/src/generated/types/LightningModelTypesErrorRepresentation.d.ts +31 -0
  22. package/dist/es/es2018/types/src/generated/types/LightningModelTypesInputRepresentation.d.ts +32 -0
  23. package/dist/es/es2018/types/src/generated/types/LightningModelTypesRepresentation.d.ts +59 -0
  24. package/dist/es/es2018/types/src/generated/types/LightningModelValidateFilterConfigInputRepresentation.d.ts +31 -0
  25. package/dist/es/es2018/types/src/generated/types/LightningModelValidateInputRepresentation.d.ts +39 -0
  26. package/dist/es/es2018/types/src/generated/types/LightningModelValidationErrorRepresentation.d.ts +47 -0
  27. package/dist/es/es2018/types/src/generated/types/LightningModelValidationResultRepresentation.d.ts +33 -0
  28. package/dist/es/es2018/types/src/generated/types/LightningTypeCollectionRepresentation.d.ts +51 -0
  29. package/dist/es/es2018/types/src/generated/types/LightningTypeDetailRepresentation.d.ts +54 -0
  30. package/dist/es/es2018/types/src/generated/types/LightningTypeSummaryRepresentation.d.ts +44 -0
  31. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  32. package/package.json +66 -0
  33. package/sfdc/index.d.ts +1 -0
  34. package/sfdc/index.js +1956 -0
  35. package/src/raml/api.raml +561 -0
  36. package/src/raml/luvio.raml +98 -0
@@ -0,0 +1,561 @@
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/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
+ LightningTypeDetailRepresentation:
29
+ description: Represents the full/detailed information about a Lightning Type.
30
+ type: object
31
+ properties:
32
+ description:
33
+ required: false # Hand-rolled fix for validation failure during runtime
34
+ description: The description of the Type that was given in its schema.json.
35
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
36
+ developerName:
37
+ description: The developer name (aka apiName) of the Type.
38
+ type: string
39
+ editorConfig:
40
+ required: false
41
+ description: The editor configuration for the specified target.
42
+ type: any
43
+ id:
44
+ description: The 18-char String ID of the Type. This is returned for the DB-Based
45
+ (Custom) Types only.
46
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
47
+ required: false
48
+ namespacePrefix:
49
+ description: The namespace prefix that is associated with the Type. Refer
50
+ to a Type using the namespacePrefix__developerName notation (aka fullyQualifiedName).
51
+ type: string
52
+ rendererConfig:
53
+ required: false
54
+ description: The renderer configuration for the specified target.
55
+ type: any
56
+ schema:
57
+ description: The JSON Schema definition (schema.json) of the Type
58
+ type: object
59
+ properties:
60
+ //:
61
+ type: any
62
+ title:
63
+ description: The title of the Type that was given in its schema.json.
64
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
65
+ required: false
66
+ LightningTypeCollectionRepresentation:
67
+ description: Represents a list/collection of Lightning Types.
68
+ type: object
69
+ properties:
70
+ count:
71
+ description: The number of Types returned.
72
+ type: integer
73
+ currentPageUrl:
74
+ description: URL to this page of the Types.
75
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
76
+ lightningTypes:
77
+ description: The list of Lightning Types ordered alphabetically by title.
78
+ type: array
79
+ items:
80
+ type: LightningTypeSummaryRepresentation
81
+ nextPageUrl:
82
+ description: URL to the next page of the Types.
83
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
84
+ required: false # Hand-rolled fix for validation failure during runtime
85
+ previousPageUrl:
86
+ description: URL to the previous page of the Types.
87
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
88
+ required: false # Hand-rolled fix for validation failure during runtime
89
+ LightningTypeSummaryRepresentation:
90
+ description: Summary Representation of a Lightning type.A collection of this is
91
+ returned in the list endpoints.
92
+ type: object
93
+ properties:
94
+ description:
95
+ description: The description of the Type that was given in its schema.json.
96
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
97
+ required: false # Hand-rolled fix for validation failure during runtime
98
+ detailUrl:
99
+ description: The individual detail resource URL to get the full/detailed information
100
+ about the Type.
101
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
102
+ required: false # Hand-rolled fix for validation failure during runtime
103
+ developerName:
104
+ description: The developer name (aka apiName) of the Type.
105
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
106
+ id:
107
+ description: The 18-char String ID of the Type. This is returned for the DB-Based
108
+ (Custom) Types only.
109
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
110
+ required: false # Hand-rolled fix for validation failure during runtime
111
+ namespacePrefix:
112
+ description: The namespace prefix that is associated with the Type. Refer
113
+ to a Type using the namespacePrefix__developerName notation (aka fullyQualifiedName).
114
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
115
+ title:
116
+ description: The title of the Type that was given in its schema.json.
117
+ type: string | nil #Hand-rolled issue #1 in (https://salesforce.quip.com/NxVhAkxL6RTW)
118
+ required: false # Hand-rolled fix for validation failure during runtime
119
+ LightningModelTypesCollectionRepresentation:
120
+ description: Represents a list/collection of Types.
121
+ type: object
122
+ properties:
123
+ types:
124
+ description: The list of Types ordered alphabetically by title.
125
+ type: array
126
+ items:
127
+ type: LightningModelTypesRepresentation
128
+ LightningModelTypesRepresentation:
129
+ description: Represents the details about Types.
130
+ type: object
131
+ properties:
132
+ description:
133
+ description: The description of the Type that was given in its schema.json.
134
+ type: string
135
+ required: false # Hand-rolled fix for validation failure during runtime
136
+ descriptor:
137
+ description: The type descriptor of the Type that was given in query params.
138
+ type: string
139
+ editorConfig:
140
+ description: The editor configuration for the specified target.
141
+ type: any
142
+ required: false # Hand-rolled fix for validation failure during runtime
143
+ developerName:
144
+ description: The developer name (aka apiName) of the Type.
145
+ type: string
146
+ errorDetails:
147
+ description: Lightning Model Types Error Details
148
+ type: LightningModelTypesErrorRepresentation
149
+ required: false # Hand-rolled fix for validation failure during runtime
150
+ id:
151
+ description: The 18-char String ID of the Type. This is returned for the DB-Based (Custom) Types only.
152
+ type: string
153
+ required: false # Hand-rolled fix for validation failure during runtime
154
+ namespacePrefix:
155
+ description: The namespace prefix that is associated with the Type. Refer to a Type using the namespacePrefix__developerName notation (aka fullyQualifiedName).
156
+ type: string
157
+ rendererConfig:
158
+ description: The renderer configuration for the specified target.
159
+ type: any
160
+ required: false # Hand-rolled fix for validation failure during runtime
161
+ schema:
162
+ description: The JSON Schema definition (schema.json) of the Type
163
+ type: any
164
+ required: false # Hand-rolled fix for validation failure during runtime
165
+ title:
166
+ description: The title of the Type that was given in its schema.json.
167
+ type: string
168
+ required: false # Hand-rolled fix for validation failure during runtimes
169
+ sourceDescriptor:
170
+ description: The source descriptor of the Type that was given in query params.
171
+ type: any
172
+ required: false # Hand-rolled fix for validation failure during runtimes
173
+ LightningModelSchemaConfigInputRepresentation:
174
+ type: object
175
+ description: Input Representation for Lightning Model type schema configuration
176
+ properties:
177
+ filterConfig:
178
+ description: Filter configuration for schema
179
+ type: LightningModelFilterConfigInputRepresentation
180
+ required: false # Hand-rolled fix for validation failure during runtime
181
+ subSchemaDefinitions:
182
+ description: Boolean property if sub-schema should be included
183
+ type: boolean
184
+ required: false # Hand-rolled fix for validation failure during runtime
185
+ LightningModelSourceDescriptorInputRepresentation:
186
+ type: object
187
+ description: Input Representation for Lightning Model source descriptor
188
+ properties:
189
+ descriptor:
190
+ description: Source descriptor
191
+ type: string
192
+ required: false # Hand-rolled fix for validation failure during runtime
193
+ propertyName:
194
+ description: Property name filter for source descriptor
195
+ type: string
196
+ required: false # Hand-rolled fix for validation failure during runtime
197
+ LightningModelRendererConfigInputRepresentation:
198
+ type: object
199
+ description: Input Representation for Lightning Model type renderer configuration
200
+ properties:
201
+ target:
202
+ description: A renderer configuration target. To fetch all the types that have the renderer configuration for a particular target.
203
+ type: string
204
+ enum:
205
+ [
206
+ Default,
207
+ Detail,
208
+ Email,
209
+ LightningDesktopGenAi,
210
+ LightningMobileCopilot,
211
+ Summary,
212
+ ScEverywhere,
213
+ SlackCopilot,
214
+ ]
215
+ required: false # Hand-rolled fix for validation failure during runtime
216
+ subViewDefinitions:
217
+ description: Boolean property if sub-view should be included
218
+ type: boolean
219
+ required: false # Hand-rolled fix for validation failure during runtime
220
+ maxViewDepth:
221
+ description: Integer property for specifying maximum depth of sub-view definition decomposition
222
+ type: integer
223
+ required: false # Hand-rolled fix for validation failure during runtime
224
+ actionConfig:
225
+ description: Boolean property if actions should be included
226
+ type: boolean
227
+ required: false # Hand-rolled fix for validation failure during runtime
228
+ LightningModelEditorConfigInputRepresentation:
229
+ type: object
230
+ description: Input Representation for Lightning Model type editor configuration
231
+ properties:
232
+ target:
233
+ description: A editor configuration target. To fetch all the types that have the editor configuration for a particular target.
234
+ type: string
235
+ enum:
236
+ [
237
+ Default,
238
+ Email,
239
+ LightningDesktopGenAi,
240
+ LightningMobileCopilot,
241
+ LightningCommunity,
242
+ LightningDesktopDesign,
243
+ LightningMiawCopilot,
244
+ EnhancedMessaging,
245
+ MiawCopilot,
246
+ ScEveryWhere,
247
+ SlackCopilot,
248
+ ]
249
+ required: false # Hand-rolled fix for validation failure during runtime
250
+ subViewDefinitions:
251
+ description: Boolean property if sub-view should be included
252
+ type: boolean
253
+ required: false # Hand-rolled fix for validation failure during runtime
254
+ maxViewDepth:
255
+ description: Integer property for specifying maximum depth of sub-view definition decomposition
256
+ type: integer
257
+ required: false # Hand-rolled fix for validation failure during runtime
258
+ actionConfig:
259
+ description: Boolean property if actions should be included
260
+ type: boolean
261
+ required: false # Hand-rolled fix for validation failure during runtime
262
+ LightningModelFilterConfigInputRepresentation:
263
+ type: object
264
+ description: Input Representation for Lightning Model type Filter configuration
265
+ properties:
266
+ propertyNames:
267
+ description: Indicates list of properties to filter
268
+ type: array
269
+ items:
270
+ type: string
271
+ LightningModelTypesErrorRepresentation:
272
+ type: object
273
+ description: Lightning Mode Types Error Representation
274
+ properties:
275
+ errorDescription:
276
+ description: Error Description
277
+ type: string
278
+ errorTitle:
279
+ description: Error Title
280
+ type: string
281
+ LightningModelTypesConfigInputRepresentation:
282
+ type: object
283
+ description: Input Representation for Lightning Model types configuration
284
+ properties:
285
+ descriptor:
286
+ description: The descriptor of type.
287
+ type: string
288
+ editorConfig:
289
+ description: The editor config.
290
+ type: LightningModelEditorConfigInputRepresentation
291
+ required: false # Hand-rolled fix for validation failure during runtime
292
+ rendererConfig:
293
+ description: The renderer config.
294
+ type: LightningModelRendererConfigInputRepresentation
295
+ required: false # Hand-rolled fix for validation failure during runtime
296
+ schemaConfig:
297
+ description: The schema config.
298
+ type: LightningModelSchemaConfigInputRepresentation
299
+ required: false # Hand-rolled fix for validation failure during runtime
300
+ sourceDescriptor:
301
+ description: The source descriptor.
302
+ type: LightningModelSourceDescriptorInputRepresentation
303
+ required: false # Hand-rolled fix for validation failure during runtime
304
+ LightningModelTypesInputRepresentation:
305
+ type: object
306
+ description: Input Representation for Lightning Model types
307
+ properties:
308
+ language:
309
+ description: "The language/locale code. e.g., es or en_US. To retrieve
310
+ the title and description in a particular language. If not provided, the
311
+ logged-in user’s language is used. The fallback language is ENGLISH in case
312
+ translations don't exist."
313
+ type: string
314
+ typeConfigs:
315
+ description: The list of Lightning Model Types Configuration
316
+ type: array
317
+ items:
318
+ type: LightningModelTypesConfigInputRepresentation
319
+ LightningModelValidateFilterConfigInputRepresentation:
320
+ description: Represents the filter config input parameters for /connect/lightning-model/validate
321
+ type: object
322
+ properties:
323
+ localization:
324
+ description: Localization filter value for validation
325
+ type: boolean
326
+ required: false # TODO Hand-rolled W-9314597
327
+ readOnly:
328
+ description: ReadOnly filter value for validation
329
+ type: boolean
330
+ required: false # TODO Hand-rolled W-9314597
331
+ LightningModelValidateInputRepresentation:
332
+ description: Represents the input parameters for /connect/lightning-model/validate
333
+ type: object
334
+ properties:
335
+ descriptor:
336
+ description: A descriptor of format <Bundle Type>/<Fully Qualified Name of
337
+ Type>. Examples include "propertyType/lightning__emailType" or "metaschema/sfdc_cms__propertyType"
338
+ type: string
339
+ filterConfig:
340
+ description: Optional filtering configuration for validation
341
+ type: LightningModelValidateFilterConfigInputRepresentation # TODO Hand-rolled
342
+ required: false # TODO Hand-rolled W-9314597
343
+ payload:
344
+ description: JSON data to be validated
345
+ type: object
346
+ properties:
347
+ //:
348
+ type: any # TODO Hand-rolled W-8252808
349
+ LightningModelValidationErrorRepresentation:
350
+ description: Represents the errors output
351
+ type: object
352
+ properties:
353
+ arguments:
354
+ description: Arguments of the error
355
+ type: array
356
+ items:
357
+ type: any # TODO Hand-rolled W-8252808
358
+ code:
359
+ description: Code representing the validation error
360
+ type: string
361
+ details:
362
+ description: Details of the error
363
+ type: object
364
+ properties:
365
+ //:
366
+ type: object
367
+ message:
368
+ description: Human-readable error message
369
+ type: string
370
+ path:
371
+ description: Path to the field where the error occurred
372
+ type: string
373
+ type:
374
+ description: Type of the validation rule that failed
375
+ type: string
376
+ LightningModelValidationResultRepresentation:
377
+ description: Represents the validation output
378
+ type: object
379
+ properties:
380
+ errors:
381
+ description: List of validation errors encountered
382
+ type: array
383
+ items:
384
+ type: LightningModelValidationErrorRepresentation # TODO Hand-rolled specified the type manually instead of object
385
+ success:
386
+ description: Indicates whether the validation was successful
387
+ type: boolean
388
+ /connect:
389
+ /lightning-types:
390
+ get:
391
+ displayName: getLightningTypeCollection
392
+ description: Fetch or Query the Lightning Types.
393
+ responses:
394
+ '200':
395
+ description: Success
396
+ body:
397
+ application/json:
398
+ type: LightningTypeCollectionRepresentation
399
+ queryParameters:
400
+ editorConfigTarget:
401
+ description: A design configuration target. To fetch all the lightning types
402
+ that have the editor configuration for a particular target.
403
+ type: string
404
+ required: false
405
+ enum:
406
+ - Default
407
+ - EnhancedMessaging
408
+ - LightningDesktopGenAi
409
+ - LightningDesktopDesign
410
+ - LightningMiawCopilot
411
+ - LightningMobileCopilot
412
+ - MiawCopilot
413
+ - ScEveryWhere
414
+ - SlackCopilot
415
+ excludeStandardTypes:
416
+ description: Exclude standard schema types from the response.
417
+ type: boolean
418
+ required: false
419
+ fullyQualifiedNames:
420
+ description: The list of comma-separated lightning type FQNs. To fetch some
421
+ specific lightning types by providing their FQNs.
422
+ type: array
423
+ required: false
424
+ items:
425
+ type: string
426
+ (oas-collectionFormat): csv
427
+ language:
428
+ description: The language/locale code. e.g., es or en_US. To retrieve the
429
+ title and description in a particular language. If not provided, the logged-in
430
+ user’s language is used. The fallback language is ENGLISH in case translations
431
+ don't exist.
432
+ type: string
433
+ required: false
434
+ page:
435
+ description: An integer specifying a page of items. The default value is
436
+ 0, which returns the first page.
437
+ type: integer
438
+ required: false
439
+ pageSize:
440
+ description: Specifies the number of items per page. Valid values are from
441
+ 1 through 250.
442
+ type: integer
443
+ required: false
444
+ rendererConfigTarget:
445
+ description: A rendition configuration target. To fetch all the lightning
446
+ types that have the rendition configuration for a particular target.
447
+ type: string
448
+ required: false
449
+ enum:
450
+ - Default
451
+ - Detail
452
+ - Email
453
+ - EnhancedMessaging
454
+ - LightningDesktopGenAi
455
+ - LightningDesktopDesign
456
+ - LightningMiawCopilot
457
+ - LightningMobileCopilot
458
+ - MiawCopilot
459
+ - ScEveryWhere
460
+ - SlackCopilot
461
+ - Summary
462
+ /lightning-types/{fullyQualifiedName}:
463
+ get:
464
+ displayName: getLightningType
465
+ description: Fetch the detailed information about a Lightning Type.
466
+ responses:
467
+ '200':
468
+ description: Success
469
+ body:
470
+ application/json:
471
+ type: LightningTypeDetailRepresentation
472
+ queryParameters:
473
+ editorConfigTarget:
474
+ description: Editor configuration target. To get the editor configuration
475
+ also included for a particular target in the response.If not specified,
476
+ editor configuration for default target is included in the response.
477
+ type: string
478
+ required: false
479
+ enum:
480
+ - Default
481
+ - EnhancedMessaging
482
+ - LightningDesktopGenAi
483
+ - LightningDesktopDesign
484
+ - LightningMiawCopilot
485
+ - LightningMobileCopilot
486
+ - MiawCopilot
487
+ - ScEveryWhere
488
+ - SlackCopilot
489
+ expandConfigs:
490
+ description: expandConfigs
491
+ type: boolean
492
+ required: false
493
+ includeSubSchemaDefinitions:
494
+ description: When this is true, the schema definition will include all the
495
+ referenced external sub-schema definitions also under $defs keyword. The
496
+ default value is false.
497
+ type: boolean
498
+ required: false
499
+ language:
500
+ description: The language/locale code. e.g., es or en_US. To retrieve the
501
+ title and description in a particular language. If not provided, the logged-in
502
+ user’s language is used. The fallback language is ENGLISH in case translations
503
+ don't exist.
504
+ type: string
505
+ required: false
506
+ rendererConfigTarget:
507
+ description: Renderer configuration target.
508
+ type: string
509
+ required: false
510
+ enum:
511
+ - Default
512
+ - Detail
513
+ - Email
514
+ - EnhancedMessaging
515
+ - LightningDesktopGenAi
516
+ - LightningDesktopDesign
517
+ - LightningMiawCopilot
518
+ - LightningMobileCopilot
519
+ - MiawCopilot
520
+ - ScEveryWhere
521
+ - SlackCopilot
522
+ - Summary
523
+ uriParameters:
524
+ fullyQualifiedName:
525
+ description: The Fully Qualified Name of a lightning type to be retrieved.
526
+ type: string
527
+ required: true
528
+ /lightning-model:
529
+ /types:
530
+ post:
531
+ displayName: postLightningModelTypes
532
+ description: Fetch the detailed information of Lightning types.
533
+ responses:
534
+ '200':
535
+ description: Success
536
+ body:
537
+ application/json:
538
+ type: LightningModelTypesCollectionRepresentation
539
+ body:
540
+ application/json:
541
+ description: Lightning Model Types Input
542
+ type: LightningModelTypesInputRepresentation
543
+ # required: false Hand-rolled, not supported W-16968605
544
+ (oas-body-name): lightningModelTypes
545
+ /validate:
546
+ post:
547
+ displayName: validateLightningModel
548
+ description: This endpoint validates the provided JSON data against the type
549
+ specified in the descriptor. Returns validation errors if the data does
550
+ not conform
551
+ responses:
552
+ '200':
553
+ description: Success
554
+ body:
555
+ application/json:
556
+ type: LightningModelValidationResultRepresentation
557
+ body:
558
+ application/json:
559
+ type: LightningModelValidateInputRepresentation
560
+ #required: false # TODO hand rolled. W-9275477
561
+ (oas-body-name): lightningModelValidateInputRepresentation
@@ -0,0 +1,98 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'lightning-types'
8
+
9
+ types:
10
+ LightningTypeCollectionRepresentation:
11
+ (luvio.ttl): 100
12
+ LightningTypeSummaryRepresentation:
13
+ (luvio.opaque): true
14
+ (luvio.ttl): 100
15
+ LightningTypeDetailRepresentation:
16
+ (luvio.opaque): true
17
+ (luvio.ttl): 100
18
+ LightningModelTypesCollectionRepresentation:
19
+ (luvio.ttl): 3600000
20
+ (luvio.opaque): true
21
+ LightningModelTypesRepresentation:
22
+ (luvio.ttl): 3600000
23
+ (luvio.opaque): true
24
+ LightningModelValidationResultRepresentation:
25
+ (luvio.ttl): 1000
26
+ (luvio.opaque): true
27
+
28
+ /connect/lightning-types:
29
+ get:
30
+ (luvio.adapter):
31
+ name: getLightningTypes
32
+ /connect/lightning-types/{fullyQualifiedName}:
33
+ get:
34
+ (luvio.adapter):
35
+ name: getLightningType
36
+ uriParameters:
37
+ fullyQualifiedName:
38
+ /connect/lightning-model/types:
39
+ post:
40
+ (luvio.method): get
41
+ (luvio.adapter):
42
+ name: getTypes
43
+ tests:
44
+ validConfigs:
45
+ - |
46
+ {
47
+ "language":"en_US",
48
+ "typeConfigs": [
49
+ {
50
+ "descriptor": "copilotActionOutput/exp_builder__backgroundImage",
51
+ "schemaConfig": {
52
+ "subSchemaDefinitions": true
53
+ },
54
+ "editorConfig": {},
55
+ "rendererConfig": {}
56
+ }
57
+ ]
58
+ }
59
+ /connect/lightning-model/validate:
60
+ post:
61
+ (luvio.method): get
62
+ (luvio.adapter):
63
+ name: validateLightningModel
64
+ tests:
65
+ validConfigs:
66
+ - |
67
+ {
68
+ "descriptor": "metadata/propertyType",
69
+ "payload": {
70
+ "type": "string",
71
+ "maxLength": 255,
72
+ "lightning:textIndexed": true,
73
+ "lightning:supportsPersonalization": true
74
+ }
75
+ }
76
+ - |
77
+ {
78
+ "descriptor": "metadata/propertyType",
79
+ "payload": {
80
+ "body":"test body",
81
+ "excerpt":"test excerpt"
82
+ },
83
+ "filterConfig": {
84
+ "localization": true
85
+ }
86
+ }
87
+ invalidConfigs:
88
+ - |
89
+ {
90
+ "descriptor": "metadata/propertyType"
91
+ }
92
+ - |
93
+ {
94
+ "payload": {
95
+ "body":"test body",
96
+ "excerpt":"test excerpt"
97
+ }
98
+ }