@salesforce/lds-adapters-industries-filebased-dataimport 1.247.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/industries-filebased-dataimport.js +1219 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getFileBasedDataImports.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/adapters/getGetCsvPreview.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/startAdvanceImport.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/startSimpleImport.d.ts +18 -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/getConnectIndustriesFileBasedDataImports.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectIndustriesFileBasedDataImportsPreviewByFileBasedImportId.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectIndustriesFileBasedDataImportsAdvanceImport.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectIndustriesFileBasedDataImportsSimpleImport.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/CsvPreviewOutputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/FieldConfigurationInputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/FileBasedDataImportByUserResultRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/FileBasedDataImportRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/FileImportInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/FileImportOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/ImportOperationInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ImportOptionsInputRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +68 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1269 -0
- package/src/raml/api.raml +252 -0
- package/src/raml/luvio.raml +50 -0
|
@@ -0,0 +1,252 @@
|
|
|
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
|
+
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
|
+
FieldConfigurationInputRepresentation:
|
|
29
|
+
description: Input representation of the field configurations from CSV columns
|
|
30
|
+
to Salesforce Object Columns for the Data Import Job
|
|
31
|
+
type: object
|
|
32
|
+
properties:
|
|
33
|
+
isLookupRelationship:
|
|
34
|
+
description: To identify wether it is a lookup relationship
|
|
35
|
+
type: boolean
|
|
36
|
+
required: false
|
|
37
|
+
relatedFieldName:
|
|
38
|
+
description: The name of the field of the object of the lookup relationship.
|
|
39
|
+
type: string
|
|
40
|
+
required: false
|
|
41
|
+
relatedObjectName:
|
|
42
|
+
description: The name of the object where the lookup needs to be performed
|
|
43
|
+
for this entity field
|
|
44
|
+
type: string
|
|
45
|
+
required: false
|
|
46
|
+
sourceColumnName:
|
|
47
|
+
description: The name of the column of the source content for this mapping
|
|
48
|
+
definition
|
|
49
|
+
type: string
|
|
50
|
+
required: false
|
|
51
|
+
targetFieldName:
|
|
52
|
+
description: The field name of the targeted import object for this mapping
|
|
53
|
+
definition
|
|
54
|
+
type: string
|
|
55
|
+
required: false
|
|
56
|
+
FileImportInputRepresentation:
|
|
57
|
+
description: Input representation of payload for File Based Data Import Use Case
|
|
58
|
+
type: object
|
|
59
|
+
properties:
|
|
60
|
+
importReferenceId:
|
|
61
|
+
description: The id of the file based data import functionality entity
|
|
62
|
+
type: string
|
|
63
|
+
options:
|
|
64
|
+
description: The Options and configurations of the import job
|
|
65
|
+
type: ImportOptionsInputRepresentation
|
|
66
|
+
required: false
|
|
67
|
+
targetContext:
|
|
68
|
+
description: The target context of import be it a object or a import template
|
|
69
|
+
type: string
|
|
70
|
+
FileImportOutputRepresentation:
|
|
71
|
+
description: Output representation of a File Based Import Job
|
|
72
|
+
type: object
|
|
73
|
+
properties:
|
|
74
|
+
statusCode:
|
|
75
|
+
description: The status code of the Start Import Job API
|
|
76
|
+
type: string
|
|
77
|
+
statusMessage:
|
|
78
|
+
description: The status message of the Start Import Job API
|
|
79
|
+
type: string
|
|
80
|
+
ImportOperationInputRepresentation:
|
|
81
|
+
description: Input representation of operations for File Based Import Case
|
|
82
|
+
type: object
|
|
83
|
+
properties:
|
|
84
|
+
operationType:
|
|
85
|
+
description: The operation type of the import job
|
|
86
|
+
type: string
|
|
87
|
+
required: false
|
|
88
|
+
uniqueFields:
|
|
89
|
+
description: The unique fields of the object on which Update or upsert kind
|
|
90
|
+
of operations are to be performed
|
|
91
|
+
type: array
|
|
92
|
+
required: false
|
|
93
|
+
items:
|
|
94
|
+
type: string
|
|
95
|
+
ImportOptionsInputRepresentation:
|
|
96
|
+
description: Input representation of Options for File Based Import
|
|
97
|
+
type: object
|
|
98
|
+
properties:
|
|
99
|
+
delimiter:
|
|
100
|
+
description: The delimiter of the source content document
|
|
101
|
+
type: string
|
|
102
|
+
required: false
|
|
103
|
+
eol:
|
|
104
|
+
description: The End of Line character for the file used for import
|
|
105
|
+
type: string
|
|
106
|
+
required: false
|
|
107
|
+
fieldConfigurations:
|
|
108
|
+
description: The list of field configurations
|
|
109
|
+
type: array
|
|
110
|
+
required: false
|
|
111
|
+
items:
|
|
112
|
+
type: FieldConfigurationInputRepresentation
|
|
113
|
+
operation:
|
|
114
|
+
description: The operation type of the import job
|
|
115
|
+
type: ImportOperationInputRepresentation
|
|
116
|
+
required: false
|
|
117
|
+
FileBasedDataImportByUserResultRepresentation:
|
|
118
|
+
description: Output representation file based data imports as per user context
|
|
119
|
+
type: object
|
|
120
|
+
properties:
|
|
121
|
+
isAdminUser:
|
|
122
|
+
description: True if user has admin role
|
|
123
|
+
type: boolean
|
|
124
|
+
fileBasedDataImportRepresentations:
|
|
125
|
+
description: The file based data import response
|
|
126
|
+
type: array
|
|
127
|
+
items:
|
|
128
|
+
type: FileBasedDataImportRepresentation
|
|
129
|
+
FileBasedDataImportRepresentation:
|
|
130
|
+
description: File based Data import Entity output representation
|
|
131
|
+
type: object
|
|
132
|
+
properties:
|
|
133
|
+
jobIdentifier?:
|
|
134
|
+
description: jobIdentifier
|
|
135
|
+
type: string
|
|
136
|
+
targetContext?:
|
|
137
|
+
description: targetContext
|
|
138
|
+
type: string
|
|
139
|
+
failedRecordsCount?:
|
|
140
|
+
description: FailedRecordsCount
|
|
141
|
+
type: integer
|
|
142
|
+
fileBasedImportType?:
|
|
143
|
+
description: FileBasedImportType
|
|
144
|
+
type: string
|
|
145
|
+
enum:
|
|
146
|
+
- ADVANCED
|
|
147
|
+
- SIMPLE
|
|
148
|
+
importOperationType?:
|
|
149
|
+
description: ImportOperationType
|
|
150
|
+
type: string
|
|
151
|
+
enum:
|
|
152
|
+
- INSERT
|
|
153
|
+
- UPDATE
|
|
154
|
+
- UPSERT
|
|
155
|
+
sourceContentDocument:
|
|
156
|
+
description: SourceContentDocument
|
|
157
|
+
type: string
|
|
158
|
+
status:
|
|
159
|
+
description: Status
|
|
160
|
+
type: string
|
|
161
|
+
enum:
|
|
162
|
+
- ABORTED
|
|
163
|
+
- COMPLETED
|
|
164
|
+
- FAILED
|
|
165
|
+
- INPROGRESS
|
|
166
|
+
statusReason?:
|
|
167
|
+
description: StatusReason
|
|
168
|
+
type: string
|
|
169
|
+
successRecordsCount?:
|
|
170
|
+
description: SuccessRecordsCount
|
|
171
|
+
type: integer
|
|
172
|
+
unprocessedRecordsCount?:
|
|
173
|
+
description: UnprocessedRecordsCount
|
|
174
|
+
type: integer
|
|
175
|
+
CsvPreviewOutputRepresentation:
|
|
176
|
+
description: Output representation of CSV Data Preview
|
|
177
|
+
type: object
|
|
178
|
+
properties:
|
|
179
|
+
headers:
|
|
180
|
+
description: List of header
|
|
181
|
+
type: array
|
|
182
|
+
items:
|
|
183
|
+
type: string
|
|
184
|
+
rows:
|
|
185
|
+
description: List of rows data fetched
|
|
186
|
+
type: array
|
|
187
|
+
items:
|
|
188
|
+
type: array
|
|
189
|
+
items:
|
|
190
|
+
type: string
|
|
191
|
+
/connect/industries/fileBasedDataImports:
|
|
192
|
+
get:
|
|
193
|
+
displayName: GetFileBasedDataImportByUser
|
|
194
|
+
description: Api to fetch details related to mulesoft asset from metadata
|
|
195
|
+
responses:
|
|
196
|
+
'200':
|
|
197
|
+
description: Success
|
|
198
|
+
body:
|
|
199
|
+
application/json:
|
|
200
|
+
type: FileBasedDataImportByUserResultRepresentation
|
|
201
|
+
|
|
202
|
+
/advanceImport:
|
|
203
|
+
post:
|
|
204
|
+
displayName: postAdvanceImport
|
|
205
|
+
description: API resource to start Advance data import
|
|
206
|
+
responses:
|
|
207
|
+
'200':
|
|
208
|
+
description: Success
|
|
209
|
+
body:
|
|
210
|
+
application/json:
|
|
211
|
+
type: FileImportOutputRepresentation
|
|
212
|
+
body:
|
|
213
|
+
application/json:
|
|
214
|
+
type: FileImportInputRepresentation
|
|
215
|
+
/simpleImport:
|
|
216
|
+
post:
|
|
217
|
+
displayName: postSimpleImport
|
|
218
|
+
description: API resource to start Simple data import
|
|
219
|
+
responses:
|
|
220
|
+
'200':
|
|
221
|
+
description: Success
|
|
222
|
+
body:
|
|
223
|
+
application/json:
|
|
224
|
+
type: FileImportOutputRepresentation
|
|
225
|
+
body:
|
|
226
|
+
application/json:
|
|
227
|
+
type: FileImportInputRepresentation
|
|
228
|
+
/{fileBasedImportId}:
|
|
229
|
+
/preview:
|
|
230
|
+
get:
|
|
231
|
+
displayName: GetCsvPreview
|
|
232
|
+
description: Api to fetch preview of the csv file upto max 10 rows
|
|
233
|
+
responses:
|
|
234
|
+
'200':
|
|
235
|
+
description: Success
|
|
236
|
+
body:
|
|
237
|
+
application/json:
|
|
238
|
+
type: CsvPreviewOutputRepresentation
|
|
239
|
+
queryParameters:
|
|
240
|
+
delimiter:
|
|
241
|
+
type: string
|
|
242
|
+
required: false
|
|
243
|
+
endOfLine:
|
|
244
|
+
type: string
|
|
245
|
+
required: false
|
|
246
|
+
numberOfRows:
|
|
247
|
+
type: integer
|
|
248
|
+
required: false
|
|
249
|
+
uriParameters:
|
|
250
|
+
fileBasedImportId:
|
|
251
|
+
type: string
|
|
252
|
+
required: true
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'fileBased-dataimport'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
FileImportOutputRepresentation:
|
|
11
|
+
(luvio.ttl): 0
|
|
12
|
+
(luvio.key):
|
|
13
|
+
statusCode: statusCode
|
|
14
|
+
FileBasedDataImportByUserResultRepresentation:
|
|
15
|
+
(luvio.ttl): 0
|
|
16
|
+
CsvPreviewOutputRepresentation:
|
|
17
|
+
(luvio.ttl): 0
|
|
18
|
+
|
|
19
|
+
/connect/industries/fileBasedDataImports:
|
|
20
|
+
get:
|
|
21
|
+
(luvio.adapter):
|
|
22
|
+
name: getFileBasedDataImports
|
|
23
|
+
|
|
24
|
+
/advanceImport:
|
|
25
|
+
post:
|
|
26
|
+
(luvio.adapter):
|
|
27
|
+
name: startAdvanceImport
|
|
28
|
+
|
|
29
|
+
/simpleImport:
|
|
30
|
+
post:
|
|
31
|
+
(luvio.adapter):
|
|
32
|
+
name: startSimpleImport
|
|
33
|
+
|
|
34
|
+
/{fileBasedImportId}:
|
|
35
|
+
/preview:
|
|
36
|
+
get:
|
|
37
|
+
(luvio.adapter):
|
|
38
|
+
name: getGetCsvPreview
|
|
39
|
+
queryParameters:
|
|
40
|
+
delimiter:
|
|
41
|
+
type: string
|
|
42
|
+
required: false
|
|
43
|
+
endOfLine:
|
|
44
|
+
type: string
|
|
45
|
+
required: false
|
|
46
|
+
numberOfRows:
|
|
47
|
+
type: integer
|
|
48
|
+
required: false
|
|
49
|
+
uriParameters:
|
|
50
|
+
fileBasedImportId:
|