@salesforce/lds-adapters-platform-admin-success-guidance 0.131.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 (64) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-admin-success-guidance.js +4189 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/es/es2018/types/src/generated/adapters/evaluateStep.d.ts +14 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getAssistant.d.ts +27 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getAssistantInfoList.d.ts +27 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getAssistantList.d.ts +27 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getAssistantTarget.d.ts +27 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getQuestionnaire.d.ts +27 -0
  10. package/dist/es/es2018/types/src/generated/adapters/getQuestionnaires.d.ts +27 -0
  11. package/dist/es/es2018/types/src/generated/adapters/initialize.d.ts +14 -0
  12. package/dist/es/es2018/types/src/generated/adapters/saveAssistant.d.ts +16 -0
  13. package/dist/es/es2018/types/src/generated/adapters/saveAssistantList.d.ts +16 -0
  14. package/dist/es/es2018/types/src/generated/adapters/saveQuestionnaire.d.ts +16 -0
  15. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +11 -0
  16. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +24 -0
  17. package/dist/es/es2018/types/src/generated/resources/getAssistantPlatformByAssistantName.d.ts +16 -0
  18. package/dist/es/es2018/types/src/generated/resources/getAssistantPlatformInfoByAssistantTarget.d.ts +16 -0
  19. package/dist/es/es2018/types/src/generated/resources/getAssistantPlatformListByAssistantTarget.d.ts +16 -0
  20. package/dist/es/es2018/types/src/generated/resources/getAssistantPlatformListInfoByAssistantTarget.d.ts +16 -0
  21. package/dist/es/es2018/types/src/generated/resources/getAssistantPlatformQuestionnaireByQuestionnaireName.d.ts +16 -0
  22. package/dist/es/es2018/types/src/generated/resources/getAssistantPlatformQuestionnairesByAssistantName.d.ts +16 -0
  23. package/dist/es/es2018/types/src/generated/resources/patchAssistantPlatformByAssistantName.d.ts +16 -0
  24. package/dist/es/es2018/types/src/generated/resources/patchAssistantPlatformListByAssistantTarget.d.ts +16 -0
  25. package/dist/es/es2018/types/src/generated/resources/patchAssistantPlatformQuestionnaireByQuestionnaireName.d.ts +16 -0
  26. package/dist/es/es2018/types/src/generated/resources/patchAssistantPlatformStepByStepName.d.ts +12 -0
  27. package/dist/es/es2018/types/src/generated/resources/putAssistantPlatformInitializeByAssistantTarget.d.ts +12 -0
  28. package/dist/es/es2018/types/src/generated/types/AbstractLightningAssistantActionRepresentation.d.ts +40 -0
  29. package/dist/es/es2018/types/src/generated/types/AssistantData.d.ts +30 -0
  30. package/dist/es/es2018/types/src/generated/types/LightningAssistantAnswerDataInputRepresentation.d.ts +35 -0
  31. package/dist/es/es2018/types/src/generated/types/LightningAssistantCategoryRepresentation.d.ts +35 -0
  32. package/dist/es/es2018/types/src/generated/types/LightningAssistantChoiceRepresentation.d.ts +38 -0
  33. package/dist/es/es2018/types/src/generated/types/LightningAssistantCustomActionRepresentation.d.ts +41 -0
  34. package/dist/es/es2018/types/src/generated/types/LightningAssistantInfoListRepresentation.d.ts +42 -0
  35. package/dist/es/es2018/types/src/generated/types/LightningAssistantInfoRepresentation.d.ts +56 -0
  36. package/dist/es/es2018/types/src/generated/types/LightningAssistantInitializationRepresentation.d.ts +44 -0
  37. package/dist/es/es2018/types/src/generated/types/LightningAssistantInputRepresentation.d.ts +29 -0
  38. package/dist/es/es2018/types/src/generated/types/LightningAssistantItemInputRepresentation.d.ts +38 -0
  39. package/dist/es/es2018/types/src/generated/types/LightningAssistantLayoutNodeRepresentation.d.ts +57 -0
  40. package/dist/es/es2018/types/src/generated/types/LightningAssistantLinkActionRepresentation.d.ts +37 -0
  41. package/dist/es/es2018/types/src/generated/types/LightningAssistantLinkRepresentation.d.ts +32 -0
  42. package/dist/es/es2018/types/src/generated/types/LightningAssistantListInputRepresentation.d.ts +33 -0
  43. package/dist/es/es2018/types/src/generated/types/LightningAssistantListRepresentation.d.ts +51 -0
  44. package/dist/es/es2018/types/src/generated/types/LightningAssistantLsfActionRepresentation.d.ts +44 -0
  45. package/dist/es/es2018/types/src/generated/types/LightningAssistantNoActionRepresentation.d.ts +27 -0
  46. package/dist/es/es2018/types/src/generated/types/LightningAssistantQuestionRepresentation.d.ts +43 -0
  47. package/dist/es/es2018/types/src/generated/types/LightningAssistantQuestionnaireInputRepresentation.d.ts +36 -0
  48. package/dist/es/es2018/types/src/generated/types/LightningAssistantQuestionnaireListRepresentation.d.ts +41 -0
  49. package/dist/es/es2018/types/src/generated/types/LightningAssistantQuestionnaireRepresentation.d.ts +54 -0
  50. package/dist/es/es2018/types/src/generated/types/LightningAssistantRepresentation.d.ts +99 -0
  51. package/dist/es/es2018/types/src/generated/types/LightningAssistantStepRepresentation.d.ts +76 -0
  52. package/dist/es/es2018/types/src/generated/types/LightningAssistantTargetRepresentation.d.ts +42 -0
  53. package/dist/es/es2018/types/src/generated/types/LightningAssistantTrailheadActionRepresentation.d.ts +37 -0
  54. package/dist/es/es2018/types/src/generated/types/LightningAssistantUpdateInputRepresentation.d.ts +33 -0
  55. package/dist/es/es2018/types/src/generated/types/LightningAssistantVideoActionRepresentation.d.ts +34 -0
  56. package/dist/es/es2018/types/src/generated/types/LightningAssistantWalkthroughActionRepresentation.d.ts +34 -0
  57. package/dist/es/es2018/types/src/generated/types/QuestionnaireData.d.ts +30 -0
  58. package/dist/es/es2018/types/src/generated/types/UpdateAssistantData.d.ts +30 -0
  59. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
  60. package/package.json +70 -0
  61. package/sfdc/index.d.ts +1 -0
  62. package/sfdc/index.js +4489 -0
  63. package/src/raml/api.raml +736 -0
  64. package/src/raml/luvio.raml +98 -0
