@salesforce/lds-adapters-cms-orchestrator 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 (31) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/cms-orchestrator.js +1871 -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/createManagedContentOrchestrationInstance.d.ts +16 -0
  5. package/dist/es/es2018/types/src/generated/adapters/deleteManagedContentCancelOrchestrationInstance.d.ts +14 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getManagedContentOrchestrationDefinitions.d.ts +29 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getManagedContentOrchestrationInstance.d.ts +28 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getManagedContentOrchestrationInstances.d.ts +27 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getManagedContentRunningOrchestrationHistoryEvents.d.ts +27 -0
  10. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
  11. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +12 -0
  12. package/dist/es/es2018/types/src/generated/resources/deleteConnectCmsContentsOrchestrationInstancesByMContentOrchInstanceId.d.ts +12 -0
  13. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationDefinitions.d.ts +17 -0
  14. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationHistoryEvents.d.ts +15 -0
  15. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationInstances.d.ts +15 -0
  16. package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsOrchestrationInstancesByMContentOrchInstanceId.d.ts +16 -0
  17. package/dist/es/es2018/types/src/generated/resources/postConnectCmsContentsOrchestrationInstances.d.ts +13 -0
  18. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationDefinitionCollectionRepresentation.d.ts +51 -0
  19. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationDefinitionRepresentation.d.ts +50 -0
  20. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceCollectionRepresentation.d.ts +39 -0
  21. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceInputRepresentation.d.ts +31 -0
  22. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceInputWrapperRepresentation.d.ts +28 -0
  23. package/dist/es/es2018/types/src/generated/types/ManagedContentOrchestrationInstanceRepresentation.d.ts +57 -0
  24. package/dist/es/es2018/types/src/generated/types/ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation.d.ts +30 -0
  25. package/dist/es/es2018/types/src/generated/types/ManagedContentRunningOrchestrationHistoryEventRepresentation.d.ts +71 -0
  26. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  27. package/package.json +71 -0
  28. package/sfdc/index.d.ts +1 -0
  29. package/sfdc/index.js +1998 -0
  30. package/src/raml/api.raml +261 -0
  31. package/src/raml/luvio.raml +52 -0
