@salesforce/lds-adapters-service-itsm-risk-score-evaluation 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-itsm-risk-score-evaluation.js +578 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getRiskQstResponses.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/inferAttributes.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectServiceItsmRiskQstResponseById.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceItsmInference.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/InferenceInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/InferenceOutputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/RiskQstResponse.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/RiskQstResponseOutput.d.ts +39 -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 +620 -0
- package/src/raml/api.raml +100 -0
- package/src/raml/luvio.raml +35 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '64.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
|
+
InferenceInputRepresentation:
|
|
29
|
+
description: Represents input structure to get the inference
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
inputText:
|
|
33
|
+
description: The input text on which the inference is made
|
|
34
|
+
type: string
|
|
35
|
+
usecase:
|
|
36
|
+
description: The use case of the inference
|
|
37
|
+
type: string
|
|
38
|
+
InferenceOutputRepresentation:
|
|
39
|
+
description: Represents output structure of the inference
|
|
40
|
+
type: object
|
|
41
|
+
properties:
|
|
42
|
+
error:
|
|
43
|
+
description: Describes the error if any
|
|
44
|
+
type: string
|
|
45
|
+
result:
|
|
46
|
+
description: inferences generated
|
|
47
|
+
type: object
|
|
48
|
+
usecase:
|
|
49
|
+
description: usecase for the inference
|
|
50
|
+
type: string
|
|
51
|
+
RiskQstResponse:
|
|
52
|
+
description: Represents output structure of Risk Questionnaire Response
|
|
53
|
+
type: object
|
|
54
|
+
properties:
|
|
55
|
+
question:
|
|
56
|
+
description: Question for SrvcMgmntRiskQstResponse
|
|
57
|
+
type: string
|
|
58
|
+
response:
|
|
59
|
+
description: Response for SrvcMgmntRiskQstResponse
|
|
60
|
+
type: string
|
|
61
|
+
RiskQstResponseOutput:
|
|
62
|
+
description: Represents output structure of the array of risk questionnaire
|
|
63
|
+
type: object
|
|
64
|
+
properties:
|
|
65
|
+
riskQstResponseList:
|
|
66
|
+
description: Defines the list of all riskQstResponse
|
|
67
|
+
type: array
|
|
68
|
+
items:
|
|
69
|
+
type: RiskQstResponse
|
|
70
|
+
/connect/service-itsm:
|
|
71
|
+
/inference:
|
|
72
|
+
post:
|
|
73
|
+
displayName: inferAttributes
|
|
74
|
+
description: to get inferences from the input text for a given usecase
|
|
75
|
+
responses:
|
|
76
|
+
'200':
|
|
77
|
+
description: Success
|
|
78
|
+
body:
|
|
79
|
+
application/json:
|
|
80
|
+
type: InferenceOutputRepresentation
|
|
81
|
+
body:
|
|
82
|
+
application/json:
|
|
83
|
+
type: InferenceInputRepresentation
|
|
84
|
+
# required: false # TODO Hand-rolled W-17879473
|
|
85
|
+
(oas-body-name): inferenceInputRepresentation
|
|
86
|
+
/riskQstResponse/{id}:
|
|
87
|
+
get:
|
|
88
|
+
displayName: getRiskQstResponses
|
|
89
|
+
description: to get all risk question response for a change request Id
|
|
90
|
+
responses:
|
|
91
|
+
'200':
|
|
92
|
+
description: Success
|
|
93
|
+
body:
|
|
94
|
+
application/json:
|
|
95
|
+
type: RiskQstResponseOutput
|
|
96
|
+
uriParameters:
|
|
97
|
+
id:
|
|
98
|
+
description: reference record id
|
|
99
|
+
type: string
|
|
100
|
+
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): 'service-itsm-risk-score-evaluation'
|
|
8
|
+
(luvio.ttl): 120000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
InferenceInputRepresentation:
|
|
12
|
+
(luvio.opaque): true
|
|
13
|
+
InferenceOutputRepresentation:
|
|
14
|
+
(luvio.opaque): true
|
|
15
|
+
(luvio.ttl): 100
|
|
16
|
+
(luvio.key):
|
|
17
|
+
id: usecase
|
|
18
|
+
RiskQstResponse:
|
|
19
|
+
(luvio.key):
|
|
20
|
+
id: question
|
|
21
|
+
RiskQstResponseOutput:
|
|
22
|
+
(luvio.ttl): 300
|
|
23
|
+
|
|
24
|
+
/connect/service-itsm:
|
|
25
|
+
/inference:
|
|
26
|
+
post:
|
|
27
|
+
description: to get inferences from the input text for a given usecase
|
|
28
|
+
(luvio.adapter):
|
|
29
|
+
name: inferAttributes
|
|
30
|
+
|
|
31
|
+
/riskQstResponse/{id}:
|
|
32
|
+
get:
|
|
33
|
+
description: to get all risk question response for a change request Id
|
|
34
|
+
(luvio.adapter):
|
|
35
|
+
name: getRiskQstResponses
|