@salesforce/lds-adapters-industries-externaldocument 1.100.2

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.
Files changed (30) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-externaldocument.js +801 -0
  3. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/types/src/generated/adapters/createExternalDocument.d.ts +15 -0
  5. package/dist/types/src/generated/adapters/getExternalDocument.d.ts +27 -0
  6. package/dist/types/src/generated/adapters/saveExternalDocument.d.ts +15 -0
  7. package/dist/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/types/src/generated/artifacts/sfdc.d.ts +5 -0
  9. package/dist/types/src/generated/resources/getConnectExternalDocument.d.ts +16 -0
  10. package/dist/types/src/generated/resources/patchConnectExternalDocument.d.ts +13 -0
  11. package/dist/types/src/generated/resources/postConnectExternalDocument.d.ts +13 -0
  12. package/dist/types/src/generated/types/ExternalDocCreationInputRepresentation.d.ts +39 -0
  13. package/dist/types/src/generated/types/ExternalDocCreationInputRepresentationWrapper.d.ts +39 -0
  14. package/dist/types/src/generated/types/ExternalDocCreationOutputRepresentation.d.ts +48 -0
  15. package/dist/types/src/generated/types/ExternalDocumentMetadataRepresentation.d.ts +33 -0
  16. package/dist/types/src/generated/types/ExternalDocumentOutputRepresentation.d.ts +45 -0
  17. package/dist/types/src/generated/types/ObjectReferenceRepresentation.d.ts +36 -0
  18. package/dist/types/src/generated/types/SaveExternalDocumentInputRepresentation.d.ts +36 -0
  19. package/dist/types/src/generated/types/SaveExternalDocumentInputRepresentationWrapper.d.ts +39 -0
  20. package/dist/types/src/generated/types/SaveExternalDocumentRepresentation.d.ts +45 -0
  21. package/dist/types/src/generated/types/SectionRepresentation.d.ts +36 -0
  22. package/dist/types/src/generated/types/UsagesRepresentation.d.ts +33 -0
  23. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  24. package/dist/umd/es2018/industries-externaldocument.js +811 -0
  25. package/dist/umd/es5/industries-externaldocument.js +816 -0
  26. package/package.json +70 -0
  27. package/sfdc/index.d.ts +1 -0
  28. package/sfdc/index.js +842 -0
  29. package/src/raml/api.raml +225 -0
  30. package/src/raml/luvio.raml +55 -0
