@salesforce/lds-adapters-marketing-cdp 1.140.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 (29) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/marketing-cdp.js +843 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +60 -0
  4. package/dist/es/es2018/types/src/generated/adapters/createAdg.d.ts +20 -0
  5. package/dist/es/es2018/types/src/generated/adapters/deleteAdg.d.ts +13 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getAdg.d.ts +28 -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 +6 -0
  9. package/dist/es/es2018/types/src/generated/resources/deleteSsotApplicationDataGraphsByAdgName.d.ts +12 -0
  10. package/dist/es/es2018/types/src/generated/resources/getSsotApplicationDataGraphsByAdgName.d.ts +16 -0
  11. package/dist/es/es2018/types/src/generated/resources/postSsotApplicationDataGraphs.d.ts +18 -0
  12. package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphDataRecencyInputRepresentation.d.ts +37 -0
  13. package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphFieldInputRepresentation.d.ts +31 -0
  14. package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphFieldOutputRepresentation.d.ts +31 -0
  15. package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphInputRepresentation.d.ts +46 -0
  16. package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphOutputRepresentation.d.ts +55 -0
  17. package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphPathToParentInputRepresentation.d.ts +31 -0
  18. package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphPathToParentOutputRepresentation.d.ts +31 -0
  19. package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphRecencyCriteriaOutputRepresentation.d.ts +37 -0
  20. package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphSourceInputRepresentation.d.ts +41 -0
  21. package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphSourceObjectOutputRepresentation.d.ts +42 -0
  22. package/dist/es/es2018/types/src/generated/types/CdpObjectBaseInputRepresentation.d.ts +40 -0
  23. package/dist/es/es2018/types/src/generated/types/CdpObjectBaseOutputRepresentation.d.ts +64 -0
  24. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  25. package/package.json +68 -0
  26. package/sfdc/index.d.ts +1 -0
  27. package/sfdc/index.js +919 -0
  28. package/src/raml/api.raml +320 -0
  29. package/src/raml/luvio.raml +41 -0
@@ -0,0 +1,40 @@
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare const VERSION = "221946d1bc7d3020417982df5d0392bb";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CdpObjectBaseInputRepresentation, existing: CdpObjectBaseInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpObjectBaseInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CdpObjectBaseInputRepresentationNormalized, incoming: CdpObjectBaseInputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: CdpObjectBaseInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ /**
11
+ * Base CDP Input representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CdpObjectBaseInputRepresentationNormalized {
17
+ /** dataspaceName */
18
+ dataspaceName?: string;
19
+ /** description */
20
+ description?: string;
21
+ /** refers to the `kind` property of object `CdpObjectBaseInputRepresentation` */
22
+ kind: string;
23
+ /** label */
24
+ label?: string;
25
+ /** name */
26
+ name?: string;
27
+ }
28
+ /**
29
+ * Base CDP Input representation
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface CdpObjectBaseInputRepresentation {
35
+ dataspaceName?: string;
36
+ description?: string;
37
+ kind: string;
38
+ label?: string;
39
+ name?: string;
40
+ }
@@ -0,0 +1,64 @@
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, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare const VERSION = "82688ff339f8191a42a72dcf49372149";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
6
+ name: string;
7
+ }
8
+ export type CdpObjectBaseOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
9
+ export type PartialCdpObjectBaseOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
11
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): CdpObjectBaseOutputRepresentationNormalizedKeyMetadata;
12
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CdpObjectBaseOutputRepresentation): string;
13
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CdpObjectBaseOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function normalize(input: CdpObjectBaseOutputRepresentation, existing: CdpObjectBaseOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpObjectBaseOutputRepresentationNormalized;
15
+ export declare const select: () => $64$luvio_engine_BaseFragment;
16
+ export declare function equals(existing: CdpObjectBaseOutputRepresentationNormalized, incoming: CdpObjectBaseOutputRepresentationNormalized): boolean;
17
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
18
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: CdpObjectBaseOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
19
+ /**
20
+ * Represents Cdp Base Output
21
+ *
22
+ * Keys:
23
+ * name (string): name
24
+ */
25
+ export interface CdpObjectBaseOutputRepresentationNormalized {
26
+ /** created by */
27
+ createdBy?: string;
28
+ /** created date */
29
+ createdDate?: string;
30
+ /** dataspacename */
31
+ dataspaceName?: string;
32
+ /** description */
33
+ description?: string;
34
+ /** id */
35
+ id?: string;
36
+ /** refers to the `kind` property of object `CdpObjectBaseOutputRepresentation` */
37
+ kind: string;
38
+ /** label */
39
+ label?: string;
40
+ /** modified by */
41
+ modifiedBy?: string;
42
+ /** modified date */
43
+ modifiedDate?: string;
44
+ /** name */
45
+ name: string;
46
+ }
47
+ /**
48
+ * Represents Cdp Base Output
49
+ *
50
+ * Keys:
51
+ * name (string): name
52
+ */
53
+ export interface CdpObjectBaseOutputRepresentation {
54
+ createdBy?: string;
55
+ createdDate?: string;
56
+ dataspaceName?: string;
57
+ description?: string;
58
+ id?: string;
59
+ kind: string;
60
+ label?: string;
61
+ modifiedBy?: string;
62
+ modifiedDate?: string;
63
+ name: string;
64
+ }
@@ -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,68 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-marketing-cdp",
3
+ "version": "1.140.0",
4
+ "description": "LDS adapters for CDP",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/marketing-cdp.js",
7
+ "module": "dist/es/es2018/marketing-cdp.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/marketing-cdp.js",
18
+ "require": "./dist/es/es2018/marketing-cdp.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sdfc": {
27
+ "namespace": "lightning",
28
+ "module": "marketingCdpApi"
29
+ },
30
+ "contributors": [
31
+ "cdp_hot_layer_india@salesforce.com"
32
+ ],
33
+ "scripts": {
34
+ "build": "yarn build:raml && yarn build:services && yarn build:karma",
35
+ "build:karma": "rollup --config rollup.config.karma.js",
36
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
37
+ "build:services": "rollup --config rollup.config.js",
38
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
39
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-marketing-cdp",
40
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-marketing-cdp",
41
+ "start": "karma start",
42
+ "test": "karma start --single-run",
43
+ "test:compat": "karma start --single-run --compat",
44
+ "test:unit": "jest"
45
+ },
46
+ "dependencies": {
47
+ "@salesforce/lds-bindings": "*"
48
+ },
49
+ "devDependencies": {
50
+ "@salesforce/lds-karma": "*",
51
+ "@salesforce/lds-compiler-plugins": "*"
52
+ },
53
+ "nx": {
54
+ "targets": {
55
+ "build": {
56
+ "outputs": [
57
+ "packages/lds-adapters-marketing-cdp/dist",
58
+ "packages/lds-adapters-marketing-cdp/karma/dist",
59
+ "packages/lds-adapters-marketing-cdp/sfdc",
60
+ "packages/lds-adapters-marketing-cdp/src/generated"
61
+ ]
62
+ }
63
+ }
64
+ },
65
+ "volta": {
66
+ "extends": "../../package.json"
67
+ }
68
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';