@salesforce/lds-adapters-platform-admin-success-guidance 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 (64) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-admin-success-guidance.js +3843 -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/evaluateStep.d.ts +15 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getAssistant.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getAssistantInfoList.d.ts +28 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getAssistantList.d.ts +28 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getAssistantTarget.d.ts +28 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getQuestionnaire.d.ts +28 -0
  10. package/dist/es/es2018/types/src/generated/adapters/getQuestionnaires.d.ts +28 -0
  11. package/dist/es/es2018/types/src/generated/adapters/initialize.d.ts +15 -0
  12. package/dist/es/es2018/types/src/generated/adapters/saveAssistant.d.ts +17 -0
  13. package/dist/es/es2018/types/src/generated/adapters/saveAssistantList.d.ts +17 -0
  14. package/dist/es/es2018/types/src/generated/adapters/saveQuestionnaire.d.ts +17 -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 +39 -0
  29. package/dist/es/es2018/types/src/generated/types/AssistantData.d.ts +29 -0
  30. package/dist/es/es2018/types/src/generated/types/LightningAssistantAnswerDataInputRepresentation.d.ts +34 -0
  31. package/dist/es/es2018/types/src/generated/types/LightningAssistantCategoryRepresentation.d.ts +34 -0
  32. package/dist/es/es2018/types/src/generated/types/LightningAssistantChoiceRepresentation.d.ts +37 -0
  33. package/dist/es/es2018/types/src/generated/types/LightningAssistantCustomActionRepresentation.d.ts +40 -0
  34. package/dist/es/es2018/types/src/generated/types/LightningAssistantInfoListRepresentation.d.ts +41 -0
  35. package/dist/es/es2018/types/src/generated/types/LightningAssistantInfoRepresentation.d.ts +55 -0
  36. package/dist/es/es2018/types/src/generated/types/LightningAssistantInitializationRepresentation.d.ts +43 -0
  37. package/dist/es/es2018/types/src/generated/types/LightningAssistantInputRepresentation.d.ts +28 -0
  38. package/dist/es/es2018/types/src/generated/types/LightningAssistantItemInputRepresentation.d.ts +37 -0
  39. package/dist/es/es2018/types/src/generated/types/LightningAssistantLayoutNodeRepresentation.d.ts +56 -0
  40. package/dist/es/es2018/types/src/generated/types/LightningAssistantLinkActionRepresentation.d.ts +36 -0
  41. package/dist/es/es2018/types/src/generated/types/LightningAssistantLinkRepresentation.d.ts +31 -0
  42. package/dist/es/es2018/types/src/generated/types/LightningAssistantListInputRepresentation.d.ts +32 -0
  43. package/dist/es/es2018/types/src/generated/types/LightningAssistantListRepresentation.d.ts +50 -0
  44. package/dist/es/es2018/types/src/generated/types/LightningAssistantLsfActionRepresentation.d.ts +43 -0
  45. package/dist/es/es2018/types/src/generated/types/LightningAssistantNoActionRepresentation.d.ts +26 -0
  46. package/dist/es/es2018/types/src/generated/types/LightningAssistantQuestionRepresentation.d.ts +42 -0
  47. package/dist/es/es2018/types/src/generated/types/LightningAssistantQuestionnaireInputRepresentation.d.ts +35 -0
  48. package/dist/es/es2018/types/src/generated/types/LightningAssistantQuestionnaireListRepresentation.d.ts +40 -0
  49. package/dist/es/es2018/types/src/generated/types/LightningAssistantQuestionnaireRepresentation.d.ts +53 -0
  50. package/dist/es/es2018/types/src/generated/types/LightningAssistantRepresentation.d.ts +98 -0
  51. package/dist/es/es2018/types/src/generated/types/LightningAssistantStepRepresentation.d.ts +75 -0
  52. package/dist/es/es2018/types/src/generated/types/LightningAssistantTargetRepresentation.d.ts +41 -0
  53. package/dist/es/es2018/types/src/generated/types/LightningAssistantTrailheadActionRepresentation.d.ts +36 -0
  54. package/dist/es/es2018/types/src/generated/types/LightningAssistantUpdateInputRepresentation.d.ts +32 -0
  55. package/dist/es/es2018/types/src/generated/types/LightningAssistantVideoActionRepresentation.d.ts +33 -0
  56. package/dist/es/es2018/types/src/generated/types/LightningAssistantWalkthroughActionRepresentation.d.ts +33 -0
  57. package/dist/es/es2018/types/src/generated/types/QuestionnaireData.d.ts +29 -0
  58. package/dist/es/es2018/types/src/generated/types/UpdateAssistantData.d.ts +29 -0
  59. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  60. package/package.json +77 -0
  61. package/sfdc/index.d.ts +1 -0
  62. package/sfdc/index.js +4169 -0
  63. package/src/raml/api.raml +736 -0
  64. package/src/raml/luvio.raml +98 -0
