@salesforce/lds-adapters-platform-content-taxonomy 1.249.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 (24) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-content-taxonomy.js +479 -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/getTerms.d.ts +31 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
  7. package/dist/es/es2018/types/src/generated/resources/deleteConnectContentTaxonomyTermsByTaxonomyIdAndTermId.d.ts +16 -0
  8. package/dist/es/es2018/types/src/generated/resources/getConnectContentTaxonomyTerms.d.ts +19 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectContentTaxonomyTermsByTaxonomyIdAndTermId.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectContentTaxonomyTermsSearch.d.ts +20 -0
  11. package/dist/es/es2018/types/src/generated/resources/patchConnectContentTaxonomyTermsByTaxonomyIdAndTermId.d.ts +18 -0
  12. package/dist/es/es2018/types/src/generated/resources/postConnectContentTaxonomyTermsByTaxonomyId.d.ts +17 -0
  13. package/dist/es/es2018/types/src/generated/types/ContentTaxonomyPathFragmentRepresentation.d.ts +41 -0
  14. package/dist/es/es2018/types/src/generated/types/ContentTaxonomyPathRepresentation.d.ts +36 -0
  15. package/dist/es/es2018/types/src/generated/types/ContentTaxonomyTermCollectionRepresentation.d.ts +36 -0
  16. package/dist/es/es2018/types/src/generated/types/ContentTaxonomyTermInputRepresentation.d.ts +34 -0
  17. package/dist/es/es2018/types/src/generated/types/ContentTaxonomyTermRepresentation.d.ts +68 -0
  18. package/dist/es/es2018/types/src/generated/types/ContentTaxonomyUserSummary.d.ts +44 -0
  19. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  20. package/package.json +66 -0
  21. package/sfdc/index.d.ts +1 -0
  22. package/sfdc/index.js +511 -0
  23. package/src/raml/api.raml +265 -0
  24. package/src/raml/luvio.raml +34 -0
