@salesforce/lds-adapters-marketing-cdp 1.264.0 → 1.266.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 +106 -1
- package/dist/es/es2018/types/src/generated/adapters/createDataGraph.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDataGraphs.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/types/CdpDataGraphInputRepresentation.d.ts +16 -1
- package/dist/es/es2018/types/src/generated/types/CdpDataGraphOutputRepresentation.d.ts +16 -1
- package/package.json +4 -4
- package/sfdc/index.js +107 -2
- package/src/raml/api.raml +40 -0
|
@@ -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 = "08390589d908c1b5a69268be324bc5ab";
|
|
379
379
|
function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
380
380
|
const validateCdpObjectBaseOutputRepresentation_validateError = validate$8(obj, path);
|
|
381
381
|
if (validateCdpObjectBaseOutputRepresentation_validateError !== null) {
|
|
@@ -395,6 +395,13 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
395
395
|
if (typeof obj_idDmoName !== 'string') {
|
|
396
396
|
return new TypeError('Expected "string" but received "' + typeof obj_idDmoName + '" (at "' + path_idDmoName + '")');
|
|
397
397
|
}
|
|
398
|
+
if (obj.isRtPrefetchCacheEnabled !== undefined) {
|
|
399
|
+
const obj_isRtPrefetchCacheEnabled = obj.isRtPrefetchCacheEnabled;
|
|
400
|
+
const path_isRtPrefetchCacheEnabled = path + '.isRtPrefetchCacheEnabled';
|
|
401
|
+
if (typeof obj_isRtPrefetchCacheEnabled !== 'boolean') {
|
|
402
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRtPrefetchCacheEnabled + '" (at "' + path_isRtPrefetchCacheEnabled + '")');
|
|
403
|
+
}
|
|
404
|
+
}
|
|
398
405
|
if (obj.lastRunStatus !== undefined) {
|
|
399
406
|
const obj_lastRunStatus = obj.lastRunStatus;
|
|
400
407
|
const path_lastRunStatus = path + '.lastRunStatus';
|
|
@@ -407,6 +414,34 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
407
414
|
if (typeof obj_primaryObjectName !== 'string') {
|
|
408
415
|
return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectName + '" (at "' + path_primaryObjectName + '")');
|
|
409
416
|
}
|
|
417
|
+
if (obj.rtConsumerSessionTimeout !== undefined) {
|
|
418
|
+
const obj_rtConsumerSessionTimeout = obj.rtConsumerSessionTimeout;
|
|
419
|
+
const path_rtConsumerSessionTimeout = path + '.rtConsumerSessionTimeout';
|
|
420
|
+
if (typeof obj_rtConsumerSessionTimeout !== 'number' || (typeof obj_rtConsumerSessionTimeout === 'number' && Math.floor(obj_rtConsumerSessionTimeout) !== obj_rtConsumerSessionTimeout)) {
|
|
421
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_rtConsumerSessionTimeout + '" (at "' + path_rtConsumerSessionTimeout + '")');
|
|
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 + '")');
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if (obj.rtSessionTimeUnit !== undefined) {
|
|
439
|
+
const obj_rtSessionTimeUnit = obj.rtSessionTimeUnit;
|
|
440
|
+
const path_rtSessionTimeUnit = path + '.rtSessionTimeUnit';
|
|
441
|
+
if (typeof obj_rtSessionTimeUnit !== 'string') {
|
|
442
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rtSessionTimeUnit + '" (at "' + path_rtSessionTimeUnit + '")');
|
|
443
|
+
}
|
|
444
|
+
}
|
|
410
445
|
const obj_sourceObject = obj.sourceObject;
|
|
411
446
|
const path_sourceObject = path + '.sourceObject';
|
|
412
447
|
const referencepath_sourceObjectValidationError = validate$4(obj_sourceObject, path_sourceObject);
|
|
@@ -462,6 +497,58 @@ function equals$3(existing, incoming) {
|
|
|
462
497
|
if (equals$5(existing, incoming) === false) {
|
|
463
498
|
return false;
|
|
464
499
|
}
|
|
500
|
+
const existing_isRtPrefetchCacheEnabled = existing.isRtPrefetchCacheEnabled;
|
|
501
|
+
const incoming_isRtPrefetchCacheEnabled = incoming.isRtPrefetchCacheEnabled;
|
|
502
|
+
// if at least one of these optionals is defined
|
|
503
|
+
if (existing_isRtPrefetchCacheEnabled !== undefined || incoming_isRtPrefetchCacheEnabled !== undefined) {
|
|
504
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
505
|
+
// not equal
|
|
506
|
+
if (existing_isRtPrefetchCacheEnabled === undefined || incoming_isRtPrefetchCacheEnabled === undefined) {
|
|
507
|
+
return false;
|
|
508
|
+
}
|
|
509
|
+
if (!(existing_isRtPrefetchCacheEnabled === incoming_isRtPrefetchCacheEnabled)) {
|
|
510
|
+
return false;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
const existing_rtConsumerSessionTimeout = existing.rtConsumerSessionTimeout;
|
|
514
|
+
const incoming_rtConsumerSessionTimeout = incoming.rtConsumerSessionTimeout;
|
|
515
|
+
// if at least one of these optionals is defined
|
|
516
|
+
if (existing_rtConsumerSessionTimeout !== undefined || incoming_rtConsumerSessionTimeout !== undefined) {
|
|
517
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
518
|
+
// not equal
|
|
519
|
+
if (existing_rtConsumerSessionTimeout === undefined || incoming_rtConsumerSessionTimeout === undefined) {
|
|
520
|
+
return false;
|
|
521
|
+
}
|
|
522
|
+
if (!(existing_rtConsumerSessionTimeout === incoming_rtConsumerSessionTimeout)) {
|
|
523
|
+
return false;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
const existing_rtLookBackInDays = existing.rtLookBackInDays;
|
|
527
|
+
const incoming_rtLookBackInDays = incoming.rtLookBackInDays;
|
|
528
|
+
// if at least one of these optionals is defined
|
|
529
|
+
if (existing_rtLookBackInDays !== undefined || incoming_rtLookBackInDays !== undefined) {
|
|
530
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
531
|
+
// not equal
|
|
532
|
+
if (existing_rtLookBackInDays === undefined || incoming_rtLookBackInDays === undefined) {
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
if (!(existing_rtLookBackInDays === incoming_rtLookBackInDays)) {
|
|
536
|
+
return false;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
const existing_rtMaxRecordsCached = existing.rtMaxRecordsCached;
|
|
540
|
+
const incoming_rtMaxRecordsCached = incoming.rtMaxRecordsCached;
|
|
541
|
+
// if at least one of these optionals is defined
|
|
542
|
+
if (existing_rtMaxRecordsCached !== undefined || incoming_rtMaxRecordsCached !== undefined) {
|
|
543
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
544
|
+
// not equal
|
|
545
|
+
if (existing_rtMaxRecordsCached === undefined || incoming_rtMaxRecordsCached === undefined) {
|
|
546
|
+
return false;
|
|
547
|
+
}
|
|
548
|
+
if (!(existing_rtMaxRecordsCached === incoming_rtMaxRecordsCached)) {
|
|
549
|
+
return false;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
465
552
|
const existing_extendedProperties = existing.extendedProperties;
|
|
466
553
|
const incoming_extendedProperties = incoming.extendedProperties;
|
|
467
554
|
if (!(existing_extendedProperties === incoming_extendedProperties)) {
|
|
@@ -490,6 +577,19 @@ function equals$3(existing, incoming) {
|
|
|
490
577
|
if (!(existing_primaryObjectName === incoming_primaryObjectName)) {
|
|
491
578
|
return false;
|
|
492
579
|
}
|
|
580
|
+
const existing_rtSessionTimeUnit = existing.rtSessionTimeUnit;
|
|
581
|
+
const incoming_rtSessionTimeUnit = incoming.rtSessionTimeUnit;
|
|
582
|
+
// if at least one of these optionals is defined
|
|
583
|
+
if (existing_rtSessionTimeUnit !== undefined || incoming_rtSessionTimeUnit !== undefined) {
|
|
584
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
585
|
+
// not equal
|
|
586
|
+
if (existing_rtSessionTimeUnit === undefined || incoming_rtSessionTimeUnit === undefined) {
|
|
587
|
+
return false;
|
|
588
|
+
}
|
|
589
|
+
if (!(existing_rtSessionTimeUnit === incoming_rtSessionTimeUnit)) {
|
|
590
|
+
return false;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
493
593
|
const existing_status = existing.status;
|
|
494
594
|
const incoming_status = incoming.status;
|
|
495
595
|
if (!(existing_status === incoming_status)) {
|
|
@@ -593,6 +693,11 @@ const createDataGraph_ConfigPropertyMetadata = [
|
|
|
593
693
|
generateParamConfigMetadata('primaryObjectName', true, 2 /* Body */, 0 /* String */),
|
|
594
694
|
generateParamConfigMetadata('sourceObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
595
695
|
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
696
|
+
generateParamConfigMetadata('isRtPrefetchCacheEnabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
697
|
+
generateParamConfigMetadata('rtLookBackInDays', false, 2 /* Body */, 3 /* Integer */),
|
|
698
|
+
generateParamConfigMetadata('rtMaxRecordsCached', false, 2 /* Body */, 3 /* Integer */),
|
|
699
|
+
generateParamConfigMetadata('rtConsumerSessionTimeout', false, 2 /* Body */, 3 /* Integer */),
|
|
700
|
+
generateParamConfigMetadata('rtSessionTimeUnit', false, 2 /* Body */, 0 /* String */),
|
|
596
701
|
];
|
|
597
702
|
const createDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createDataGraph_ConfigPropertyMetadata);
|
|
598
703
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(createDataGraph_ConfigPropertyMetadata);
|
|
@@ -13,6 +13,11 @@ export interface CreateDataGraphConfig {
|
|
|
13
13
|
primaryObjectName: string;
|
|
14
14
|
sourceObject: unknown;
|
|
15
15
|
type?: string;
|
|
16
|
+
isRtPrefetchCacheEnabled?: boolean;
|
|
17
|
+
rtLookBackInDays?: number;
|
|
18
|
+
rtMaxRecordsCached?: number;
|
|
19
|
+
rtConsumerSessionTimeout?: number;
|
|
20
|
+
rtSessionTimeUnit?: string;
|
|
16
21
|
}
|
|
17
22
|
export declare const createResourceParams: (config: CreateDataGraphConfig) => resources_postSsotDataGraphs_ResourceRequestConfig;
|
|
18
23
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateDataGraphConfig>): adapter$45$utils_Untrusted<CreateDataGraphConfig>;
|
|
@@ -9,6 +9,11 @@ export interface ResourceRequestConfig {
|
|
|
9
9
|
primaryObjectName: string;
|
|
10
10
|
sourceObject: unknown;
|
|
11
11
|
type?: string;
|
|
12
|
+
isRtPrefetchCacheEnabled?: boolean;
|
|
13
|
+
rtLookBackInDays?: number;
|
|
14
|
+
rtMaxRecordsCached?: number;
|
|
15
|
+
rtConsumerSessionTimeout?: number;
|
|
16
|
+
rtSessionTimeUnit?: string;
|
|
12
17
|
};
|
|
13
18
|
}
|
|
14
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 = "f692af0d367a3137a6b6bea6a3e21746";
|
|
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;
|
|
@@ -18,12 +18,22 @@ export interface CdpDataGraphInputRepresentationNormalized {
|
|
|
18
18
|
dataspaceName?: string;
|
|
19
19
|
/** description */
|
|
20
20
|
description?: string;
|
|
21
|
+
/** Is prefetch cache enabled for RT dg */
|
|
22
|
+
isRtPrefetchCacheEnabled?: boolean;
|
|
21
23
|
/** label */
|
|
22
24
|
label?: string;
|
|
23
25
|
/** name */
|
|
24
26
|
name?: string;
|
|
25
27
|
/** Primary Object Name */
|
|
26
28
|
primaryObjectName: string;
|
|
29
|
+
/** Session duration */
|
|
30
|
+
rtConsumerSessionTimeout?: number;
|
|
31
|
+
/** No of days last accessed records are cached */
|
|
32
|
+
rtLookBackInDays?: number;
|
|
33
|
+
/** Max no of records to cache */
|
|
34
|
+
rtMaxRecordsCached?: number;
|
|
35
|
+
/** Unit of Session duration */
|
|
36
|
+
rtSessionTimeUnit?: string;
|
|
27
37
|
/** source object */
|
|
28
38
|
sourceObject: unknown;
|
|
29
39
|
/** data graph type */
|
|
@@ -38,9 +48,14 @@ export interface CdpDataGraphInputRepresentationNormalized {
|
|
|
38
48
|
export interface CdpDataGraphInputRepresentation {
|
|
39
49
|
dataspaceName?: string;
|
|
40
50
|
description?: string;
|
|
51
|
+
isRtPrefetchCacheEnabled?: boolean;
|
|
41
52
|
label?: string;
|
|
42
53
|
name?: string;
|
|
43
54
|
primaryObjectName: string;
|
|
55
|
+
rtConsumerSessionTimeout?: number;
|
|
56
|
+
rtLookBackInDays?: number;
|
|
57
|
+
rtMaxRecordsCached?: number;
|
|
58
|
+
rtSessionTimeUnit?: string;
|
|
44
59
|
sourceObject: unknown;
|
|
45
60
|
type?: string;
|
|
46
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 = "08390589d908c1b5a69268be324bc5ab";
|
|
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;
|
|
@@ -24,10 +24,20 @@ export interface CdpDataGraphOutputRepresentationNormalized extends CdpObjectBas
|
|
|
24
24
|
extendedProperties: string;
|
|
25
25
|
/** id_dmo_name */
|
|
26
26
|
idDmoName: string;
|
|
27
|
+
/** Is prefetch cache enabled for RT dg */
|
|
28
|
+
isRtPrefetchCacheEnabled?: boolean;
|
|
27
29
|
/** last run status */
|
|
28
30
|
lastRunStatus?: string;
|
|
29
31
|
/** primary object developer name */
|
|
30
32
|
primaryObjectName: string;
|
|
33
|
+
/** Session duration */
|
|
34
|
+
rtConsumerSessionTimeout?: number;
|
|
35
|
+
/** No of days last accessed records are cached */
|
|
36
|
+
rtLookBackInDays?: number;
|
|
37
|
+
/** Max no of records to cache */
|
|
38
|
+
rtMaxRecordsCached?: number;
|
|
39
|
+
/** Unit of Session duration */
|
|
40
|
+
rtSessionTimeUnit?: string;
|
|
31
41
|
/** object */
|
|
32
42
|
sourceObject: $64$luvio_engine_StoreLink;
|
|
33
43
|
/** status */
|
|
@@ -48,8 +58,13 @@ export interface CdpDataGraphOutputRepresentationNormalized extends CdpObjectBas
|
|
|
48
58
|
export interface CdpDataGraphOutputRepresentation extends CdpObjectBaseOutputRepresentation_CdpObjectBaseOutputRepresentation {
|
|
49
59
|
extendedProperties: string;
|
|
50
60
|
idDmoName: string;
|
|
61
|
+
isRtPrefetchCacheEnabled?: boolean;
|
|
51
62
|
lastRunStatus?: string;
|
|
52
63
|
primaryObjectName: string;
|
|
64
|
+
rtConsumerSessionTimeout?: number;
|
|
65
|
+
rtLookBackInDays?: number;
|
|
66
|
+
rtMaxRecordsCached?: number;
|
|
67
|
+
rtSessionTimeUnit?: string;
|
|
53
68
|
sourceObject: CdpDataGraphSourceObjectOutputRepresentation_CdpDataGraphSourceObjectOutputRepresentation;
|
|
54
69
|
status: string;
|
|
55
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.266.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.266.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
50
|
-
"@salesforce/lds-karma": "^1.
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0",
|
|
50
|
+
"@salesforce/lds-karma": "^1.266.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 = "08390589d908c1b5a69268be324bc5ab";
|
|
389
389
|
function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
390
390
|
const validateCdpObjectBaseOutputRepresentation_validateError = validate$8(obj, path);
|
|
391
391
|
if (validateCdpObjectBaseOutputRepresentation_validateError !== null) {
|
|
@@ -405,6 +405,13 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
405
405
|
if (typeof obj_idDmoName !== 'string') {
|
|
406
406
|
return new TypeError('Expected "string" but received "' + typeof obj_idDmoName + '" (at "' + path_idDmoName + '")');
|
|
407
407
|
}
|
|
408
|
+
if (obj.isRtPrefetchCacheEnabled !== undefined) {
|
|
409
|
+
const obj_isRtPrefetchCacheEnabled = obj.isRtPrefetchCacheEnabled;
|
|
410
|
+
const path_isRtPrefetchCacheEnabled = path + '.isRtPrefetchCacheEnabled';
|
|
411
|
+
if (typeof obj_isRtPrefetchCacheEnabled !== 'boolean') {
|
|
412
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRtPrefetchCacheEnabled + '" (at "' + path_isRtPrefetchCacheEnabled + '")');
|
|
413
|
+
}
|
|
414
|
+
}
|
|
408
415
|
if (obj.lastRunStatus !== undefined) {
|
|
409
416
|
const obj_lastRunStatus = obj.lastRunStatus;
|
|
410
417
|
const path_lastRunStatus = path + '.lastRunStatus';
|
|
@@ -417,6 +424,34 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
417
424
|
if (typeof obj_primaryObjectName !== 'string') {
|
|
418
425
|
return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectName + '" (at "' + path_primaryObjectName + '")');
|
|
419
426
|
}
|
|
427
|
+
if (obj.rtConsumerSessionTimeout !== undefined) {
|
|
428
|
+
const obj_rtConsumerSessionTimeout = obj.rtConsumerSessionTimeout;
|
|
429
|
+
const path_rtConsumerSessionTimeout = path + '.rtConsumerSessionTimeout';
|
|
430
|
+
if (typeof obj_rtConsumerSessionTimeout !== 'number' || (typeof obj_rtConsumerSessionTimeout === 'number' && Math.floor(obj_rtConsumerSessionTimeout) !== obj_rtConsumerSessionTimeout)) {
|
|
431
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_rtConsumerSessionTimeout + '" (at "' + path_rtConsumerSessionTimeout + '")');
|
|
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 + '")');
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
if (obj.rtSessionTimeUnit !== undefined) {
|
|
449
|
+
const obj_rtSessionTimeUnit = obj.rtSessionTimeUnit;
|
|
450
|
+
const path_rtSessionTimeUnit = path + '.rtSessionTimeUnit';
|
|
451
|
+
if (typeof obj_rtSessionTimeUnit !== 'string') {
|
|
452
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rtSessionTimeUnit + '" (at "' + path_rtSessionTimeUnit + '")');
|
|
453
|
+
}
|
|
454
|
+
}
|
|
420
455
|
const obj_sourceObject = obj.sourceObject;
|
|
421
456
|
const path_sourceObject = path + '.sourceObject';
|
|
422
457
|
const referencepath_sourceObjectValidationError = validate$4(obj_sourceObject, path_sourceObject);
|
|
@@ -472,6 +507,58 @@ function equals$3(existing, incoming) {
|
|
|
472
507
|
if (equals$5(existing, incoming) === false) {
|
|
473
508
|
return false;
|
|
474
509
|
}
|
|
510
|
+
const existing_isRtPrefetchCacheEnabled = existing.isRtPrefetchCacheEnabled;
|
|
511
|
+
const incoming_isRtPrefetchCacheEnabled = incoming.isRtPrefetchCacheEnabled;
|
|
512
|
+
// if at least one of these optionals is defined
|
|
513
|
+
if (existing_isRtPrefetchCacheEnabled !== undefined || incoming_isRtPrefetchCacheEnabled !== undefined) {
|
|
514
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
515
|
+
// not equal
|
|
516
|
+
if (existing_isRtPrefetchCacheEnabled === undefined || incoming_isRtPrefetchCacheEnabled === undefined) {
|
|
517
|
+
return false;
|
|
518
|
+
}
|
|
519
|
+
if (!(existing_isRtPrefetchCacheEnabled === incoming_isRtPrefetchCacheEnabled)) {
|
|
520
|
+
return false;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
const existing_rtConsumerSessionTimeout = existing.rtConsumerSessionTimeout;
|
|
524
|
+
const incoming_rtConsumerSessionTimeout = incoming.rtConsumerSessionTimeout;
|
|
525
|
+
// if at least one of these optionals is defined
|
|
526
|
+
if (existing_rtConsumerSessionTimeout !== undefined || incoming_rtConsumerSessionTimeout !== undefined) {
|
|
527
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
528
|
+
// not equal
|
|
529
|
+
if (existing_rtConsumerSessionTimeout === undefined || incoming_rtConsumerSessionTimeout === undefined) {
|
|
530
|
+
return false;
|
|
531
|
+
}
|
|
532
|
+
if (!(existing_rtConsumerSessionTimeout === incoming_rtConsumerSessionTimeout)) {
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
const existing_rtLookBackInDays = existing.rtLookBackInDays;
|
|
537
|
+
const incoming_rtLookBackInDays = incoming.rtLookBackInDays;
|
|
538
|
+
// if at least one of these optionals is defined
|
|
539
|
+
if (existing_rtLookBackInDays !== undefined || incoming_rtLookBackInDays !== undefined) {
|
|
540
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
541
|
+
// not equal
|
|
542
|
+
if (existing_rtLookBackInDays === undefined || incoming_rtLookBackInDays === undefined) {
|
|
543
|
+
return false;
|
|
544
|
+
}
|
|
545
|
+
if (!(existing_rtLookBackInDays === incoming_rtLookBackInDays)) {
|
|
546
|
+
return false;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
const existing_rtMaxRecordsCached = existing.rtMaxRecordsCached;
|
|
550
|
+
const incoming_rtMaxRecordsCached = incoming.rtMaxRecordsCached;
|
|
551
|
+
// if at least one of these optionals is defined
|
|
552
|
+
if (existing_rtMaxRecordsCached !== undefined || incoming_rtMaxRecordsCached !== undefined) {
|
|
553
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
554
|
+
// not equal
|
|
555
|
+
if (existing_rtMaxRecordsCached === undefined || incoming_rtMaxRecordsCached === undefined) {
|
|
556
|
+
return false;
|
|
557
|
+
}
|
|
558
|
+
if (!(existing_rtMaxRecordsCached === incoming_rtMaxRecordsCached)) {
|
|
559
|
+
return false;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
475
562
|
const existing_extendedProperties = existing.extendedProperties;
|
|
476
563
|
const incoming_extendedProperties = incoming.extendedProperties;
|
|
477
564
|
if (!(existing_extendedProperties === incoming_extendedProperties)) {
|
|
@@ -500,6 +587,19 @@ function equals$3(existing, incoming) {
|
|
|
500
587
|
if (!(existing_primaryObjectName === incoming_primaryObjectName)) {
|
|
501
588
|
return false;
|
|
502
589
|
}
|
|
590
|
+
const existing_rtSessionTimeUnit = existing.rtSessionTimeUnit;
|
|
591
|
+
const incoming_rtSessionTimeUnit = incoming.rtSessionTimeUnit;
|
|
592
|
+
// if at least one of these optionals is defined
|
|
593
|
+
if (existing_rtSessionTimeUnit !== undefined || incoming_rtSessionTimeUnit !== undefined) {
|
|
594
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
595
|
+
// not equal
|
|
596
|
+
if (existing_rtSessionTimeUnit === undefined || incoming_rtSessionTimeUnit === undefined) {
|
|
597
|
+
return false;
|
|
598
|
+
}
|
|
599
|
+
if (!(existing_rtSessionTimeUnit === incoming_rtSessionTimeUnit)) {
|
|
600
|
+
return false;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
503
603
|
const existing_status = existing.status;
|
|
504
604
|
const incoming_status = incoming.status;
|
|
505
605
|
if (!(existing_status === incoming_status)) {
|
|
@@ -603,6 +703,11 @@ const createDataGraph_ConfigPropertyMetadata = [
|
|
|
603
703
|
generateParamConfigMetadata('primaryObjectName', true, 2 /* Body */, 0 /* String */),
|
|
604
704
|
generateParamConfigMetadata('sourceObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
605
705
|
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
706
|
+
generateParamConfigMetadata('isRtPrefetchCacheEnabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
707
|
+
generateParamConfigMetadata('rtLookBackInDays', false, 2 /* Body */, 3 /* Integer */),
|
|
708
|
+
generateParamConfigMetadata('rtMaxRecordsCached', false, 2 /* Body */, 3 /* Integer */),
|
|
709
|
+
generateParamConfigMetadata('rtConsumerSessionTimeout', false, 2 /* Body */, 3 /* Integer */),
|
|
710
|
+
generateParamConfigMetadata('rtSessionTimeUnit', false, 2 /* Body */, 0 /* String */),
|
|
606
711
|
];
|
|
607
712
|
const createDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createDataGraph_ConfigPropertyMetadata);
|
|
608
713
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(createDataGraph_ConfigPropertyMetadata);
|
|
@@ -1448,4 +1553,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1448
1553
|
});
|
|
1449
1554
|
|
|
1450
1555
|
export { createDataGraph, deleteDataGraph, getDataGraph, getDataGraphDependency, getDataGraphDependencyNotifyChange, getDataGraphDependency_imperative, getDataGraphNotifyChange, getDataGraph_imperative, retryDataGraph };
|
|
1451
|
-
// version: 1.
|
|
1556
|
+
// version: 1.266.0-081d1ca4f
|
package/src/raml/api.raml
CHANGED
|
@@ -198,6 +198,26 @@ types:
|
|
|
198
198
|
description: data graph type
|
|
199
199
|
type: string
|
|
200
200
|
required: false
|
|
201
|
+
isRtPrefetchCacheEnabled:
|
|
202
|
+
description: Is prefetch cache enabled for RT dg
|
|
203
|
+
type: boolean
|
|
204
|
+
required: false
|
|
205
|
+
rtLookBackInDays:
|
|
206
|
+
description: No of days last accessed records are cached
|
|
207
|
+
type: integer
|
|
208
|
+
required: false
|
|
209
|
+
rtMaxRecordsCached:
|
|
210
|
+
description: Max no of records to cache
|
|
211
|
+
type: integer
|
|
212
|
+
required: false
|
|
213
|
+
rtConsumerSessionTimeout:
|
|
214
|
+
description: Session duration
|
|
215
|
+
type: integer
|
|
216
|
+
required: false
|
|
217
|
+
rtSessionTimeUnit:
|
|
218
|
+
description: Unit of Session duration
|
|
219
|
+
type: string
|
|
220
|
+
required: false
|
|
201
221
|
CdpDataGraphSourceObjectOutputRepresentation:
|
|
202
222
|
description: Represents Cdp Data Graph Source Output
|
|
203
223
|
type: object
|
|
@@ -265,6 +285,26 @@ types:
|
|
|
265
285
|
description: Data Graph Type
|
|
266
286
|
type: string
|
|
267
287
|
required: false
|
|
288
|
+
isRtPrefetchCacheEnabled:
|
|
289
|
+
description: Is prefetch cache enabled for RT dg
|
|
290
|
+
type: boolean
|
|
291
|
+
required: false
|
|
292
|
+
rtLookBackInDays:
|
|
293
|
+
description: No of days last accessed records are cached
|
|
294
|
+
type: integer
|
|
295
|
+
required: false
|
|
296
|
+
rtMaxRecordsCached:
|
|
297
|
+
description: Max no of records to cache
|
|
298
|
+
type: integer
|
|
299
|
+
required: false
|
|
300
|
+
rtConsumerSessionTimeout:
|
|
301
|
+
description: Session duration
|
|
302
|
+
type: integer
|
|
303
|
+
required: false
|
|
304
|
+
rtSessionTimeUnit:
|
|
305
|
+
description: Unit of Session duration
|
|
306
|
+
type: string
|
|
307
|
+
required: false
|
|
268
308
|
CdpDataGraphPathToParentInputRepresentation:
|
|
269
309
|
description: Data Graph Source Object Path input representation
|
|
270
310
|
type: object
|