@salesforce/lds-adapters-service-knowledge-questions 1.366.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 (23) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/service-knowledge-questions.js +1034 -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/getKnowledgeAnswer.d.ts +21 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getKnowledgeQuestionsGen.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/postKnowledgeUpdateQuestion.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/getConnectSelfServiceKnowledgeGetQuestionsByRecordId.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/resources/postConnectSelfServiceKnowledgeAnswer.d.ts +18 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectSelfServiceKnowledgeUpdateQuestionByQuestionId.d.ts +12 -0
  12. package/dist/es/es2018/types/src/generated/types/KnowledgeAnswerInputRepresentation.d.ts +42 -0
  13. package/dist/es/es2018/types/src/generated/types/KnowledgeAnswerRepresentation.d.ts +45 -0
  14. package/dist/es/es2018/types/src/generated/types/KnowledgeQuestionCollectionRepresentation.d.ts +37 -0
  15. package/dist/es/es2018/types/src/generated/types/KnowledgeQuestionRepresentation.d.ts +38 -0
  16. package/dist/es/es2018/types/src/generated/types/KnowledgeUpdateQuestionRepresentation.d.ts +42 -0
  17. package/dist/es/es2018/types/src/generated/types/SSKnowledgeErrorDetailsOutputRepresentation.d.ts +32 -0
  18. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  19. package/package.json +66 -0
  20. package/sfdc/index.d.ts +1 -0
  21. package/sfdc/index.js +1081 -0
  22. package/src/raml/api.raml +162 -0
  23. package/src/raml/luvio.raml +37 -0