@@ -0,0 +1,225 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '58.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v58.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
+ ExternalDocCreationInputRepresentation:
29
+ description: Input representation to Create External Document
30
+ type: object
31
+ properties:
32
+ contentVersionId:
33
+ description: Content Version Id of the document using which new external document
34
+ has to be created
35
+ type: string
36
+ documentNamePrefix:
37
+ description: Document Name prefix which is required to name the newly created
38
+ external document
39
+ type: string
40
+ isAsync:
41
+ description: Determines the way the external document get created
42
+ type: string
43
+ refObjectId:
44
+ description: Id of the reference Object. It would be either Document Template
45
+ or Contract ID
46
+ type: string
47
+ ExternalDocCreationOutputRepresentation:
48
+ description: Output representation for Create External Document
49
+ type: object
50
+ properties:
51
+ externalDocumentDetails:
52
+ description: External Document Storage information
53
+ type: object
54
+ isSuccess:
55
+ description: Boolean flag determines if the api is Success
56
+ type: boolean
57
+ message:
58
+ description: Provides a description of the error message in case of failure
59
+ type: string
60
+ ssoLinkUrl:
61
+ description: Provides a description of the error message in case of failure
62
+ type: string
63
+ ExternalDocumentMetadataRepresentation:
64
+ description: Input representation of external document metadata
65
+ type: object
66
+ properties:
67
+ objectReferences:
68
+ description: ObjectReferences List
69
+ type: array
70
+ items:
71
+ type: object
72
+ sections:
73
+ description: Section List
74
+ type: array
75
+ items:
76
+ type: object
77
+ ExternalDocumentOutputRepresentation:
78
+ description: Output representation for External Document
79
+ type: object
80
+ properties:
81
+ contentVersionId:
82
+ description: The ID for the Salesforce Content Version
83
+ type: string
84
+ externalDocumentId:
85
+ description: The ID for the external document
86
+ type: string
87
+ externalUserId:
88
+ description: The ID for the external user
89
+ type: string
90
+ referenceObject:
91
+ description: The api name for Salesforce Reference Object
92
+ type: string
93
+ referenceObjectId:
94
+ description: The ID for the Salesforce Reference Object
95
+ type: string
96
+ url:
97
+ description: The url to access the external document
98
+ type: string
99
+ ObjectReferenceRepresentation:
100
+ description: Input representation of objectReference
101
+ type: object
102
+ properties:
103
+ objectId:
104
+ description: ObjectId
105
+ type: string
106
+ objectType:
107
+ description: ObjectType
108
+ type: string
109
+ usages:
110
+ description: Usages
111
+ type: object
112
+ SaveExternalDocumentInputRepresentation:
113
+ description: Input representation to save external document to salesforce
114
+ type: object
115
+ properties:
116
+ externalDocumentId:
117
+ description: External Document ID
118
+ type: string
119
+ isAsync:
120
+ description: Is Async
121
+ type: boolean
122
+ metadata:
123
+ description: Metadata
124
+ type: object
125
+ SaveExternalDocumentRepresentation:
126
+ description: Output representation for Save External Document
127
+ type: object
128
+ properties:
129
+ id:
130
+ description: The ID for the external document
131
+ type: string
132
+ isSuccess:
133
+ description: The isSuccess flag for SaveExternalDocument
134
+ type: boolean
135
+ message:
136
+ description: The response message for SaveExternalDocument
137
+ type: string
138
+ required: false
139
+ SectionRepresentation:
140
+ description: Input representation of a section
141
+ type: object
142
+ properties:
143
+ guid:
144
+ description: GUID
145
+ type: string
146
+ isReadonly:
147
+ description: IsReadonly
148
+ type: boolean
149
+ name:
150
+ description: Name
151
+ type: string
152
+ UsagesRepresentation:
153
+ description: Input representation of usages
154
+ type: object
155
+ properties:
156
+ sectionIds:
157
+ description: Section GUIDs
158
+ type: array
159
+ items:
160
+ type: string
161
+ usedInDocument:
162
+ description: UsedInDocument
163
+ type: boolean
164
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps
165
+ ExternalDocCreationInputRepresentationWrapper:
166
+ description: Wrapper for ExternalDocCreationInputRepresentation
167
+ type: object
168
+ properties:
169
+ createExternalDocumentInput:
170
+ type: ExternalDocCreationInputRepresentation
171
+ description: Input representation to get external document creation
172
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps
173
+ SaveExternalDocumentInputRepresentationWrapper:
174
+ description: Wrapper for SaveExternalDocumentInputRepresentation
175
+ type: object
176
+ properties:
177
+ saveExternalDocumentInput:
178
+ type: SaveExternalDocumentInputRepresentation
179
+ description: Input representation to save external document update
180
+ /connect/external-document:
181
+ get:
182
+ description: Get the external document to salesforce
183
+ responses:
184
+ '200':
185
+ description: Success
186
+ body:
187
+ application/json:
188
+ type: ExternalDocumentOutputRepresentation
189
+ queryParameters:
190
+ externalDocumentId:
191
+ type: string
192
+ required: false
193
+ refObjectId:
194
+ type: string
195
+ required: false
196
+ patch:
197
+ description: Saves the external document to salesforce
198
+ responses:
199
+ '200':
200
+ description: Success
201
+ body:
202
+ application/json:
203
+ type: SaveExternalDocumentRepresentation
204
+ body:
205
+ application/json:
206
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
207
+ type: SaveExternalDocumentInputRepresentationWrapper
208
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
209
+ # required: false
210
+ (oas-body-name): saveExternalDocumentInput
211
+ post:
212
+ description: Create a new External Document
213
+ responses:
214
+ '200':
215
+ description: Success
216
+ body:
217
+ application/json:
218
+ type: ExternalDocCreationOutputRepresentation
219
+ body:
220
+ application/json:
221
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
222
+ type: ExternalDocCreationInputRepresentationWrapper
223
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
224
+ # required: false
225
+ (oas-body-name): createExternalDocumentInput
@@ -0,0 +1,55 @@
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
+ SectionRepresentation:
21
+ (luvio.ttl): 60000
22
+ (luvio.opaque): true
23
+ UsagesRepresentation:
24
+ (luvio.ttl): 60000
25
+ (luvio.opaque): true
26
+ SaveExternalDocumentRepresentation:
27
+ (luvio.ttl): 60000
28
+ (luvio.opaque): true
29
+ (luvio.key):
30
+ id: id
31
+ ExternalDocCreationOutputRepresentation:
32
+ (luvio.ttl): 60000
33
+ (luvio.opaque): true
34
+ (luvio.key):
35
+ isSuccess: isSuccess
36
+ ExternalDocumentOutputRepresentation:
37
+ (luvio.ttl): 60000
38
+ (luvio.opaque): true
39
+ /connect/external-document:
40
+ get:
41
+ (luvio.adapter):
42
+ name: getExternalDocument
43
+ queryParameters:
44
+ externalDocumentId:
45
+ type: string
46
+ required: false
47
+ refObjectId:
48
+ type: string
49
+ required: false
50
+ post:
51
+ (luvio.adapter):
52
+ name: createExternalDocument
53
+ patch:
54
+ (luvio.adapter):
55
+ name: saveExternalDocument