@@ -0,0 +1,57 @@
1
+ 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, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ import { ManagedContentOrchestrationDefinitionRepresentation as ManagedContentOrchestrationDefinitionRepresentation_ManagedContentOrchestrationDefinitionRepresentation } from './ManagedContentOrchestrationDefinitionRepresentation';
3
+ export declare const TTL = 100;
4
+ export declare const VERSION = "5f256b9378b4763b7c05f5fab2eb0809";
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 ManagedContentOrchestrationInstanceRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialManagedContentOrchestrationInstanceRepresentationNormalizedKeyMetadata = 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): ManagedContentOrchestrationInstanceRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ManagedContentOrchestrationInstanceRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ManagedContentOrchestrationInstanceRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: ManagedContentOrchestrationInstanceRepresentation, existing: ManagedContentOrchestrationInstanceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentOrchestrationInstanceRepresentationNormalized;
17
+ export interface DynamicIngestParams {
18
+ orchestrationDefinition: $64$luvio_engine_ResourceIngest;
19
+ }
20
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ManagedContentOrchestrationInstanceRepresentation, existing: ManagedContentOrchestrationInstanceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ManagedContentOrchestrationInstanceRepresentationNormalized;
21
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
22
+ export interface DynamicSelectParams {
23
+ orchestrationDefinition?: $64$luvio_engine_LinkSelection;
24
+ }
25
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
26
+ export declare function equals(existing: ManagedContentOrchestrationInstanceRepresentationNormalized, incoming: ManagedContentOrchestrationInstanceRepresentationNormalized): boolean;
27
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
28
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ManagedContentOrchestrationInstanceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
29
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
30
+ /**
31
+ * Managed content orchestration instance representation.
32
+ *
33
+ * Keys:
34
+ * id (string): managedContentVariantId
35
+ */
36
+ export interface ManagedContentOrchestrationInstanceRepresentationNormalized {
37
+ /** Managed content orchestration instance ID. */
38
+ managedContentOrchestrationInstanceId: string;
39
+ /** Managed Content Variant ID. */
40
+ managedContentVariantId: string;
41
+ /** Managed content orchestration definition. */
42
+ orchestrationDefinition: $64$luvio_engine_StoreLink;
43
+ /** Flow orchestration instance ID. */
44
+ orchestrationInstanceId: string;
45
+ }
46
+ /**
47
+ * Managed content orchestration instance representation.
48
+ *
49
+ * Keys:
50
+ * id (string): managedContentVariantId
51
+ */
52
+ export interface ManagedContentOrchestrationInstanceRepresentation {
53
+ managedContentOrchestrationInstanceId: string;
54
+ managedContentVariantId: string;
55
+ orchestrationDefinition: ManagedContentOrchestrationDefinitionRepresentation_ManagedContentOrchestrationDefinitionRepresentation;
56
+ orchestrationInstanceId: string;
57
+ }
@@ -0,0 +1,30 @@
1
+ import { ManagedContentRunningOrchestrationHistoryEventRepresentation as ManagedContentRunningOrchestrationHistoryEventRepresentation_ManagedContentRunningOrchestrationHistoryEventRepresentation } from './ManagedContentRunningOrchestrationHistoryEventRepresentation';
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 TTL = 100;
4
+ export declare const VERSION = "8d2b53591bb32ebdac40a28e64c15c48";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation, existing: ManagedContentRunningOrchestrationHistoryEventCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentRunningOrchestrationHistoryEventCollectionRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: ManagedContentRunningOrchestrationHistoryEventCollectionRepresentationNormalized, incoming: ManagedContentRunningOrchestrationHistoryEventCollectionRepresentationNormalized): 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: ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Managed content running orchestration history event collection representation.
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface ManagedContentRunningOrchestrationHistoryEventCollectionRepresentationNormalized {
19
+ /** Managed content running orchestration history events */
20
+ historyEvents: Array<ManagedContentRunningOrchestrationHistoryEventRepresentation_ManagedContentRunningOrchestrationHistoryEventRepresentation>;
21
+ }
22
+ /**
23
+ * Managed content running orchestration history event collection representation.
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ManagedContentRunningOrchestrationHistoryEventCollectionRepresentation {
29
+ historyEvents: Array<ManagedContentRunningOrchestrationHistoryEventRepresentation_ManagedContentRunningOrchestrationHistoryEventRepresentation>;
30
+ }
@@ -0,0 +1,71 @@
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 = 1000;
3
+ export declare const VERSION = "5044bf9d6a7c23eadc7dcfa5d49edeca";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ManagedContentRunningOrchestrationHistoryEventRepresentation, existing: ManagedContentRunningOrchestrationHistoryEventRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentRunningOrchestrationHistoryEventRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ManagedContentRunningOrchestrationHistoryEventRepresentationNormalized, incoming: ManagedContentRunningOrchestrationHistoryEventRepresentationNormalized): 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: ManagedContentRunningOrchestrationHistoryEventRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Managed content running orchestration history event representation.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ManagedContentRunningOrchestrationHistoryEventRepresentationNormalized {
18
+ /** Actor Email */
19
+ actorEmail: string | null;
20
+ /** Actor Name */
21
+ actorName: string | null;
22
+ /** Assignee Dev Name or Email */
23
+ assigneeDevNameOrEmail: string | null;
24
+ /** Assignee Name */
25
+ assigneeName: string | null;
26
+ /** Assignee Type */
27
+ assigneeType: string | null;
28
+ /** Comments */
29
+ comments: string | null;
30
+ /** End Timestamp */
31
+ endTimestamp: string | null;
32
+ /** Orchestration Name */
33
+ orchestrationName: string;
34
+ /** Orchestration Version */
35
+ orchestrationVersion: number;
36
+ /** Stage Dev Name */
37
+ stageDevName: string;
38
+ /** Stage Label */
39
+ stageLabel: string;
40
+ /** Start Timestamp */
41
+ startTimestamp: string;
42
+ /** Status */
43
+ status: string;
44
+ /** Step Dev Name */
45
+ stepDevName: string;
46
+ /** Step Label */
47
+ stepLabel: string;
48
+ }
49
+ /**
50
+ * Managed content running orchestration history event representation.
51
+ *
52
+ * Keys:
53
+ * (none)
54
+ */
55
+ export interface ManagedContentRunningOrchestrationHistoryEventRepresentation {
56
+ actorEmail: string | null;
57
+ actorName: string | null;
58
+ assigneeDevNameOrEmail: string | null;
59
+ assigneeName: string | null;
60
+ assigneeType: string | null;
61
+ comments: string | null;
62
+ endTimestamp: string | null;
63
+ orchestrationName: string;
64
+ orchestrationVersion: number;
65
+ stageDevName: string;
66
+ stageLabel: string;
67
+ startTimestamp: string;
68
+ status: string;
69
+ stepDevName: string;
70
+ stepLabel: string;
71
+ }
@@ -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,71 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-cms-orchestrator",
3
+ "version": "0.1.0-dev1",
4
+ "license": "SEE LICENSE IN LICENSE.txt",
5
+ "description": "Integration between CMS and Flow Orchestrator.",
6
+ "main": "dist/es/es2018/cms-orchestrator.js",
7
+ "module": "dist/es/es2018/cms-orchestrator.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/cms-orchestrator.js",
18
+ "require": "./dist/es/es2018/cms-orchestrator.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
+ "bruno.darrigrand@salesforce.com"
28
+ ],
29
+ "scripts": {
30
+ "build": "yarn build:services",
31
+ "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
32
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
33
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
34
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
35
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-cms-orchestrator",
36
+ "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-cms-orchestrator",
37
+ "start": "nx build:karma && karma start",
38
+ "test": "nx build:karma && karma start --single-run",
39
+ "test:unit": "jest"
40
+ },
41
+ "nx": {
42
+ "targets": {
43
+ "build": {
44
+ "outputs": [
45
+ "{projectRoot}/dist",
46
+ "{projectRoot}/sfdc"
47
+ ]
48
+ },
49
+ "build:raml": {
50
+ "outputs": [
51
+ "{projectRoot}/src/generated"
52
+ ]
53
+ },
54
+ "build:karma": {
55
+ "outputs": [
56
+ "{projectRoot}/karma/dist"
57
+ ]
58
+ }
59
+ }
60
+ },
61
+ "dependencies": {
62
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
63
+ },
64
+ "devDependencies": {
65
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
66
+ "@salesforce/lds-karma": "^0.1.0-dev1"
67
+ },
68
+ "volta": {
69
+ "extends": "../../package.json"
70
+ }
71
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';