@salesforce/lds-adapters-industries-guardrail 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/industries-guardrail.js +957 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getIndustriesGuardrail.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getIndustriesGuardrails.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/postValidateGuardrail.d.ts +18 -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 +6 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectIndustriesGuardrail.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectIndustriesGuardrails.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectIndustriesGuardrailValidate.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/GuardrailDetailRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/IndustriesGuardrailInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/IndustriesGuardrailListRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/IndustriesGuardrailRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/MessageListRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/MessageRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/ValidationMessageRepresentation.d.ts +45 -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 +1014 -0
- package/src/raml/api.raml +170 -0
- package/src/raml/luvio.raml +47 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '63.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
|
+
GuardrailDetailRepresentation:
|
|
29
|
+
description: Detail of the Guardrail such as Name, Min and Max value
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
guardRailCurrentValue:
|
|
33
|
+
description: Current Value of the Guardrail.
|
|
34
|
+
type: string
|
|
35
|
+
guardRailMaxValue:
|
|
36
|
+
description: Max Value of the Guardrail
|
|
37
|
+
type: string
|
|
38
|
+
guardRailMinValue:
|
|
39
|
+
description: Min Value of the Guardrail.
|
|
40
|
+
type: string
|
|
41
|
+
guardRailName:
|
|
42
|
+
description: Name of the Guardrail.
|
|
43
|
+
type: string
|
|
44
|
+
guardRailRestrictionType:
|
|
45
|
+
description: Whether Guardrail type is soft or hard.
|
|
46
|
+
type: string
|
|
47
|
+
messages:
|
|
48
|
+
description: The list exception messages for a guardrail.
|
|
49
|
+
type: MessageListRepresentation
|
|
50
|
+
IndustriesGuardrailInputRepresentation:
|
|
51
|
+
description: Input for Guardrail Validation
|
|
52
|
+
type: object
|
|
53
|
+
properties:
|
|
54
|
+
component:
|
|
55
|
+
description: Name of the component. A product may have several components,
|
|
56
|
+
for example OmniStudio has FLEX_CARD, IP and OMNI_SCRIPT as components.
|
|
57
|
+
type: string
|
|
58
|
+
guardrailName:
|
|
59
|
+
description: Name of the Guardrail.
|
|
60
|
+
type: string
|
|
61
|
+
guardrailValue:
|
|
62
|
+
description: Value of the guardrail to be validated
|
|
63
|
+
type: string
|
|
64
|
+
product:
|
|
65
|
+
description: 'Name of the product. For example: OMNI_STUDIO.'
|
|
66
|
+
type: string
|
|
67
|
+
IndustriesGuardrailListRepresentation:
|
|
68
|
+
description: List of all Guardrails
|
|
69
|
+
type: object
|
|
70
|
+
properties:
|
|
71
|
+
industriesGuardrailList:
|
|
72
|
+
description: A list of GuardrailDetailRepresentation
|
|
73
|
+
type: array
|
|
74
|
+
items:
|
|
75
|
+
type: GuardrailDetailRepresentation
|
|
76
|
+
IndustriesGuardrailRepresentation:
|
|
77
|
+
description: The detail of a Guardrail
|
|
78
|
+
type: object
|
|
79
|
+
properties:
|
|
80
|
+
industriesGuardrail:
|
|
81
|
+
description: The detail of a Guardrail.
|
|
82
|
+
type: GuardrailDetailRepresentation
|
|
83
|
+
MessageListRepresentation:
|
|
84
|
+
description: List of all Guardrail Messages
|
|
85
|
+
type: object
|
|
86
|
+
properties:
|
|
87
|
+
messageList:
|
|
88
|
+
description: A list of MessageRepresentation
|
|
89
|
+
type: array
|
|
90
|
+
items:
|
|
91
|
+
type: MessageRepresentation
|
|
92
|
+
MessageRepresentation:
|
|
93
|
+
description: During validation, the message is communicated to the user
|
|
94
|
+
type: object
|
|
95
|
+
properties:
|
|
96
|
+
code:
|
|
97
|
+
description: Error code of the exception.
|
|
98
|
+
type: string
|
|
99
|
+
exceptionmessage:
|
|
100
|
+
description: Exception Message String.
|
|
101
|
+
type: string
|
|
102
|
+
type:
|
|
103
|
+
description: The exception type could be WARNING or ERROR.
|
|
104
|
+
type: string
|
|
105
|
+
ValidationMessageRepresentation:
|
|
106
|
+
description: Response of guardrail validation
|
|
107
|
+
type: object
|
|
108
|
+
properties:
|
|
109
|
+
guardrailValue:
|
|
110
|
+
description: Actual value of the guardrail
|
|
111
|
+
type: string
|
|
112
|
+
message:
|
|
113
|
+
description: Warning or Error Message if the status is FAILURE
|
|
114
|
+
type: MessageRepresentation
|
|
115
|
+
required: false
|
|
116
|
+
status:
|
|
117
|
+
description: SUCCESS if value is less than guardrail value, FAILURE otherwise
|
|
118
|
+
type: string
|
|
119
|
+
/connect/industries:
|
|
120
|
+
/guardrail:
|
|
121
|
+
get:
|
|
122
|
+
displayName: getIndustriesGuardrail
|
|
123
|
+
description: Retrieve the value of a single Guardrail
|
|
124
|
+
responses:
|
|
125
|
+
'200':
|
|
126
|
+
description: Success
|
|
127
|
+
body:
|
|
128
|
+
application/json:
|
|
129
|
+
type: IndustriesGuardrailRepresentation
|
|
130
|
+
queryParameters:
|
|
131
|
+
component:
|
|
132
|
+
type: string
|
|
133
|
+
required: false
|
|
134
|
+
name:
|
|
135
|
+
type: string
|
|
136
|
+
required: false
|
|
137
|
+
product:
|
|
138
|
+
type: string
|
|
139
|
+
required: false
|
|
140
|
+
/guardrail/validate:
|
|
141
|
+
post:
|
|
142
|
+
displayName: postValidateGuardrail
|
|
143
|
+
description: Validate the guardrail value.
|
|
144
|
+
responses:
|
|
145
|
+
'200':
|
|
146
|
+
description: Success
|
|
147
|
+
body:
|
|
148
|
+
application/json:
|
|
149
|
+
type: ValidationMessageRepresentation
|
|
150
|
+
body:
|
|
151
|
+
application/json:
|
|
152
|
+
type: IndustriesGuardrailInputRepresentation
|
|
153
|
+
(oas-body-name): industriesGuardrailDef
|
|
154
|
+
/guardrails:
|
|
155
|
+
get:
|
|
156
|
+
displayName: getIndustriesGuardrails
|
|
157
|
+
description: Retrieve all the Guardrails
|
|
158
|
+
responses:
|
|
159
|
+
'200':
|
|
160
|
+
description: Success
|
|
161
|
+
body:
|
|
162
|
+
application/json:
|
|
163
|
+
type: IndustriesGuardrailListRepresentation
|
|
164
|
+
queryParameters:
|
|
165
|
+
component:
|
|
166
|
+
type: string
|
|
167
|
+
required: false
|
|
168
|
+
product:
|
|
169
|
+
type: string
|
|
170
|
+
required: false
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'Guardrail'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
GuardrailDetailRepresentation:
|
|
11
|
+
(luvio.ttl): 360000
|
|
12
|
+
|
|
13
|
+
IndustriesGuardrailInputRepresentation:
|
|
14
|
+
(luvio.ttl): 360000
|
|
15
|
+
|
|
16
|
+
IndustriesGuardrailRepresentation:
|
|
17
|
+
(luvio.ttl): 360000
|
|
18
|
+
|
|
19
|
+
IndustriesGuardrailListRepresentation:
|
|
20
|
+
(luvio.ttl): 360000
|
|
21
|
+
|
|
22
|
+
MessageListRepresentation:
|
|
23
|
+
(luvio.ttl): 360000
|
|
24
|
+
|
|
25
|
+
MessageRepresentation:
|
|
26
|
+
(luvio.ttl): 360000
|
|
27
|
+
|
|
28
|
+
ValidationMessageRepresentation:
|
|
29
|
+
(luvio.ttl): 360000
|
|
30
|
+
(luvio.key):
|
|
31
|
+
guardrailValue: guardrailValue
|
|
32
|
+
|
|
33
|
+
/connect/industries:
|
|
34
|
+
/guardrail:
|
|
35
|
+
get:
|
|
36
|
+
(luvio.adapter):
|
|
37
|
+
name: getIndustriesGuardrail
|
|
38
|
+
|
|
39
|
+
/guardrail/validate:
|
|
40
|
+
post:
|
|
41
|
+
(luvio.adapter):
|
|
42
|
+
name: postValidateGuardrail
|
|
43
|
+
|
|
44
|
+
/guardrails:
|
|
45
|
+
get:
|
|
46
|
+
(luvio.adapter):
|
|
47
|
+
name: getIndustriesGuardrails
|