@@ -0,0 +1,62 @@
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
2
+ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
+ declare const ObjectKeys: {
4
+ (o: object): string[];
5
+ (o: {}): string[];
6
+ }, ObjectCreate: {
7
+ (o: object | null): any;
8
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
9
+ };
10
+ export { ObjectCreate, ObjectKeys };
11
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
12
+ export declare const ArrayPrototypePush: (...items: any[]) => number;
13
+ export interface AdapterValidationConfig {
14
+ displayName: string;
15
+ parameters: {
16
+ required: string[];
17
+ optional: string[];
18
+ unsupported?: string[];
19
+ };
20
+ }
21
+ /**
22
+ * Validates an adapter config is well-formed.
23
+ * @param config The config to validate.
24
+ * @param adapter The adapter validation configuration.
25
+ * @param oneOf The keys the config must contain at least one of.
26
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
27
+ */
28
+ export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
29
+ export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
30
+ export type UncoercedConfiguration<Base, Options extends {
31
+ [key in keyof Base]?: any;
32
+ }> = {
33
+ [Key in keyof Base]?: Base[Key] | Options[Key];
34
+ };
35
+ export type Untrusted<Base> = Partial<Base>;
36
+ export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
37
+ export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
38
+ export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
39
+ export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
40
+ export declare const snapshotRefreshOptions: {
41
+ overrides: {
42
+ headers: {
43
+ 'Cache-Control': string;
44
+ };
45
+ };
46
+ };
47
+ /**
48
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
49
+ * This is needed because insertion order for JSON.stringify(object) affects output:
50
+ * JSON.stringify({a: 1, b: 2})
51
+ * "{"a":1,"b":2}"
52
+ * JSON.stringify({b: 2, a: 1})
53
+ * "{"b":2,"a":1}"
54
+ * @param data Data to be JSON-stringified.
55
+ * @returns JSON.stringified value with consistent ordering of keys.
56
+ */
57
+ export declare function stableJSONStringify(node: any): string | undefined;
58
+ export declare function getFetchResponseStatusText(status: number): string;
59
+ export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
60
+ export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
61
+ export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
62
+ export declare const keyPrefix = "knowledge-questions";
@@ -0,0 +1,21 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_postConnectSelfServiceKnowledgeAnswer_ResourceRequestConfig } from '../resources/postConnectSelfServiceKnowledgeAnswer';
4
+ import { KnowledgeAnswerRepresentation as types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation } from '../types/KnowledgeAnswerRepresentation';
5
+ export declare const adapterName = "getKnowledgeAnswer";
6
+ export declare const getKnowledgeAnswer_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getKnowledgeAnswer_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetKnowledgeAnswerConfig {
9
+ contextInfo: {
10
+ [key: string]: string;
11
+ };
12
+ metadata: {
13
+ [key: string]: string;
14
+ };
15
+ question: string;
16
+ }
17
+ export declare const createResourceParams: (config: GetKnowledgeAnswerConfig) => resources_postConnectSelfServiceKnowledgeAnswer_ResourceRequestConfig;
18
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetKnowledgeAnswerConfig>): adapter$45$utils_Untrusted<GetKnowledgeAnswerConfig>;
19
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetKnowledgeAnswerConfig | null;
20
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeAnswerConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation, any>>;
21
+ export declare const getKnowledgeAnswerAdapterFactory: $64$luvio_engine_AdapterFactory<GetKnowledgeAnswerConfig, types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation>;
@@ -0,0 +1,28 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_getConnectSelfServiceKnowledgeGetQuestionsByRecordId_ResourceRequestConfig } from '../resources/getConnectSelfServiceKnowledgeGetQuestionsByRecordId';
4
+ import { KnowledgeQuestionCollectionRepresentation as types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation } from '../types/KnowledgeQuestionCollectionRepresentation';
5
+ export declare const adapterName = "getKnowledgeQuestionsGen";
6
+ export declare const getKnowledgeQuestionsGen_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getKnowledgeQuestionsGen_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetKnowledgeQuestionsGenConfig {
9
+ recordId: string;
10
+ maxResults?: number;
11
+ }
12
+ export declare const createResourceParams: (config: GetKnowledgeQuestionsGenConfig) => resources_getConnectSelfServiceKnowledgeGetQuestionsByRecordId_ResourceRequestConfig;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetKnowledgeQuestionsGenConfig>): adapter$45$utils_Untrusted<GetKnowledgeQuestionsGenConfig>;
16
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetKnowledgeQuestionsGenConfig | null;
17
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig): $64$luvio_engine_Fragment;
18
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig): $64$luvio_engine_Snapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, any>;
19
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig, resourceParams: resources_getConnectSelfServiceKnowledgeGetQuestionsByRecordId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, any>>;
20
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig, resourceParams: resources_getConnectSelfServiceKnowledgeGetQuestionsByRecordId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
21
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, any>>;
22
+ export type BuildSnapshotContext = {
23
+ luvio: $64$luvio_engine_Luvio;
24
+ config: GetKnowledgeQuestionsGenConfig;
25
+ };
26
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, any>>;
27
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation>): $64$luvio_engine_Snapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, any>;
28
+ export declare const getKnowledgeQuestionsGenAdapterFactory: $64$luvio_engine_AdapterFactory<GetKnowledgeQuestionsGenConfig, types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation>;
@@ -0,0 +1,15 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_postConnectSelfServiceKnowledgeUpdateQuestionByQuestionId_ResourceRequestConfig } from '../resources/postConnectSelfServiceKnowledgeUpdateQuestionByQuestionId';
4
+ import { KnowledgeUpdateQuestionRepresentation as types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation } from '../types/KnowledgeUpdateQuestionRepresentation';
5
+ export declare const adapterName = "postKnowledgeUpdateQuestion";
6
+ export declare const postKnowledgeUpdateQuestion_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const postKnowledgeUpdateQuestion_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface PostKnowledgeUpdateQuestionConfig {
9
+ questionId: string;
10
+ }
11
+ export declare const createResourceParams: (config: PostKnowledgeUpdateQuestionConfig) => resources_postConnectSelfServiceKnowledgeUpdateQuestionByQuestionId_ResourceRequestConfig;
12
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PostKnowledgeUpdateQuestionConfig>): adapter$45$utils_Untrusted<PostKnowledgeUpdateQuestionConfig>;
13
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PostKnowledgeUpdateQuestionConfig | null;
14
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PostKnowledgeUpdateQuestionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation, any>>;
15
+ export declare const postKnowledgeUpdateQuestionAdapterFactory: $64$luvio_engine_AdapterFactory<PostKnowledgeUpdateQuestionConfig, types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation>;
@@ -0,0 +1,3 @@
1
+ export { getKnowledgeAnswerAdapterFactory } from '../adapters/getKnowledgeAnswer';
2
+ export { getKnowledgeQuestionsGenAdapterFactory } from '../adapters/getKnowledgeQuestionsGen';
3
+ export { postKnowledgeUpdateQuestionAdapterFactory } from '../adapters/postKnowledgeUpdateQuestion';
@@ -0,0 +1,5 @@
1
+ declare let getKnowledgeAnswer: any;
2
+ declare let getKnowledgeQuestionsGen: any;
3
+ declare let postKnowledgeUpdateQuestion: any;
4
+ declare let getKnowledgeQuestionsGen_imperative: any;
5
+ export { getKnowledgeAnswer, getKnowledgeQuestionsGen, postKnowledgeUpdateQuestion, getKnowledgeQuestionsGen_imperative, };
@@ -0,0 +1,18 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { KnowledgeQuestionCollectionRepresentation as types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation } from '../types/KnowledgeQuestionCollectionRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ recordId: string;
6
+ };
7
+ queryParams: {
8
+ maxResults?: number;
9
+ };
10
+ }
11
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation): void;
15
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, any>;
16
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
17
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
+ export default createResourceRequest;
@@ -0,0 +1,18 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { KnowledgeAnswerRepresentation as types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation } from '../types/KnowledgeAnswerRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ contextInfo: {
6
+ [key: string]: string;
7
+ };
8
+ metadata: {
9
+ [key: string]: string;
10
+ };
11
+ question: string;
12
+ };
13
+ }
14
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
15
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation): void;
16
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation, any>;
17
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
+ export default createResourceRequest;
@@ -0,0 +1,12 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { KnowledgeUpdateQuestionRepresentation as types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation } from '../types/KnowledgeUpdateQuestionRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ questionId: string;
6
+ };
7
+ }
8
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
9
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation): void;
10
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation, any>;
11
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
12
+ export default createResourceRequest;
@@ -0,0 +1,42 @@
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 = "f10c55b8559d395ba5104d68d83cb5ee";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: KnowledgeAnswerInputRepresentation, existing: KnowledgeAnswerInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): KnowledgeAnswerInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: KnowledgeAnswerInputRepresentationNormalized, incoming: KnowledgeAnswerInputRepresentationNormalized): 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: KnowledgeAnswerInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents input for getting answer for a question
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface KnowledgeAnswerInputRepresentationNormalized {
17
+ /** Knowledge Context */
18
+ contextInfo: {
19
+ [key: string]: string;
20
+ };
21
+ /** Knowledge Metadata */
22
+ metadata: {
23
+ [key: string]: string;
24
+ };
25
+ /** Knowledge Question */
26
+ question: string;
27
+ }
28
+ /**
29
+ * Represents input for getting answer for a question
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface KnowledgeAnswerInputRepresentation {
35
+ contextInfo: {
36
+ [key: string]: string;
37
+ };
38
+ metadata: {
39
+ [key: string]: string;
40
+ };
41
+ question: string;
42
+ }
@@ -0,0 +1,45 @@
1
+ import { SSKnowledgeErrorDetailsOutputRepresentation as SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation } from './SSKnowledgeErrorDetailsOutputRepresentation';
2
+ import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const TTL = 300;
4
+ export declare const VERSION = "66164e67076ac635d0de8f197fb6913f";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
8
+ id: string;
9
+ }
10
+ export type KnowledgeAnswerRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialKnowledgeAnswerRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): KnowledgeAnswerRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: KnowledgeAnswerRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: KnowledgeAnswerRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: KnowledgeAnswerRepresentation, existing: KnowledgeAnswerRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): KnowledgeAnswerRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: KnowledgeAnswerRepresentationNormalized, incoming: KnowledgeAnswerRepresentationNormalized): boolean;
19
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: KnowledgeAnswerRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * Represent the knowledge article answer to given questionId
23
+ *
24
+ * Keys:
25
+ * id (string): answer
26
+ */
27
+ export interface KnowledgeAnswerRepresentationNormalized {
28
+ /** Answer to given question */
29
+ answer: string;
30
+ /** Error Message if any */
31
+ error: SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation | null;
32
+ /** Status of the update */
33
+ status: string | null;
34
+ }
35
+ /**
36
+ * Represent the knowledge article answer to given questionId
37
+ *
38
+ * Keys:
39
+ * id (string): answer
40
+ */
41
+ export interface KnowledgeAnswerRepresentation {
42
+ answer: string;
43
+ error: SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation | null;
44
+ status: string | null;
45
+ }
@@ -0,0 +1,37 @@
1
+ import { SSKnowledgeErrorDetailsOutputRepresentation as SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation } from './SSKnowledgeErrorDetailsOutputRepresentation';
2
+ import { KnowledgeQuestionRepresentation as KnowledgeQuestionRepresentation_KnowledgeQuestionRepresentation } from './KnowledgeQuestionRepresentation';
3
+ 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';
4
+ export declare const TTL = 300;
5
+ export declare const VERSION = "51b624dd6a5712d6763bed223c4ba2c7";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export declare function normalize(input: KnowledgeQuestionCollectionRepresentation, existing: KnowledgeQuestionCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): KnowledgeQuestionCollectionRepresentationNormalized;
9
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
10
+ export declare function equals(existing: KnowledgeQuestionCollectionRepresentationNormalized, incoming: KnowledgeQuestionCollectionRepresentationNormalized): 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: KnowledgeQuestionCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
13
+ /**
14
+ * List of Knowledge Article Questions
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface KnowledgeQuestionCollectionRepresentationNormalized {
20
+ /** Error Message if any */
21
+ error: SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation | null;
22
+ /** Generated Date */
23
+ generatedDate?: string;
24
+ /** List of Knowledge Article Questions */
25
+ knowledgeQuestionRepresentationList: Array<KnowledgeQuestionRepresentation_KnowledgeQuestionRepresentation>;
26
+ }
27
+ /**
28
+ * List of Knowledge Article Questions
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface KnowledgeQuestionCollectionRepresentation {
34
+ error: SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation | null;
35
+ generatedDate?: string;
36
+ knowledgeQuestionRepresentationList: Array<KnowledgeQuestionRepresentation_KnowledgeQuestionRepresentation>;
37
+ }
@@ -0,0 +1,38 @@
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 TTL = 300;
3
+ export declare const VERSION = "0583cf81b5f0f4d839cf90aa7caddf0a";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: KnowledgeQuestionRepresentation, existing: KnowledgeQuestionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): KnowledgeQuestionRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: KnowledgeQuestionRepresentationNormalized, incoming: KnowledgeQuestionRepresentationNormalized): 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: KnowledgeQuestionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represent the Knowledge article question
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface KnowledgeQuestionRepresentationNormalized {
18
+ /** Knowledge Answer */
19
+ answer: string;
20
+ /** Knowledge Question */
21
+ question: string;
22
+ /** Knowledge Question Id */
23
+ questionId: string;
24
+ /** Selection count for a question */
25
+ selectionCount: number;
26
+ }
27
+ /**
28
+ * Represent the Knowledge article question
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface KnowledgeQuestionRepresentation {
34
+ answer: string;
35
+ question: string;
36
+ questionId: string;
37
+ selectionCount: number;
38
+ }
@@ -0,0 +1,42 @@
1
+ import { SSKnowledgeErrorDetailsOutputRepresentation as SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation } from './SSKnowledgeErrorDetailsOutputRepresentation';
2
+ import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const TTL = 300;
4
+ export declare const VERSION = "9da1d14352ffb992a5fcedd9f17ee5ca";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
8
+ id: string | null;
9
+ }
10
+ export type KnowledgeUpdateQuestionRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialKnowledgeUpdateQuestionRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): KnowledgeUpdateQuestionRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: KnowledgeUpdateQuestionRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: KnowledgeUpdateQuestionRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: KnowledgeUpdateQuestionRepresentation, existing: KnowledgeUpdateQuestionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): KnowledgeUpdateQuestionRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: KnowledgeUpdateQuestionRepresentationNormalized, incoming: KnowledgeUpdateQuestionRepresentationNormalized): boolean;
19
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: KnowledgeUpdateQuestionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * This represents the output of knowledge question update
23
+ *
24
+ * Keys:
25
+ * id (string | null): status
26
+ */
27
+ export interface KnowledgeUpdateQuestionRepresentationNormalized {
28
+ /** Error Message if any */
29
+ error: SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation | null;
30
+ /** Status of the update */
31
+ status: string | null;
32
+ }
33
+ /**
34
+ * This represents the output of knowledge question update
35
+ *
36
+ * Keys:
37
+ * id (string | null): status
38
+ */
39
+ export interface KnowledgeUpdateQuestionRepresentation {
40
+ error: SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation | null;
41
+ status: string | null;
42
+ }
@@ -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 TTL = 300;
3
+ export declare const VERSION = "d28d9f1d9c88cda2437b9983c72a36e1";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: SSKnowledgeErrorDetailsOutputRepresentation, existing: SSKnowledgeErrorDetailsOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SSKnowledgeErrorDetailsOutputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: SSKnowledgeErrorDetailsOutputRepresentationNormalized, incoming: SSKnowledgeErrorDetailsOutputRepresentationNormalized): 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: SSKnowledgeErrorDetailsOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Error Message Representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface SSKnowledgeErrorDetailsOutputRepresentationNormalized {
18
+ /** Get Error Code. */
19
+ code?: number;
20
+ /** Get Error Message */
21
+ message?: string;
22
+ }
23
+ /**
24
+ * Error Message Representation
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface SSKnowledgeErrorDetailsOutputRepresentation {
30
+ code?: number;
31
+ message?: string;
32
+ }
@@ -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,66 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-service-knowledge-questions",
3
+ "version": "1.366.0",
4
+ "description": "Knowledge Questions and Answers generation",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/service-knowledge-questions.js",
7
+ "module": "dist/es/es2018/service-knowledge-questions.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/service-knowledge-questions.js",
18
+ "require": "./dist/es/es2018/service-knowledge-questions.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": "serviceKnowledgeQuestionsApi"
29
+ },
30
+ "contributors": [
31
+ "raju.putta@salesforce.com"
32
+ ],
33
+ "scripts": {
34
+ "build": "yarn build:services",
35
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
36
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
37
+ "clean": "rm -rf dist sfdc src/generated",
38
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-service-knowledge-questions",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-service-knowledge-questions",
40
+ "test:unit": "jest"
41
+ },
42
+ "dependencies": {
43
+ "@salesforce/lds-bindings": "^1.366.0"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^1.366.0"
47
+ },
48
+ "nx": {
49
+ "targets": {
50
+ "build": {
51
+ "outputs": [
52
+ "{projectRoot}/dist",
53
+ "{projectRoot}/sfdc"
54
+ ]
55
+ },
56
+ "build:raml": {
57
+ "outputs": [
58
+ "{projectRoot}/src/generated"
59
+ ]
60
+ }
61
+ }
62
+ },
63
+ "volta": {
64
+ "extends": "../../package.json"
65
+ }
66
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';