@salesforce/lds-adapters-service-knowledge-questions 1.366.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-knowledge-questions.js +1034 -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 +21 -0
- package/dist/es/es2018/types/src/generated/adapters/getKnowledgeQuestionsGen.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/postKnowledgeUpdateQuestion.d.ts +15 -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/getConnectSelfServiceKnowledgeGetQuestionsByRecordId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectSelfServiceKnowledgeAnswer.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectSelfServiceKnowledgeUpdateQuestionByQuestionId.d.ts +12 -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 +45 -0
- package/dist/es/es2018/types/src/generated/types/KnowledgeQuestionCollectionRepresentation.d.ts +37 -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 +42 -0
- package/dist/es/es2018/types/src/generated/types/SSKnowledgeErrorDetailsOutputRepresentation.d.ts +32 -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 +1081 -0
- package/src/raml/api.raml +162 -0
- package/src/raml/luvio.raml +37 -0
|
@@ -0,0 +1,162 @@
|
|
|
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/v65.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
|
+
SSKnowledgeErrorDetailsOutputRepresentation:
|
|
48
|
+
description: Error Message Representation
|
|
49
|
+
type: object
|
|
50
|
+
properties:
|
|
51
|
+
code:
|
|
52
|
+
description: Get Error Code.
|
|
53
|
+
type: integer
|
|
54
|
+
required: false
|
|
55
|
+
message:
|
|
56
|
+
description: Get Error Message
|
|
57
|
+
type: string
|
|
58
|
+
required: false
|
|
59
|
+
KnowledgeAnswerRepresentation:
|
|
60
|
+
description: Represent the knowledge article answer to given questionId
|
|
61
|
+
type: object
|
|
62
|
+
properties:
|
|
63
|
+
answer:
|
|
64
|
+
description: Answer to given question
|
|
65
|
+
type: string
|
|
66
|
+
error:
|
|
67
|
+
description: Error Message if any
|
|
68
|
+
type: SSKnowledgeErrorDetailsOutputRepresentation | nil
|
|
69
|
+
status:
|
|
70
|
+
description: Status of the update
|
|
71
|
+
type: string | nil
|
|
72
|
+
KnowledgeQuestionCollectionRepresentation:
|
|
73
|
+
description: List of Knowledge Article Questions
|
|
74
|
+
type: object
|
|
75
|
+
properties:
|
|
76
|
+
error:
|
|
77
|
+
description: Error Message if any
|
|
78
|
+
type: SSKnowledgeErrorDetailsOutputRepresentation | nil
|
|
79
|
+
generatedDate:
|
|
80
|
+
description: Generated Date
|
|
81
|
+
type: string
|
|
82
|
+
required: false
|
|
83
|
+
knowledgeQuestionRepresentationList:
|
|
84
|
+
description: List of Knowledge Article Questions
|
|
85
|
+
type: array
|
|
86
|
+
items:
|
|
87
|
+
type: KnowledgeQuestionRepresentation
|
|
88
|
+
KnowledgeQuestionRepresentation:
|
|
89
|
+
description: Represent the Knowledge article question
|
|
90
|
+
type: object
|
|
91
|
+
properties:
|
|
92
|
+
answer:
|
|
93
|
+
description: Knowledge Answer
|
|
94
|
+
type: string
|
|
95
|
+
question:
|
|
96
|
+
description: Knowledge Question
|
|
97
|
+
type: string
|
|
98
|
+
questionId:
|
|
99
|
+
description: Knowledge Question Id
|
|
100
|
+
type: string
|
|
101
|
+
selectionCount:
|
|
102
|
+
description: Selection count for a question
|
|
103
|
+
type: integer
|
|
104
|
+
KnowledgeUpdateQuestionRepresentation:
|
|
105
|
+
description: This represents the output of knowledge question update
|
|
106
|
+
type: object
|
|
107
|
+
properties:
|
|
108
|
+
error:
|
|
109
|
+
description: Error Message if any
|
|
110
|
+
type: SSKnowledgeErrorDetailsOutputRepresentation | nil
|
|
111
|
+
status:
|
|
112
|
+
description: Status of the update
|
|
113
|
+
type: string | nil
|
|
114
|
+
/connect:
|
|
115
|
+
/self-service/knowledge:
|
|
116
|
+
/answer:
|
|
117
|
+
post:
|
|
118
|
+
displayName: postKnowledgeAnswerGen
|
|
119
|
+
description: Returns generated answer for a given knowledge article question
|
|
120
|
+
responses:
|
|
121
|
+
'200':
|
|
122
|
+
description: Success
|
|
123
|
+
body:
|
|
124
|
+
application/json:
|
|
125
|
+
type: KnowledgeAnswerRepresentation
|
|
126
|
+
body:
|
|
127
|
+
application/json:
|
|
128
|
+
type: KnowledgeAnswerInputRepresentation
|
|
129
|
+
(oas-body-name): knowledgeGetAnswerInput
|
|
130
|
+
/get-questions/{recordId}:
|
|
131
|
+
get:
|
|
132
|
+
displayName: getKnowledgeQuestionsGen
|
|
133
|
+
description: Returns generated questions for a given knowledge article version
|
|
134
|
+
responses:
|
|
135
|
+
'200':
|
|
136
|
+
description: Success
|
|
137
|
+
body:
|
|
138
|
+
application/json:
|
|
139
|
+
type: KnowledgeQuestionCollectionRepresentation
|
|
140
|
+
queryParameters:
|
|
141
|
+
maxResults:
|
|
142
|
+
type: integer
|
|
143
|
+
required: false
|
|
144
|
+
uriParameters:
|
|
145
|
+
recordId:
|
|
146
|
+
type: string
|
|
147
|
+
required: true
|
|
148
|
+
/update-question/{questionId}:
|
|
149
|
+
post:
|
|
150
|
+
displayName: postKnowledgeUpdateQuestion
|
|
151
|
+
description: Returns update question response after updating knowledge article
|
|
152
|
+
question
|
|
153
|
+
responses:
|
|
154
|
+
'200':
|
|
155
|
+
description: Success
|
|
156
|
+
body:
|
|
157
|
+
application/json:
|
|
158
|
+
type: KnowledgeUpdateQuestionRepresentation
|
|
159
|
+
uriParameters:
|
|
160
|
+
questionId:
|
|
161
|
+
type: string
|
|
162
|
+
required: true
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
SSKnowledgeErrorDetailsOutputRepresentation:
|
|
12
|
+
(luvio.ttl): 300
|
|
13
|
+
KnowledgeAnswerRepresentation:
|
|
14
|
+
(luvio.ttl): 300
|
|
15
|
+
(luvio.key):
|
|
16
|
+
id: answer
|
|
17
|
+
KnowledgeQuestionCollectionRepresentation:
|
|
18
|
+
(luvio.ttl): 300
|
|
19
|
+
KnowledgeQuestionRepresentation:
|
|
20
|
+
(luvio.ttl): 300
|
|
21
|
+
KnowledgeUpdateQuestionRepresentation:
|
|
22
|
+
(luvio.ttl): 300
|
|
23
|
+
(luvio.key):
|
|
24
|
+
id: status
|
|
25
|
+
/connect:
|
|
26
|
+
/self-service/knowledge/answer:
|
|
27
|
+
post:
|
|
28
|
+
(luvio.adapter):
|
|
29
|
+
name: getKnowledgeAnswer
|
|
30
|
+
/self-service/knowledge/update-question/{questionId}:
|
|
31
|
+
post:
|
|
32
|
+
(luvio.adapter):
|
|
33
|
+
name: postKnowledgeUpdateQuestion
|
|
34
|
+
/self-service/knowledge/get-questions/{recordId}:
|
|
35
|
+
get:
|
|
36
|
+
(luvio.adapter):
|
|
37
|
+
name: getKnowledgeQuestionsGen
|