@salesforce/lds-adapters-service-ecm 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 (89) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/service-ecm.js +9423 -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/createAgentAction.d.ts +20 -0
  5. package/dist/es/es2018/types/src/generated/adapters/createAgentFlow.d.ts +18 -0
  6. package/dist/es/es2018/types/src/generated/adapters/createCatalogItem.d.ts +41 -0
  7. package/dist/es/es2018/types/src/generated/adapters/deployTemplate.d.ts +15 -0
  8. package/dist/es/es2018/types/src/generated/adapters/generateIntakeForm.d.ts +18 -0
  9. package/dist/es/es2018/types/src/generated/adapters/generateOmniScript.d.ts +17 -0
  10. package/dist/es/es2018/types/src/generated/adapters/getAgentActions.d.ts +28 -0
  11. package/dist/es/es2018/types/src/generated/adapters/getAllServiceAutomationDep.d.ts +31 -0
  12. package/dist/es/es2018/types/src/generated/adapters/getAllServiceProcessTemplate.d.ts +26 -0
  13. package/dist/es/es2018/types/src/generated/adapters/getCatalogItem.d.ts +28 -0
  14. package/dist/es/es2018/types/src/generated/adapters/getServiceRequest.d.ts +27 -0
  15. package/dist/es/es2018/types/src/generated/adapters/updateCatalogItem.d.ts +43 -0
  16. package/dist/es/es2018/types/src/generated/adapters/updateEpcCategories.d.ts +17 -0
  17. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +13 -0
  18. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +19 -0
  19. package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationCatalogCatalogItemByCatalogItemId.d.ts +18 -0
  20. package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationGenAiActions.d.ts +16 -0
  21. package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationServiceProcessGetAllTemplates.d.ts +12 -0
  22. package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationServiceRequestServiceCatalogRequestByServiceRequestId.d.ts +15 -0
  23. package/dist/es/es2018/types/src/generated/resources/patchConnectServiceAutomationCatalogCatalogItemByCatalogItemId.d.ts +42 -0
  24. package/dist/es/es2018/types/src/generated/resources/patchConnectServiceAutomationCatalogCategoriesByCatalogId.d.ts +16 -0
  25. package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationAgentAutolaunchedFlow.d.ts +15 -0
  26. package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationCatalogCatalogItem.d.ts +38 -0
  27. package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationGenAiActions.d.ts +17 -0
  28. package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationIntakeFormGenerateIntakeForm.d.ts +15 -0
  29. package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationIntakeFormGenerateIntakeOmniscript.d.ts +14 -0
  30. package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationQuery.d.ts +19 -0
  31. package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationTemplateDeployByTemplateId.d.ts +12 -0
  32. package/dist/es/es2018/types/src/generated/types/AgentActionAttributeOutputRepresentation.d.ts +64 -0
  33. package/dist/es/es2018/types/src/generated/types/AgentActionInputRepresentation.d.ts +37 -0
  34. package/dist/es/es2018/types/src/generated/types/AgentActionOutputRepresentation.d.ts +34 -0
  35. package/dist/es/es2018/types/src/generated/types/AgentAutolaunchedFlowInputRepresentation.d.ts +37 -0
  36. package/dist/es/es2018/types/src/generated/types/AgentAutolaunchedFlowRepresentation.d.ts +47 -0
  37. package/dist/es/es2018/types/src/generated/types/AgentAutolaunchedFlowStatusRepresentation.d.ts +31 -0
  38. package/dist/es/es2018/types/src/generated/types/AssociatedArticleOutputRepresentation.d.ts +31 -0
  39. package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeInputRepresentation.d.ts +74 -0
  40. package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeOutputRepresentation.d.ts +77 -0
  41. package/dist/es/es2018/types/src/generated/types/CatalogItemCreateInputRepresentation.d.ts +86 -0
  42. package/dist/es/es2018/types/src/generated/types/CatalogItemOutputRepresentation.d.ts +101 -0
  43. package/dist/es/es2018/types/src/generated/types/CatalogItemUpdateInputRepresentation.d.ts +89 -0
  44. package/dist/es/es2018/types/src/generated/types/CategoriesInputRepresentation.d.ts +29 -0
  45. package/dist/es/es2018/types/src/generated/types/CategoryAndParentErrorOutputRepresentation.d.ts +28 -0
  46. package/dist/es/es2018/types/src/generated/types/CategoryAndParentOutputRepresentation.d.ts +48 -0
  47. package/dist/es/es2018/types/src/generated/types/CategoryInput.d.ts +31 -0
  48. package/dist/es/es2018/types/src/generated/types/DeploymentOutputRepresentation.d.ts +44 -0
  49. package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionInputRepresentation.d.ts +43 -0
  50. package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionOutputRepresentation.d.ts +72 -0
  51. package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionsOutputRepresentation.d.ts +30 -0
  52. package/dist/es/es2018/types/src/generated/types/EligibilityRuleOutputRepresentation.d.ts +31 -0
  53. package/dist/es/es2018/types/src/generated/types/EligibilityRulesInputRepresentation.d.ts +31 -0
  54. package/dist/es/es2018/types/src/generated/types/FilterInputRepresentation.d.ts +34 -0
  55. package/dist/es/es2018/types/src/generated/types/FulfillmentFlowInputRepresentation.d.ts +37 -0
  56. package/dist/es/es2018/types/src/generated/types/FulfillmentFlowOutputRepresentation.d.ts +34 -0
  57. package/dist/es/es2018/types/src/generated/types/GenerateIntakeFormInputRepresentation.d.ts +37 -0
  58. package/dist/es/es2018/types/src/generated/types/GenerateIntakeFormOutputRepresentation.d.ts +47 -0
  59. package/dist/es/es2018/types/src/generated/types/GenericCustomObject.d.ts +28 -0
  60. package/dist/es/es2018/types/src/generated/types/IntakeFormCreationInputRepresentation.d.ts +34 -0
  61. package/dist/es/es2018/types/src/generated/types/IntakeFormInputRepresentation.d.ts +37 -0
  62. package/dist/es/es2018/types/src/generated/types/IntakeFormOutputRepresentation.d.ts +49 -0
  63. package/dist/es/es2018/types/src/generated/types/IntegrationDefInputRepresentation.d.ts +34 -0
  64. package/dist/es/es2018/types/src/generated/types/IntegrationDefinitionOutputPresentation.d.ts +31 -0
  65. package/dist/es/es2018/types/src/generated/types/KnowledgeArticleInputRepresentation.d.ts +34 -0
  66. package/dist/es/es2018/types/src/generated/types/OmniIntakeOutputRepresentation.d.ts +59 -0
  67. package/dist/es/es2018/types/src/generated/types/PicklistAttributeTypeInputRepresentation.d.ts +46 -0
  68. package/dist/es/es2018/types/src/generated/types/PicklistAttributeTypeOutputRepresentation.d.ts +43 -0
  69. package/dist/es/es2018/types/src/generated/types/PreprocessorInputRepresentation.d.ts +34 -0
  70. package/dist/es/es2018/types/src/generated/types/PreprocessorOutputRepresentation.d.ts +31 -0
  71. package/dist/es/es2018/types/src/generated/types/ProductDetailsInputRepresentation.d.ts +34 -0
  72. package/dist/es/es2018/types/src/generated/types/ProductDetailsOutputRepresentation.d.ts +43 -0
  73. package/dist/es/es2018/types/src/generated/types/ProductRequestCreateInputRepresentation.d.ts +46 -0
  74. package/dist/es/es2018/types/src/generated/types/ProductRequestOutputRepresentation.d.ts +47 -0
  75. package/dist/es/es2018/types/src/generated/types/ProductRequestUpdateInputRepresentation.d.ts +49 -0
  76. package/dist/es/es2018/types/src/generated/types/SectionInputRepresentation.d.ts +43 -0
  77. package/dist/es/es2018/types/src/generated/types/SectionOutputRepresentation.d.ts +41 -0
  78. package/dist/es/es2018/types/src/generated/types/ServiceAutomationDepOutputRepresentation.d.ts +33 -0
  79. package/dist/es/es2018/types/src/generated/types/ServiceAutomationDepReadInputRepresentation.d.ts +38 -0
  80. package/dist/es/es2018/types/src/generated/types/ServiceAutomationOutputRecordRepresentation.d.ts +32 -0
  81. package/dist/es/es2018/types/src/generated/types/ServiceProcessTemplateOutputRepresentation.d.ts +43 -0
  82. package/dist/es/es2018/types/src/generated/types/ServiceProcessTemplatesOutputRepresentation.d.ts +30 -0
  83. package/dist/es/es2018/types/src/generated/types/ServiceRequestGetOutputRepresentation.d.ts +46 -0
  84. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  85. package/package.json +66 -0
  86. package/sfdc/index.d.ts +1 -0
  87. package/sfdc/index.js +9524 -0
  88. package/src/raml/api.raml +1712 -0
  89. package/src/raml/luvio.raml +101 -0
