@salesforce/lds-adapters-cdp-document-processing 1.355.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 (38) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/cdp-document-processing.js +1671 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/createIdpConfiguration.d.ts +23 -0
  5. package/dist/es/es2018/types/src/generated/adapters/deleteIdpConfiguration.d.ts +14 -0
  6. package/dist/es/es2018/types/src/generated/adapters/extractDataUsingIdpConfiguration.d.ts +31 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getIdpConfiguration.d.ts +28 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getIdpConfigurations.d.ts +31 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getIdpGlobalConfig.d.ts +26 -0
  10. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
  11. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +12 -0
  12. package/dist/es/es2018/types/src/generated/resources/deleteSsotDocumentProcessingConfigurationsByIdOrApiName.d.ts +12 -0
  13. package/dist/es/es2018/types/src/generated/resources/getSsotDocumentProcessingConfigurations.d.ts +19 -0
  14. package/dist/es/es2018/types/src/generated/resources/getSsotDocumentProcessingConfigurationsByIdOrApiName.d.ts +16 -0
  15. package/dist/es/es2018/types/src/generated/resources/getSsotDocumentProcessingGlobalConfig.d.ts +12 -0
  16. package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingActionsExtractData.d.ts +19 -0
  17. package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingConfigurations.d.ts +20 -0
  18. package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +49 -0
  19. package/dist/es/es2018/types/src/generated/types/CdpPaginatedResponseBaseRepresentation.d.ts +35 -0
  20. package/dist/es/es2018/types/src/generated/types/CdpUserRepresentation.d.ts +34 -0
  21. package/dist/es/es2018/types/src/generated/types/IdpConfigurationBaseRepresentation.d.ts +47 -0
  22. package/dist/es/es2018/types/src/generated/types/IdpConfigurationDetailsRepresentation.d.ts +41 -0
  23. package/dist/es/es2018/types/src/generated/types/IdpConfigurationInputRepresentation.d.ts +52 -0
  24. package/dist/es/es2018/types/src/generated/types/IdpConfigurationRepresentation.d.ts +26 -0
  25. package/dist/es/es2018/types/src/generated/types/IdpConfigurationsCollectionRepresentation.d.ts +31 -0
  26. package/dist/es/es2018/types/src/generated/types/IdpContentTypeRepresentation.d.ts +38 -0
  27. package/dist/es/es2018/types/src/generated/types/IdpExtractDataInputRepresentation.d.ts +40 -0
  28. package/dist/es/es2018/types/src/generated/types/IdpExtractedDataRepresentation.d.ts +39 -0
  29. package/dist/es/es2018/types/src/generated/types/IdpExtractedFileDataRepresenation.d.ts +31 -0
  30. package/dist/es/es2018/types/src/generated/types/IdpFileConfigRepresentation.d.ts +29 -0
  31. package/dist/es/es2018/types/src/generated/types/IdpGlobalConfigRepresentation.d.ts +37 -0
  32. package/dist/es/es2018/types/src/generated/types/IdpSupportedModelRepresentation.d.ts +41 -0
  33. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  34. package/package.json +68 -0
  35. package/sfdc/index.d.ts +1 -0
  36. package/sfdc/index.js +1798 -0
  37. package/src/raml/api.raml +377 -0
  38. package/src/raml/luvio.raml +90 -0
