@salesforce/lds-adapters-industries-externaldocument 0.131.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.
Files changed (26) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-externaldocument.js +801 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/es/es2018/types/src/generated/adapters/createExternalDocument.d.ts +15 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getExternalDocument.d.ts +27 -0
  6. package/dist/es/es2018/types/src/generated/adapters/saveExternalDocument.d.ts +15 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectExternalDocument.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/resources/postConnectExternalDocument.d.ts +13 -0
  11. package/dist/es/es2018/types/src/generated/resources/putConnectExternalDocumentSave.d.ts +13 -0
  12. package/dist/es/es2018/types/src/generated/types/ExternalDocCreationInputRepresentation.d.ts +39 -0
  13. package/dist/es/es2018/types/src/generated/types/ExternalDocCreationInputRepresentationWrapper.d.ts +39 -0
  14. package/dist/es/es2018/types/src/generated/types/ExternalDocCreationOutputRepresentation.d.ts +48 -0
  15. package/dist/es/es2018/types/src/generated/types/ExternalDocumentMetadataRepresentation.d.ts +30 -0
  16. package/dist/es/es2018/types/src/generated/types/ExternalDocumentOutputRepresentation.d.ts +45 -0
  17. package/dist/es/es2018/types/src/generated/types/ObjectReferenceRepresentation.d.ts +33 -0
  18. package/dist/es/es2018/types/src/generated/types/SaveExternalDocumentInputRepresentation.d.ts +36 -0
  19. package/dist/es/es2018/types/src/generated/types/SaveExternalDocumentInputRepresentationWrapper.d.ts +39 -0
  20. package/dist/es/es2018/types/src/generated/types/SaveExternalDocumentRepresentation.d.ts +45 -0
  21. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
  22. package/package.json +67 -0
  23. package/sfdc/index.d.ts +1 -0
  24. package/sfdc/index.js +842 -0
  25. package/src/raml/api.raml +193 -0
  26. package/src/raml/luvio.raml +50 -0
@@ -0,0 +1,193 @@
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
+ ExternalDocumentOutputRepresentation:
73
+ description: Output representation for External Document
74
+ type: object
75
+ properties:
76
+ contentVersionId:
77
+ description: The ID for the Salesforce Content Version
78
+ type: string
79
+ externalDocumentId:
80
+ description: The ID for the external document
81
+ type: string
82
+ externalUserId:
83
+ description: The ID for the external user
84
+ type: string
85
+ referenceObject:
86
+ description: The api name for Salesforce Reference Object
87
+ type: string
88
+ referenceObjectId:
89
+ description: The ID for the Salesforce Reference Object
90
+ type: string
91
+ url:
92
+ description: The url to access the external document
93
+ type: string
94
+ ObjectReferenceRepresentation:
95
+ description: Input representation of objectReference
96
+ type: object
97
+ properties:
98
+ objectId:
99
+ description: ObjectId
100
+ type: string
101
+ objectType:
102
+ description: ObjectType
103
+ type: string
104
+ SaveExternalDocumentInputRepresentation:
105
+ description: Input representation to save external document to salesforce
106
+ type: object
107
+ properties:
108
+ externalDocumentId:
109
+ description: External Document ID
110
+ type: string
111
+ isAsync:
112
+ description: Is Async
113
+ type: boolean
114
+ metadata:
115
+ description: Metadata
116
+ type: object
117
+ SaveExternalDocumentRepresentation:
118
+ description: Output representation for Save External Document
119
+ type: object
120
+ properties:
121
+ id:
122
+ description: The ID for the external document
123
+ type: string
124
+ isSuccess:
125
+ description: The isSuccess flag for SaveExternalDocument
126
+ type: boolean
127
+ message:
128
+ description: The response message for SaveExternalDocument
129
+ type: string
130
+ required: false
131
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps
132
+ ExternalDocCreationInputRepresentationWrapper:
133
+ description: Wrapper for ExternalDocCreationInputRepresentation
134
+ type: object
135
+ properties:
136
+ createExternalDocumentInput:
137
+ type: ExternalDocCreationInputRepresentation
138
+ description: Input representation to get external document creation
139
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps
140
+ SaveExternalDocumentInputRepresentationWrapper:
141
+ description: Wrapper for SaveExternalDocumentInputRepresentation
142
+ type: object
143
+ properties:
144
+ saveExternalDocumentInput:
145
+ type: SaveExternalDocumentInputRepresentation
146
+ description: Input representation to save external document update
147
+ /connect/external-document:
148
+ get:
149
+ description: Get the external document to salesforce
150
+ responses:
151
+ '200':
152
+ description: Success
153
+ body:
154
+ application/json:
155
+ type: ExternalDocumentOutputRepresentation
156
+ queryParameters:
157
+ externalDocumentId:
158
+ type: string
159
+ required: false
160
+ refObjectId:
161
+ type: string
162
+ required: false
163
+ post:
164
+ description: Create a new External Document
165
+ responses:
166
+ '200':
167
+ description: Success
168
+ body:
169
+ application/json:
170
+ type: ExternalDocCreationOutputRepresentation
171
+ body:
172
+ application/json:
173
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
174
+ type: ExternalDocCreationInputRepresentationWrapper
175
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
176
+ # required: false
177
+ (oas-body-name): createExternalDocumentInput
178
+ /connect/external-document/save:
179
+ put:
180
+ description: Saves the external document to salesforce
181
+ responses:
182
+ '200':
183
+ description: Success
184
+ body:
185
+ application/json:
186
+ type: SaveExternalDocumentRepresentation
187
+ body:
188
+ application/json:
189
+ # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
190
+ type: SaveExternalDocumentInputRepresentationWrapper
191
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
192
+ # required: false
193
+ (oas-body-name): saveExternalDocumentInput
@@ -0,0 +1,50 @@
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
+ /connect/external-document:
34
+ get:
35
+ (luvio.adapter):
36
+ name: getExternalDocument
37
+ queryParameters:
38
+ externalDocumentId:
39
+ type: string
40
+ required: false
41
+ refObjectId:
42
+ type: string
43
+ required: false
44
+ post:
45
+ (luvio.adapter):
46
+ name: createExternalDocument
47
+ /connect/external-document/save:
48
+ put:
49
+ (luvio.adapter):
50
+ name: saveExternalDocument