@salesforce/lds-adapters-platform-content-taxonomy 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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/platform-content-taxonomy.js +1261 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createTerm.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/deleteTerm.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/getTerm.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getTerms.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/adapters/searchTerms.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/adapters/updateTerm.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +11 -0
- package/dist/es/es2018/types/src/generated/resources/deleteConnectContentTaxonomyTermsByTaxonomyIdAndTermId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectContentTaxonomyTerms.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectContentTaxonomyTermsByTaxonomyIdAndTermId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectContentTaxonomyTermsSearch.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectContentTaxonomyTermsByTaxonomyIdAndTermId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectContentTaxonomyTermsByTaxonomyId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/ContentTaxonomyPathFragmentRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/ContentTaxonomyPathRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/ContentTaxonomyTermCollectionRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/ContentTaxonomyTermInputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/ContentTaxonomyTermRepresentation.d.ts +70 -0
- package/dist/es/es2018/types/src/generated/types/ContentTaxonomyUserSummary.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1367 -0
- package/src/raml/api.raml +267 -0
- package/src/raml/luvio.raml +57 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '60.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
|
+
ContentTaxonomyPathFragmentRepresentation:
|
|
29
|
+
description: A fragment of a path in a content taxonomy, representing information
|
|
30
|
+
about a term or the taxonomy.
|
|
31
|
+
type: object
|
|
32
|
+
properties:
|
|
33
|
+
id:
|
|
34
|
+
description: The ID of the term or the taxonomy.
|
|
35
|
+
type: string
|
|
36
|
+
label:
|
|
37
|
+
description: The label of the term or the taxonomy.
|
|
38
|
+
type: string
|
|
39
|
+
ContentTaxonomyPathRepresentation:
|
|
40
|
+
description: A path to a term in a content taxonomy.
|
|
41
|
+
type: object
|
|
42
|
+
properties:
|
|
43
|
+
label:
|
|
44
|
+
description: A text representation of the path from the root, joined with
|
|
45
|
+
a delimiter.
|
|
46
|
+
type: string
|
|
47
|
+
taxonomyFragment:
|
|
48
|
+
description: A path fragment representing the taxonomy.
|
|
49
|
+
type: ContentTaxonomyPathFragmentRepresentation
|
|
50
|
+
termFragments:
|
|
51
|
+
description: Path fragments representing the terms from root term to this
|
|
52
|
+
term, inclusive.
|
|
53
|
+
type: array
|
|
54
|
+
items:
|
|
55
|
+
type: ContentTaxonomyPathFragmentRepresentation
|
|
56
|
+
ContentTaxonomyTermCollectionRepresentation:
|
|
57
|
+
description: A collection of content taxonomy terms.
|
|
58
|
+
type: object
|
|
59
|
+
properties:
|
|
60
|
+
currentPageUrl:
|
|
61
|
+
description: The URL for the current page of taxonomy terms.
|
|
62
|
+
type: string
|
|
63
|
+
nextPageUrl:
|
|
64
|
+
description: The URL for the next page of taxonomy terms.
|
|
65
|
+
type: string
|
|
66
|
+
terms:
|
|
67
|
+
description: The list of taxonomy terms in this page.
|
|
68
|
+
type: array
|
|
69
|
+
items:
|
|
70
|
+
type: ContentTaxonomyTermRepresentation
|
|
71
|
+
ContentTaxonomyTermInputRepresentation:
|
|
72
|
+
description: Input for creating or updating a content taxonomy term.
|
|
73
|
+
type: object
|
|
74
|
+
properties:
|
|
75
|
+
description:
|
|
76
|
+
description: The description of the term, which may be left empty. When updating
|
|
77
|
+
a term, set to null to clear the description.
|
|
78
|
+
type: string | nil
|
|
79
|
+
required: false
|
|
80
|
+
label:
|
|
81
|
+
description: The label of the term to create or, when updating, a new label for
|
|
82
|
+
an existing term.
|
|
83
|
+
type: string
|
|
84
|
+
parentTermId:
|
|
85
|
+
description: When creating a term, the parent term ID of the term to create;
|
|
86
|
+
set to null or leave empty to create a root term. When updating a term, the new
|
|
87
|
+
parent term ID for the existing term; set to null to make a child term into a root term.
|
|
88
|
+
type: string | nil
|
|
89
|
+
required: false
|
|
90
|
+
ContentTaxonomyTermRepresentation:
|
|
91
|
+
description: A content taxonomy term.
|
|
92
|
+
type: object
|
|
93
|
+
properties:
|
|
94
|
+
childTerms:
|
|
95
|
+
description: The child terms of this term.
|
|
96
|
+
type: array
|
|
97
|
+
items:
|
|
98
|
+
type: ContentTaxonomyTermRepresentation
|
|
99
|
+
createdBy:
|
|
100
|
+
description: The user that created the term.
|
|
101
|
+
type: ContentTaxonomyUserSummary | nil
|
|
102
|
+
createdDate:
|
|
103
|
+
description: The date the term was created.
|
|
104
|
+
type: string | nil
|
|
105
|
+
description:
|
|
106
|
+
description: The description of the term.
|
|
107
|
+
type: string | nil
|
|
108
|
+
id:
|
|
109
|
+
description: The ID of the term.
|
|
110
|
+
type: string
|
|
111
|
+
isLeafTerm:
|
|
112
|
+
description: True if term has no children.
|
|
113
|
+
type: boolean | nil
|
|
114
|
+
label:
|
|
115
|
+
description: The label of the term.
|
|
116
|
+
type: string
|
|
117
|
+
lastModifiedBy:
|
|
118
|
+
description: The user that last modified the term.
|
|
119
|
+
type: ContentTaxonomyUserSummary | nil
|
|
120
|
+
lastModifiedDate:
|
|
121
|
+
description: The date the term was last modified.
|
|
122
|
+
type: string | nil
|
|
123
|
+
parentTerms:
|
|
124
|
+
description: The parent term(s) of this term.
|
|
125
|
+
type: array
|
|
126
|
+
items:
|
|
127
|
+
type: ContentTaxonomyTermRepresentation
|
|
128
|
+
pathsFromRoot:
|
|
129
|
+
description: The path(s) from a root term to this term.
|
|
130
|
+
type: array
|
|
131
|
+
items:
|
|
132
|
+
type: ContentTaxonomyPathRepresentation
|
|
133
|
+
ContentTaxonomyUserSummary:
|
|
134
|
+
description: Information about a user related to a content taxonomy or its terms.
|
|
135
|
+
type: object
|
|
136
|
+
properties:
|
|
137
|
+
id:
|
|
138
|
+
description: The ID of the user.
|
|
139
|
+
type: string
|
|
140
|
+
name:
|
|
141
|
+
description: The name of the user.
|
|
142
|
+
type: string
|
|
143
|
+
url:
|
|
144
|
+
description: The Connect API resource URL for the user.
|
|
145
|
+
type: string | nil
|
|
146
|
+
/connect/content-taxonomy:
|
|
147
|
+
/terms:
|
|
148
|
+
get:
|
|
149
|
+
displayName: getContentTaxonomyTermCollection
|
|
150
|
+
description: Get multiple taxonomy terms.
|
|
151
|
+
responses:
|
|
152
|
+
'200':
|
|
153
|
+
description: Success
|
|
154
|
+
body:
|
|
155
|
+
application/json:
|
|
156
|
+
type: ContentTaxonomyTermCollectionRepresentation
|
|
157
|
+
queryParameters:
|
|
158
|
+
depth:
|
|
159
|
+
type: integer
|
|
160
|
+
required: false
|
|
161
|
+
includeMetadata:
|
|
162
|
+
type: boolean
|
|
163
|
+
required: false
|
|
164
|
+
includePaths:
|
|
165
|
+
type: boolean
|
|
166
|
+
required: false
|
|
167
|
+
initialTerms:
|
|
168
|
+
type: array
|
|
169
|
+
required: false
|
|
170
|
+
items:
|
|
171
|
+
type: string
|
|
172
|
+
(oas-collectionFormat): csv
|
|
173
|
+
taxonomyId:
|
|
174
|
+
type: string
|
|
175
|
+
required: true # Hand-rolled, connect framework does not support declaring query params as required.
|
|
176
|
+
/terms/search:
|
|
177
|
+
get:
|
|
178
|
+
displayName: getContentTaxonomyTermSearch
|
|
179
|
+
description: Search for matching taxonomy terms.
|
|
180
|
+
responses:
|
|
181
|
+
'200':
|
|
182
|
+
description: Success
|
|
183
|
+
body:
|
|
184
|
+
application/json:
|
|
185
|
+
type: ContentTaxonomyTermCollectionRepresentation
|
|
186
|
+
queryParameters:
|
|
187
|
+
includeMetadata:
|
|
188
|
+
type: boolean
|
|
189
|
+
required: false
|
|
190
|
+
page:
|
|
191
|
+
type: integer
|
|
192
|
+
required: false
|
|
193
|
+
pageSize:
|
|
194
|
+
type: integer
|
|
195
|
+
required: false
|
|
196
|
+
queryText:
|
|
197
|
+
type: string
|
|
198
|
+
required: false
|
|
199
|
+
taxonomyIds:
|
|
200
|
+
type: array
|
|
201
|
+
required: false
|
|
202
|
+
items:
|
|
203
|
+
type: string
|
|
204
|
+
(oas-collectionFormat): csv
|
|
205
|
+
/{taxonomyId}/terms:
|
|
206
|
+
post:
|
|
207
|
+
displayName: postSingleContentTaxonomyTermCollection
|
|
208
|
+
description: Create a taxonomy term.
|
|
209
|
+
responses:
|
|
210
|
+
'200':
|
|
211
|
+
description: Success
|
|
212
|
+
body:
|
|
213
|
+
application/json:
|
|
214
|
+
type: ContentTaxonomyTermRepresentation
|
|
215
|
+
body:
|
|
216
|
+
application/json:
|
|
217
|
+
type: ContentTaxonomyTermInputRepresentation
|
|
218
|
+
# required: false - TODO - not supported on patch
|
|
219
|
+
(oas-body-name): term
|
|
220
|
+
uriParameters:
|
|
221
|
+
taxonomyId:
|
|
222
|
+
type: string
|
|
223
|
+
required: true
|
|
224
|
+
/{taxonomyId}/terms/{termId}:
|
|
225
|
+
delete:
|
|
226
|
+
displayName: deleteContentTaxonomyTerm
|
|
227
|
+
description: Delete a taxonomy term.
|
|
228
|
+
responses:
|
|
229
|
+
'200':
|
|
230
|
+
description: Success
|
|
231
|
+
queryParameters:
|
|
232
|
+
deleteChildren:
|
|
233
|
+
type: boolean
|
|
234
|
+
required: false
|
|
235
|
+
newParentTerm:
|
|
236
|
+
type: string
|
|
237
|
+
required: false
|
|
238
|
+
get:
|
|
239
|
+
displayName: getContentTaxonomyTerm
|
|
240
|
+
description: Get a taxonomy term.
|
|
241
|
+
responses:
|
|
242
|
+
'200':
|
|
243
|
+
description: Success
|
|
244
|
+
body:
|
|
245
|
+
application/json:
|
|
246
|
+
type: ContentTaxonomyTermRepresentation
|
|
247
|
+
patch:
|
|
248
|
+
displayName: patchContentTaxonomyTerm
|
|
249
|
+
description: Update a taxonomy term.
|
|
250
|
+
responses:
|
|
251
|
+
'200':
|
|
252
|
+
description: Success
|
|
253
|
+
body:
|
|
254
|
+
application/json:
|
|
255
|
+
type: ContentTaxonomyTermRepresentation
|
|
256
|
+
body:
|
|
257
|
+
application/json:
|
|
258
|
+
type: ContentTaxonomyTermInputRepresentation
|
|
259
|
+
# required: false - TODO - not supported on patch
|
|
260
|
+
(oas-body-name): term
|
|
261
|
+
uriParameters:
|
|
262
|
+
taxonomyId:
|
|
263
|
+
type: string
|
|
264
|
+
required: true
|
|
265
|
+
termId:
|
|
266
|
+
type: string
|
|
267
|
+
required: true
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'content-taxonomy'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
ContentTaxonomyTermCollectionRepresentation:
|
|
11
|
+
(luvio.ttl): 100
|
|
12
|
+
(luvio.opaque): true
|
|
13
|
+
ContentTaxonomyTermRepresentation:
|
|
14
|
+
(luvio.ttl): 100
|
|
15
|
+
(luvio.opaque): true
|
|
16
|
+
(luvio.key):
|
|
17
|
+
id: id
|
|
18
|
+
ContentTaxonomyUserSummary:
|
|
19
|
+
(luvio.ttl): 10000
|
|
20
|
+
(luvio.key):
|
|
21
|
+
id: id
|
|
22
|
+
ContentTaxonomyPathRepresentation:
|
|
23
|
+
(luvio.ttl): 100
|
|
24
|
+
(luvio.opaque): true
|
|
25
|
+
ContentTaxonomyPathFragmentRepresentation:
|
|
26
|
+
(luvio.ttl): 100
|
|
27
|
+
(luvio.key):
|
|
28
|
+
id: id
|
|
29
|
+
ContentTaxonomyTermInputRepresentation:
|
|
30
|
+
(luvio.ttl): 100
|
|
31
|
+
/connect/content-taxonomy:
|
|
32
|
+
/terms:
|
|
33
|
+
get:
|
|
34
|
+
(luvio.adapter):
|
|
35
|
+
name: getTerms
|
|
36
|
+
/terms/search:
|
|
37
|
+
get:
|
|
38
|
+
(luvio.adapter):
|
|
39
|
+
name: searchTerms
|
|
40
|
+
/{taxonomyId}/terms/{termId}:
|
|
41
|
+
delete:
|
|
42
|
+
(luvio.adapter):
|
|
43
|
+
name: deleteTerm
|
|
44
|
+
(luvio.key):
|
|
45
|
+
id: urlParams.termId
|
|
46
|
+
get:
|
|
47
|
+
(luvio.adapter):
|
|
48
|
+
name: getTerm
|
|
49
|
+
(luvio.key):
|
|
50
|
+
id: urlParams.termId
|
|
51
|
+
patch:
|
|
52
|
+
(luvio.adapter):
|
|
53
|
+
name: updateTerm
|
|
54
|
+
/{taxonomyId}/terms:
|
|
55
|
+
post:
|
|
56
|
+
(luvio.adapter):
|
|
57
|
+
name: createTerm
|