@@ -0,0 +1,377 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '64.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v64.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
+ CdpUserRepresentation:
29
+ description: Represents a user
30
+ type: object
31
+ properties:
32
+ id:
33
+ description: The 18 character user ID
34
+ type: string
35
+ name:
36
+ description: The name of the user
37
+ type: string
38
+ profilePhotoUrl:
39
+ description: The Chatter profile photo of the user
40
+ type: string
41
+ CdpAssetBaseRepresentation:
42
+ description: Represents a base Asset
43
+ type: object
44
+ discriminator: id
45
+ properties:
46
+ createdBy:
47
+ description: Created by
48
+ type: any
49
+ createdDate:
50
+ description: Created date
51
+ type: string
52
+ id:
53
+ description: The 18 character ID of the asset
54
+ type: string
55
+ label:
56
+ description: Label of the asset
57
+ type: string
58
+ lastModifiedBy:
59
+ description: Last modified by
60
+ type: any
61
+ lastModifiedDate:
62
+ description: Last modified date
63
+ type: string
64
+ name:
65
+ description: Name of the asset
66
+ type: string
67
+ url:
68
+ description: Url
69
+ type: any
70
+ CdpPaginatedResponseBaseRepresentation:
71
+ description: Base paginated response representation
72
+ type: object
73
+ discriminator: totalSize
74
+ properties:
75
+ currentPageUrl:
76
+ description: Current page url
77
+ type: string | nil
78
+ nextPageUrl:
79
+ description: Next page url if it exists
80
+ type: string | nil
81
+ totalSize:
82
+ description: Total size of collection
83
+ type: integer
84
+ IdpConfigurationBaseRepresentation:
85
+ description: Idp Configuration Base Representation
86
+ type: CdpAssetBaseRepresentation
87
+ discriminator: version
88
+ properties:
89
+ activationStatus:
90
+ description: IDP Configuration Activation Status (Activated - Deactivated)
91
+ type: string
92
+ enum:
93
+ - Activated
94
+ - Deactivated
95
+ dataspace:
96
+ description: IDP Configuration Data Space
97
+ type: any
98
+ description:
99
+ description: IDP Configuration Description
100
+ type: string | nil
101
+ mlModel:
102
+ description: The ML model used to extract the unstructured data
103
+ type: string
104
+ runtimeStatus:
105
+ description: 'What is the status of the last off-core unstructured data-extraction
106
+ job run. Possible values: Success - Failed - InProgress - Aborted - NotStarted
107
+ - Pending - Submitted - Ready'
108
+ type: string
109
+ enum:
110
+ - Aborted
111
+ - Failed
112
+ - InProgress
113
+ - NotStarted
114
+ - Pending
115
+ - Ready
116
+ - Submitted
117
+ - Success
118
+ status:
119
+ description: 'Whether the latest version of this IDP configuration has been
120
+ synced to off-core. Possible values: Syncing - Synced - NotSynced - Error'
121
+ type: string
122
+ enum:
123
+ - Error
124
+ - NotSynced
125
+ - Synced
126
+ - Syncing
127
+ version:
128
+ description: The current version of the IDP configuration, this is incremented
129
+ automatically with every edit
130
+ type: string
131
+ IdpConfigurationDetailsRepresentation:
132
+ description: Idp Configuration Details Representation
133
+ type: object
134
+ properties:
135
+ schemaConfig:
136
+ description: The schema of the data to be extracted
137
+ type: string | nil
138
+ name:
139
+ description: name of config
140
+ type: string
141
+ IdpConfigurationInputRepresentation:
142
+ description: The input representation for Idp Configuration
143
+ type: object
144
+ properties:
145
+ activationStatus:
146
+ description: Activated/Deactivated
147
+ type: string
148
+ enum:
149
+ - Activated
150
+ - Deactivated
151
+ description:
152
+ description: The description of the IDP configuration to be created
153
+ type: string
154
+ fileConfig:
155
+ description: The specs for the file types supported by the IDP process to
156
+ be created
157
+ type: object
158
+ properties:
159
+ fileTypes:
160
+ description: List of file formats that are supported by the IDP process to be created
161
+ type: array
162
+ items:
163
+ type: string
164
+ label:
165
+ description: The label of the IDP configuration to be created
166
+ type: string
167
+ mlModel:
168
+ description: The ML model used to extract the unstructured data
169
+ type: string
170
+ name:
171
+ description: The API name of the IDP configuration to be created
172
+ type: string
173
+ schemaConfig:
174
+ description: The schema of the data to be extracted
175
+ type: string
176
+ IdpConfigurationRepresentation:
177
+ description: Idp Configuration Representation
178
+ type: IdpConfigurationBaseRepresentation
179
+ properties: {}
180
+ IdpConfigurationsCollectionRepresentation:
181
+ description: Idp Configuration Collection Representation
182
+ type: CdpPaginatedResponseBaseRepresentation
183
+ properties:
184
+ configurations:
185
+ description: The IDP configuration records in the current page
186
+ type: array
187
+ items:
188
+ type: IdpConfigurationRepresentation
189
+ IdpContentTypeRepresentation:
190
+ description: Idp Content Type Representation
191
+ type: object
192
+ properties:
193
+ isDefault:
194
+ description: If this value by default
195
+ type: boolean
196
+ label:
197
+ description: The display name of the file type
198
+ type: string
199
+ maxFileSizeInMB:
200
+ description: Max size of the file in mega bytes
201
+ type: integer
202
+ type:
203
+ description: The file type
204
+ type: string
205
+ IdpFileConfigRepresentation:
206
+ description: The representation of the specs for the file types supported by the
207
+ IDP process
208
+ type: object
209
+ properties:
210
+ fileTypes:
211
+ description: List of file formats that are supported by the IDP process to
212
+ be created
213
+ type: array
214
+ items:
215
+ type: string
216
+ IdpGlobalConfigRepresentation:
217
+ description: Idp Global Config Representation
218
+ type: object
219
+ properties:
220
+ supportedContentTypes:
221
+ description: All content types currently supported for unstructured data extraction
222
+ type: array
223
+ items:
224
+ type: IdpContentTypeRepresentation
225
+ supportedModels:
226
+ description: Models currently supported for unstructured data extraction
227
+ type: array
228
+ items:
229
+ type: IdpSupportedModelRepresentation
230
+ version:
231
+ description: The version of the config schema
232
+ type: string
233
+ IdpSupportedModelRepresentation:
234
+ description: Idp Supported Model Representation
235
+ type: object
236
+ properties:
237
+ id:
238
+ description: The ID of the model
239
+ type: string
240
+ isDefault:
241
+ description: If it is default
242
+ type: boolean
243
+ label:
244
+ description: The display name of the model
245
+ type: string
246
+ provider:
247
+ description: E.g. Open AI
248
+ type: string
249
+ status:
250
+ description: E.g. ENABLED, DISABLED
251
+ type: string
252
+ IdpExtractDataInputRepresentation:
253
+ description: The extract data input representation for Idp Configuration
254
+ type: object
255
+ properties:
256
+ files:
257
+ description: The list of unstructured source files to extract the schema from
258
+ type: array
259
+ items:
260
+ type: object
261
+ properties:
262
+ fileId:
263
+ description: documentVersionId of the selected file
264
+ type: string
265
+ mlModel:
266
+ description: The ID of the ML model to use for schema extraction
267
+ type: string
268
+ schemaConfig:
269
+ description: The schema of the data to be extracted
270
+ type: string
271
+ IdpExtractedDataRepresentation:
272
+ description: Idp Extracted Data Representation
273
+ type: object
274
+ properties:
275
+ data:
276
+ description: 'List of extraction result for every file '
277
+ type: array
278
+ items:
279
+ type: IdpExtractedFileDataRepresenation
280
+ IdpExtractedFileDataRepresenation:
281
+ description: Idp Extracted Data Representation for a specific file
282
+ type: object
283
+ properties:
284
+ data:
285
+ description: Extracted JSON data
286
+ type: string
287
+ error:
288
+ description: Error message if data extraction fails
289
+ type: string | nil
290
+ /ssot/document-processing:
291
+ /configurations:
292
+ get:
293
+ displayName: getIdpConfigurations
294
+ description: Get all intelligent document processing configurations
295
+ responses:
296
+ '200':
297
+ description: Success
298
+ body:
299
+ application/json:
300
+ type: IdpConfigurationsCollectionRepresentation
301
+ queryParameters:
302
+ activationStatus:
303
+ type: string
304
+ required: false
305
+ enum:
306
+ - Activated
307
+ - Deactivated
308
+ limit:
309
+ type: integer
310
+ required: false
311
+ offset:
312
+ type: integer
313
+ required: false
314
+ orderBy:
315
+ description: eg. Label DESC
316
+ type: string
317
+ required: false
318
+ search:
319
+ type: string
320
+ required: false
321
+ post:
322
+ displayName: createIdpConfiguration
323
+ description: Create idp configuration
324
+ responses:
325
+ '200':
326
+ description: Success
327
+ body:
328
+ application/json:
329
+ type: IdpConfigurationDetailsRepresentation
330
+ body:
331
+ application/json:
332
+ type: IdpConfigurationInputRepresentation
333
+ (oas-body-name): createIdpConfigurationRecord
334
+ /configurations/{idOrApiName}:
335
+ delete:
336
+ displayName: deleteIdpConfiguration
337
+ description: delete an idp configuration record
338
+ responses:
339
+ '200':
340
+ description: Success
341
+ get:
342
+ displayName: getIdpConfiguration
343
+ description: get the details of a specific idp configuration record
344
+ responses:
345
+ '200':
346
+ description: Success
347
+ body:
348
+ application/json:
349
+ type: IdpConfigurationDetailsRepresentation
350
+ uriParameters:
351
+ idOrApiName:
352
+ type: string
353
+ required: true
354
+ /global-config:
355
+ get:
356
+ displayName: getIdpGlobalConfig
357
+ description: get the details of idp global config
358
+ responses:
359
+ '200':
360
+ description: Success
361
+ body:
362
+ application/json:
363
+ type: IdpGlobalConfigRepresentation
364
+ /actions/extract-data:
365
+ post:
366
+ displayName: extractDataUsingIdpConfiguration
367
+ description: extract data from idp configuration
368
+ responses:
369
+ '200':
370
+ description: Success
371
+ body:
372
+ application/json:
373
+ type: IdpExtractedDataRepresentation
374
+ body:
375
+ application/json:
376
+ type: IdpExtractDataInputRepresentation
377
+ (oas-body-name): extractDataUsingIdpConfiguration
@@ -0,0 +1,90 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'document-processing'
8
+
9
+ types:
10
+ IdpSupportedModelRepresentation:
11
+ (luvio.ttl): 500
12
+ (luvio.opaque): true
13
+
14
+ IdpConfigurationRepresentation:
15
+ (luvio.opaque): true
16
+
17
+ IdpConfigurationBaseRepresentation:
18
+ (luvio.opaque): true
19
+
20
+ IdpFileConfigRepresentation:
21
+ (luvio.ttl): 500
22
+ (luvio.opaque): true
23
+
24
+ IdpContentTypeRepresentation:
25
+ (luvio.ttl): 500
26
+ (luvio.opaque): true
27
+
28
+ IdpGlobalConfigRepresentation:
29
+ (luvio.ttl): 500
30
+ (luvio.opaque): true
31
+
32
+ CdpPaginatedResponseBaseRepresentation:
33
+ (luvio.ttl): 500
34
+ (luvio.opaque): true
35
+
36
+ IdpConfigurationsCollectionRepresentation:
37
+ (luvio.opaque): true
38
+
39
+ IdpConfigurationInputRepresentation:
40
+ (luvio.ttl): 500
41
+ (luvio.opaque): true
42
+
43
+ IdpConfigurationDetailsRepresentation:
44
+ (luvio.ttl): 500
45
+ (luvio.key):
46
+ name: name
47
+
48
+ IdpExtractDataInputRepresentation:
49
+ (luvio.ttl): 500
50
+ (luvio.opaque): true
51
+
52
+ IdpExtractedDataRepresentation:
53
+ (luvio.ttl): 1200000
54
+
55
+ IdpExtractedFileDataRepresenation:
56
+ (luvio.opaque): true
57
+
58
+ /ssot/document-processing:
59
+ /configurations:
60
+ get:
61
+ (luvio.adapter):
62
+ name: getIdpConfigurations
63
+
64
+ post:
65
+ (luvio.adapter):
66
+ name: createIdpConfiguration
67
+
68
+ /configurations/{idOrApiName}:
69
+ delete:
70
+ (luvio.adapter):
71
+ name: deleteIdpConfiguration
72
+ (luvio.key):
73
+ name: urlParams.idOrApiName
74
+
75
+ get:
76
+ (luvio.adapter):
77
+ name: getIdpConfiguration
78
+ (luvio.key):
79
+ name: urlParams.idOrApiName
80
+
81
+ /global-config:
82
+ get:
83
+ (luvio.adapter):
84
+ name: getIdpGlobalConfig
85
+
86
+ /actions/extract-data:
87
+ post:
88
+ (luvio.adapter):
89
+ name: extractDataUsingIdpConfiguration
90
+ (luvio.method): get