@salesforce/lds-adapters-service-knowledge-questions 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/service-knowledge-questions.js +790 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getKnowledgeAnswer.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/adapters/getKnowledgeQuestionsGen.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/putKnowledgeUpdateQuestion.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectArticleQuestionsByRecordId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectArticleAnswerByRecordId.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/resources/putConnectArticleQuestionsSelectioncountByRecordIdAndQuestionId.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/KnowledgeAnswerInputRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/KnowledgeAnswerRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/KnowledgeQuestionCollectionRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/KnowledgeQuestionRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/KnowledgeUpdateQuestionRepresentation.d.ts +38 -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 +837 -0
- package/src/raml/api.raml +141 -0
- package/src/raml/luvio.raml +35 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '65.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
|
+
KnowledgeAnswerInputRepresentation:
|
|
29
|
+
description: Represents input for getting answer for a question
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
contextInfo:
|
|
33
|
+
description: Knowledge Context
|
|
34
|
+
type: object
|
|
35
|
+
properties:
|
|
36
|
+
//:
|
|
37
|
+
type: string
|
|
38
|
+
metadata:
|
|
39
|
+
description: Knowledge Metadata
|
|
40
|
+
type: object
|
|
41
|
+
properties:
|
|
42
|
+
//:
|
|
43
|
+
type: string
|
|
44
|
+
question:
|
|
45
|
+
description: Knowledge Question
|
|
46
|
+
type: string
|
|
47
|
+
KnowledgeAnswerRepresentation:
|
|
48
|
+
description: Represent the knowledge article answer to given questionId
|
|
49
|
+
type: object
|
|
50
|
+
properties:
|
|
51
|
+
answer:
|
|
52
|
+
description: Answer to given question
|
|
53
|
+
type: string
|
|
54
|
+
status:
|
|
55
|
+
description: Status of the update
|
|
56
|
+
type: string
|
|
57
|
+
KnowledgeQuestionCollectionRepresentation:
|
|
58
|
+
description: List of Knowledge Article Questions
|
|
59
|
+
type: object
|
|
60
|
+
properties:
|
|
61
|
+
generatedDate:
|
|
62
|
+
description: Generated Date
|
|
63
|
+
type: string
|
|
64
|
+
required: false
|
|
65
|
+
knowledgeQuestionRepresentationList:
|
|
66
|
+
description: List of Knowledge Article Questions
|
|
67
|
+
type: array
|
|
68
|
+
items:
|
|
69
|
+
type: KnowledgeQuestionRepresentation
|
|
70
|
+
KnowledgeQuestionRepresentation:
|
|
71
|
+
description: Represent the Knowledge article question
|
|
72
|
+
type: object
|
|
73
|
+
properties:
|
|
74
|
+
answer:
|
|
75
|
+
description: Knowledge Answer
|
|
76
|
+
type: string
|
|
77
|
+
question:
|
|
78
|
+
description: Knowledge Question
|
|
79
|
+
type: string
|
|
80
|
+
questionId:
|
|
81
|
+
description: Knowledge Question Id
|
|
82
|
+
type: string
|
|
83
|
+
selectionCount:
|
|
84
|
+
description: Selection count for a question
|
|
85
|
+
type: integer
|
|
86
|
+
KnowledgeUpdateQuestionRepresentation:
|
|
87
|
+
description: This represents the output of knowledge question update
|
|
88
|
+
type: object
|
|
89
|
+
properties:
|
|
90
|
+
status:
|
|
91
|
+
description: Status of the update
|
|
92
|
+
type: string
|
|
93
|
+
/connect:
|
|
94
|
+
/article/{recordId}:
|
|
95
|
+
/answer:
|
|
96
|
+
post:
|
|
97
|
+
displayName: postKnowledgeAnswerGen
|
|
98
|
+
description: Returns generated answer for a given knowledge article question
|
|
99
|
+
responses:
|
|
100
|
+
'200':
|
|
101
|
+
description: Success
|
|
102
|
+
body:
|
|
103
|
+
application/json:
|
|
104
|
+
type: KnowledgeAnswerRepresentation
|
|
105
|
+
body:
|
|
106
|
+
application/json:
|
|
107
|
+
type: KnowledgeAnswerInputRepresentation
|
|
108
|
+
(oas-body-name): knowledgeGetAnswerInput
|
|
109
|
+
/questions:
|
|
110
|
+
get:
|
|
111
|
+
displayName: getKnowledgeQuestionsGen
|
|
112
|
+
description: Returns generated questions for a given knowledge article version
|
|
113
|
+
responses:
|
|
114
|
+
'200':
|
|
115
|
+
description: Success
|
|
116
|
+
body:
|
|
117
|
+
application/json:
|
|
118
|
+
type: KnowledgeQuestionCollectionRepresentation
|
|
119
|
+
queryParameters:
|
|
120
|
+
maxResults:
|
|
121
|
+
type: integer
|
|
122
|
+
required: false
|
|
123
|
+
/{questionId}/selectioncount:
|
|
124
|
+
put:
|
|
125
|
+
displayName: putKnowledgeUpdateQuestion
|
|
126
|
+
description: Returns update question response after updating knowledge article
|
|
127
|
+
question
|
|
128
|
+
responses:
|
|
129
|
+
'200':
|
|
130
|
+
description: Success
|
|
131
|
+
body:
|
|
132
|
+
application/json:
|
|
133
|
+
type: KnowledgeUpdateQuestionRepresentation
|
|
134
|
+
uriParameters:
|
|
135
|
+
questionId:
|
|
136
|
+
type: string
|
|
137
|
+
required: true
|
|
138
|
+
uriParameters:
|
|
139
|
+
recordId:
|
|
140
|
+
type: string
|
|
141
|
+
required: true
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'knowledge-questions'
|
|
8
|
+
(luvio.ttl): 900000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
KnowledgeAnswerRepresentation:
|
|
12
|
+
(luvio.ttl): 300
|
|
13
|
+
(luvio.key):
|
|
14
|
+
id: answer
|
|
15
|
+
KnowledgeQuestionCollectionRepresentation:
|
|
16
|
+
(luvio.ttl): 300
|
|
17
|
+
KnowledgeQuestionRepresentation:
|
|
18
|
+
(luvio.ttl): 300
|
|
19
|
+
KnowledgeUpdateQuestionRepresentation:
|
|
20
|
+
(luvio.ttl): 300
|
|
21
|
+
(luvio.key):
|
|
22
|
+
id: status
|
|
23
|
+
/connect:
|
|
24
|
+
/article/{recordId}/answer:
|
|
25
|
+
post:
|
|
26
|
+
(luvio.adapter):
|
|
27
|
+
name: getKnowledgeAnswer
|
|
28
|
+
/article/{recordId}/questions/{questionId}/selectioncount:
|
|
29
|
+
put:
|
|
30
|
+
(luvio.adapter):
|
|
31
|
+
name: putKnowledgeUpdateQuestion
|
|
32
|
+
/article/{recordId}/questions:
|
|
33
|
+
get:
|
|
34
|
+
(luvio.adapter):
|
|
35
|
+
name: getKnowledgeQuestionsGen
|