@salesforce/lds-adapters-service-basesetup 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,170 @@
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
+ EnableFeatureSetInputRepresentation:
29
+ description: Enable Field Service feature set
30
+ type: object
31
+ properties:
32
+ additionalInfo:
33
+ description: Additional info storing user inputs
34
+ type: object
35
+ properties:
36
+ //:
37
+ type: object
38
+ featureApiName:
39
+ description: Feature API Name
40
+ type: string
41
+ featureSetApiName:
42
+ description: Feature Set API Name
43
+ type: string
44
+ EnableFeatureSetOutputRepresentation:
45
+ description: Output representation of enable feature set
46
+ type: object
47
+ properties:
48
+ errors:
49
+ description: Top level errors
50
+ type: array
51
+ items:
52
+ type: FeatureSetErrorRepresentation
53
+ featureSetApiName:
54
+ description: Feature set API Name
55
+ type: string
56
+ featureSetStatus:
57
+ description: Feature set status
58
+ type: string
59
+ featureStatusList:
60
+ description: List of statuses for each feature in feature set
61
+ type: array
62
+ items:
63
+ type: FeatureStatusRepresentation
64
+ FeatureRepresentation:
65
+ description: Representation of Feature Details
66
+ type: object
67
+ properties:
68
+ errors:
69
+ description: Errors
70
+ type: array
71
+ items:
72
+ type: FeatureSetErrorRepresentation
73
+ featureApiName:
74
+ description: API name that uniquely identifies a feature
75
+ type: string
76
+ featureStatus:
77
+ description: Status of a specific feature
78
+ type: string
79
+ reExecuteFeature:
80
+ description: Flag to track org status of a feature setup
81
+ type: boolean
82
+ FeatureSetErrorRepresentation:
83
+ description: Output representation of feature set error
84
+ type: object
85
+ properties:
86
+ errorCode:
87
+ description: Error code
88
+ type: string
89
+ errorMessage:
90
+ description: Error message
91
+ type: string
92
+ FeatureSetRepresentation:
93
+ description: Output representation for featureSetDetails endpoint (FeatureSet
94
+ Detail)
95
+ type: object
96
+ properties:
97
+ description:
98
+ description: Description for a specific feature set
99
+ type: string
100
+ errors:
101
+ description: Errors
102
+ type: array
103
+ items:
104
+ type: FeatureSetErrorRepresentation
105
+ featureSetApiName:
106
+ description: API name that uniquely identifies a feature set
107
+ type: string
108
+ featureSetStatus:
109
+ description: The status for a specific feature set
110
+ type: string
111
+ features:
112
+ description: The features for the specified feature set
113
+ type: array
114
+ items:
115
+ type: FeatureRepresentation
116
+ FeatureStatusRepresentation:
117
+ description: Output representation of feature status
118
+ type: object
119
+ properties:
120
+ errors:
121
+ description: Errors
122
+ type: array
123
+ items:
124
+ type: FeatureSetErrorRepresentation
125
+ featureApiName:
126
+ description: Feature API Name
127
+ type: string
128
+ featureStatus:
129
+ description: Feature status
130
+ type: string
131
+ /connect/base-setup:
132
+ /enableFeatureSet:
133
+ post:
134
+ displayName: postEnableFeatureSet
135
+ description: Enable Field Service feature set
136
+ responses:
137
+ '200':
138
+ description: Success
139
+ body:
140
+ application/json:
141
+ type: EnableFeatureSetOutputRepresentation
142
+ body:
143
+ application/json:
144
+ type: EnableFeatureSetInputRepresentation
145
+ # required: false # TODO Hand-rolled
146
+ (oas-body-name): EnableFeatureSetInputRepresentation
147
+ /featureSetDetail:
148
+ get:
149
+ displayName: getFeatureSetDetail
150
+ description: Get the details of the Feature Set
151
+ responses:
152
+ '200':
153
+ description: Success
154
+ body:
155
+ application/json:
156
+ type: FeatureSetRepresentation
157
+ queryParameters:
158
+ featureApiNames:
159
+ description: |-
160
+ The names of the specific features in the feature set to retrieve the detail of.
161
+ If absent, all features of the feature set are returned.
162
+ type: array
163
+ required: false
164
+ items:
165
+ type: string
166
+ (oas-collectionFormat): csv
167
+ featureSetApiName:
168
+ description: The name of the feature set to retrieve the detail of
169
+ type: string
170
+ required: true # TODO Hand-rolled W-16177531
@@ -0,0 +1,28 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'basesetup'
8
+ (luvio.ttl): 100
9
+
10
+ types:
11
+ FeatureSetRepresentation:
12
+ (luvio.key):
13
+ featureSetApiName: featureSetApiName
14
+ EnableFeatureSetOutputRepresentation:
15
+ (luvio.key):
16
+ featureSetApiName: featureSetApiName
17
+
18
+ /connect/base-setup:
19
+ /featureSetDetail:
20
+ get:
21
+ (luvio.adapter):
22
+ name: getFeatureSetDetail
23
+ (luvio.key):
24
+ featureSetApiName: queryParams.featureSetApiName
25
+ /enableFeatureSet:
26
+ post:
27
+ (luvio.adapter):
28
+ name: enableFeatureSet