@salesforce/lds-adapters-service-basesetup 1.308.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.
Files changed (23) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/service-basesetup.js +1238 -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/enableFeatureSet.d.ts +19 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getFeatureSetDetail.d.ts +29 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
  8. package/dist/es/es2018/types/src/generated/resources/getConnectBaseSetupFeatureSetDetail.d.ts +17 -0
  9. package/dist/es/es2018/types/src/generated/resources/postConnectBaseSetupEnableFeatureSet.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/types/EnableFeatureSetInputRepresentation.d.ts +38 -0
  11. package/dist/es/es2018/types/src/generated/types/EnableFeatureSetOutputRepresentation.d.ts +48 -0
  12. package/dist/es/es2018/types/src/generated/types/FeatureActionDetailRepresentation.d.ts +34 -0
  13. package/dist/es/es2018/types/src/generated/types/FeatureActionRepresentation.d.ts +32 -0
  14. package/dist/es/es2018/types/src/generated/types/FeatureRepresentation.d.ts +45 -0
  15. package/dist/es/es2018/types/src/generated/types/FeatureSetErrorRepresentation.d.ts +31 -0
  16. package/dist/es/es2018/types/src/generated/types/FeatureSetRepresentation.d.ts +63 -0
  17. package/dist/es/es2018/types/src/generated/types/FeatureStatusRepresentation.d.ts +35 -0
  18. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  19. package/package.json +67 -0
  20. package/sfdc/index.d.ts +1 -0
  21. package/sfdc/index.js +1317 -0
  22. package/src/raml/api.raml +211 -0
  23. package/src/raml/luvio.raml +28 -0
@@ -0,0 +1,211 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '62.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v62.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
+ FeatureActionDetailRepresentation:
65
+ description: Feature Action Detail representation
66
+ type: object
67
+ properties:
68
+ iconName:
69
+ description: Feature Action Detail Icon Name
70
+ type: string
71
+ label:
72
+ description: Feature Action Detail Label
73
+ type: string
74
+ title:
75
+ description: Feature Action Detail Title
76
+ type: string
77
+ FeatureActionRepresentation:
78
+ description: Representation of feature action
79
+ type: object
80
+ properties:
81
+ actionDetail:
82
+ description: Action detail
83
+ type: FeatureActionDetailRepresentation
84
+ actionType:
85
+ description: Feature Action type
86
+ type: string
87
+ FeatureRepresentation:
88
+ description: Representation of Feature Details
89
+ type: object
90
+ properties:
91
+ errors:
92
+ description: Errors
93
+ type: array
94
+ items:
95
+ type: FeatureSetErrorRepresentation
96
+ featureAction:
97
+ description: Feature Action for specific feature
98
+ type: FeatureActionRepresentation | nil
99
+ featureApiName:
100
+ description: API name that uniquely identifies a feature
101
+ type: string
102
+ featureStatus:
103
+ description: Status of a specific feature
104
+ type: string
105
+ resourceUrl:
106
+ description: URL to public documentation
107
+ type: string | nil
108
+ title:
109
+ description: Title for a specific feature
110
+ type: string | nil
111
+ FeatureSetErrorRepresentation:
112
+ description: Output representation of feature set error
113
+ type: object
114
+ properties:
115
+ errorCode:
116
+ description: Error code
117
+ type: string
118
+ errorMessage:
119
+ description: Error message
120
+ type: string
121
+ FeatureSetRepresentation:
122
+ description: Output representation for featureSetDetails endpoint (FeatureSet
123
+ Detail)
124
+ type: object
125
+ properties:
126
+ description:
127
+ description: Description for a specific feature set
128
+ type: string
129
+ errors:
130
+ description: Errors
131
+ type: array
132
+ items:
133
+ type: FeatureSetErrorRepresentation
134
+ featureCategory:
135
+ description: Category for a specific feature set
136
+ type: string | nil
137
+ featureSetApiName:
138
+ description: API name that uniquely identifies a feature set
139
+ type: string
140
+ featureSetStatus:
141
+ description: The status for a specific feature set
142
+ type: string
143
+ features:
144
+ description: The features for the specified feature set
145
+ type: array
146
+ items:
147
+ type: FeatureRepresentation
148
+ order:
149
+ description: The order for a specific feature set
150
+ type: integer | nil
151
+ previewImageUrl:
152
+ description: Preview Image URL
153
+ type: string | nil
154
+ title:
155
+ description: Title for a specific feature set
156
+ type: string | nil
157
+ FeatureStatusRepresentation:
158
+ description: Output representation of feature status
159
+ type: object
160
+ properties:
161
+ errors:
162
+ description: Errors
163
+ type: array
164
+ items:
165
+ type: FeatureSetErrorRepresentation
166
+ featureApiName:
167
+ description: Feature API Name
168
+ type: string
169
+ featureStatus:
170
+ description: Feature status
171
+ type: string
172
+ /connect/base-setup:
173
+ /enableFeatureSet:
174
+ post:
175
+ displayName: postEnableFeatureSet
176
+ description: Enable Field Service feature set
177
+ responses:
178
+ '200':
179
+ description: Success
180
+ body:
181
+ application/json:
182
+ type: EnableFeatureSetOutputRepresentation
183
+ body:
184
+ application/json:
185
+ type: EnableFeatureSetInputRepresentation
186
+ # required: false # TODO Hand-rolled
187
+ (oas-body-name): EnableFeatureSetInputRepresentation
188
+ /featureSetDetail:
189
+ get:
190
+ displayName: getFeatureSetDetail
191
+ description: Get the details of the Feature Set
192
+ responses:
193
+ '200':
194
+ description: Success
195
+ body:
196
+ application/json:
197
+ type: FeatureSetRepresentation
198
+ queryParameters:
199
+ featureApiNames:
200
+ description: |-
201
+ The names of the specific features in the feature set to retrieve the detail of.
202
+ If absent, all features of the feature set are returned.
203
+ type: array
204
+ required: false
205
+ items:
206
+ type: string
207
+ (oas-collectionFormat): csv
208
+ featureSetApiName:
209
+ description: The name of the feature set to retrieve the detail of
210
+ type: string
211
+ 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