@salesforce/lds-adapters-sales-pathassistant 1.245.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/sales-pathassistant.js +1311 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getPathAssistant.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getPathAssistantDaysInStage.d.ts +27 -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 +5 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectPathassistantByRecordId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectPathassistantDaysInStageByRecordId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/AnimationRuleRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/PathAssistantDaysInStageRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/PathAssistantFieldRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/PathAssistantMetadataRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/PathAssistantRepresentation.d.ts +52 -0
- package/dist/es/es2018/types/src/generated/types/PathAssistantStepRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/PicklistEntryRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/PicklistForRecordTypeRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +64 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1351 -0
- package/src/raml/api.raml +210 -0
- package/src/raml/luvio.raml +23 -0
|
@@ -0,0 +1,210 @@
|
|
|
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
|
+
|
|
11
|
+
securitySchemes:
|
|
12
|
+
OAuth2:
|
|
13
|
+
type: OAuth 2.0
|
|
14
|
+
settings:
|
|
15
|
+
authorizationUri: https://example.com/oauth/authorize
|
|
16
|
+
accessTokenUri: ''
|
|
17
|
+
authorizationGrants:
|
|
18
|
+
- implicit
|
|
19
|
+
annotationTypes:
|
|
20
|
+
oas-readOnly:
|
|
21
|
+
type: boolean
|
|
22
|
+
allowedTargets: TypeDeclaration
|
|
23
|
+
oas-collectionFormat:
|
|
24
|
+
type: string
|
|
25
|
+
oas-body-name:
|
|
26
|
+
type: string
|
|
27
|
+
allowedTargets: TypeDeclaration
|
|
28
|
+
|
|
29
|
+
types:
|
|
30
|
+
PathAssistantFieldRepresentation:
|
|
31
|
+
description: Path Assistant Field returned by Connect API
|
|
32
|
+
type: object
|
|
33
|
+
properties:
|
|
34
|
+
apiName:
|
|
35
|
+
description: Value representing Path Assistant Field API name
|
|
36
|
+
type: string
|
|
37
|
+
label:
|
|
38
|
+
description: Value representing Path Assistant Field label
|
|
39
|
+
type: string
|
|
40
|
+
isReadonly:
|
|
41
|
+
description: Value representing Path Assistant Field isReadonly
|
|
42
|
+
type: boolean
|
|
43
|
+
isRequired:
|
|
44
|
+
description: Value representing Path Assistant Field isRequired
|
|
45
|
+
type: boolean
|
|
46
|
+
PathAssistantStepRepresentation:
|
|
47
|
+
description: Path Assistant Step returned by Connect API
|
|
48
|
+
type: object
|
|
49
|
+
properties:
|
|
50
|
+
picklistLabel:
|
|
51
|
+
description: Value representing Path Assistant Step picklist label
|
|
52
|
+
type: string
|
|
53
|
+
picklistValue:
|
|
54
|
+
description: Value representing Path Assistant Step picklist value
|
|
55
|
+
type: string
|
|
56
|
+
isClosed:
|
|
57
|
+
description: Value representing Path Assistant Step picklist isClosed
|
|
58
|
+
type: boolean
|
|
59
|
+
isWon:
|
|
60
|
+
description: Value representing Path Assistant Step picklist isWon
|
|
61
|
+
type: boolean
|
|
62
|
+
isConverted:
|
|
63
|
+
description: Value representing Path Assistant Step picklist isConverted
|
|
64
|
+
type: boolean
|
|
65
|
+
fields:
|
|
66
|
+
description: Value representing Path Assistant Step fields
|
|
67
|
+
type: array
|
|
68
|
+
items:
|
|
69
|
+
type: PathAssistantFieldRepresentation
|
|
70
|
+
guidance:
|
|
71
|
+
description: Value representing Path Assistant Step guidance
|
|
72
|
+
type: string | nil
|
|
73
|
+
PicklistEntryRepresentation:
|
|
74
|
+
description: Picklist Entry returned by Connect API
|
|
75
|
+
type: object
|
|
76
|
+
properties:
|
|
77
|
+
label:
|
|
78
|
+
description: Value representing picklist label
|
|
79
|
+
type: string
|
|
80
|
+
value:
|
|
81
|
+
description: Value representing picklist value
|
|
82
|
+
type: string
|
|
83
|
+
isDefault:
|
|
84
|
+
description: Value representing picklist isDefault
|
|
85
|
+
type: boolean
|
|
86
|
+
validFor:
|
|
87
|
+
description: Value representing picklist valid for
|
|
88
|
+
type: string | nil ### TODO
|
|
89
|
+
isActive:
|
|
90
|
+
description: Value representing picklist isActive
|
|
91
|
+
type: boolean
|
|
92
|
+
PicklistForRecordTypeRepresentation:
|
|
93
|
+
description: Picklist for Record Type returned by Connect API
|
|
94
|
+
type: object
|
|
95
|
+
properties:
|
|
96
|
+
picklistName:
|
|
97
|
+
description: Value representing picklist name
|
|
98
|
+
type: string
|
|
99
|
+
picklists:
|
|
100
|
+
description: Value representing picklists
|
|
101
|
+
type: array
|
|
102
|
+
items:
|
|
103
|
+
type: PicklistEntryRepresentation
|
|
104
|
+
AnimationRuleRepresentation:
|
|
105
|
+
description: Animation Rule returned by Connect API
|
|
106
|
+
type: object
|
|
107
|
+
properties:
|
|
108
|
+
targetField:
|
|
109
|
+
description: Value representing Animation Rule target field
|
|
110
|
+
type: string
|
|
111
|
+
targetFieldChangeToValues:
|
|
112
|
+
description: Value representing Animation Rule target field change to values
|
|
113
|
+
type: string ### TODO
|
|
114
|
+
recordTypeContext:
|
|
115
|
+
description: Value representing Animation Rule Record Type context
|
|
116
|
+
type: string | nil ### TODO
|
|
117
|
+
recordTypeId:
|
|
118
|
+
description: Value representing Animation Rule Record Type Id
|
|
119
|
+
type: string | nil
|
|
120
|
+
animationFrequency:
|
|
121
|
+
description: Value representing Animation Rule animation frequency
|
|
122
|
+
type: string | nil
|
|
123
|
+
isActive:
|
|
124
|
+
description: Value representing Animation Rule isActive
|
|
125
|
+
type: boolean
|
|
126
|
+
PathAssistantRepresentation:
|
|
127
|
+
description: Path Assistant returned by Connect API
|
|
128
|
+
type: object
|
|
129
|
+
properties:
|
|
130
|
+
apiName:
|
|
131
|
+
description: Value representing Path Assistant API name
|
|
132
|
+
type: string
|
|
133
|
+
label:
|
|
134
|
+
description: Value representing Path Assistant label
|
|
135
|
+
type: string
|
|
136
|
+
picklistField:
|
|
137
|
+
description: Value representing Path Assistant picklist field
|
|
138
|
+
type: string
|
|
139
|
+
recordTypeId:
|
|
140
|
+
description: Value representing Path Assistant Record Type Id
|
|
141
|
+
type: string | nil
|
|
142
|
+
steps:
|
|
143
|
+
description: Value representing Path Assistant steps
|
|
144
|
+
type: array
|
|
145
|
+
items:
|
|
146
|
+
type: PathAssistantStepRepresentation
|
|
147
|
+
picklistsForRecordType:
|
|
148
|
+
description: Value representing Path Assistant picklists for Record Type
|
|
149
|
+
type: array
|
|
150
|
+
items:
|
|
151
|
+
type: PicklistForRecordTypeRepresentation
|
|
152
|
+
animationRule:
|
|
153
|
+
description: Value representing Path Assistant animation rule
|
|
154
|
+
type: array
|
|
155
|
+
items:
|
|
156
|
+
type: AnimationRuleRepresentation
|
|
157
|
+
isActive:
|
|
158
|
+
description: Value representing Path Assistant isActive
|
|
159
|
+
type: boolean
|
|
160
|
+
PathAssistantMetadataRepresentation:
|
|
161
|
+
description: Path Assistant metadata returned by Connect API
|
|
162
|
+
type: object
|
|
163
|
+
properties:
|
|
164
|
+
pathAssistants:
|
|
165
|
+
description: Value representing Path Assistants
|
|
166
|
+
type: array
|
|
167
|
+
items:
|
|
168
|
+
type: PathAssistantRepresentation
|
|
169
|
+
|
|
170
|
+
PathAssistantDaysInStageRepresentation:
|
|
171
|
+
description: Path Assistant days-in-stage data returned by Connect API
|
|
172
|
+
type: object
|
|
173
|
+
properties:
|
|
174
|
+
picklistValuesToDays:
|
|
175
|
+
description: Value representing Path Assistant days-in-stage data
|
|
176
|
+
type: any
|
|
177
|
+
|
|
178
|
+
/connect/pathassistant:
|
|
179
|
+
/{recordId}:
|
|
180
|
+
get:
|
|
181
|
+
displayName: getPathAssistant
|
|
182
|
+
description: Query Path Assistant metadata
|
|
183
|
+
queryParameters:
|
|
184
|
+
picklistFieldApiName:
|
|
185
|
+
type: string
|
|
186
|
+
required: false
|
|
187
|
+
responses:
|
|
188
|
+
'200':
|
|
189
|
+
description: Success
|
|
190
|
+
body:
|
|
191
|
+
application/json:
|
|
192
|
+
type: PathAssistantMetadataRepresentation
|
|
193
|
+
uriParameters:
|
|
194
|
+
recordId:
|
|
195
|
+
type: string
|
|
196
|
+
required: true
|
|
197
|
+
/{recordId}/daysInStage:
|
|
198
|
+
get:
|
|
199
|
+
displayName: getPathAssistantDaysInStage
|
|
200
|
+
description: Query Path Assistant days-in-stage data
|
|
201
|
+
responses:
|
|
202
|
+
'200':
|
|
203
|
+
description: Success
|
|
204
|
+
body:
|
|
205
|
+
application/json:
|
|
206
|
+
type: PathAssistantDaysInStageRepresentation
|
|
207
|
+
uriParameters:
|
|
208
|
+
recordId:
|
|
209
|
+
type: string
|
|
210
|
+
required: true
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'pathassistant'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
PathAssistantDaysInStageRepresentation:
|
|
11
|
+
(luvio.ttl): 30000
|
|
12
|
+
PathAssistantMetadataRepresentation:
|
|
13
|
+
(luvio.ttl): 30000
|
|
14
|
+
|
|
15
|
+
/connect/pathassistant:
|
|
16
|
+
/{recordId}:
|
|
17
|
+
get:
|
|
18
|
+
(luvio.adapter):
|
|
19
|
+
name: getPathAssistant
|
|
20
|
+
/{recordId}/daysInStage:
|
|
21
|
+
get:
|
|
22
|
+
(luvio.adapter):
|
|
23
|
+
name: getPathAssistantDaysInStage
|