@@ -0,0 +1,43 @@
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 = "8157048223150aa661fdf3bdd16a0944";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ServiceProcessTemplateOutputRepresentation, existing: ServiceProcessTemplateOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceProcessTemplateOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ServiceProcessTemplateOutputRepresentationNormalized, incoming: ServiceProcessTemplateOutputRepresentationNormalized): 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: ServiceProcessTemplateOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Output Representation of Service Process Template
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ServiceProcessTemplateOutputRepresentationNormalized {
17
+ /** Template created date */
18
+ createdDate: string;
19
+ /** Template description */
20
+ description: string;
21
+ /** Template Id */
22
+ id: string;
23
+ /** Template image url */
24
+ imageUrl: string;
25
+ /** Template name */
26
+ name: string;
27
+ /** Template type */
28
+ type: string;
29
+ }
30
+ /**
31
+ * Output Representation of Service Process Template
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface ServiceProcessTemplateOutputRepresentation {
37
+ createdDate: string;
38
+ description: string;
39
+ id: string;
40
+ imageUrl: string;
41
+ name: string;
42
+ type: string;
43
+ }
@@ -0,0 +1,30 @@
1
+ import { ServiceProcessTemplateOutputRepresentation as ServiceProcessTemplateOutputRepresentation_ServiceProcessTemplateOutputRepresentation } from './ServiceProcessTemplateOutputRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const TTL = 6000;
4
+ export declare const VERSION = "1cae1bb3aeefe004ae9d9248ac15a1d5";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: ServiceProcessTemplatesOutputRepresentation, existing: ServiceProcessTemplatesOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceProcessTemplatesOutputRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_BaseFragment;
9
+ export declare function equals(existing: ServiceProcessTemplatesOutputRepresentationNormalized, incoming: ServiceProcessTemplatesOutputRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ServiceProcessTemplatesOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Output Representation of Service Process Templates
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface ServiceProcessTemplatesOutputRepresentationNormalized {
19
+ /** Service Process Template List */
20
+ serviceProcessTemplateOutputRepresentation: Array<ServiceProcessTemplateOutputRepresentation_ServiceProcessTemplateOutputRepresentation>;
21
+ }
22
+ /**
23
+ * Output Representation of Service Process Templates
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ServiceProcessTemplatesOutputRepresentation {
29
+ serviceProcessTemplateOutputRepresentation: Array<ServiceProcessTemplateOutputRepresentation_ServiceProcessTemplateOutputRepresentation>;
30
+ }
@@ -0,0 +1,46 @@
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 = "4f891f8b58d8bba310f23859c6c0bb4d";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ServiceRequestGetOutputRepresentation, existing: ServiceRequestGetOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceRequestGetOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ServiceRequestGetOutputRepresentationNormalized, incoming: ServiceRequestGetOutputRepresentationNormalized): 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: ServiceRequestGetOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Service Request Get Output Representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ServiceRequestGetOutputRepresentationNormalized {
17
+ /** Anchor object list */
18
+ anchor?: {
19
+ [key: string]: unknown;
20
+ };
21
+ /** Custom Attributes list */
22
+ customAttributes?: {
23
+ [key: string]: unknown;
24
+ };
25
+ /** Product object list */
26
+ productAttributes?: {
27
+ [key: string]: unknown;
28
+ };
29
+ }
30
+ /**
31
+ * Service Request Get Output Representation
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface ServiceRequestGetOutputRepresentation {
37
+ anchor?: {
38
+ [key: string]: unknown;
39
+ };
40
+ customAttributes?: {
41
+ [key: string]: unknown;
42
+ };
43
+ productAttributes?: {
44
+ [key: string]: unknown;
45
+ };
46
+ }
@@ -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-ecm",
3
+ "version": "0.1.0-dev1",
4
+ "description": "Service Automation Request",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/service-ecm.js",
7
+ "module": "dist/es/es2018/service-ecm.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-ecm.js",
18
+ "require": "./dist/es/es2018/service-ecm.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": "serviceEcmApi"
29
+ },
30
+ "contributors": [
31
+ "kshama.singh@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-ecm",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-service-ecm",
40
+ "test:unit": "jest"
41
+ },
42
+ "dependencies": {
43
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1"
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';