@@ -0,0 +1,33 @@
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } 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 const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: LightningAssistantVideoActionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * A Video Action Representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface LightningAssistantVideoActionRepresentationNormalized extends AbstractLightningAssistantActionRepresentation_AbstractLightningAssistantActionRepresentation {
18
+ /** The icon name for the video action */
19
+ iconName?: string;
20
+ /** The video action url */
21
+ url: string;
22
+ }
23
+ /**
24
+ * A Video Action Representation
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface LightningAssistantVideoActionRepresentation extends AbstractLightningAssistantActionRepresentation_AbstractLightningAssistantActionRepresentation {
30
+ iconName?: string;
31
+ url: string;
32
+ actionType: 'Video';
33
+ }
@@ -0,0 +1,33 @@
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } 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 const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: LightningAssistantWalkthroughActionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * A Walkthrough Action Representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface LightningAssistantWalkthroughActionRepresentationNormalized extends AbstractLightningAssistantActionRepresentation_AbstractLightningAssistantActionRepresentation {
18
+ /** The icon name for the walkthrough action */
19
+ iconName?: string;
20
+ /** The prompt id for the walkthrough action */
21
+ promptId: string;
22
+ }
23
+ /**
24
+ * A Walkthrough Action Representation
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface LightningAssistantWalkthroughActionRepresentation extends AbstractLightningAssistantActionRepresentation_AbstractLightningAssistantActionRepresentation {
30
+ iconName?: string;
31
+ promptId: string;
32
+ actionType: 'Walkthrough';
33
+ }
@@ -0,0 +1,29 @@
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } 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 const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: QuestionnaireData, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * A Wrapper around the LightningAssistantQuestionnaireInputRepresentation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface QuestionnaireDataNormalized {
18
+ /** The Oas Body Name for Questionnaire Data. */
19
+ questionnaireData: LightningAssistantQuestionnaireInputRepresentation_LightningAssistantQuestionnaireInputRepresentation;
20
+ }
21
+ /**
22
+ * A Wrapper around the LightningAssistantQuestionnaireInputRepresentation
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface QuestionnaireData {
28
+ questionnaireData: LightningAssistantQuestionnaireInputRepresentation_LightningAssistantQuestionnaireInputRepresentation;
29
+ }
@@ -0,0 +1,29 @@
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } 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 const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UpdateAssistantData, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * The LightningAssistantUpdateInputRepresentation wrapper
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface UpdateAssistantDataNormalized {
18
+ /** The Oas Body Name for Assistant Data. */
19
+ assistantData: LightningAssistantUpdateInputRepresentation_LightningAssistantUpdateInputRepresentation;
20
+ }
21
+ /**
22
+ * The LightningAssistantUpdateInputRepresentation wrapper
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface UpdateAssistantData {
28
+ assistantData: LightningAssistantUpdateInputRepresentation_LightningAssistantUpdateInputRepresentation;
29
+ }
@@ -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,77 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-platform-admin-success-guidance",
3
+ "version": "0.1.0-dev1",
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
+ "types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
17
+ "import": "./dist/es/es2018/platform-admin-success-guidance.js",
18
+ "require": "./dist/es/es2018/platform-admin-success-guidance.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
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:services",
39
+ "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
40
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
41
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
42
+ "start": "nx build:karma && karma start",
43
+ "test": "nx build:karma && karma start --single-run",
44
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-platform-admin-success-guidance",
45
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-admin-success-guidance"
46
+ },
47
+ "dependencies": {
48
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
49
+ },
50
+ "devDependencies": {
51
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
52
+ "@salesforce/lds-karma": "^0.1.0-dev1"
53
+ },
54
+ "nx": {
55
+ "targets": {
56
+ "build": {
57
+ "outputs": [
58
+ "{projectRoot}/dist",
59
+ "{projectRoot}/sfdc"
60
+ ]
61
+ },
62
+ "build:raml": {
63
+ "outputs": [
64
+ "{projectRoot}/src/generated"
65
+ ]
66
+ },
67
+ "build:karma": {
68
+ "outputs": [
69
+ "{projectRoot}/karma/dist"
70
+ ]
71
+ }
72
+ }
73
+ },
74
+ "volta": {
75
+ "extends": "../../package.json"
76
+ }
77
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';