@@ -0,0 +1,34 @@
1
+ import { AbstractLightningAssistantActionRepresentation as AbstractLightningAssistantActionRepresentation_AbstractLightningAssistantActionRepresentation } from './AbstractLightningAssistantActionRepresentation';
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const VERSION = "d7605ace66fce89a8ae0436b797d125d";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: LightningAssistantVideoActionRepresentation, existing: LightningAssistantVideoActionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningAssistantVideoActionRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: LightningAssistantVideoActionRepresentationNormalized, incoming: LightningAssistantVideoActionRepresentationNormalized): boolean;
9
+ export declare function deepFreeze(input: LightningAssistantVideoActionRepresentation): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LightningAssistantVideoActionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * A Video Action Representation
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface LightningAssistantVideoActionRepresentationNormalized extends AbstractLightningAssistantActionRepresentation_AbstractLightningAssistantActionRepresentation {
19
+ /** The icon name for the video action */
20
+ iconName?: string;
21
+ /** The video action url */
22
+ url: string;
23
+ }
24
+ /**
25
+ * A Video Action Representation
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface LightningAssistantVideoActionRepresentation extends AbstractLightningAssistantActionRepresentation_AbstractLightningAssistantActionRepresentation {
31
+ iconName?: string;
32
+ url: string;
33
+ actionType: 'Video';
34
+ }
@@ -0,0 +1,34 @@
1
+ import { AbstractLightningAssistantActionRepresentation as AbstractLightningAssistantActionRepresentation_AbstractLightningAssistantActionRepresentation } from './AbstractLightningAssistantActionRepresentation';
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const VERSION = "fe9b2afa38e1fc9af6abd29c7fd3e307";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: LightningAssistantWalkthroughActionRepresentation, existing: LightningAssistantWalkthroughActionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningAssistantWalkthroughActionRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: LightningAssistantWalkthroughActionRepresentationNormalized, incoming: LightningAssistantWalkthroughActionRepresentationNormalized): boolean;
9
+ export declare function deepFreeze(input: LightningAssistantWalkthroughActionRepresentation): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LightningAssistantWalkthroughActionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * A Walkthrough Action Representation
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface LightningAssistantWalkthroughActionRepresentationNormalized extends AbstractLightningAssistantActionRepresentation_AbstractLightningAssistantActionRepresentation {
19
+ /** The icon name for the walkthrough action */
20
+ iconName?: string;
21
+ /** The prompt id for the walkthrough action */
22
+ promptId: string;
23
+ }
24
+ /**
25
+ * A Walkthrough Action Representation
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface LightningAssistantWalkthroughActionRepresentation extends AbstractLightningAssistantActionRepresentation_AbstractLightningAssistantActionRepresentation {
31
+ iconName?: string;
32
+ promptId: string;
33
+ actionType: 'Walkthrough';
34
+ }
@@ -0,0 +1,30 @@
1
+ import { LightningAssistantQuestionnaireInputRepresentation as LightningAssistantQuestionnaireInputRepresentation_LightningAssistantQuestionnaireInputRepresentation } from './LightningAssistantQuestionnaireInputRepresentation';
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const VERSION = "b28111d19b8547d4e2c4bbe8f1b0680b";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: QuestionnaireData, existing: QuestionnaireDataNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): QuestionnaireDataNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: QuestionnaireDataNormalized, incoming: QuestionnaireDataNormalized): boolean;
9
+ export declare function deepFreeze(input: QuestionnaireData): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: QuestionnaireData, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * A Wrapper around the LightningAssistantQuestionnaireInputRepresentation
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface QuestionnaireDataNormalized {
19
+ /** The Oas Body Name for Questionnaire Data. */
20
+ questionnaireData: LightningAssistantQuestionnaireInputRepresentation_LightningAssistantQuestionnaireInputRepresentation;
21
+ }
22
+ /**
23
+ * A Wrapper around the LightningAssistantQuestionnaireInputRepresentation
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface QuestionnaireData {
29
+ questionnaireData: LightningAssistantQuestionnaireInputRepresentation_LightningAssistantQuestionnaireInputRepresentation;
30
+ }
@@ -0,0 +1,30 @@
1
+ import { LightningAssistantUpdateInputRepresentation as LightningAssistantUpdateInputRepresentation_LightningAssistantUpdateInputRepresentation } from './LightningAssistantUpdateInputRepresentation';
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const VERSION = "fda9edbb75a0f3da2ccdd95b40f366c1";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: UpdateAssistantData, existing: UpdateAssistantDataNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UpdateAssistantDataNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: UpdateAssistantDataNormalized, incoming: UpdateAssistantDataNormalized): boolean;
9
+ export declare function deepFreeze(input: UpdateAssistantData): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: UpdateAssistantData, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * The LightningAssistantUpdateInputRepresentation wrapper
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface UpdateAssistantDataNormalized {
19
+ /** The Oas Body Name for Assistant Data. */
20
+ assistantData: LightningAssistantUpdateInputRepresentation_LightningAssistantUpdateInputRepresentation;
21
+ }
22
+ /**
23
+ * The LightningAssistantUpdateInputRepresentation wrapper
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface UpdateAssistantData {
29
+ assistantData: LightningAssistantUpdateInputRepresentation_LightningAssistantUpdateInputRepresentation;
30
+ }
@@ -0,0 +1,39 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectFreeze: {
3
+ <T extends Function>(f: T): T;
4
+ <T_1 extends {
5
+ [idx: string]: object | U | null | undefined;
6
+ }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
7
+ <T_2>(o: T_2): Readonly<T_2>;
8
+ }, ObjectKeys: {
9
+ (o: object): string[];
10
+ (o: {}): string[];
11
+ }, ObjectCreate: {
12
+ (o: object | null): any;
13
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
14
+ }, ObjectAssign: {
15
+ <T extends {}, U>(target: T, source: U): T & U;
16
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
17
+ <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;
18
+ (target: object, ...sources: any[]): any;
19
+ };
20
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
21
+ export declare const JSONStringify: {
22
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
23
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
24
+ };
25
+ type AllowedPrimitives = boolean | string | number | Date | null;
26
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
27
+ export type RecursivePartial<T> = null | {
28
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
29
+ };
30
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
31
+ export declare function equalsObject<U, V extends {
32
+ [key: string]: U;
33
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
34
+ export declare function deepFreeze(value: any): void;
35
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
36
+ __ref: string;
37
+ };
38
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
39
+ export {};
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-platform-admin-success-guidance",
3
+ "version": "0.131.0",
4
+ "license": "SEE LICENSE IN LICENSE.txt",
5
+ "description": "Guidance Center Questionnaire and Assistant APIs",
6
+ "main": "dist/es/es2018/platform-admin-success-guidance.js",
7
+ "module": "dist/es/es2018/platform-admin-success-guidance.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
+ "import": "./dist/es/es2018/platform-admin-success-guidance.js",
17
+ "require": "./dist/es/es2018/platform-admin-success-guidance.js",
18
+ "types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts"
19
+ },
20
+ "./sfdc": {
21
+ "import": "./sfdc/index.js",
22
+ "types": "./sfdc/index.d.ts",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "contributors": [
27
+ "alexander.dale@salesforce.com",
28
+ "midzelis@salesforce.com",
29
+ "admin_success_scrum@salesforce.com"
30
+ ],
31
+ "sfdc": {
32
+ "path": "forcelds/ldsAdaptersPlatformAdminSuccessGuidance/",
33
+ "namespace": "lightning",
34
+ "module": "platformAdminSuccessGuidanceApi"
35
+ },
36
+ "scripts": {
37
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
38
+ "build": "yarn build:raml && yarn build:services && yarn build:karma",
39
+ "build:karma": "rollup --config rollup.config.karma.js",
40
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
41
+ "build:services": "rollup --config rollup.config.js",
42
+ "start": "karma start",
43
+ "test": "karma start --single-run",
44
+ "test:compat": "karma start --single-run --compat",
45
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-platform-admin-success-guidance",
46
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-admin-success-guidance"
47
+ },
48
+ "dependencies": {
49
+ "@salesforce/lds-bindings": "1.131.0-244.6"
50
+ },
51
+ "devDependencies": {
52
+ "@salesforce/lds-compiler-plugins": "1.131.0-244.6",
53
+ "@salesforce/lds-karma": "1.131.0-244.6"
54
+ },
55
+ "nx": {
56
+ "targets": {
57
+ "build": {
58
+ "outputs": [
59
+ "packages/lds-adapters-platform-admin-success-guidance/dist",
60
+ "packages/lds-adapters-platform-admin-success-guidance/karma/dist",
61
+ "packages/lds-adapters-platform-admin-success-guidance/sfdc",
62
+ "packages/lds-adapters-platform-admin-success-guidance/src/generated"
63
+ ]
64
+ }
65
+ }
66
+ },
67
+ "volta": {
68
+ "extends": "../../package.json"
69
+ }
70
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';