@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,52 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const TTL = 500;
3
+ export declare const VERSION = "d84cbbcfb2e0034e415ba1a37ff4e0fc";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: IdpConfigurationInputRepresentation, existing: IdpConfigurationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpConfigurationInputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: IdpConfigurationInputRepresentationNormalized, incoming: IdpConfigurationInputRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpConfigurationInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * The input representation for Idp Configuration
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface IdpConfigurationInputRepresentationNormalized {
18
+ /** Activated/Deactivated */
19
+ activationStatus: string;
20
+ /** The description of the IDP configuration to be created */
21
+ description: string;
22
+ /** The specs for the file types supported by the IDP process to be created */
23
+ fileConfig: {
24
+ /** List of file formats that are supported by the IDP process to be created */
25
+ fileTypes: Array<string>;
26
+ };
27
+ /** The label of the IDP configuration to be created */
28
+ label: string;
29
+ /** The ML model used to extract the unstructured data */
30
+ mlModel: string;
31
+ /** The API name of the IDP configuration to be created */
32
+ name: string;
33
+ /** The schema of the data to be extracted */
34
+ schemaConfig: string;
35
+ }
36
+ /**
37
+ * The input representation for Idp Configuration
38
+ *
39
+ * Keys:
40
+ * (none)
41
+ */
42
+ export interface IdpConfigurationInputRepresentation {
43
+ activationStatus: string;
44
+ description: string;
45
+ fileConfig: {
46
+ fileTypes: Array<string>;
47
+ };
48
+ label: string;
49
+ mlModel: string;
50
+ name: string;
51
+ schemaConfig: string;
52
+ }
@@ -0,0 +1,26 @@
1
+ import { IdpConfigurationBaseRepresentation as IdpConfigurationBaseRepresentation_IdpConfigurationBaseRepresentation } from './IdpConfigurationBaseRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "77a57892a6929e841d84339a3a78cdd0";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: IdpConfigurationRepresentation, existing: IdpConfigurationRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpConfigurationRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: IdpConfigurationRepresentationNormalized, incoming: IdpConfigurationRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpConfigurationRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Idp Configuration Representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface IdpConfigurationRepresentationNormalized extends IdpConfigurationBaseRepresentation_IdpConfigurationBaseRepresentation {
18
+ }
19
+ /**
20
+ * Idp Configuration Representation
21
+ *
22
+ * Keys:
23
+ * (none)
24
+ */
25
+ export interface IdpConfigurationRepresentation extends IdpConfigurationBaseRepresentation_IdpConfigurationBaseRepresentation {
26
+ }
@@ -0,0 +1,31 @@
1
+ import { CdpPaginatedResponseBaseRepresentation as CdpPaginatedResponseBaseRepresentation_CdpPaginatedResponseBaseRepresentation } from './CdpPaginatedResponseBaseRepresentation';
2
+ import { IdpConfigurationRepresentation as IdpConfigurationRepresentation_IdpConfigurationRepresentation } from './IdpConfigurationRepresentation';
3
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const TTL = 500;
5
+ export declare const VERSION = "def7e7ee61e636c86d017097ba5ad643";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export declare function normalize(input: IdpConfigurationsCollectionRepresentation, existing: IdpConfigurationsCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpConfigurationsCollectionRepresentationNormalized;
9
+ export declare const select: () => $64$luvio_engine_BaseFragment;
10
+ export declare function equals(existing: IdpConfigurationsCollectionRepresentationNormalized, incoming: IdpConfigurationsCollectionRepresentationNormalized): boolean;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpConfigurationsCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
13
+ /**
14
+ * Idp Configuration Collection Representation
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface IdpConfigurationsCollectionRepresentationNormalized extends CdpPaginatedResponseBaseRepresentation_CdpPaginatedResponseBaseRepresentation {
20
+ /** The IDP configuration records in the current page */
21
+ configurations: Array<$64$luvio_engine_StoreLink>;
22
+ }
23
+ /**
24
+ * Idp Configuration Collection Representation
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface IdpConfigurationsCollectionRepresentation extends CdpPaginatedResponseBaseRepresentation_CdpPaginatedResponseBaseRepresentation {
30
+ configurations: Array<IdpConfigurationRepresentation_IdpConfigurationRepresentation>;
31
+ }
@@ -0,0 +1,38 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const TTL = 500;
3
+ export declare const VERSION = "3898470434fb25794903f01c252663f5";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: IdpContentTypeRepresentation, existing: IdpContentTypeRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpContentTypeRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: IdpContentTypeRepresentationNormalized, incoming: IdpContentTypeRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpContentTypeRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Idp Content Type Representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface IdpContentTypeRepresentationNormalized {
18
+ /** If this value by default */
19
+ isDefault: boolean;
20
+ /** The display name of the file type */
21
+ label: string;
22
+ /** Max size of the file in mega bytes */
23
+ maxFileSizeInMB: number;
24
+ /** The file type */
25
+ type: string;
26
+ }
27
+ /**
28
+ * Idp Content Type Representation
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface IdpContentTypeRepresentation {
34
+ isDefault: boolean;
35
+ label: string;
36
+ maxFileSizeInMB: number;
37
+ type: string;
38
+ }
@@ -0,0 +1,40 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const TTL = 500;
3
+ export declare const VERSION = "e68644da0e8d0f3687c60af293106dba";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: IdpExtractDataInputRepresentation, existing: IdpExtractDataInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpExtractDataInputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: IdpExtractDataInputRepresentationNormalized, incoming: IdpExtractDataInputRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpExtractDataInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * The extract data input representation for Idp Configuration
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface IdpExtractDataInputRepresentationNormalized {
18
+ /** The list of unstructured source files to extract the schema from */
19
+ files: Array<{
20
+ /** documentVersionId of the selected file */
21
+ fileId: string;
22
+ }>;
23
+ /** The ID of the ML model to use for schema extraction */
24
+ mlModel: string;
25
+ /** The schema of the data to be extracted */
26
+ schemaConfig: string;
27
+ }
28
+ /**
29
+ * The extract data input representation for Idp Configuration
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface IdpExtractDataInputRepresentation {
35
+ files: Array<{
36
+ fileId: string;
37
+ }>;
38
+ mlModel: string;
39
+ schemaConfig: string;
40
+ }
@@ -0,0 +1,39 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ import { IdpExtractedFileDataRepresenation as IdpExtractedFileDataRepresenation_IdpExtractedFileDataRepresenation } from './IdpExtractedFileDataRepresenation';
3
+ export declare const TTL = 1200000;
4
+ export declare const VERSION = "b84ee34ba86306d907f22040f581479c";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: IdpExtractedDataRepresentation, existing: IdpExtractedDataRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpExtractedDataRepresentationNormalized;
8
+ export interface DynamicIngestParams {
9
+ data: $64$luvio_engine_ResourceIngest;
10
+ }
11
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: IdpExtractedDataRepresentation, existing: IdpExtractedDataRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => IdpExtractedDataRepresentationNormalized;
12
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
13
+ export interface DynamicSelectParams {
14
+ data?: $64$luvio_engine_LinkSelection;
15
+ }
16
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: IdpExtractedDataRepresentationNormalized, incoming: IdpExtractedDataRepresentationNormalized): boolean;
18
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
19
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpExtractedDataRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
21
+ /**
22
+ * Idp Extracted Data Representation
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface IdpExtractedDataRepresentationNormalized {
28
+ /** List of extraction result for every file */
29
+ data: Array<$64$luvio_engine_StoreLink>;
30
+ }
31
+ /**
32
+ * Idp Extracted Data Representation
33
+ *
34
+ * Keys:
35
+ * (none)
36
+ */
37
+ export interface IdpExtractedDataRepresentation {
38
+ data: Array<IdpExtractedFileDataRepresenation_IdpExtractedFileDataRepresenation>;
39
+ }
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "fd5a71c6b42febaf6ada5e5a2c32c8f6";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: IdpExtractedFileDataRepresenation, existing: IdpExtractedFileDataRepresenationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpExtractedFileDataRepresenationNormalized;
6
+ export declare const select: () => $64$luvio_engine_BaseFragment;
7
+ export declare function equals(existing: IdpExtractedFileDataRepresenationNormalized, incoming: IdpExtractedFileDataRepresenationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpExtractedFileDataRepresenation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Idp Extracted Data Representation for a specific file
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface IdpExtractedFileDataRepresenationNormalized {
17
+ /** Extracted JSON data */
18
+ data: string;
19
+ /** Error message if data extraction fails */
20
+ error: string | null;
21
+ }
22
+ /**
23
+ * Idp Extracted Data Representation for a specific file
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface IdpExtractedFileDataRepresenation {
29
+ data: string;
30
+ error: string | null;
31
+ }
@@ -0,0 +1,29 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const TTL = 500;
3
+ export declare const VERSION = "59313cd5875e66499c5ab72ff9e6bc4d";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: IdpFileConfigRepresentation, existing: IdpFileConfigRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpFileConfigRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: IdpFileConfigRepresentationNormalized, incoming: IdpFileConfigRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpFileConfigRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * The representation of the specs for the file types supported by the IDP process
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface IdpFileConfigRepresentationNormalized {
18
+ /** List of file formats that are supported by the IDP process to be created */
19
+ fileTypes: Array<string>;
20
+ }
21
+ /**
22
+ * The representation of the specs for the file types supported by the IDP process
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface IdpFileConfigRepresentation {
28
+ fileTypes: Array<string>;
29
+ }
@@ -0,0 +1,37 @@
1
+ import { IdpContentTypeRepresentation as IdpContentTypeRepresentation_IdpContentTypeRepresentation } from './IdpContentTypeRepresentation';
2
+ import { IdpSupportedModelRepresentation as IdpSupportedModelRepresentation_IdpSupportedModelRepresentation } from './IdpSupportedModelRepresentation';
3
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const TTL = 500;
5
+ export declare const VERSION = "bdf0262770f9e912af6b77a807f4d804";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export declare function normalize(input: IdpGlobalConfigRepresentation, existing: IdpGlobalConfigRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpGlobalConfigRepresentationNormalized;
9
+ export declare const select: () => $64$luvio_engine_BaseFragment;
10
+ export declare function equals(existing: IdpGlobalConfigRepresentationNormalized, incoming: IdpGlobalConfigRepresentationNormalized): boolean;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpGlobalConfigRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
13
+ /**
14
+ * Idp Global Config Representation
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface IdpGlobalConfigRepresentationNormalized {
20
+ /** All content types currently supported for unstructured data extraction */
21
+ supportedContentTypes: Array<$64$luvio_engine_StoreLink>;
22
+ /** Models currently supported for unstructured data extraction */
23
+ supportedModels: Array<$64$luvio_engine_StoreLink>;
24
+ /** The version of the config schema */
25
+ version: string;
26
+ }
27
+ /**
28
+ * Idp Global Config Representation
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface IdpGlobalConfigRepresentation {
34
+ supportedContentTypes: Array<IdpContentTypeRepresentation_IdpContentTypeRepresentation>;
35
+ supportedModels: Array<IdpSupportedModelRepresentation_IdpSupportedModelRepresentation>;
36
+ version: string;
37
+ }
@@ -0,0 +1,41 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const TTL = 500;
3
+ export declare const VERSION = "a13dd90a6e7a2b61e4103cbd4a113291";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: IdpSupportedModelRepresentation, existing: IdpSupportedModelRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpSupportedModelRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: IdpSupportedModelRepresentationNormalized, incoming: IdpSupportedModelRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpSupportedModelRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Idp Supported Model Representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface IdpSupportedModelRepresentationNormalized {
18
+ /** The ID of the model */
19
+ id: string;
20
+ /** If it is default */
21
+ isDefault: boolean;
22
+ /** The display name of the model */
23
+ label: string;
24
+ /** E.g. Open AI */
25
+ provider: string;
26
+ /** E.g. ENABLED, DISABLED */
27
+ status: string;
28
+ }
29
+ /**
30
+ * Idp Supported Model Representation
31
+ *
32
+ * Keys:
33
+ * (none)
34
+ */
35
+ export interface IdpSupportedModelRepresentation {
36
+ id: string;
37
+ isDefault: boolean;
38
+ label: string;
39
+ provider: string;
40
+ status: string;
41
+ }
@@ -0,0 +1,32 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectKeys: {
3
+ (o: object): string[];
4
+ (o: {}): string[];
5
+ }, ObjectCreate: {
6
+ (o: object | null): any;
7
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
8
+ }, ObjectAssign: {
9
+ <T extends {}, U>(target: T, source: U): T & U;
10
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
11
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
12
+ (target: object, ...sources: any[]): any;
13
+ };
14
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
15
+ export declare const JSONStringify: {
16
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
17
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
18
+ };
19
+ type AllowedPrimitives = boolean | string | number | Date | null;
20
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
21
+ export type RecursivePartial<T> = null | {
22
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
23
+ };
24
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
25
+ export declare function equalsObject<U, V extends {
26
+ [key: string]: U;
27
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
28
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
29
+ __ref: string;
30
+ };
31
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
32
+ export {};
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-cdp-document-processing",
3
+ "version": "1.355.0",
4
+ "description": "",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/cdp-document-processing.js",
7
+ "module": "dist/es/es2018/cdp-document-processing.js",
8
+ "types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "sfdc",
12
+ "src/raml/*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
17
+ "import": "./dist/es/es2018/cdp-document-processing.js",
18
+ "require": "./dist/es/es2018/cdp-document-processing.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sfdc": {
27
+ "namespace": "lightning",
28
+ "module": "cdpDocumentProcessingApi"
29
+ },
30
+ "contributors": [
31
+ "ddeviprasad@salesforce.com",
32
+ "ankushbansal@salesforce.com"
33
+ ],
34
+ "scripts": {
35
+ "build": "yarn build:services",
36
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
37
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
38
+ "clean": "rm -rf dist sfdc src/generated",
39
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-cdp-document-processing",
40
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-cdp-document-processing",
41
+ "test:unit": "jest",
42
+ "test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
43
+ },
44
+ "dependencies": {
45
+ "@salesforce/lds-bindings": "^1.355.0"
46
+ },
47
+ "devDependencies": {
48
+ "@salesforce/lds-compiler-plugins": "^1.355.0"
49
+ },
50
+ "nx": {
51
+ "targets": {
52
+ "build": {
53
+ "outputs": [
54
+ "{projectRoot}/dist",
55
+ "{projectRoot}/sfdc"
56
+ ]
57
+ },
58
+ "build:raml": {
59
+ "outputs": [
60
+ "{projectRoot}/src/generated"
61
+ ]
62
+ }
63
+ }
64
+ },
65
+ "volta": {
66
+ "extends": "../../package.json"
67
+ }
68
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';