@salesforce/lds-adapters-marketing-cdp 1.265.0 → 1.266.0-dev10
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 = "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,6 +402,13 @@ 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
|
}
|
|
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 + '")');
|
|
410
|
+
}
|
|
411
|
+
}
|
|
398
412
|
if (obj.lastRunStatus !== undefined) {
|
|
399
413
|
const obj_lastRunStatus = obj.lastRunStatus;
|
|
400
414
|
const path_lastRunStatus = path + '.lastRunStatus';
|
|
@@ -402,11 +416,32 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
402
416
|
return new TypeError('Expected "string" but received "' + typeof obj_lastRunStatus + '" (at "' + path_lastRunStatus + '")');
|
|
403
417
|
}
|
|
404
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
|
+
}
|
|
405
426
|
const obj_primaryObjectName = obj.primaryObjectName;
|
|
406
427
|
const path_primaryObjectName = path + '.primaryObjectName';
|
|
407
428
|
if (typeof obj_primaryObjectName !== 'string') {
|
|
408
429
|
return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectName + '" (at "' + path_primaryObjectName + '")');
|
|
409
430
|
}
|
|
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
|
+
}
|
|
437
|
+
}
|
|
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
|
+
}
|
|
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_isRecordCachingDisabled = existing.isRecordCachingDisabled;
|
|
501
|
+
const incoming_isRecordCachingDisabled = incoming.isRecordCachingDisabled;
|
|
502
|
+
// if at least one of these optionals is defined
|
|
503
|
+
if (existing_isRecordCachingDisabled !== undefined || incoming_isRecordCachingDisabled !== undefined) {
|
|
504
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
505
|
+
// not equal
|
|
506
|
+
if (existing_isRecordCachingDisabled === undefined || incoming_isRecordCachingDisabled === undefined) {
|
|
507
|
+
return false;
|
|
508
|
+
}
|
|
509
|
+
if (!(existing_isRecordCachingDisabled === incoming_isRecordCachingDisabled)) {
|
|
510
|
+
return false;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
const existing_cacheDurationInDays = existing.cacheDurationInDays;
|
|
514
|
+
const incoming_cacheDurationInDays = incoming.cacheDurationInDays;
|
|
515
|
+
// if at least one of these optionals is defined
|
|
516
|
+
if (existing_cacheDurationInDays !== undefined || incoming_cacheDurationInDays !== undefined) {
|
|
517
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
518
|
+
// not equal
|
|
519
|
+
if (existing_cacheDurationInDays === undefined || incoming_cacheDurationInDays === undefined) {
|
|
520
|
+
return false;
|
|
521
|
+
}
|
|
522
|
+
if (!(existing_cacheDurationInDays === incoming_cacheDurationInDays)) {
|
|
523
|
+
return false;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
const existing_maxRecordsCached = existing.maxRecordsCached;
|
|
527
|
+
const incoming_maxRecordsCached = incoming.maxRecordsCached;
|
|
528
|
+
// if at least one of these optionals is defined
|
|
529
|
+
if (existing_maxRecordsCached !== undefined || incoming_maxRecordsCached !== undefined) {
|
|
530
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
531
|
+
// not equal
|
|
532
|
+
if (existing_maxRecordsCached === undefined || incoming_maxRecordsCached === undefined) {
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
if (!(existing_maxRecordsCached === incoming_maxRecordsCached)) {
|
|
536
|
+
return false;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
const existing_sessionEnd = existing.sessionEnd;
|
|
540
|
+
const incoming_sessionEnd = incoming.sessionEnd;
|
|
541
|
+
// if at least one of these optionals is defined
|
|
542
|
+
if (existing_sessionEnd !== undefined || incoming_sessionEnd !== undefined) {
|
|
543
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
544
|
+
// not equal
|
|
545
|
+
if (existing_sessionEnd === undefined || incoming_sessionEnd === undefined) {
|
|
546
|
+
return false;
|
|
547
|
+
}
|
|
548
|
+
if (!(existing_sessionEnd === incoming_sessionEnd)) {
|
|
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_sessionEndTimeUnit = existing.sessionEndTimeUnit;
|
|
581
|
+
const incoming_sessionEndTimeUnit = incoming.sessionEndTimeUnit;
|
|
582
|
+
// if at least one of these optionals is defined
|
|
583
|
+
if (existing_sessionEndTimeUnit !== undefined || incoming_sessionEndTimeUnit !== undefined) {
|
|
584
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
585
|
+
// not equal
|
|
586
|
+
if (existing_sessionEndTimeUnit === undefined || incoming_sessionEndTimeUnit === undefined) {
|
|
587
|
+
return false;
|
|
588
|
+
}
|
|
589
|
+
if (!(existing_sessionEndTimeUnit === incoming_sessionEndTimeUnit)) {
|
|
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('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 */),
|
|
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
|
+
isRecordCachingDisabled?: boolean;
|
|
17
|
+
cacheDurationInDays?: number;
|
|
18
|
+
maxRecordsCached?: number;
|
|
19
|
+
sessionEnd?: number;
|
|
20
|
+
sessionEndTimeUnit?: 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
|
+
isRecordCachingDisabled?: boolean;
|
|
13
|
+
cacheDurationInDays?: number;
|
|
14
|
+
maxRecordsCached?: number;
|
|
15
|
+
sessionEnd?: number;
|
|
16
|
+
sessionEndTimeUnit?: 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 = "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,16 +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;
|
|
23
|
+
/** Is prefetch is disabled for given data graph */
|
|
24
|
+
isRecordCachingDisabled?: boolean;
|
|
21
25
|
/** label */
|
|
22
26
|
label?: string;
|
|
27
|
+
/** Max no of records to cache */
|
|
28
|
+
maxRecordsCached?: number;
|
|
23
29
|
/** name */
|
|
24
30
|
name?: string;
|
|
25
31
|
/** Primary Object Name */
|
|
26
32
|
primaryObjectName: string;
|
|
33
|
+
/** Session duration */
|
|
34
|
+
sessionEnd?: number;
|
|
35
|
+
/** Unit of Session duration */
|
|
36
|
+
sessionEndTimeUnit?: string;
|
|
27
37
|
/** source object */
|
|
28
38
|
sourceObject: unknown;
|
|
29
39
|
/** data graph type */
|
|
@@ -36,11 +46,16 @@ export interface CdpDataGraphInputRepresentationNormalized {
|
|
|
36
46
|
* (none)
|
|
37
47
|
*/
|
|
38
48
|
export interface CdpDataGraphInputRepresentation {
|
|
49
|
+
cacheDurationInDays?: number;
|
|
39
50
|
dataspaceName?: string;
|
|
40
51
|
description?: string;
|
|
52
|
+
isRecordCachingDisabled?: boolean;
|
|
41
53
|
label?: string;
|
|
54
|
+
maxRecordsCached?: number;
|
|
42
55
|
name?: string;
|
|
43
56
|
primaryObjectName: string;
|
|
57
|
+
sessionEnd?: number;
|
|
58
|
+
sessionEndTimeUnit?: 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 = "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,14 +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;
|
|
29
|
+
/** Is prefetch is disabled for given data graph */
|
|
30
|
+
isRecordCachingDisabled?: boolean;
|
|
27
31
|
/** last run status */
|
|
28
32
|
lastRunStatus?: string;
|
|
33
|
+
/** Max no of records to cache */
|
|
34
|
+
maxRecordsCached?: number;
|
|
29
35
|
/** primary object developer name */
|
|
30
36
|
primaryObjectName: string;
|
|
37
|
+
/** Session duration */
|
|
38
|
+
sessionEnd?: number;
|
|
39
|
+
/** Unit of Session duration */
|
|
40
|
+
sessionEndTimeUnit?: string;
|
|
31
41
|
/** object */
|
|
32
42
|
sourceObject: $64$luvio_engine_StoreLink;
|
|
33
43
|
/** status */
|
|
@@ -46,10 +56,15 @@ export interface CdpDataGraphOutputRepresentationNormalized extends CdpObjectBas
|
|
|
46
56
|
* name (string): name
|
|
47
57
|
*/
|
|
48
58
|
export interface CdpDataGraphOutputRepresentation extends CdpObjectBaseOutputRepresentation_CdpObjectBaseOutputRepresentation {
|
|
59
|
+
cacheDurationInDays?: number;
|
|
49
60
|
extendedProperties: string;
|
|
50
61
|
idDmoName: string;
|
|
62
|
+
isRecordCachingDisabled?: boolean;
|
|
51
63
|
lastRunStatus?: string;
|
|
64
|
+
maxRecordsCached?: number;
|
|
52
65
|
primaryObjectName: string;
|
|
66
|
+
sessionEnd?: number;
|
|
67
|
+
sessionEndTimeUnit?: 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-dev10",
|
|
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-dev10"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
50
|
-
"@salesforce/lds-karma": "^1.
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^1.266.0-dev10",
|
|
50
|
+
"@salesforce/lds-karma": "^1.266.0-dev10"
|
|
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,6 +412,13 @@ 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
|
}
|
|
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 + '")');
|
|
420
|
+
}
|
|
421
|
+
}
|
|
408
422
|
if (obj.lastRunStatus !== undefined) {
|
|
409
423
|
const obj_lastRunStatus = obj.lastRunStatus;
|
|
410
424
|
const path_lastRunStatus = path + '.lastRunStatus';
|
|
@@ -412,11 +426,32 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
412
426
|
return new TypeError('Expected "string" but received "' + typeof obj_lastRunStatus + '" (at "' + path_lastRunStatus + '")');
|
|
413
427
|
}
|
|
414
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
|
+
}
|
|
415
436
|
const obj_primaryObjectName = obj.primaryObjectName;
|
|
416
437
|
const path_primaryObjectName = path + '.primaryObjectName';
|
|
417
438
|
if (typeof obj_primaryObjectName !== 'string') {
|
|
418
439
|
return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectName + '" (at "' + path_primaryObjectName + '")');
|
|
419
440
|
}
|
|
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
|
+
}
|
|
447
|
+
}
|
|
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
|
+
}
|
|
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_isRecordCachingDisabled = existing.isRecordCachingDisabled;
|
|
511
|
+
const incoming_isRecordCachingDisabled = incoming.isRecordCachingDisabled;
|
|
512
|
+
// if at least one of these optionals is defined
|
|
513
|
+
if (existing_isRecordCachingDisabled !== undefined || incoming_isRecordCachingDisabled !== undefined) {
|
|
514
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
515
|
+
// not equal
|
|
516
|
+
if (existing_isRecordCachingDisabled === undefined || incoming_isRecordCachingDisabled === undefined) {
|
|
517
|
+
return false;
|
|
518
|
+
}
|
|
519
|
+
if (!(existing_isRecordCachingDisabled === incoming_isRecordCachingDisabled)) {
|
|
520
|
+
return false;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
const existing_cacheDurationInDays = existing.cacheDurationInDays;
|
|
524
|
+
const incoming_cacheDurationInDays = incoming.cacheDurationInDays;
|
|
525
|
+
// if at least one of these optionals is defined
|
|
526
|
+
if (existing_cacheDurationInDays !== undefined || incoming_cacheDurationInDays !== undefined) {
|
|
527
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
528
|
+
// not equal
|
|
529
|
+
if (existing_cacheDurationInDays === undefined || incoming_cacheDurationInDays === undefined) {
|
|
530
|
+
return false;
|
|
531
|
+
}
|
|
532
|
+
if (!(existing_cacheDurationInDays === incoming_cacheDurationInDays)) {
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
const existing_maxRecordsCached = existing.maxRecordsCached;
|
|
537
|
+
const incoming_maxRecordsCached = incoming.maxRecordsCached;
|
|
538
|
+
// if at least one of these optionals is defined
|
|
539
|
+
if (existing_maxRecordsCached !== undefined || incoming_maxRecordsCached !== undefined) {
|
|
540
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
541
|
+
// not equal
|
|
542
|
+
if (existing_maxRecordsCached === undefined || incoming_maxRecordsCached === undefined) {
|
|
543
|
+
return false;
|
|
544
|
+
}
|
|
545
|
+
if (!(existing_maxRecordsCached === incoming_maxRecordsCached)) {
|
|
546
|
+
return false;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
const existing_sessionEnd = existing.sessionEnd;
|
|
550
|
+
const incoming_sessionEnd = incoming.sessionEnd;
|
|
551
|
+
// if at least one of these optionals is defined
|
|
552
|
+
if (existing_sessionEnd !== undefined || incoming_sessionEnd !== undefined) {
|
|
553
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
554
|
+
// not equal
|
|
555
|
+
if (existing_sessionEnd === undefined || incoming_sessionEnd === undefined) {
|
|
556
|
+
return false;
|
|
557
|
+
}
|
|
558
|
+
if (!(existing_sessionEnd === incoming_sessionEnd)) {
|
|
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_sessionEndTimeUnit = existing.sessionEndTimeUnit;
|
|
591
|
+
const incoming_sessionEndTimeUnit = incoming.sessionEndTimeUnit;
|
|
592
|
+
// if at least one of these optionals is defined
|
|
593
|
+
if (existing_sessionEndTimeUnit !== undefined || incoming_sessionEndTimeUnit !== undefined) {
|
|
594
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
595
|
+
// not equal
|
|
596
|
+
if (existing_sessionEndTimeUnit === undefined || incoming_sessionEndTimeUnit === undefined) {
|
|
597
|
+
return false;
|
|
598
|
+
}
|
|
599
|
+
if (!(existing_sessionEndTimeUnit === incoming_sessionEndTimeUnit)) {
|
|
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('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 */),
|
|
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-dev10-3275d4bf8
|
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
|
+
isRecordCachingDisabled:
|
|
202
|
+
description: Is prefetch is disabled for given data graph
|
|
203
|
+
type: boolean
|
|
204
|
+
required: false
|
|
205
|
+
cacheDurationInDays:
|
|
206
|
+
description: No of days last accessed records are cached
|
|
207
|
+
type: integer
|
|
208
|
+
required: false
|
|
209
|
+
maxRecordsCached:
|
|
210
|
+
description: Max no of records to cache
|
|
211
|
+
type: integer
|
|
212
|
+
required: false
|
|
213
|
+
sessionEnd:
|
|
214
|
+
description: Session duration
|
|
215
|
+
type: integer
|
|
216
|
+
required: false
|
|
217
|
+
sessionEndTimeUnit:
|
|
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
|
+
isRecordCachingDisabled:
|
|
289
|
+
description: Is prefetch is disabled for given data graph
|
|
290
|
+
type: boolean
|
|
291
|
+
required: false
|
|
292
|
+
cacheDurationInDays:
|
|
293
|
+
description: No of days last accessed records are cached
|
|
294
|
+
type: integer
|
|
295
|
+
required: false
|
|
296
|
+
maxRecordsCached:
|
|
297
|
+
description: Max no of records to cache
|
|
298
|
+
type: integer
|
|
299
|
+
required: false
|
|
300
|
+
sessionEnd:
|
|
301
|
+
description: Session duration
|
|
302
|
+
type: integer
|
|
303
|
+
required: false
|
|
304
|
+
sessionEndTimeUnit:
|
|
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
|