@salesforce/lds-adapters-service-network-data-category 1.224.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/service-network-data-category.js +1474 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getArticlesForCategory.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/adapters/getNetworkDataCategories.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getServiceCatalogItems.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/adapters/getServiceCatalogItemsForCommunity.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/adapters/updateNetworkDataCategories.d.ts +17 -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 +11 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectCommunitiesDataCategoryNetworkDataCategoryByCommunityId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectCommunitiesNetworkDataCategoryCatalogItemByNetworkDataCategoryIdAndCommunityId.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectCommunitiesNetworkDataCategoryKnowledgeArticleByNetworkDataCategoryIdAndCommunityId.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectNetworkDataCategoryCatalogItemByNetworkDataCategoryId.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/resources/putConnectCommunitiesDataCategoryNetworkDataCategoryByCommunityId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/DataCategoryGroupCollectionInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DataCategoryGroupCollectionInputWrapperRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/EmptyRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/LightningKnowledgeArticleVersionCollectionRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/LightningKnowledgeArticleVersionRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/NetworkDataCategoryGroupRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/NetworkDataCategoryRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/NetworkDataCategoryTreeRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/ServiceCatalogItemCollectionRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/ServiceCatalogItemRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/dist/es/es2018/types/src/raml-artifacts/adapters/updateNetworkDataCategories/buildNetworkSnapshot.d.ts +3 -0
- package/dist/es/es2018/types/src/raml-artifacts/resources/putConnectCommunitiesDataCategoryNetworkDataCategoryByCommunityId/ingestSuccess.d.ts +4 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/EmptyRepresentation/select.d.ts +2 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/EmptyRepresentation/validate.d.ts +1 -0
- package/package.json +68 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1576 -0
- package/src/raml/api.raml +272 -0
- package/src/raml/luvio.raml +45 -0
|
@@ -0,0 +1,272 @@
|
|
|
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/v59.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
|
+
EmptyRepresentation:
|
|
29
|
+
description: Represents empty response
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
fakeKey: string # TODO: Handrolled because luvio doesn't support mutation operations that don't return a key
|
|
33
|
+
NetworkDataCategoryGroupRepresentation:
|
|
34
|
+
description: Describes a network data category group
|
|
35
|
+
type: object
|
|
36
|
+
properties:
|
|
37
|
+
categoryGroupName:
|
|
38
|
+
description: Network Data Category Group Name
|
|
39
|
+
type: string
|
|
40
|
+
rootCategory:
|
|
41
|
+
description: Root Category Representation
|
|
42
|
+
type: NetworkDataCategoryRepresentation
|
|
43
|
+
NetworkDataCategoryRepresentation:
|
|
44
|
+
description: Describes a network data category
|
|
45
|
+
type: object
|
|
46
|
+
properties:
|
|
47
|
+
categoryName:
|
|
48
|
+
description: Network Data Category Name
|
|
49
|
+
type: string
|
|
50
|
+
childCategories:
|
|
51
|
+
description: Children of Network Data Category
|
|
52
|
+
type: array
|
|
53
|
+
items:
|
|
54
|
+
type: any # This is a workaround because recursive (tree) representations aren't supported in Luvio, even though they're supported in Connect API
|
|
55
|
+
description:
|
|
56
|
+
description: Network Data Category Description
|
|
57
|
+
type: string
|
|
58
|
+
id:
|
|
59
|
+
description: Network Data Category id
|
|
60
|
+
type: string
|
|
61
|
+
imageUrl:
|
|
62
|
+
description: Image Url of Network Data Category
|
|
63
|
+
type: string
|
|
64
|
+
label:
|
|
65
|
+
description: Network Data Category Label
|
|
66
|
+
type: string
|
|
67
|
+
NetworkDataCategoryTreeRepresentation:
|
|
68
|
+
description: Represents a network data category tree
|
|
69
|
+
type: object
|
|
70
|
+
properties:
|
|
71
|
+
communityId: string
|
|
72
|
+
dataCategoryGroups:
|
|
73
|
+
description: List of category groups
|
|
74
|
+
type: array
|
|
75
|
+
items:
|
|
76
|
+
type: NetworkDataCategoryGroupRepresentation
|
|
77
|
+
DataCategoryGroupCollectionInputRepresentation:
|
|
78
|
+
description: Represents a data category
|
|
79
|
+
type: object
|
|
80
|
+
properties:
|
|
81
|
+
dataCategoryGroups:
|
|
82
|
+
description: Collection of Data Category Groups
|
|
83
|
+
type: array
|
|
84
|
+
items:
|
|
85
|
+
type: any
|
|
86
|
+
DataCategoryGroupCollectionInputWrapperRepresentation: # TODO Hand-rolled W-8334626
|
|
87
|
+
description: Wrapper for replicated dataset input representation
|
|
88
|
+
type: object
|
|
89
|
+
properties:
|
|
90
|
+
networkDataCategoryTree:
|
|
91
|
+
type: DataCategoryGroupCollectionInputRepresentation
|
|
92
|
+
description: Replicated dataset input representation
|
|
93
|
+
LightningKnowledgeArticleVersionCollectionRepresentation:
|
|
94
|
+
description: Represents a list of Knowledge Articles in Lightning.
|
|
95
|
+
type: object
|
|
96
|
+
properties:
|
|
97
|
+
items:
|
|
98
|
+
description: A collection of knowledge articles.
|
|
99
|
+
type: array
|
|
100
|
+
items:
|
|
101
|
+
type: LightningKnowledgeArticleVersionRepresentation
|
|
102
|
+
LightningKnowledgeArticleVersionRepresentation:
|
|
103
|
+
description: Describing a Knowledge article in lightning.
|
|
104
|
+
type: object
|
|
105
|
+
properties:
|
|
106
|
+
id:
|
|
107
|
+
description: KnowledgeArticleVersion Id
|
|
108
|
+
type: string
|
|
109
|
+
knowledgeArticleId:
|
|
110
|
+
description: ID of the corresponding knowledge article.
|
|
111
|
+
type: string
|
|
112
|
+
lastPublishedDate:
|
|
113
|
+
description: Last published date of the article.
|
|
114
|
+
type: string
|
|
115
|
+
summary:
|
|
116
|
+
description: Summary of the articles contents.
|
|
117
|
+
type: string
|
|
118
|
+
title:
|
|
119
|
+
description: Title of the Article
|
|
120
|
+
type: string
|
|
121
|
+
urlName:
|
|
122
|
+
description: URL_NAME of the Article
|
|
123
|
+
type: string
|
|
124
|
+
ServiceCatalogItemCollectionRepresentation:
|
|
125
|
+
description: Represents a list of ServiceCatalogItemRepresentations
|
|
126
|
+
type: object
|
|
127
|
+
properties:
|
|
128
|
+
items:
|
|
129
|
+
description: A collection of service catalog items.
|
|
130
|
+
type: array
|
|
131
|
+
items:
|
|
132
|
+
type: ServiceCatalogItemRepresentation
|
|
133
|
+
ServiceCatalogItemRepresentation:
|
|
134
|
+
description: Describes a service catalog item
|
|
135
|
+
type: object
|
|
136
|
+
properties:
|
|
137
|
+
description:
|
|
138
|
+
description: Short Description of Service Catalog Item
|
|
139
|
+
type: string
|
|
140
|
+
developerName:
|
|
141
|
+
description: Dev name of Service Catalog Item
|
|
142
|
+
type: string
|
|
143
|
+
id:
|
|
144
|
+
description: Service Catalog Item Id
|
|
145
|
+
type: string
|
|
146
|
+
imageUrl:
|
|
147
|
+
description: Image url of Service Catalog Item
|
|
148
|
+
type: string
|
|
149
|
+
label:
|
|
150
|
+
description: Label of Service Catalog Item
|
|
151
|
+
type: string
|
|
152
|
+
/connect:
|
|
153
|
+
/network-data-category/{networkDataCategoryId}/catalog-item:
|
|
154
|
+
get:
|
|
155
|
+
displayName: getServiceCatalogItemsForCommumity
|
|
156
|
+
description: Get all catalog items belonging to the network data category
|
|
157
|
+
responses:
|
|
158
|
+
'200':
|
|
159
|
+
description: Success
|
|
160
|
+
body:
|
|
161
|
+
application/json:
|
|
162
|
+
type: ServiceCatalogItemCollectionRepresentation
|
|
163
|
+
queryParameters:
|
|
164
|
+
pageSize:
|
|
165
|
+
type: integer
|
|
166
|
+
required: false
|
|
167
|
+
pageNumber:
|
|
168
|
+
type: integer
|
|
169
|
+
required: false
|
|
170
|
+
sortOrder:
|
|
171
|
+
type: string
|
|
172
|
+
required: false
|
|
173
|
+
sortedBy:
|
|
174
|
+
type: string
|
|
175
|
+
required: false
|
|
176
|
+
uriParameters:
|
|
177
|
+
networkDataCategoryId:
|
|
178
|
+
type: string
|
|
179
|
+
required: true
|
|
180
|
+
/communities/{communityId}:
|
|
181
|
+
/network-data-category/{networkDataCategoryId}:
|
|
182
|
+
/catalog-item:
|
|
183
|
+
get:
|
|
184
|
+
displayName: getServiceCatalogItems
|
|
185
|
+
description: Get all catalog items belonging to the network data category
|
|
186
|
+
responses:
|
|
187
|
+
'200':
|
|
188
|
+
description: Success
|
|
189
|
+
body:
|
|
190
|
+
application/json:
|
|
191
|
+
type: ServiceCatalogItemCollectionRepresentation
|
|
192
|
+
queryParameters:
|
|
193
|
+
pageSize:
|
|
194
|
+
type: integer
|
|
195
|
+
required: false
|
|
196
|
+
pageNumber:
|
|
197
|
+
type: integer
|
|
198
|
+
required: false
|
|
199
|
+
sortOrder:
|
|
200
|
+
type: string
|
|
201
|
+
required: false
|
|
202
|
+
sortedBy:
|
|
203
|
+
type: string
|
|
204
|
+
required: false
|
|
205
|
+
uriParameters:
|
|
206
|
+
networkDataCategoryId:
|
|
207
|
+
type: string
|
|
208
|
+
required: true
|
|
209
|
+
communityId:
|
|
210
|
+
type: string
|
|
211
|
+
required: true
|
|
212
|
+
/knowledge-article:
|
|
213
|
+
get:
|
|
214
|
+
displayName: getKnowledgeArticles
|
|
215
|
+
description: Get all articles belonging to the category
|
|
216
|
+
responses:
|
|
217
|
+
'200':
|
|
218
|
+
description: Success
|
|
219
|
+
body:
|
|
220
|
+
application/json:
|
|
221
|
+
type: LightningKnowledgeArticleVersionCollectionRepresentation
|
|
222
|
+
queryParameters:
|
|
223
|
+
language:
|
|
224
|
+
type: string
|
|
225
|
+
required: false
|
|
226
|
+
pageNumber:
|
|
227
|
+
type: integer
|
|
228
|
+
required: false
|
|
229
|
+
pageSize:
|
|
230
|
+
type: integer
|
|
231
|
+
required: false
|
|
232
|
+
sortOrder:
|
|
233
|
+
type: string
|
|
234
|
+
required: false
|
|
235
|
+
sortedBy:
|
|
236
|
+
type: string
|
|
237
|
+
required: false
|
|
238
|
+
uriParameters:
|
|
239
|
+
networkDataCategoryId:
|
|
240
|
+
type: string
|
|
241
|
+
required: true
|
|
242
|
+
communityId:
|
|
243
|
+
type: string
|
|
244
|
+
required: true
|
|
245
|
+
/data-category/network-data-category:
|
|
246
|
+
get:
|
|
247
|
+
displayName: getNetworkDataCategories
|
|
248
|
+
description: Get all network data category trees in a given community
|
|
249
|
+
responses:
|
|
250
|
+
'200':
|
|
251
|
+
description: Success
|
|
252
|
+
body:
|
|
253
|
+
application/json:
|
|
254
|
+
type: NetworkDataCategoryTreeRepresentation
|
|
255
|
+
put:
|
|
256
|
+
displayName: updateNetworkDataCategories
|
|
257
|
+
description: Save or Update selected data category and its parent categories
|
|
258
|
+
for the given community ID
|
|
259
|
+
responses:
|
|
260
|
+
'200':
|
|
261
|
+
description: Success
|
|
262
|
+
body:
|
|
263
|
+
application/json:
|
|
264
|
+
type: EmptyRepresentation
|
|
265
|
+
body:
|
|
266
|
+
application/json:
|
|
267
|
+
type: DataCategoryGroupCollectionInputWrapperRepresentation #TODO Hand-rolled W-8334626. Original type: DataCategoryGroupCollectionInputRepresentation
|
|
268
|
+
(oas-body-name): networkDataCategoryTree
|
|
269
|
+
uriParameters:
|
|
270
|
+
communityId:
|
|
271
|
+
type: string
|
|
272
|
+
required: true
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'NetworkDataCategory'
|
|
8
|
+
(luvio.ttl): 900000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
EmptyRepresentation:
|
|
12
|
+
(luvio.key):
|
|
13
|
+
fakeKey: fakeKey
|
|
14
|
+
NetworkDataCategoryTreeRepresentation:
|
|
15
|
+
(luvio.key):
|
|
16
|
+
communityId: communityId
|
|
17
|
+
(luvio.updateAvailable):
|
|
18
|
+
name: notifyNetworkDataCategoryTreeRepresentationUpdateAvailable
|
|
19
|
+
parameters:
|
|
20
|
+
communityId: communityId
|
|
21
|
+
|
|
22
|
+
/connect:
|
|
23
|
+
/network-data-category/{networkDataCategoryId}/catalog-item:
|
|
24
|
+
get:
|
|
25
|
+
(luvio.adapter):
|
|
26
|
+
name: getServiceCatalogItems
|
|
27
|
+
/communities/{communityId}:
|
|
28
|
+
/network-data-category/{networkDataCategoryId}:
|
|
29
|
+
/catalog-item:
|
|
30
|
+
get:
|
|
31
|
+
(luvio.adapter):
|
|
32
|
+
name: getServiceCatalogItemsForCommunity
|
|
33
|
+
/knowledge-article:
|
|
34
|
+
get:
|
|
35
|
+
(luvio.adapter):
|
|
36
|
+
name: getArticlesForCategory
|
|
37
|
+
/data-category/network-data-category:
|
|
38
|
+
get:
|
|
39
|
+
(luvio.adapter):
|
|
40
|
+
name: getNetworkDataCategories
|
|
41
|
+
(luvio.key):
|
|
42
|
+
communityId: urlParams.communityId
|
|
43
|
+
put:
|
|
44
|
+
(luvio.adapter):
|
|
45
|
+
name: updateNetworkDataCategories
|