@salesforce/lds-adapters-service-data-category 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.
@@ -0,0 +1,83 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '59.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
+ DataCategoryGroupCollectionRepresentation:
29
+ description: Data Category Group Collection Representation
30
+ type: object
31
+ properties:
32
+ dataCategoryGroups:
33
+ description: Collection of Data Category Groups
34
+ type: array
35
+ items:
36
+ type: DataCategoryGroupRepresentation
37
+ DataCategoryGroupRepresentation:
38
+ description: Data Category Group Representation
39
+ type: object
40
+ properties:
41
+ categoryGroupName:
42
+ description: Developer Name of the Data Category Group
43
+ type: string
44
+ description:
45
+ description: Description of the Data Category Group
46
+ type: string | nil
47
+ required: false
48
+ label:
49
+ description: Label of the Data Category Group
50
+ type: string | nil
51
+ required: false
52
+ rootCategory:
53
+ description: Root Category of the Data Category Group
54
+ type: DataCategoryRepresentation | nil
55
+ required: false
56
+ DataCategoryRepresentation:
57
+ description: Data Category Representation
58
+ type: object
59
+ properties:
60
+ categoryName:
61
+ description: Developer Name of the Data Category
62
+ type: string | nil
63
+ required: false
64
+ childCategories:
65
+ description: List of child data categories
66
+ type: array
67
+ items:
68
+ type: any # This is a workaround because recursive (tree) representations aren't supported in Luvio, even though they're supported in Connect API
69
+ label:
70
+ description: Label of the Data Category
71
+ type: string | nil
72
+ required: false
73
+ /connect:
74
+ /data-category/category-group:
75
+ get:
76
+ displayName: getCategoryGroups
77
+ description: Returns all active data category groups and their child categories
78
+ responses:
79
+ '200':
80
+ description: Success
81
+ body:
82
+ application/json:
83
+ type: DataCategoryGroupCollectionRepresentation
@@ -0,0 +1,14 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'DataCategory'
8
+ (luvio.ttl): 900000
9
+
10
+ /connect:
11
+ /data-category/category-group:
12
+ get:
13
+ (luvio.adapter):
14
+ name: getCategoryGroups