@salesforce/lds-adapters-industries-externaldocument 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-externaldocument.js +947 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createExternalDocument.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/getExternalDocument.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getExternalDocumentUsers.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/saveExternalDocument.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectExternalDocument.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectExternalDocumentUsers.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectExternalDocument.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/putConnectExternalDocumentSave.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/DocumentAuthoredContentRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/ExternalDocCreationInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/ExternalDocCreationInputRepresentationWrapper.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/ExternalDocCreationOutputRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/ExternalDocumentMetadataRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/ExternalDocumentOutputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/ExternalDocumentUsersListOutputRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/ExternalDocumentUsersOutputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/ObjectReferenceRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/ParentContentRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/ReviewerRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/SaveExternalDocumentInputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/SaveExternalDocumentInputRepresentationWrapper.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/SaveExternalDocumentRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/UsagesRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +74 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1006 -0
- package/src/raml/api.raml +323 -0
- package/src/raml/luvio.raml +75 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '59.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
|
+
DocumentAuthoredContentRepresentation:
|
|
29
|
+
description: Input representation of a Document Authored Content
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
checksum:
|
|
33
|
+
description: Checksum
|
|
34
|
+
type: string
|
|
35
|
+
content:
|
|
36
|
+
description: Content
|
|
37
|
+
type: string
|
|
38
|
+
contentGenerationSource:
|
|
39
|
+
description: Content Generation Source
|
|
40
|
+
type: string
|
|
41
|
+
contentType:
|
|
42
|
+
description: Content Type
|
|
43
|
+
type: string
|
|
44
|
+
documentAuthoredContentIdentifier:
|
|
45
|
+
description: DocumentAuthoredContentIdentifier
|
|
46
|
+
type: string
|
|
47
|
+
name:
|
|
48
|
+
description: Name
|
|
49
|
+
type: string
|
|
50
|
+
ExternalDocCreationInputRepresentation:
|
|
51
|
+
description: Input representation to Create External Document
|
|
52
|
+
type: object
|
|
53
|
+
properties:
|
|
54
|
+
contentVersionId:
|
|
55
|
+
description: Content Version Id of the document using which new external document
|
|
56
|
+
has to be created
|
|
57
|
+
type: string
|
|
58
|
+
documentNamePrefix:
|
|
59
|
+
description: Document Name prefix which is required to name the newly created
|
|
60
|
+
external document
|
|
61
|
+
type: string
|
|
62
|
+
isAsync:
|
|
63
|
+
description: Determines the way the external document get created
|
|
64
|
+
type: string
|
|
65
|
+
refObjectId:
|
|
66
|
+
description: Id of the reference Object. It would be either Document Template
|
|
67
|
+
or Contract ID
|
|
68
|
+
type: string
|
|
69
|
+
ExternalDocCreationOutputRepresentation:
|
|
70
|
+
description: Output representation for Create External Document
|
|
71
|
+
type: object
|
|
72
|
+
properties:
|
|
73
|
+
externalDocumentDetails:
|
|
74
|
+
description: External Document Storage information
|
|
75
|
+
type: object
|
|
76
|
+
isSuccess:
|
|
77
|
+
description: Boolean flag determines if the api is Success
|
|
78
|
+
type: boolean
|
|
79
|
+
message:
|
|
80
|
+
description: Provides a description of the error message in case of failure
|
|
81
|
+
type: string
|
|
82
|
+
ssoLinkUrl:
|
|
83
|
+
description: Provides a description of the error message in case of failure
|
|
84
|
+
type: string
|
|
85
|
+
ExternalDocumentMetadataRepresentation:
|
|
86
|
+
description: Input representation of external document metadata
|
|
87
|
+
type: object
|
|
88
|
+
properties:
|
|
89
|
+
documentAuthoredContents:
|
|
90
|
+
description: Document Authored Content List
|
|
91
|
+
type: array
|
|
92
|
+
items:
|
|
93
|
+
type: object
|
|
94
|
+
objectReferences:
|
|
95
|
+
description: ObjectReferences List
|
|
96
|
+
type: array
|
|
97
|
+
items:
|
|
98
|
+
type: object
|
|
99
|
+
reviewers:
|
|
100
|
+
description: Metadata of document reviewers
|
|
101
|
+
type: array
|
|
102
|
+
items:
|
|
103
|
+
type: object
|
|
104
|
+
ExternalDocumentOutputRepresentation:
|
|
105
|
+
description: Output representation for External Document
|
|
106
|
+
type: object
|
|
107
|
+
properties:
|
|
108
|
+
contentVersionId:
|
|
109
|
+
description: The ID for the Salesforce Content Version
|
|
110
|
+
type: string
|
|
111
|
+
externalDocumentId:
|
|
112
|
+
description: The ID for the external document
|
|
113
|
+
type: string
|
|
114
|
+
externalUserId:
|
|
115
|
+
description: The ID for the external user
|
|
116
|
+
type: string
|
|
117
|
+
referenceObject:
|
|
118
|
+
description: The api name for Salesforce Reference Object
|
|
119
|
+
type: string
|
|
120
|
+
referenceObjectId:
|
|
121
|
+
description: The ID for the Salesforce Reference Object
|
|
122
|
+
type: string
|
|
123
|
+
url:
|
|
124
|
+
description: The url to access the external document
|
|
125
|
+
type: string
|
|
126
|
+
ExternalDocumentUsersListOutputRepresentation:
|
|
127
|
+
description: Output representation for External Document Users
|
|
128
|
+
type: object
|
|
129
|
+
properties:
|
|
130
|
+
code:
|
|
131
|
+
description: API code
|
|
132
|
+
type: string
|
|
133
|
+
required: false
|
|
134
|
+
message:
|
|
135
|
+
description: API message
|
|
136
|
+
type: string
|
|
137
|
+
required: false
|
|
138
|
+
users:
|
|
139
|
+
description: External document users
|
|
140
|
+
type: array
|
|
141
|
+
items:
|
|
142
|
+
type: ExternalDocumentUsersOutputRepresentation
|
|
143
|
+
ExternalDocumentUsersOutputRepresentation:
|
|
144
|
+
description: Output representation for External Document Users
|
|
145
|
+
type: object
|
|
146
|
+
properties:
|
|
147
|
+
displayName:
|
|
148
|
+
description: The displayName of the external document user
|
|
149
|
+
type: string
|
|
150
|
+
documentUserId:
|
|
151
|
+
description: The ID of the external document user
|
|
152
|
+
type: string
|
|
153
|
+
email:
|
|
154
|
+
description: The Email of the external document user
|
|
155
|
+
type: string
|
|
156
|
+
ObjectReferenceRepresentation:
|
|
157
|
+
description: Input representation of objectReference
|
|
158
|
+
type: object
|
|
159
|
+
properties:
|
|
160
|
+
documentAuthoredContentIdentifier:
|
|
161
|
+
description: DocumentAuthoredContentIdentifier
|
|
162
|
+
type: string
|
|
163
|
+
objectId:
|
|
164
|
+
description: ObjectId
|
|
165
|
+
type: string
|
|
166
|
+
objectType:
|
|
167
|
+
description: ObjectType
|
|
168
|
+
type: string
|
|
169
|
+
usages:
|
|
170
|
+
description: Usages
|
|
171
|
+
type: object
|
|
172
|
+
ParentContentRepresentation:
|
|
173
|
+
description: Input representation of parent content
|
|
174
|
+
type: object
|
|
175
|
+
properties:
|
|
176
|
+
documentAuthoredContentIdentifier:
|
|
177
|
+
description: DocumentAuthoredContentIdentifier
|
|
178
|
+
type: string
|
|
179
|
+
objectId:
|
|
180
|
+
description: ObjectId
|
|
181
|
+
type: string
|
|
182
|
+
objectType:
|
|
183
|
+
description: ObjectType
|
|
184
|
+
type: string
|
|
185
|
+
ReviewerRepresentation:
|
|
186
|
+
description: Input representation of a reviewer
|
|
187
|
+
type: object
|
|
188
|
+
properties:
|
|
189
|
+
externalUserConsentUpdate:
|
|
190
|
+
description: Update in user consent for storing data in SF
|
|
191
|
+
type: string
|
|
192
|
+
reviewStatus:
|
|
193
|
+
description: Review Status
|
|
194
|
+
type: string
|
|
195
|
+
reviewerId:
|
|
196
|
+
description: Reviewer Id
|
|
197
|
+
type: string
|
|
198
|
+
unresolvedCommentsCount:
|
|
199
|
+
description: No. of unresolved comments by the reviewer
|
|
200
|
+
type: integer
|
|
201
|
+
SaveExternalDocumentInputRepresentation:
|
|
202
|
+
description: Input representation to save external document to salesforce
|
|
203
|
+
type: object
|
|
204
|
+
properties:
|
|
205
|
+
externalDocumentId:
|
|
206
|
+
description: External Document ID
|
|
207
|
+
type: string
|
|
208
|
+
isAsync:
|
|
209
|
+
description: Is Async
|
|
210
|
+
type: boolean
|
|
211
|
+
metadata:
|
|
212
|
+
description: Metadata
|
|
213
|
+
type: object
|
|
214
|
+
SaveExternalDocumentRepresentation:
|
|
215
|
+
description: Output representation for Save External Document
|
|
216
|
+
type: object
|
|
217
|
+
properties:
|
|
218
|
+
id:
|
|
219
|
+
description: The ID for the external document
|
|
220
|
+
type: string
|
|
221
|
+
isSuccess:
|
|
222
|
+
description: The isSuccess flag for SaveExternalDocument
|
|
223
|
+
type: boolean
|
|
224
|
+
message:
|
|
225
|
+
description: The response message for SaveExternalDocument
|
|
226
|
+
type: string
|
|
227
|
+
required: false
|
|
228
|
+
# TODO Hand-Rolled due to issue #28 in Generated RAML Gaps
|
|
229
|
+
ExternalDocCreationInputRepresentationWrapper:
|
|
230
|
+
description: Wrapper for ExternalDocCreationInputRepresentation
|
|
231
|
+
type: object
|
|
232
|
+
properties:
|
|
233
|
+
createExternalDocumentInput:
|
|
234
|
+
type: ExternalDocCreationInputRepresentation
|
|
235
|
+
description: Input representation to get external document creation
|
|
236
|
+
# TODO Hand-Rolled due to issue #28 in Generated RAML Gaps
|
|
237
|
+
SaveExternalDocumentInputRepresentationWrapper:
|
|
238
|
+
description: Wrapper for SaveExternalDocumentInputRepresentation
|
|
239
|
+
type: object
|
|
240
|
+
properties:
|
|
241
|
+
saveExternalDocumentInput:
|
|
242
|
+
type: SaveExternalDocumentInputRepresentation
|
|
243
|
+
description: Input representation to save external document update
|
|
244
|
+
UsagesRepresentation:
|
|
245
|
+
description: Input representation of usages
|
|
246
|
+
type: object
|
|
247
|
+
properties:
|
|
248
|
+
parentContents:
|
|
249
|
+
description: parent contents
|
|
250
|
+
type: array
|
|
251
|
+
items:
|
|
252
|
+
type: object
|
|
253
|
+
standAloneContent:
|
|
254
|
+
description: standAloneContent
|
|
255
|
+
type: boolean
|
|
256
|
+
/connect:
|
|
257
|
+
/external-document:
|
|
258
|
+
get:
|
|
259
|
+
displayName: getExternalDocument
|
|
260
|
+
description: Get the external document to salesforce
|
|
261
|
+
responses:
|
|
262
|
+
'200':
|
|
263
|
+
description: Success
|
|
264
|
+
body:
|
|
265
|
+
application/json:
|
|
266
|
+
type: ExternalDocumentOutputRepresentation
|
|
267
|
+
queryParameters:
|
|
268
|
+
externalDocumentId:
|
|
269
|
+
type: string
|
|
270
|
+
required: false
|
|
271
|
+
refObjectId:
|
|
272
|
+
type: string
|
|
273
|
+
required: false
|
|
274
|
+
post:
|
|
275
|
+
displayName: postExternalDocument
|
|
276
|
+
description: Create a new External Document
|
|
277
|
+
responses:
|
|
278
|
+
'200':
|
|
279
|
+
description: Success
|
|
280
|
+
body:
|
|
281
|
+
application/json:
|
|
282
|
+
type: ExternalDocCreationOutputRepresentation
|
|
283
|
+
body:
|
|
284
|
+
application/json:
|
|
285
|
+
# TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
286
|
+
type: ExternalDocCreationInputRepresentationWrapper
|
|
287
|
+
# TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
288
|
+
# required: false
|
|
289
|
+
(oas-body-name): createExternalDocumentInput
|
|
290
|
+
/external-document/save:
|
|
291
|
+
put:
|
|
292
|
+
displayName: putExternalDocumentSave
|
|
293
|
+
description: Saves the external document to salesforce
|
|
294
|
+
responses:
|
|
295
|
+
'200':
|
|
296
|
+
description: Success
|
|
297
|
+
body:
|
|
298
|
+
application/json:
|
|
299
|
+
type: SaveExternalDocumentRepresentation
|
|
300
|
+
body:
|
|
301
|
+
application/json:
|
|
302
|
+
# TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
|
|
303
|
+
type: SaveExternalDocumentInputRepresentationWrapper
|
|
304
|
+
# TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
|
|
305
|
+
# required: false
|
|
306
|
+
(oas-body-name): saveExternalDocumentInput
|
|
307
|
+
/external-document/users:
|
|
308
|
+
get:
|
|
309
|
+
displayName: getExternalDocumentUsers
|
|
310
|
+
description: Get the external document users
|
|
311
|
+
responses:
|
|
312
|
+
'200':
|
|
313
|
+
description: Success
|
|
314
|
+
body:
|
|
315
|
+
application/json:
|
|
316
|
+
type: ExternalDocumentUsersListOutputRepresentation
|
|
317
|
+
queryParameters:
|
|
318
|
+
externalDocumentId:
|
|
319
|
+
type: string
|
|
320
|
+
required: false
|
|
321
|
+
startsWith:
|
|
322
|
+
type: string
|
|
323
|
+
required: false
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
uses:
|
|
4
|
+
luvio: luvio://annotations.raml
|
|
5
|
+
(luvio.keyPrefix): 'ExternalDocument'
|
|
6
|
+
(luvio.ttl): 360000
|
|
7
|
+
types:
|
|
8
|
+
ExternalDocCreationInputRepresentation:
|
|
9
|
+
(luvio.ttl): 60000
|
|
10
|
+
(luvio.opaque): true
|
|
11
|
+
ExternalDocumentMetadataRepresentation:
|
|
12
|
+
(luvio.ttl): 60000
|
|
13
|
+
(luvio.opaque): true
|
|
14
|
+
ObjectReferenceRepresentation:
|
|
15
|
+
(luvio.ttl): 60000
|
|
16
|
+
(luvio.opaque): true
|
|
17
|
+
SaveExternalDocumentInputRepresentation:
|
|
18
|
+
(luvio.ttl): 60000
|
|
19
|
+
(luvio.opaque): true
|
|
20
|
+
SaveExternalDocumentRepresentation:
|
|
21
|
+
(luvio.ttl): 60000
|
|
22
|
+
(luvio.opaque): true
|
|
23
|
+
(luvio.key):
|
|
24
|
+
id: id
|
|
25
|
+
ExternalDocCreationOutputRepresentation:
|
|
26
|
+
(luvio.ttl): 60000
|
|
27
|
+
(luvio.opaque): true
|
|
28
|
+
(luvio.key):
|
|
29
|
+
isSuccess: isSuccess
|
|
30
|
+
ExternalDocumentOutputRepresentation:
|
|
31
|
+
(luvio.ttl): 60000
|
|
32
|
+
(luvio.opaque): true
|
|
33
|
+
ExternalDocumentUsersListOutputRepresentation:
|
|
34
|
+
(luvio.ttl): 60000
|
|
35
|
+
(luvio.opaque): true
|
|
36
|
+
ExternalDocumentUsersOutputRepresentation:
|
|
37
|
+
(luvio.ttl): 60000
|
|
38
|
+
(luvio.opaque): true
|
|
39
|
+
ReviewerRepresentation:
|
|
40
|
+
(luvio.ttl): 60000
|
|
41
|
+
(luvio.opaque): true
|
|
42
|
+
DocumentAuthoredContentRepresentation:
|
|
43
|
+
(luvio.ttl): 60000
|
|
44
|
+
(luvio.opaque): true
|
|
45
|
+
ParentContentRepresentation:
|
|
46
|
+
(luvio.ttl): 60000
|
|
47
|
+
(luvio.opaque): true
|
|
48
|
+
UsagesRepresentation:
|
|
49
|
+
(luvio.ttl): 60000
|
|
50
|
+
(luvio.opaque): true
|
|
51
|
+
/connect/external-document:
|
|
52
|
+
get:
|
|
53
|
+
(luvio.adapter):
|
|
54
|
+
name: getExternalDocument
|
|
55
|
+
oneOfParams:
|
|
56
|
+
- externalDocumentId
|
|
57
|
+
- refObjectId
|
|
58
|
+
post:
|
|
59
|
+
(luvio.adapter):
|
|
60
|
+
name: createExternalDocument
|
|
61
|
+
/connect/external-document/save:
|
|
62
|
+
put:
|
|
63
|
+
(luvio.adapter):
|
|
64
|
+
name: saveExternalDocument
|
|
65
|
+
/connect/external-document/users:
|
|
66
|
+
get:
|
|
67
|
+
(luvio.adapter):
|
|
68
|
+
name: getExternalDocumentUsers
|
|
69
|
+
queryParameters:
|
|
70
|
+
externalDocumentId:
|
|
71
|
+
type: string
|
|
72
|
+
required: false
|
|
73
|
+
startsWith:
|
|
74
|
+
type: string
|
|
75
|
+
required: false
|