@salesforce/lds-adapters-industries-nlpservice 0.1.0-dev1

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/industries-nlpservice.js +888 -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/createAINaturalLangProcessResult.d.ts +16 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getAINaturalLangProcessResultsByReferenceRecordId.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getAINaturalLangProcessResultsBySourceId.d.ts +28 -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 +6 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectNlpServiceAiNaturalLangProcessResultsReferenceRecordsByReferenceRecordId.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectNlpServiceAiNaturalLangProcessResultsSourceRecordsBySourceRecordId.d.ts +18 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectNlpServiceAiNaturalLangProcessResults.d.ts +13 -0
  12. package/dist/es/es2018/types/src/generated/types/AINaturalLangProcessResultCollectionRepresentation.d.ts +30 -0
  13. package/dist/es/es2018/types/src/generated/types/AINaturalLangProcessResultInputRepresentation.d.ts +38 -0
  14. package/dist/es/es2018/types/src/generated/types/AINaturalLangProcessResultInputWrapperRepresentation.d.ts +28 -0
  15. package/dist/es/es2018/types/src/generated/types/AINaturalLangProcessResultRepresentation.d.ts +60 -0
  16. package/dist/es/es2018/types/src/generated/types/AWSEntityRepresentation.d.ts +32 -0
  17. package/dist/es/es2018/types/src/generated/types/AWSEntityStructRepresentation.d.ts +40 -0
  18. package/dist/es/es2018/types/src/generated/types/AWSKeyPhraseRepresentation.d.ts +32 -0
  19. package/dist/es/es2018/types/src/generated/types/AWSKeyPhraseStructRepresentation.d.ts +37 -0
  20. package/dist/es/es2018/types/src/generated/types/AdditionalInformationRepresentation.d.ts +31 -0
  21. package/dist/es/es2018/types/src/generated/types/AdditionalParametersInputMap.d.ts +28 -0
  22. package/dist/es/es2018/types/src/generated/types/ClauseStructRepresentation.d.ts +31 -0
  23. package/dist/es/es2018/types/src/generated/types/ComplianceClauseStructRepresentation.d.ts +31 -0
  24. package/dist/es/es2018/types/src/generated/types/EntityStructRepresentation.d.ts +31 -0
  25. package/dist/es/es2018/types/src/generated/types/ErrorRepresentation.d.ts +31 -0
  26. package/dist/es/es2018/types/src/generated/types/NullableAdditionalParametersInputMap.d.ts +27 -0
  27. package/dist/es/es2018/types/src/generated/types/OpenAIClauseRepresentation.d.ts +32 -0
  28. package/dist/es/es2018/types/src/generated/types/OpenAIComplianceClauseRepresentation.d.ts +32 -0
  29. package/dist/es/es2018/types/src/generated/types/OpenAIEntityRepresentation.d.ts +32 -0
  30. package/dist/es/es2018/types/src/generated/types/OpenAISurveyGenerationRepresentation.d.ts +32 -0
  31. package/dist/es/es2018/types/src/generated/types/OpenAITranslationGenerationRepresentation.d.ts +32 -0
  32. package/dist/es/es2018/types/src/generated/types/SurveyStructRepresentation.d.ts +40 -0
  33. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  34. package/package.json +74 -0
  35. package/sfdc/index.d.ts +1 -0
  36. package/sfdc/index.js +944 -0
  37. package/src/raml/api.raml +404 -0
  38. package/src/raml/luvio.raml +33 -0
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "71cad74815b660110a21668565163bc6";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ClauseStructRepresentation, existing: ClauseStructRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ClauseStructRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ClauseStructRepresentationNormalized, incoming: ClauseStructRepresentationNormalized): 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: ClauseStructRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Details of a Clause
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ClauseStructRepresentationNormalized {
17
+ /** The name of the Clause */
18
+ clauseName: string;
19
+ /** The text in the Clause */
20
+ clauseText: string;
21
+ }
22
+ /**
23
+ * Details of a Clause
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ClauseStructRepresentation {
29
+ clauseName: string;
30
+ clauseText: string;
31
+ }
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "49f120efb5f31f545db6f9bcd90deb93";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ComplianceClauseStructRepresentation, existing: ComplianceClauseStructRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ComplianceClauseStructRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ComplianceClauseStructRepresentationNormalized, incoming: ComplianceClauseStructRepresentationNormalized): 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: ComplianceClauseStructRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Details of a Clause
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ComplianceClauseStructRepresentationNormalized {
17
+ /** The name of the Clause */
18
+ clauseName: string;
19
+ /** The text in the Clause */
20
+ clauseText: string;
21
+ }
22
+ /**
23
+ * Details of a Clause
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ComplianceClauseStructRepresentation {
29
+ clauseName: string;
30
+ clauseText: string;
31
+ }
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "4074cb9dc54f670abcb77cc4de83f223";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: EntityStructRepresentation, existing: EntityStructRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EntityStructRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: EntityStructRepresentationNormalized, incoming: EntityStructRepresentationNormalized): 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: EntityStructRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Details of an entity
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface EntityStructRepresentationNormalized {
17
+ /** The name of the entity */
18
+ entityName: string;
19
+ /** The list of entities */
20
+ entityValues: Array<string>;
21
+ }
22
+ /**
23
+ * Details of an entity
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface EntityStructRepresentation {
29
+ entityName: string;
30
+ entityValues: Array<string>;
31
+ }
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "00afa7e60a8201c64074ac5356795a7d";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ErrorRepresentation, existing: ErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ErrorRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ErrorRepresentationNormalized, incoming: ErrorRepresentationNormalized): 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: ErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents clause results fetched from OpenAI
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ErrorRepresentationNormalized {
17
+ /** Represents error code */
18
+ errorCode: number;
19
+ /** Represents error message */
20
+ errorMessage: string;
21
+ }
22
+ /**
23
+ * Represents clause results fetched from OpenAI
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ErrorRepresentation {
29
+ errorCode: number;
30
+ errorMessage: string;
31
+ }
@@ -0,0 +1,27 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "b175ba6bc288736f40f6c4f59fab798c";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: NullableAdditionalParametersInputMap, existing: NullableAdditionalParametersInputMapNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NullableAdditionalParametersInputMapNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: NullableAdditionalParametersInputMapNormalized, incoming: NullableAdditionalParametersInputMapNormalized): 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: NullableAdditionalParametersInputMap, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Wrapper for Nullable Map Object.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface NullableAdditionalParametersInputMapNormalized {
17
+ [key: string]: unknown;
18
+ }
19
+ /**
20
+ * Wrapper for Nullable Map Object.
21
+ *
22
+ * Keys:
23
+ * (none)
24
+ */
25
+ export interface NullableAdditionalParametersInputMap {
26
+ [key: string]: unknown;
27
+ }
@@ -0,0 +1,32 @@
1
+ import { ClauseStructRepresentation as ClauseStructRepresentation_ClauseStructRepresentation } from './ClauseStructRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "af7bedd692003949c78b7e8f653b2e7f";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: OpenAIClauseRepresentation, existing: OpenAIClauseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OpenAIClauseRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: OpenAIClauseRepresentationNormalized, incoming: OpenAIClauseRepresentationNormalized): 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: OpenAIClauseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents clause results fetched from OpenAI
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface OpenAIClauseRepresentationNormalized {
18
+ /** Represents a list of clauses */
19
+ clauseResults: Array<ClauseStructRepresentation_ClauseStructRepresentation>;
20
+ /** Represents total number of clauses */
21
+ totalResults: number;
22
+ }
23
+ /**
24
+ * Represents clause results fetched from OpenAI
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface OpenAIClauseRepresentation {
30
+ clauseResults: Array<ClauseStructRepresentation_ClauseStructRepresentation>;
31
+ totalResults: number;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { ComplianceClauseStructRepresentation as ComplianceClauseStructRepresentation_ComplianceClauseStructRepresentation } from './ComplianceClauseStructRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "b2dec0281061c3a53c87cfa76113a973";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: OpenAIComplianceClauseRepresentation, existing: OpenAIComplianceClauseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OpenAIComplianceClauseRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: OpenAIComplianceClauseRepresentationNormalized, incoming: OpenAIComplianceClauseRepresentationNormalized): 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: OpenAIComplianceClauseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents clause results fetched from OpenAI
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface OpenAIComplianceClauseRepresentationNormalized {
18
+ /** Represents a list of clauses */
19
+ clauseResults: Array<ComplianceClauseStructRepresentation_ComplianceClauseStructRepresentation>;
20
+ /** Represents total number of clauses */
21
+ totalResults: number;
22
+ }
23
+ /**
24
+ * Represents clause results fetched from OpenAI
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface OpenAIComplianceClauseRepresentation {
30
+ clauseResults: Array<ComplianceClauseStructRepresentation_ComplianceClauseStructRepresentation>;
31
+ totalResults: number;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { EntityStructRepresentation as EntityStructRepresentation_EntityStructRepresentation } from './EntityStructRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "9c911033914a93f8b0ccf0918543eab5";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: OpenAIEntityRepresentation, existing: OpenAIEntityRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OpenAIEntityRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: OpenAIEntityRepresentationNormalized, incoming: OpenAIEntityRepresentationNormalized): 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: OpenAIEntityRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents entity results fetched from OpenAI
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface OpenAIEntityRepresentationNormalized {
18
+ /** Represents a list of entities */
19
+ entityResults: Array<EntityStructRepresentation_EntityStructRepresentation>;
20
+ /** Represents total number of entities */
21
+ totalResults: number;
22
+ }
23
+ /**
24
+ * Represents entity results fetched from OpenAI
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface OpenAIEntityRepresentation {
30
+ entityResults: Array<EntityStructRepresentation_EntityStructRepresentation>;
31
+ totalResults: number;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { SurveyStructRepresentation as SurveyStructRepresentation_SurveyStructRepresentation } from './SurveyStructRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "2be0b5c65b2e7d8a86ccb3827fa81c10";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: OpenAISurveyGenerationRepresentation, existing: OpenAISurveyGenerationRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OpenAISurveyGenerationRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: OpenAISurveyGenerationRepresentationNormalized, incoming: OpenAISurveyGenerationRepresentationNormalized): 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: OpenAISurveyGenerationRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents survey generationr results from OpenAI
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface OpenAISurveyGenerationRepresentationNormalized {
18
+ /** Represents the total count of survey questions */
19
+ questionCount: number;
20
+ /** Represents a list of survey questions */
21
+ questions: Array<SurveyStructRepresentation_SurveyStructRepresentation>;
22
+ }
23
+ /**
24
+ * Represents survey generationr results from OpenAI
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface OpenAISurveyGenerationRepresentation {
30
+ questionCount: number;
31
+ questions: Array<SurveyStructRepresentation_SurveyStructRepresentation>;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "bff35839d4a7e00b6bee1a9d95d79205";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: OpenAITranslationGenerationRepresentation, existing: OpenAITranslationGenerationRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OpenAITranslationGenerationRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: OpenAITranslationGenerationRepresentationNormalized, incoming: OpenAITranslationGenerationRepresentationNormalized): 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: OpenAITranslationGenerationRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents survey generation results from OpenAI
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface OpenAITranslationGenerationRepresentationNormalized {
17
+ /** Represents the output map of the translated content */
18
+ translatedContent: {
19
+ [key: string]: string;
20
+ };
21
+ }
22
+ /**
23
+ * Represents survey generation results from OpenAI
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface OpenAITranslationGenerationRepresentation {
29
+ translatedContent: {
30
+ [key: string]: string;
31
+ };
32
+ }
@@ -0,0 +1,40 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "82568a3fb0ce245db4c8ff3daf3d32cf";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: SurveyStructRepresentation, existing: SurveyStructRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SurveyStructRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: SurveyStructRepresentationNormalized, incoming: SurveyStructRepresentationNormalized): 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: SurveyStructRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Contents within a survey question
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface SurveyStructRepresentationNormalized {
17
+ /** List of question choices */
18
+ questionChoices: Array<string>;
19
+ /** The question description */
20
+ questionDescription: string;
21
+ /** The question label */
22
+ questionLabel: string;
23
+ /** Generated question type */
24
+ questionType: string;
25
+ /** Is question required */
26
+ required: boolean;
27
+ }
28
+ /**
29
+ * Contents within a survey question
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface SurveyStructRepresentation {
35
+ questionChoices: Array<string>;
36
+ questionDescription: string;
37
+ questionLabel: string;
38
+ questionType: string;
39
+ required: boolean;
40
+ }
@@ -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,74 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-industries-nlpservice",
3
+ "version": "0.1.0-dev1",
4
+ "description": "Ai Natural Language Processing Service",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/industries-nlpservice.js",
7
+ "module": "dist/es/es2018/industries-nlpservice.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/industries-nlpservice.js",
18
+ "require": "./dist/es/es2018/industries-nlpservice.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": "industriesNlpserviceApi"
29
+ },
30
+ "contributors": [
31
+ "industries-einstein-hyd@salesforce.com"
32
+ ],
33
+ "scripts": {
34
+ "build": "yarn build:services",
35
+ "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
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 karma/dist",
39
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-nlpservice",
40
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-industries-nlpservice",
41
+ "start": "nx build:karma && karma start",
42
+ "test": "nx build:karma && karma start --single-run"
43
+ },
44
+ "dependencies": {
45
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
46
+ },
47
+ "devDependencies": {
48
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
49
+ "@salesforce/lds-karma": "^0.1.0-dev1"
50
+ },
51
+ "nx": {
52
+ "targets": {
53
+ "build": {
54
+ "outputs": [
55
+ "{projectRoot}/dist",
56
+ "{projectRoot}/sfdc"
57
+ ]
58
+ },
59
+ "build:raml": {
60
+ "outputs": [
61
+ "{projectRoot}/src/generated"
62
+ ]
63
+ },
64
+ "build:karma": {
65
+ "outputs": [
66
+ "{projectRoot}/karma/dist"
67
+ ]
68
+ }
69
+ }
70
+ },
71
+ "volta": {
72
+ "extends": "../../package.json"
73
+ }
74
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';