@@ -0,0 +1,265 @@
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/v60.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 a content taxonomy term.
73
+ type: object
74
+ properties:
75
+ description:
76
+ description: The description of the term to create.
77
+ type: string
78
+ label:
79
+ description: The label of the term to create.
80
+ type: string
81
+ parentTermId:
82
+ description: The parent term ID of the term to create; leave empty to create
83
+ a root term.
84
+ type: string
85
+ ContentTaxonomyTermRepresentation:
86
+ description: A content taxonomy term.
87
+ type: object
88
+ properties:
89
+ childTerms:
90
+ description: The child terms of this term.
91
+ type: array
92
+ items:
93
+ type: ContentTaxonomyTermRepresentation
94
+ createdBy:
95
+ description: The user that created the term.
96
+ type: ContentTaxonomyUserSummary
97
+ createdDate:
98
+ description: The date the term was created.
99
+ type: string
100
+ description:
101
+ description: The description of the term.
102
+ type: string
103
+ id:
104
+ description: The ID of the term.
105
+ type: string
106
+ isLeafTerm:
107
+ description: True if term has no children.
108
+ type: boolean
109
+ label:
110
+ description: The label of the term.
111
+ type: string
112
+ lastModifiedBy:
113
+ description: The user that last modified the term.
114
+ type: ContentTaxonomyUserSummary
115
+ lastModifiedDate:
116
+ description: The date the term was last modified.
117
+ type: string
118
+ parentTerms:
119
+ description: The parent term(s) of this term.
120
+ type: array
121
+ items:
122
+ type: ContentTaxonomyTermRepresentation
123
+ pathsFromRoot:
124
+ description: The path(s) from a root term to this term.
125
+ type: array
126
+ items:
127
+ type: ContentTaxonomyPathRepresentation
128
+ ContentTaxonomyUserSummary:
129
+ description: Information about a user related to a content taxonomy or its terms.
130
+ type: object
131
+ properties:
132
+ id:
133
+ description: The ID of the user.
134
+ type: string
135
+ name:
136
+ description: The name of the user.
137
+ type: string
138
+ url:
139
+ description: The Connect API resource URL for the user.
140
+ type: string
141
+ /connect/content-taxonomy:
142
+ /terms:
143
+ get:
144
+ displayName: getContentTaxonomyTermCollection
145
+ description: Get multiple taxonomy terms.
146
+ responses:
147
+ '200':
148
+ description: Success
149
+ body:
150
+ application/json:
151
+ type: ContentTaxonomyTermCollectionRepresentation
152
+ queryParameters:
153
+ depth:
154
+ type: integer
155
+ required: false
156
+ includeMetadata:
157
+ type: boolean
158
+ required: false
159
+ includePaths:
160
+ type: boolean
161
+ required: false
162
+ initialTerms:
163
+ type: array
164
+ required: false
165
+ items:
166
+ type: string
167
+ (oas-collectionFormat): csv
168
+ taxonomyId:
169
+ type: string
170
+ required: false
171
+ /terms/search:
172
+ get:
173
+ displayName: getContentTaxonomyTermSearch
174
+ description: Search for matching taxonomy terms.
175
+ responses:
176
+ '200':
177
+ description: Success
178
+ body:
179
+ application/json:
180
+ type: ContentTaxonomyTermCollectionRepresentation
181
+ queryParameters:
182
+ includeHierarchyWithDepth:
183
+ type: integer
184
+ required: false
185
+ includeMetadata:
186
+ type: boolean
187
+ required: false
188
+ page:
189
+ type: integer
190
+ required: false
191
+ pageSize:
192
+ type: integer
193
+ required: false
194
+ queryText:
195
+ type: string
196
+ required: false
197
+ taxonomyIds:
198
+ type: array
199
+ required: false
200
+ items:
201
+ type: string
202
+ (oas-collectionFormat): csv
203
+ /{taxonomyId}/terms:
204
+ post:
205
+ displayName: postSingleContentTaxonomyTermCollection
206
+ description: Create a taxonomy term.
207
+ responses:
208
+ '200':
209
+ description: Success
210
+ body:
211
+ application/json:
212
+ type: ContentTaxonomyTermRepresentation
213
+ body:
214
+ application/json:
215
+ type: ContentTaxonomyTermInputRepresentation
216
+ # required: false - TODO - not supported on patch
217
+ (oas-body-name): term
218
+ uriParameters:
219
+ taxonomyId:
220
+ type: string
221
+ required: true
222
+ /{taxonomyId}/terms/{termId}:
223
+ delete:
224
+ displayName: deleteContentTaxonomyTerm
225
+ description: Delete a taxonomy term.
226
+ responses:
227
+ '200':
228
+ description: Success
229
+ queryParameters:
230
+ deleteChildren:
231
+ type: boolean
232
+ required: false
233
+ newParentTerm:
234
+ type: string
235
+ required: false
236
+ get:
237
+ displayName: getContentTaxonomyTerm
238
+ description: Get a taxonomy term.
239
+ responses:
240
+ '200':
241
+ description: Success
242
+ body:
243
+ application/json:
244
+ type: ContentTaxonomyTermRepresentation
245
+ patch:
246
+ displayName: patchContentTaxonomyTerm
247
+ description: Update a taxonomy term.
248
+ responses:
249
+ '200':
250
+ description: Success
251
+ body:
252
+ application/json:
253
+ type: ContentTaxonomyTermRepresentation
254
+ body:
255
+ application/json:
256
+ type: ContentTaxonomyTermInputRepresentation
257
+ # required: false - TODO - not supported on patch
258
+ (oas-body-name): term
259
+ uriParameters:
260
+ taxonomyId:
261
+ type: string
262
+ required: true
263
+ termId:
264
+ type: string
265
+ required: true
@@ -0,0 +1,34 @@
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
+
30
+ /connect/content-taxonomy:
31
+ /terms:
32
+ get:
33
+ (luvio.adapter):
34
+ name: getTerms