@salesforce/lds-adapters-marketing-cdp 1.266.0 → 1.268.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.
- package/dist/es/es2018/marketing-cdp.js +60 -60
- package/dist/es/es2018/types/src/generated/adapters/createDataGraph.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/resources/postSsotDataGraphs.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/CdpDataGraphInputRepresentation.d.ts +14 -14
- package/dist/es/es2018/types/src/generated/types/CdpDataGraphOutputRepresentation.d.ts +14 -14
- package/package.json +4 -4
- package/sfdc/index.js +61 -61
- package/src/raml/api.raml +12 -12
|
@@ -375,7 +375,7 @@ function equals$4(existing, incoming) {
|
|
|
375
375
|
return true;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
const VERSION$2 = "
|
|
378
|
+
const VERSION$2 = "5d9e99f6f73f52f2cfcb77b921003155";
|
|
379
379
|
function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
380
380
|
const validateCdpObjectBaseOutputRepresentation_validateError = validate$8(obj, path);
|
|
381
381
|
if (validateCdpObjectBaseOutputRepresentation_validateError !== null) {
|
|
@@ -385,6 +385,13 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
385
385
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
386
386
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
387
387
|
}
|
|
388
|
+
if (obj.cacheDurationInDays !== undefined) {
|
|
389
|
+
const obj_cacheDurationInDays = obj.cacheDurationInDays;
|
|
390
|
+
const path_cacheDurationInDays = path + '.cacheDurationInDays';
|
|
391
|
+
if (typeof obj_cacheDurationInDays !== 'number' || (typeof obj_cacheDurationInDays === 'number' && Math.floor(obj_cacheDurationInDays) !== obj_cacheDurationInDays)) {
|
|
392
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_cacheDurationInDays + '" (at "' + path_cacheDurationInDays + '")');
|
|
393
|
+
}
|
|
394
|
+
}
|
|
388
395
|
const obj_extendedProperties = obj.extendedProperties;
|
|
389
396
|
const path_extendedProperties = path + '.extendedProperties';
|
|
390
397
|
if (typeof obj_extendedProperties !== 'string') {
|
|
@@ -395,11 +402,11 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
395
402
|
if (typeof obj_idDmoName !== 'string') {
|
|
396
403
|
return new TypeError('Expected "string" but received "' + typeof obj_idDmoName + '" (at "' + path_idDmoName + '")');
|
|
397
404
|
}
|
|
398
|
-
if (obj.
|
|
399
|
-
const
|
|
400
|
-
const
|
|
401
|
-
if (typeof
|
|
402
|
-
return new TypeError('Expected "boolean" but received "' + typeof
|
|
405
|
+
if (obj.isRecordCachingDisabled !== undefined) {
|
|
406
|
+
const obj_isRecordCachingDisabled = obj.isRecordCachingDisabled;
|
|
407
|
+
const path_isRecordCachingDisabled = path + '.isRecordCachingDisabled';
|
|
408
|
+
if (typeof obj_isRecordCachingDisabled !== 'boolean') {
|
|
409
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRecordCachingDisabled + '" (at "' + path_isRecordCachingDisabled + '")');
|
|
403
410
|
}
|
|
404
411
|
}
|
|
405
412
|
if (obj.lastRunStatus !== undefined) {
|
|
@@ -409,37 +416,30 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
409
416
|
return new TypeError('Expected "string" but received "' + typeof obj_lastRunStatus + '" (at "' + path_lastRunStatus + '")');
|
|
410
417
|
}
|
|
411
418
|
}
|
|
419
|
+
if (obj.maxRecordsCached !== undefined) {
|
|
420
|
+
const obj_maxRecordsCached = obj.maxRecordsCached;
|
|
421
|
+
const path_maxRecordsCached = path + '.maxRecordsCached';
|
|
422
|
+
if (typeof obj_maxRecordsCached !== 'number' || (typeof obj_maxRecordsCached === 'number' && Math.floor(obj_maxRecordsCached) !== obj_maxRecordsCached)) {
|
|
423
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_maxRecordsCached + '" (at "' + path_maxRecordsCached + '")');
|
|
424
|
+
}
|
|
425
|
+
}
|
|
412
426
|
const obj_primaryObjectName = obj.primaryObjectName;
|
|
413
427
|
const path_primaryObjectName = path + '.primaryObjectName';
|
|
414
428
|
if (typeof obj_primaryObjectName !== 'string') {
|
|
415
429
|
return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectName + '" (at "' + path_primaryObjectName + '")');
|
|
416
430
|
}
|
|
417
|
-
if (obj.
|
|
418
|
-
const
|
|
419
|
-
const
|
|
420
|
-
if (typeof
|
|
421
|
-
return new TypeError('Expected "integer" but received "' + typeof
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
if (obj.rtLookBackInDays !== undefined) {
|
|
425
|
-
const obj_rtLookBackInDays = obj.rtLookBackInDays;
|
|
426
|
-
const path_rtLookBackInDays = path + '.rtLookBackInDays';
|
|
427
|
-
if (typeof obj_rtLookBackInDays !== 'number' || (typeof obj_rtLookBackInDays === 'number' && Math.floor(obj_rtLookBackInDays) !== obj_rtLookBackInDays)) {
|
|
428
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_rtLookBackInDays + '" (at "' + path_rtLookBackInDays + '")');
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
if (obj.rtMaxRecordsCached !== undefined) {
|
|
432
|
-
const obj_rtMaxRecordsCached = obj.rtMaxRecordsCached;
|
|
433
|
-
const path_rtMaxRecordsCached = path + '.rtMaxRecordsCached';
|
|
434
|
-
if (typeof obj_rtMaxRecordsCached !== 'number' || (typeof obj_rtMaxRecordsCached === 'number' && Math.floor(obj_rtMaxRecordsCached) !== obj_rtMaxRecordsCached)) {
|
|
435
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_rtMaxRecordsCached + '" (at "' + path_rtMaxRecordsCached + '")');
|
|
431
|
+
if (obj.sessionEnd !== undefined) {
|
|
432
|
+
const obj_sessionEnd = obj.sessionEnd;
|
|
433
|
+
const path_sessionEnd = path + '.sessionEnd';
|
|
434
|
+
if (typeof obj_sessionEnd !== 'number' || (typeof obj_sessionEnd === 'number' && Math.floor(obj_sessionEnd) !== obj_sessionEnd)) {
|
|
435
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sessionEnd + '" (at "' + path_sessionEnd + '")');
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
if (obj.
|
|
439
|
-
const
|
|
440
|
-
const
|
|
441
|
-
if (typeof
|
|
442
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
438
|
+
if (obj.sessionEndTimeUnit !== undefined) {
|
|
439
|
+
const obj_sessionEndTimeUnit = obj.sessionEndTimeUnit;
|
|
440
|
+
const path_sessionEndTimeUnit = path + '.sessionEndTimeUnit';
|
|
441
|
+
if (typeof obj_sessionEndTimeUnit !== 'string') {
|
|
442
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sessionEndTimeUnit + '" (at "' + path_sessionEndTimeUnit + '")');
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
const obj_sourceObject = obj.sourceObject;
|
|
@@ -497,55 +497,55 @@ function equals$3(existing, incoming) {
|
|
|
497
497
|
if (equals$5(existing, incoming) === false) {
|
|
498
498
|
return false;
|
|
499
499
|
}
|
|
500
|
-
const
|
|
501
|
-
const
|
|
500
|
+
const existing_isRecordCachingDisabled = existing.isRecordCachingDisabled;
|
|
501
|
+
const incoming_isRecordCachingDisabled = incoming.isRecordCachingDisabled;
|
|
502
502
|
// if at least one of these optionals is defined
|
|
503
|
-
if (
|
|
503
|
+
if (existing_isRecordCachingDisabled !== undefined || incoming_isRecordCachingDisabled !== undefined) {
|
|
504
504
|
// if one of these is not defined we know the other is defined and therefore
|
|
505
505
|
// not equal
|
|
506
|
-
if (
|
|
506
|
+
if (existing_isRecordCachingDisabled === undefined || incoming_isRecordCachingDisabled === undefined) {
|
|
507
507
|
return false;
|
|
508
508
|
}
|
|
509
|
-
if (!(
|
|
509
|
+
if (!(existing_isRecordCachingDisabled === incoming_isRecordCachingDisabled)) {
|
|
510
510
|
return false;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
const
|
|
514
|
-
const
|
|
513
|
+
const existing_cacheDurationInDays = existing.cacheDurationInDays;
|
|
514
|
+
const incoming_cacheDurationInDays = incoming.cacheDurationInDays;
|
|
515
515
|
// if at least one of these optionals is defined
|
|
516
|
-
if (
|
|
516
|
+
if (existing_cacheDurationInDays !== undefined || incoming_cacheDurationInDays !== undefined) {
|
|
517
517
|
// if one of these is not defined we know the other is defined and therefore
|
|
518
518
|
// not equal
|
|
519
|
-
if (
|
|
519
|
+
if (existing_cacheDurationInDays === undefined || incoming_cacheDurationInDays === undefined) {
|
|
520
520
|
return false;
|
|
521
521
|
}
|
|
522
|
-
if (!(
|
|
522
|
+
if (!(existing_cacheDurationInDays === incoming_cacheDurationInDays)) {
|
|
523
523
|
return false;
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
const
|
|
527
|
-
const
|
|
526
|
+
const existing_maxRecordsCached = existing.maxRecordsCached;
|
|
527
|
+
const incoming_maxRecordsCached = incoming.maxRecordsCached;
|
|
528
528
|
// if at least one of these optionals is defined
|
|
529
|
-
if (
|
|
529
|
+
if (existing_maxRecordsCached !== undefined || incoming_maxRecordsCached !== undefined) {
|
|
530
530
|
// if one of these is not defined we know the other is defined and therefore
|
|
531
531
|
// not equal
|
|
532
|
-
if (
|
|
532
|
+
if (existing_maxRecordsCached === undefined || incoming_maxRecordsCached === undefined) {
|
|
533
533
|
return false;
|
|
534
534
|
}
|
|
535
|
-
if (!(
|
|
535
|
+
if (!(existing_maxRecordsCached === incoming_maxRecordsCached)) {
|
|
536
536
|
return false;
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
const
|
|
540
|
-
const
|
|
539
|
+
const existing_sessionEnd = existing.sessionEnd;
|
|
540
|
+
const incoming_sessionEnd = incoming.sessionEnd;
|
|
541
541
|
// if at least one of these optionals is defined
|
|
542
|
-
if (
|
|
542
|
+
if (existing_sessionEnd !== undefined || incoming_sessionEnd !== undefined) {
|
|
543
543
|
// if one of these is not defined we know the other is defined and therefore
|
|
544
544
|
// not equal
|
|
545
|
-
if (
|
|
545
|
+
if (existing_sessionEnd === undefined || incoming_sessionEnd === undefined) {
|
|
546
546
|
return false;
|
|
547
547
|
}
|
|
548
|
-
if (!(
|
|
548
|
+
if (!(existing_sessionEnd === incoming_sessionEnd)) {
|
|
549
549
|
return false;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -577,16 +577,16 @@ function equals$3(existing, incoming) {
|
|
|
577
577
|
if (!(existing_primaryObjectName === incoming_primaryObjectName)) {
|
|
578
578
|
return false;
|
|
579
579
|
}
|
|
580
|
-
const
|
|
581
|
-
const
|
|
580
|
+
const existing_sessionEndTimeUnit = existing.sessionEndTimeUnit;
|
|
581
|
+
const incoming_sessionEndTimeUnit = incoming.sessionEndTimeUnit;
|
|
582
582
|
// if at least one of these optionals is defined
|
|
583
|
-
if (
|
|
583
|
+
if (existing_sessionEndTimeUnit !== undefined || incoming_sessionEndTimeUnit !== undefined) {
|
|
584
584
|
// if one of these is not defined we know the other is defined and therefore
|
|
585
585
|
// not equal
|
|
586
|
-
if (
|
|
586
|
+
if (existing_sessionEndTimeUnit === undefined || incoming_sessionEndTimeUnit === undefined) {
|
|
587
587
|
return false;
|
|
588
588
|
}
|
|
589
|
-
if (!(
|
|
589
|
+
if (!(existing_sessionEndTimeUnit === incoming_sessionEndTimeUnit)) {
|
|
590
590
|
return false;
|
|
591
591
|
}
|
|
592
592
|
}
|
|
@@ -693,11 +693,11 @@ const createDataGraph_ConfigPropertyMetadata = [
|
|
|
693
693
|
generateParamConfigMetadata('primaryObjectName', true, 2 /* Body */, 0 /* String */),
|
|
694
694
|
generateParamConfigMetadata('sourceObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
695
695
|
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
696
|
-
generateParamConfigMetadata('
|
|
697
|
-
generateParamConfigMetadata('
|
|
698
|
-
generateParamConfigMetadata('
|
|
699
|
-
generateParamConfigMetadata('
|
|
700
|
-
generateParamConfigMetadata('
|
|
696
|
+
generateParamConfigMetadata('isRecordCachingDisabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
697
|
+
generateParamConfigMetadata('cacheDurationInDays', false, 2 /* Body */, 3 /* Integer */),
|
|
698
|
+
generateParamConfigMetadata('maxRecordsCached', false, 2 /* Body */, 3 /* Integer */),
|
|
699
|
+
generateParamConfigMetadata('sessionEnd', false, 2 /* Body */, 3 /* Integer */),
|
|
700
|
+
generateParamConfigMetadata('sessionEndTimeUnit', false, 2 /* Body */, 0 /* String */),
|
|
701
701
|
];
|
|
702
702
|
const createDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createDataGraph_ConfigPropertyMetadata);
|
|
703
703
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(createDataGraph_ConfigPropertyMetadata);
|
|
@@ -13,11 +13,11 @@ export interface CreateDataGraphConfig {
|
|
|
13
13
|
primaryObjectName: string;
|
|
14
14
|
sourceObject: unknown;
|
|
15
15
|
type?: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
isRecordCachingDisabled?: boolean;
|
|
17
|
+
cacheDurationInDays?: number;
|
|
18
|
+
maxRecordsCached?: number;
|
|
19
|
+
sessionEnd?: number;
|
|
20
|
+
sessionEndTimeUnit?: string;
|
|
21
21
|
}
|
|
22
22
|
export declare const createResourceParams: (config: CreateDataGraphConfig) => resources_postSsotDataGraphs_ResourceRequestConfig;
|
|
23
23
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateDataGraphConfig>): adapter$45$utils_Untrusted<CreateDataGraphConfig>;
|
|
@@ -9,11 +9,11 @@ export interface ResourceRequestConfig {
|
|
|
9
9
|
primaryObjectName: string;
|
|
10
10
|
sourceObject: unknown;
|
|
11
11
|
type?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
isRecordCachingDisabled?: boolean;
|
|
13
|
+
cacheDurationInDays?: number;
|
|
14
|
+
maxRecordsCached?: number;
|
|
15
|
+
sessionEnd?: number;
|
|
16
|
+
sessionEndTimeUnit?: string;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "73e2a9f7ea66b54800ac82d04ab5189b";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: CdpDataGraphInputRepresentation, existing: CdpDataGraphInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpDataGraphInputRepresentationNormalized;
|
|
@@ -14,26 +14,26 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface CdpDataGraphInputRepresentationNormalized {
|
|
17
|
+
/** No of days last accessed records are cached */
|
|
18
|
+
cacheDurationInDays?: number;
|
|
17
19
|
/** dataspaceName */
|
|
18
20
|
dataspaceName?: string;
|
|
19
21
|
/** description */
|
|
20
22
|
description?: string;
|
|
21
|
-
/** Is prefetch
|
|
22
|
-
|
|
23
|
+
/** Is prefetch is disabled for given data graph */
|
|
24
|
+
isRecordCachingDisabled?: boolean;
|
|
23
25
|
/** label */
|
|
24
26
|
label?: string;
|
|
27
|
+
/** Max no of records to cache */
|
|
28
|
+
maxRecordsCached?: number;
|
|
25
29
|
/** name */
|
|
26
30
|
name?: string;
|
|
27
31
|
/** Primary Object Name */
|
|
28
32
|
primaryObjectName: string;
|
|
29
33
|
/** Session duration */
|
|
30
|
-
|
|
31
|
-
/** No of days last accessed records are cached */
|
|
32
|
-
rtLookBackInDays?: number;
|
|
33
|
-
/** Max no of records to cache */
|
|
34
|
-
rtMaxRecordsCached?: number;
|
|
34
|
+
sessionEnd?: number;
|
|
35
35
|
/** Unit of Session duration */
|
|
36
|
-
|
|
36
|
+
sessionEndTimeUnit?: string;
|
|
37
37
|
/** source object */
|
|
38
38
|
sourceObject: unknown;
|
|
39
39
|
/** data graph type */
|
|
@@ -46,16 +46,16 @@ export interface CdpDataGraphInputRepresentationNormalized {
|
|
|
46
46
|
* (none)
|
|
47
47
|
*/
|
|
48
48
|
export interface CdpDataGraphInputRepresentation {
|
|
49
|
+
cacheDurationInDays?: number;
|
|
49
50
|
dataspaceName?: string;
|
|
50
51
|
description?: string;
|
|
51
|
-
|
|
52
|
+
isRecordCachingDisabled?: boolean;
|
|
52
53
|
label?: string;
|
|
54
|
+
maxRecordsCached?: number;
|
|
53
55
|
name?: string;
|
|
54
56
|
primaryObjectName: string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
rtMaxRecordsCached?: number;
|
|
58
|
-
rtSessionTimeUnit?: string;
|
|
57
|
+
sessionEnd?: number;
|
|
58
|
+
sessionEndTimeUnit?: string;
|
|
59
59
|
sourceObject: unknown;
|
|
60
60
|
type?: string;
|
|
61
61
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { keyBuilder as CdpObjectBaseOutputRepresentation_keyBuilder, CdpObjectBaseOutputRepresentation as CdpObjectBaseOutputRepresentation_CdpObjectBaseOutputRepresentation } from './CdpObjectBaseOutputRepresentation';
|
|
2
2
|
import { CdpDataGraphSourceObjectOutputRepresentation as CdpDataGraphSourceObjectOutputRepresentation_CdpDataGraphSourceObjectOutputRepresentation } from './CdpDataGraphSourceObjectOutputRepresentation';
|
|
3
3
|
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "5d9e99f6f73f52f2cfcb77b921003155";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: Parameters<typeof CdpObjectBaseOutputRepresentation_keyBuilder>[1]): string;
|
|
@@ -20,24 +20,24 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
20
20
|
* name (string): name
|
|
21
21
|
*/
|
|
22
22
|
export interface CdpDataGraphOutputRepresentationNormalized extends CdpObjectBaseOutputRepresentation_CdpObjectBaseOutputRepresentation {
|
|
23
|
+
/** No of days last accessed records are cached */
|
|
24
|
+
cacheDurationInDays?: number;
|
|
23
25
|
/** extended properties */
|
|
24
26
|
extendedProperties: string;
|
|
25
27
|
/** id_dmo_name */
|
|
26
28
|
idDmoName: string;
|
|
27
|
-
/** Is prefetch
|
|
28
|
-
|
|
29
|
+
/** Is prefetch is disabled for given data graph */
|
|
30
|
+
isRecordCachingDisabled?: boolean;
|
|
29
31
|
/** last run status */
|
|
30
32
|
lastRunStatus?: string;
|
|
33
|
+
/** Max no of records to cache */
|
|
34
|
+
maxRecordsCached?: number;
|
|
31
35
|
/** primary object developer name */
|
|
32
36
|
primaryObjectName: string;
|
|
33
37
|
/** Session duration */
|
|
34
|
-
|
|
35
|
-
/** No of days last accessed records are cached */
|
|
36
|
-
rtLookBackInDays?: number;
|
|
37
|
-
/** Max no of records to cache */
|
|
38
|
-
rtMaxRecordsCached?: number;
|
|
38
|
+
sessionEnd?: number;
|
|
39
39
|
/** Unit of Session duration */
|
|
40
|
-
|
|
40
|
+
sessionEndTimeUnit?: string;
|
|
41
41
|
/** object */
|
|
42
42
|
sourceObject: $64$luvio_engine_StoreLink;
|
|
43
43
|
/** status */
|
|
@@ -56,15 +56,15 @@ export interface CdpDataGraphOutputRepresentationNormalized extends CdpObjectBas
|
|
|
56
56
|
* name (string): name
|
|
57
57
|
*/
|
|
58
58
|
export interface CdpDataGraphOutputRepresentation extends CdpObjectBaseOutputRepresentation_CdpObjectBaseOutputRepresentation {
|
|
59
|
+
cacheDurationInDays?: number;
|
|
59
60
|
extendedProperties: string;
|
|
60
61
|
idDmoName: string;
|
|
61
|
-
|
|
62
|
+
isRecordCachingDisabled?: boolean;
|
|
62
63
|
lastRunStatus?: string;
|
|
64
|
+
maxRecordsCached?: number;
|
|
63
65
|
primaryObjectName: string;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
rtMaxRecordsCached?: number;
|
|
67
|
-
rtSessionTimeUnit?: string;
|
|
66
|
+
sessionEnd?: number;
|
|
67
|
+
sessionEndTimeUnit?: string;
|
|
68
68
|
sourceObject: CdpDataGraphSourceObjectOutputRepresentation_CdpDataGraphSourceObjectOutputRepresentation;
|
|
69
69
|
status: string;
|
|
70
70
|
type?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-marketing-cdp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.268.0",
|
|
4
4
|
"description": "LDS adapters for CDP",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/marketing-cdp.js",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test:unit": "jest"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@salesforce/lds-bindings": "^1.
|
|
46
|
+
"@salesforce/lds-bindings": "^1.268.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
50
|
-
"@salesforce/lds-karma": "^1.
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^1.268.0",
|
|
50
|
+
"@salesforce/lds-karma": "^1.268.0"
|
|
51
51
|
},
|
|
52
52
|
"nx": {
|
|
53
53
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -385,7 +385,7 @@ function equals$4(existing, incoming) {
|
|
|
385
385
|
return true;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
const VERSION$2 = "
|
|
388
|
+
const VERSION$2 = "5d9e99f6f73f52f2cfcb77b921003155";
|
|
389
389
|
function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
390
390
|
const validateCdpObjectBaseOutputRepresentation_validateError = validate$8(obj, path);
|
|
391
391
|
if (validateCdpObjectBaseOutputRepresentation_validateError !== null) {
|
|
@@ -395,6 +395,13 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
395
395
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
396
396
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
397
397
|
}
|
|
398
|
+
if (obj.cacheDurationInDays !== undefined) {
|
|
399
|
+
const obj_cacheDurationInDays = obj.cacheDurationInDays;
|
|
400
|
+
const path_cacheDurationInDays = path + '.cacheDurationInDays';
|
|
401
|
+
if (typeof obj_cacheDurationInDays !== 'number' || (typeof obj_cacheDurationInDays === 'number' && Math.floor(obj_cacheDurationInDays) !== obj_cacheDurationInDays)) {
|
|
402
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_cacheDurationInDays + '" (at "' + path_cacheDurationInDays + '")');
|
|
403
|
+
}
|
|
404
|
+
}
|
|
398
405
|
const obj_extendedProperties = obj.extendedProperties;
|
|
399
406
|
const path_extendedProperties = path + '.extendedProperties';
|
|
400
407
|
if (typeof obj_extendedProperties !== 'string') {
|
|
@@ -405,11 +412,11 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
405
412
|
if (typeof obj_idDmoName !== 'string') {
|
|
406
413
|
return new TypeError('Expected "string" but received "' + typeof obj_idDmoName + '" (at "' + path_idDmoName + '")');
|
|
407
414
|
}
|
|
408
|
-
if (obj.
|
|
409
|
-
const
|
|
410
|
-
const
|
|
411
|
-
if (typeof
|
|
412
|
-
return new TypeError('Expected "boolean" but received "' + typeof
|
|
415
|
+
if (obj.isRecordCachingDisabled !== undefined) {
|
|
416
|
+
const obj_isRecordCachingDisabled = obj.isRecordCachingDisabled;
|
|
417
|
+
const path_isRecordCachingDisabled = path + '.isRecordCachingDisabled';
|
|
418
|
+
if (typeof obj_isRecordCachingDisabled !== 'boolean') {
|
|
419
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRecordCachingDisabled + '" (at "' + path_isRecordCachingDisabled + '")');
|
|
413
420
|
}
|
|
414
421
|
}
|
|
415
422
|
if (obj.lastRunStatus !== undefined) {
|
|
@@ -419,37 +426,30 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
419
426
|
return new TypeError('Expected "string" but received "' + typeof obj_lastRunStatus + '" (at "' + path_lastRunStatus + '")');
|
|
420
427
|
}
|
|
421
428
|
}
|
|
429
|
+
if (obj.maxRecordsCached !== undefined) {
|
|
430
|
+
const obj_maxRecordsCached = obj.maxRecordsCached;
|
|
431
|
+
const path_maxRecordsCached = path + '.maxRecordsCached';
|
|
432
|
+
if (typeof obj_maxRecordsCached !== 'number' || (typeof obj_maxRecordsCached === 'number' && Math.floor(obj_maxRecordsCached) !== obj_maxRecordsCached)) {
|
|
433
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_maxRecordsCached + '" (at "' + path_maxRecordsCached + '")');
|
|
434
|
+
}
|
|
435
|
+
}
|
|
422
436
|
const obj_primaryObjectName = obj.primaryObjectName;
|
|
423
437
|
const path_primaryObjectName = path + '.primaryObjectName';
|
|
424
438
|
if (typeof obj_primaryObjectName !== 'string') {
|
|
425
439
|
return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectName + '" (at "' + path_primaryObjectName + '")');
|
|
426
440
|
}
|
|
427
|
-
if (obj.
|
|
428
|
-
const
|
|
429
|
-
const
|
|
430
|
-
if (typeof
|
|
431
|
-
return new TypeError('Expected "integer" but received "' + typeof
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
if (obj.rtLookBackInDays !== undefined) {
|
|
435
|
-
const obj_rtLookBackInDays = obj.rtLookBackInDays;
|
|
436
|
-
const path_rtLookBackInDays = path + '.rtLookBackInDays';
|
|
437
|
-
if (typeof obj_rtLookBackInDays !== 'number' || (typeof obj_rtLookBackInDays === 'number' && Math.floor(obj_rtLookBackInDays) !== obj_rtLookBackInDays)) {
|
|
438
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_rtLookBackInDays + '" (at "' + path_rtLookBackInDays + '")');
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
if (obj.rtMaxRecordsCached !== undefined) {
|
|
442
|
-
const obj_rtMaxRecordsCached = obj.rtMaxRecordsCached;
|
|
443
|
-
const path_rtMaxRecordsCached = path + '.rtMaxRecordsCached';
|
|
444
|
-
if (typeof obj_rtMaxRecordsCached !== 'number' || (typeof obj_rtMaxRecordsCached === 'number' && Math.floor(obj_rtMaxRecordsCached) !== obj_rtMaxRecordsCached)) {
|
|
445
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_rtMaxRecordsCached + '" (at "' + path_rtMaxRecordsCached + '")');
|
|
441
|
+
if (obj.sessionEnd !== undefined) {
|
|
442
|
+
const obj_sessionEnd = obj.sessionEnd;
|
|
443
|
+
const path_sessionEnd = path + '.sessionEnd';
|
|
444
|
+
if (typeof obj_sessionEnd !== 'number' || (typeof obj_sessionEnd === 'number' && Math.floor(obj_sessionEnd) !== obj_sessionEnd)) {
|
|
445
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sessionEnd + '" (at "' + path_sessionEnd + '")');
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
if (obj.
|
|
449
|
-
const
|
|
450
|
-
const
|
|
451
|
-
if (typeof
|
|
452
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
448
|
+
if (obj.sessionEndTimeUnit !== undefined) {
|
|
449
|
+
const obj_sessionEndTimeUnit = obj.sessionEndTimeUnit;
|
|
450
|
+
const path_sessionEndTimeUnit = path + '.sessionEndTimeUnit';
|
|
451
|
+
if (typeof obj_sessionEndTimeUnit !== 'string') {
|
|
452
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sessionEndTimeUnit + '" (at "' + path_sessionEndTimeUnit + '")');
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
const obj_sourceObject = obj.sourceObject;
|
|
@@ -507,55 +507,55 @@ function equals$3(existing, incoming) {
|
|
|
507
507
|
if (equals$5(existing, incoming) === false) {
|
|
508
508
|
return false;
|
|
509
509
|
}
|
|
510
|
-
const
|
|
511
|
-
const
|
|
510
|
+
const existing_isRecordCachingDisabled = existing.isRecordCachingDisabled;
|
|
511
|
+
const incoming_isRecordCachingDisabled = incoming.isRecordCachingDisabled;
|
|
512
512
|
// if at least one of these optionals is defined
|
|
513
|
-
if (
|
|
513
|
+
if (existing_isRecordCachingDisabled !== undefined || incoming_isRecordCachingDisabled !== undefined) {
|
|
514
514
|
// if one of these is not defined we know the other is defined and therefore
|
|
515
515
|
// not equal
|
|
516
|
-
if (
|
|
516
|
+
if (existing_isRecordCachingDisabled === undefined || incoming_isRecordCachingDisabled === undefined) {
|
|
517
517
|
return false;
|
|
518
518
|
}
|
|
519
|
-
if (!(
|
|
519
|
+
if (!(existing_isRecordCachingDisabled === incoming_isRecordCachingDisabled)) {
|
|
520
520
|
return false;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
const
|
|
524
|
-
const
|
|
523
|
+
const existing_cacheDurationInDays = existing.cacheDurationInDays;
|
|
524
|
+
const incoming_cacheDurationInDays = incoming.cacheDurationInDays;
|
|
525
525
|
// if at least one of these optionals is defined
|
|
526
|
-
if (
|
|
526
|
+
if (existing_cacheDurationInDays !== undefined || incoming_cacheDurationInDays !== undefined) {
|
|
527
527
|
// if one of these is not defined we know the other is defined and therefore
|
|
528
528
|
// not equal
|
|
529
|
-
if (
|
|
529
|
+
if (existing_cacheDurationInDays === undefined || incoming_cacheDurationInDays === undefined) {
|
|
530
530
|
return false;
|
|
531
531
|
}
|
|
532
|
-
if (!(
|
|
532
|
+
if (!(existing_cacheDurationInDays === incoming_cacheDurationInDays)) {
|
|
533
533
|
return false;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
const
|
|
537
|
-
const
|
|
536
|
+
const existing_maxRecordsCached = existing.maxRecordsCached;
|
|
537
|
+
const incoming_maxRecordsCached = incoming.maxRecordsCached;
|
|
538
538
|
// if at least one of these optionals is defined
|
|
539
|
-
if (
|
|
539
|
+
if (existing_maxRecordsCached !== undefined || incoming_maxRecordsCached !== undefined) {
|
|
540
540
|
// if one of these is not defined we know the other is defined and therefore
|
|
541
541
|
// not equal
|
|
542
|
-
if (
|
|
542
|
+
if (existing_maxRecordsCached === undefined || incoming_maxRecordsCached === undefined) {
|
|
543
543
|
return false;
|
|
544
544
|
}
|
|
545
|
-
if (!(
|
|
545
|
+
if (!(existing_maxRecordsCached === incoming_maxRecordsCached)) {
|
|
546
546
|
return false;
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
const
|
|
550
|
-
const
|
|
549
|
+
const existing_sessionEnd = existing.sessionEnd;
|
|
550
|
+
const incoming_sessionEnd = incoming.sessionEnd;
|
|
551
551
|
// if at least one of these optionals is defined
|
|
552
|
-
if (
|
|
552
|
+
if (existing_sessionEnd !== undefined || incoming_sessionEnd !== undefined) {
|
|
553
553
|
// if one of these is not defined we know the other is defined and therefore
|
|
554
554
|
// not equal
|
|
555
|
-
if (
|
|
555
|
+
if (existing_sessionEnd === undefined || incoming_sessionEnd === undefined) {
|
|
556
556
|
return false;
|
|
557
557
|
}
|
|
558
|
-
if (!(
|
|
558
|
+
if (!(existing_sessionEnd === incoming_sessionEnd)) {
|
|
559
559
|
return false;
|
|
560
560
|
}
|
|
561
561
|
}
|
|
@@ -587,16 +587,16 @@ function equals$3(existing, incoming) {
|
|
|
587
587
|
if (!(existing_primaryObjectName === incoming_primaryObjectName)) {
|
|
588
588
|
return false;
|
|
589
589
|
}
|
|
590
|
-
const
|
|
591
|
-
const
|
|
590
|
+
const existing_sessionEndTimeUnit = existing.sessionEndTimeUnit;
|
|
591
|
+
const incoming_sessionEndTimeUnit = incoming.sessionEndTimeUnit;
|
|
592
592
|
// if at least one of these optionals is defined
|
|
593
|
-
if (
|
|
593
|
+
if (existing_sessionEndTimeUnit !== undefined || incoming_sessionEndTimeUnit !== undefined) {
|
|
594
594
|
// if one of these is not defined we know the other is defined and therefore
|
|
595
595
|
// not equal
|
|
596
|
-
if (
|
|
596
|
+
if (existing_sessionEndTimeUnit === undefined || incoming_sessionEndTimeUnit === undefined) {
|
|
597
597
|
return false;
|
|
598
598
|
}
|
|
599
|
-
if (!(
|
|
599
|
+
if (!(existing_sessionEndTimeUnit === incoming_sessionEndTimeUnit)) {
|
|
600
600
|
return false;
|
|
601
601
|
}
|
|
602
602
|
}
|
|
@@ -703,11 +703,11 @@ const createDataGraph_ConfigPropertyMetadata = [
|
|
|
703
703
|
generateParamConfigMetadata('primaryObjectName', true, 2 /* Body */, 0 /* String */),
|
|
704
704
|
generateParamConfigMetadata('sourceObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
705
705
|
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
706
|
-
generateParamConfigMetadata('
|
|
707
|
-
generateParamConfigMetadata('
|
|
708
|
-
generateParamConfigMetadata('
|
|
709
|
-
generateParamConfigMetadata('
|
|
710
|
-
generateParamConfigMetadata('
|
|
706
|
+
generateParamConfigMetadata('isRecordCachingDisabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
707
|
+
generateParamConfigMetadata('cacheDurationInDays', false, 2 /* Body */, 3 /* Integer */),
|
|
708
|
+
generateParamConfigMetadata('maxRecordsCached', false, 2 /* Body */, 3 /* Integer */),
|
|
709
|
+
generateParamConfigMetadata('sessionEnd', false, 2 /* Body */, 3 /* Integer */),
|
|
710
|
+
generateParamConfigMetadata('sessionEndTimeUnit', false, 2 /* Body */, 0 /* String */),
|
|
711
711
|
];
|
|
712
712
|
const createDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createDataGraph_ConfigPropertyMetadata);
|
|
713
713
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(createDataGraph_ConfigPropertyMetadata);
|
|
@@ -1553,4 +1553,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1553
1553
|
});
|
|
1554
1554
|
|
|
1555
1555
|
export { createDataGraph, deleteDataGraph, getDataGraph, getDataGraphDependency, getDataGraphDependencyNotifyChange, getDataGraphDependency_imperative, getDataGraphNotifyChange, getDataGraph_imperative, retryDataGraph };
|
|
1556
|
-
// version: 1.
|
|
1556
|
+
// version: 1.268.0-59af8a121
|
package/src/raml/api.raml
CHANGED
|
@@ -198,23 +198,23 @@ types:
|
|
|
198
198
|
description: data graph type
|
|
199
199
|
type: string
|
|
200
200
|
required: false
|
|
201
|
-
|
|
202
|
-
description: Is prefetch
|
|
201
|
+
isRecordCachingDisabled:
|
|
202
|
+
description: Is prefetch is disabled for given data graph
|
|
203
203
|
type: boolean
|
|
204
204
|
required: false
|
|
205
|
-
|
|
205
|
+
cacheDurationInDays:
|
|
206
206
|
description: No of days last accessed records are cached
|
|
207
207
|
type: integer
|
|
208
208
|
required: false
|
|
209
|
-
|
|
209
|
+
maxRecordsCached:
|
|
210
210
|
description: Max no of records to cache
|
|
211
211
|
type: integer
|
|
212
212
|
required: false
|
|
213
|
-
|
|
213
|
+
sessionEnd:
|
|
214
214
|
description: Session duration
|
|
215
215
|
type: integer
|
|
216
216
|
required: false
|
|
217
|
-
|
|
217
|
+
sessionEndTimeUnit:
|
|
218
218
|
description: Unit of Session duration
|
|
219
219
|
type: string
|
|
220
220
|
required: false
|
|
@@ -285,23 +285,23 @@ types:
|
|
|
285
285
|
description: Data Graph Type
|
|
286
286
|
type: string
|
|
287
287
|
required: false
|
|
288
|
-
|
|
289
|
-
description: Is prefetch
|
|
288
|
+
isRecordCachingDisabled:
|
|
289
|
+
description: Is prefetch is disabled for given data graph
|
|
290
290
|
type: boolean
|
|
291
291
|
required: false
|
|
292
|
-
|
|
292
|
+
cacheDurationInDays:
|
|
293
293
|
description: No of days last accessed records are cached
|
|
294
294
|
type: integer
|
|
295
295
|
required: false
|
|
296
|
-
|
|
296
|
+
maxRecordsCached:
|
|
297
297
|
description: Max no of records to cache
|
|
298
298
|
type: integer
|
|
299
299
|
required: false
|
|
300
|
-
|
|
300
|
+
sessionEnd:
|
|
301
301
|
description: Session duration
|
|
302
302
|
type: integer
|
|
303
303
|
required: false
|
|
304
|
-
|
|
304
|
+
sessionEndTimeUnit:
|
|
305
305
|
description: Unit of Session duration
|
|
306
306
|
type: string
|
|
307
307
|
required: false
|