@salesforce/lds-adapters-marketing-cdp 1.433.0 → 1.435.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.
@@ -817,7 +817,7 @@ function equals$4(existing, incoming) {
817
817
  return true;
818
818
  }
819
819
 
820
- const VERSION$3 = "71e8434340c0370a30fb856ebad9a123";
820
+ const VERSION$3 = "c9f94b5344dc61f09e5712e404fc298f";
821
821
  function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
822
822
  const validateCdpObjectBaseOutputRepresentation_validateError = validate$f(obj, path);
823
823
  if (validateCdpObjectBaseOutputRepresentation_validateError !== null) {
@@ -941,6 +941,20 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
941
941
  if (typeof obj_primaryObjectName !== 'string') {
942
942
  return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectName + '" (at "' + path_primaryObjectName + '")');
943
943
  }
944
+ if (obj.processIngestionApi !== undefined) {
945
+ const obj_processIngestionApi = obj.processIngestionApi;
946
+ const path_processIngestionApi = path + '.processIngestionApi';
947
+ if (typeof obj_processIngestionApi !== 'boolean') {
948
+ return new TypeError('Expected "boolean" but received "' + typeof obj_processIngestionApi + '" (at "' + path_processIngestionApi + '")');
949
+ }
950
+ }
951
+ if (obj.processSalesforceCrm !== undefined) {
952
+ const obj_processSalesforceCrm = obj.processSalesforceCrm;
953
+ const path_processSalesforceCrm = path + '.processSalesforceCrm';
954
+ if (typeof obj_processSalesforceCrm !== 'boolean') {
955
+ return new TypeError('Expected "boolean" but received "' + typeof obj_processSalesforceCrm + '" (at "' + path_processSalesforceCrm + '")');
956
+ }
957
+ }
944
958
  if (obj.sessionEnd !== undefined) {
945
959
  const obj_sessionEnd = obj.sessionEnd;
946
960
  const path_sessionEnd = path + '.sessionEnd';
@@ -1043,6 +1057,32 @@ function equals$3(existing, incoming) {
1043
1057
  return false;
1044
1058
  }
1045
1059
  }
1060
+ const existing_processIngestionApi = existing.processIngestionApi;
1061
+ const incoming_processIngestionApi = incoming.processIngestionApi;
1062
+ // if at least one of these optionals is defined
1063
+ if (existing_processIngestionApi !== undefined || incoming_processIngestionApi !== undefined) {
1064
+ // if one of these is not defined we know the other is defined and therefore
1065
+ // not equal
1066
+ if (existing_processIngestionApi === undefined || incoming_processIngestionApi === undefined) {
1067
+ return false;
1068
+ }
1069
+ if (!(existing_processIngestionApi === incoming_processIngestionApi)) {
1070
+ return false;
1071
+ }
1072
+ }
1073
+ const existing_processSalesforceCrm = existing.processSalesforceCrm;
1074
+ const incoming_processSalesforceCrm = incoming.processSalesforceCrm;
1075
+ // if at least one of these optionals is defined
1076
+ if (existing_processSalesforceCrm !== undefined || incoming_processSalesforceCrm !== undefined) {
1077
+ // if one of these is not defined we know the other is defined and therefore
1078
+ // not equal
1079
+ if (existing_processSalesforceCrm === undefined || incoming_processSalesforceCrm === undefined) {
1080
+ return false;
1081
+ }
1082
+ if (!(existing_processSalesforceCrm === incoming_processSalesforceCrm)) {
1083
+ return false;
1084
+ }
1085
+ }
1046
1086
  const existing_cacheDurationInDays = existing.cacheDurationInDays;
1047
1087
  const incoming_cacheDurationInDays = incoming.cacheDurationInDays;
1048
1088
  // if at least one of these optionals is defined
@@ -1355,6 +1395,8 @@ const createDataGraph_ConfigPropertyMetadata = [
1355
1395
  generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
1356
1396
  generateParamConfigMetadata('isRecordCachingDisabled', false, 2 /* Body */, 1 /* Boolean */),
1357
1397
  generateParamConfigMetadata('isRealTimeToggleEnabled', false, 2 /* Body */, 1 /* Boolean */),
1398
+ generateParamConfigMetadata('processIngestionApi', false, 2 /* Body */, 1 /* Boolean */),
1399
+ generateParamConfigMetadata('processSalesforceCrm', false, 2 /* Body */, 1 /* Boolean */),
1358
1400
  generateParamConfigMetadata('cacheDurationInDays', false, 2 /* Body */, 3 /* Integer */),
1359
1401
  generateParamConfigMetadata('maxRecordsCached', false, 2 /* Body */, 3 /* Integer */),
1360
1402
  generateParamConfigMetadata('sessionEnd', false, 2 /* Body */, 3 /* Integer */),
@@ -1474,6 +1516,8 @@ const editDataGraph_ConfigPropertyMetadata = [
1474
1516
  generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
1475
1517
  generateParamConfigMetadata('isRecordCachingDisabled', false, 2 /* Body */, 1 /* Boolean */),
1476
1518
  generateParamConfigMetadata('isRealTimeToggleEnabled', false, 2 /* Body */, 1 /* Boolean */),
1519
+ generateParamConfigMetadata('processIngestionApi', false, 2 /* Body */, 1 /* Boolean */),
1520
+ generateParamConfigMetadata('processSalesforceCrm', false, 2 /* Body */, 1 /* Boolean */),
1477
1521
  generateParamConfigMetadata('cacheDurationInDays', false, 2 /* Body */, 3 /* Integer */),
1478
1522
  generateParamConfigMetadata('maxRecordsCached', false, 2 /* Body */, 3 /* Integer */),
1479
1523
  generateParamConfigMetadata('sessionEnd', false, 2 /* Body */, 3 /* Integer */),
@@ -19,6 +19,8 @@ export interface CreateDataGraphConfig {
19
19
  type?: string;
20
20
  isRecordCachingDisabled?: boolean;
21
21
  isRealTimeToggleEnabled?: boolean;
22
+ processIngestionApi?: boolean;
23
+ processSalesforceCrm?: boolean;
22
24
  cacheDurationInDays?: number;
23
25
  maxRecordsCached?: number;
24
26
  sessionEnd?: number;
@@ -20,6 +20,8 @@ export interface EditDataGraphConfig {
20
20
  type?: string;
21
21
  isRecordCachingDisabled?: boolean;
22
22
  isRealTimeToggleEnabled?: boolean;
23
+ processIngestionApi?: boolean;
24
+ processSalesforceCrm?: boolean;
23
25
  cacheDurationInDays?: number;
24
26
  maxRecordsCached?: number;
25
27
  sessionEnd?: number;
@@ -15,6 +15,8 @@ export interface ResourceRequestConfig {
15
15
  type?: string;
16
16
  isRecordCachingDisabled?: boolean;
17
17
  isRealTimeToggleEnabled?: boolean;
18
+ processIngestionApi?: boolean;
19
+ processSalesforceCrm?: boolean;
18
20
  cacheDurationInDays?: number;
19
21
  maxRecordsCached?: number;
20
22
  sessionEnd?: number;
@@ -18,6 +18,8 @@ export interface ResourceRequestConfig {
18
18
  type?: string;
19
19
  isRecordCachingDisabled?: boolean;
20
20
  isRealTimeToggleEnabled?: boolean;
21
+ processIngestionApi?: boolean;
22
+ processSalesforceCrm?: boolean;
21
23
  cacheDurationInDays?: number;
22
24
  maxRecordsCached?: number;
23
25
  sessionEnd?: number;
@@ -1,7 +1,7 @@
1
1
  import { DataGraphFullRefreshConfigInputRepresentation as DataGraphFullRefreshConfigInputRepresentation_DataGraphFullRefreshConfigInputRepresentation } from './DataGraphFullRefreshConfigInputRepresentation';
2
2
  import { DataGraphIncrementalRefreshConfigInputRepresentation as DataGraphIncrementalRefreshConfigInputRepresentation_DataGraphIncrementalRefreshConfigInputRepresentation } from './DataGraphIncrementalRefreshConfigInputRepresentation';
3
3
  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';
4
- export declare const VERSION = "af5d9a6202c6d2b4a5d686c29921d9ba";
4
+ export declare const VERSION = "9042caf1289f65578ed7662e8ad29b54";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  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;
@@ -38,6 +38,10 @@ export interface CdpDataGraphInputRepresentationNormalized {
38
38
  name?: string;
39
39
  /** Primary Object Name */
40
40
  primaryObjectName: string;
41
+ /** Process Ingestion API data in real time */
42
+ processIngestionApi?: boolean;
43
+ /** Process Salesforce CRM connector data in real time */
44
+ processSalesforceCrm?: boolean;
41
45
  /** Session duration */
42
46
  sessionEnd?: number;
43
47
  /** Unit of Session duration */
@@ -68,6 +72,8 @@ export interface CdpDataGraphInputRepresentation {
68
72
  maxRecordsCached?: number;
69
73
  name?: string;
70
74
  primaryObjectName: string;
75
+ processIngestionApi?: boolean;
76
+ processSalesforceCrm?: boolean;
71
77
  sessionEnd?: number;
72
78
  sessionEndTimeUnit?: string;
73
79
  sourceObject: unknown;
@@ -3,7 +3,7 @@ import { DataGraphFullRefreshConfigOutputRepresentation as DataGraphFullRefreshC
3
3
  import { DataGraphIncrementalRefreshConfigOutputRepresentation as DataGraphIncrementalRefreshConfigOutputRepresentation_DataGraphIncrementalRefreshConfigOutputRepresentation } from './DataGraphIncrementalRefreshConfigOutputRepresentation';
4
4
  import { CdpDataGraphSourceObjectOutputRepresentation as CdpDataGraphSourceObjectOutputRepresentation_CdpDataGraphSourceObjectOutputRepresentation } from './CdpDataGraphSourceObjectOutputRepresentation';
5
5
  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';
6
- export declare const VERSION = "71e8434340c0370a30fb856ebad9a123";
6
+ export declare const VERSION = "c9f94b5344dc61f09e5712e404fc298f";
7
7
  export declare function validate(obj: any, path?: string): TypeError | null;
8
8
  export declare const RepresentationType: string;
9
9
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: Parameters<typeof CdpObjectBaseOutputRepresentation_keyBuilder>[1]): string;
@@ -52,6 +52,10 @@ export interface CdpDataGraphOutputRepresentationNormalized extends CdpObjectBas
52
52
  primaryObjectLabel?: string;
53
53
  /** primary object developer name */
54
54
  primaryObjectName: string;
55
+ /** Process Ingestion API data in real time */
56
+ processIngestionApi?: boolean;
57
+ /** Process Salesforce CRM connector data in real time */
58
+ processSalesforceCrm?: boolean;
55
59
  /** Session duration */
56
60
  sessionEnd?: number;
57
61
  /** Unit of Session duration */
@@ -92,6 +96,8 @@ export interface CdpDataGraphOutputRepresentation extends CdpObjectBaseOutputRep
92
96
  maxRecordsCached?: number;
93
97
  primaryObjectLabel?: string;
94
98
  primaryObjectName: string;
99
+ processIngestionApi?: boolean;
100
+ processSalesforceCrm?: boolean;
95
101
  sessionEnd?: number;
96
102
  sessionEndTimeUnit?: string;
97
103
  sourceObject: CdpDataGraphSourceObjectOutputRepresentation_CdpDataGraphSourceObjectOutputRepresentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-marketing-cdp",
3
- "version": "1.433.0",
3
+ "version": "1.435.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.433.0"
46
+ "@salesforce/lds-bindings": "^1.435.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@salesforce/lds-compiler-plugins": "^1.433.0",
50
- "@salesforce/lds-karma": "^1.433.0"
49
+ "@salesforce/lds-compiler-plugins": "^1.435.0",
50
+ "@salesforce/lds-karma": "^1.435.0"
51
51
  },
52
52
  "nx": {
53
53
  "targets": {
package/sfdc/index.js CHANGED
@@ -827,7 +827,7 @@ function equals$4(existing, incoming) {
827
827
  return true;
828
828
  }
829
829
 
830
- const VERSION$3 = "71e8434340c0370a30fb856ebad9a123";
830
+ const VERSION$3 = "c9f94b5344dc61f09e5712e404fc298f";
831
831
  function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
832
832
  const validateCdpObjectBaseOutputRepresentation_validateError = validate$f(obj, path);
833
833
  if (validateCdpObjectBaseOutputRepresentation_validateError !== null) {
@@ -951,6 +951,20 @@ function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
951
951
  if (typeof obj_primaryObjectName !== 'string') {
952
952
  return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectName + '" (at "' + path_primaryObjectName + '")');
953
953
  }
954
+ if (obj.processIngestionApi !== undefined) {
955
+ const obj_processIngestionApi = obj.processIngestionApi;
956
+ const path_processIngestionApi = path + '.processIngestionApi';
957
+ if (typeof obj_processIngestionApi !== 'boolean') {
958
+ return new TypeError('Expected "boolean" but received "' + typeof obj_processIngestionApi + '" (at "' + path_processIngestionApi + '")');
959
+ }
960
+ }
961
+ if (obj.processSalesforceCrm !== undefined) {
962
+ const obj_processSalesforceCrm = obj.processSalesforceCrm;
963
+ const path_processSalesforceCrm = path + '.processSalesforceCrm';
964
+ if (typeof obj_processSalesforceCrm !== 'boolean') {
965
+ return new TypeError('Expected "boolean" but received "' + typeof obj_processSalesforceCrm + '" (at "' + path_processSalesforceCrm + '")');
966
+ }
967
+ }
954
968
  if (obj.sessionEnd !== undefined) {
955
969
  const obj_sessionEnd = obj.sessionEnd;
956
970
  const path_sessionEnd = path + '.sessionEnd';
@@ -1053,6 +1067,32 @@ function equals$3(existing, incoming) {
1053
1067
  return false;
1054
1068
  }
1055
1069
  }
1070
+ const existing_processIngestionApi = existing.processIngestionApi;
1071
+ const incoming_processIngestionApi = incoming.processIngestionApi;
1072
+ // if at least one of these optionals is defined
1073
+ if (existing_processIngestionApi !== undefined || incoming_processIngestionApi !== undefined) {
1074
+ // if one of these is not defined we know the other is defined and therefore
1075
+ // not equal
1076
+ if (existing_processIngestionApi === undefined || incoming_processIngestionApi === undefined) {
1077
+ return false;
1078
+ }
1079
+ if (!(existing_processIngestionApi === incoming_processIngestionApi)) {
1080
+ return false;
1081
+ }
1082
+ }
1083
+ const existing_processSalesforceCrm = existing.processSalesforceCrm;
1084
+ const incoming_processSalesforceCrm = incoming.processSalesforceCrm;
1085
+ // if at least one of these optionals is defined
1086
+ if (existing_processSalesforceCrm !== undefined || incoming_processSalesforceCrm !== undefined) {
1087
+ // if one of these is not defined we know the other is defined and therefore
1088
+ // not equal
1089
+ if (existing_processSalesforceCrm === undefined || incoming_processSalesforceCrm === undefined) {
1090
+ return false;
1091
+ }
1092
+ if (!(existing_processSalesforceCrm === incoming_processSalesforceCrm)) {
1093
+ return false;
1094
+ }
1095
+ }
1056
1096
  const existing_cacheDurationInDays = existing.cacheDurationInDays;
1057
1097
  const incoming_cacheDurationInDays = incoming.cacheDurationInDays;
1058
1098
  // if at least one of these optionals is defined
@@ -1365,6 +1405,8 @@ const createDataGraph_ConfigPropertyMetadata = [
1365
1405
  generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
1366
1406
  generateParamConfigMetadata('isRecordCachingDisabled', false, 2 /* Body */, 1 /* Boolean */),
1367
1407
  generateParamConfigMetadata('isRealTimeToggleEnabled', false, 2 /* Body */, 1 /* Boolean */),
1408
+ generateParamConfigMetadata('processIngestionApi', false, 2 /* Body */, 1 /* Boolean */),
1409
+ generateParamConfigMetadata('processSalesforceCrm', false, 2 /* Body */, 1 /* Boolean */),
1368
1410
  generateParamConfigMetadata('cacheDurationInDays', false, 2 /* Body */, 3 /* Integer */),
1369
1411
  generateParamConfigMetadata('maxRecordsCached', false, 2 /* Body */, 3 /* Integer */),
1370
1412
  generateParamConfigMetadata('sessionEnd', false, 2 /* Body */, 3 /* Integer */),
@@ -1568,6 +1610,8 @@ const editDataGraph_ConfigPropertyMetadata = [
1568
1610
  generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
1569
1611
  generateParamConfigMetadata('isRecordCachingDisabled', false, 2 /* Body */, 1 /* Boolean */),
1570
1612
  generateParamConfigMetadata('isRealTimeToggleEnabled', false, 2 /* Body */, 1 /* Boolean */),
1613
+ generateParamConfigMetadata('processIngestionApi', false, 2 /* Body */, 1 /* Boolean */),
1614
+ generateParamConfigMetadata('processSalesforceCrm', false, 2 /* Body */, 1 /* Boolean */),
1571
1615
  generateParamConfigMetadata('cacheDurationInDays', false, 2 /* Body */, 3 /* Integer */),
1572
1616
  generateParamConfigMetadata('maxRecordsCached', false, 2 /* Body */, 3 /* Integer */),
1573
1617
  generateParamConfigMetadata('sessionEnd', false, 2 /* Body */, 3 /* Integer */),
@@ -2620,4 +2664,4 @@ withDefaultLuvio((luvio) => {
2620
2664
  });
2621
2665
 
2622
2666
  export { createDataGraph, deleteDataGraph, editDataGraph, getDataGraph, getDataGraphDependency, getDataGraphDependencyNotifyChange, getDataGraphDependency_imperative, getDataGraphDraft, getDataGraphDraftNotifyChange, getDataGraphDraft_imperative, getDataGraphNotifyChange, getDataGraph_imperative, retryDataGraph, saveDataGraphDraft };
2623
- // version: 1.433.0-db129b48d2
2667
+ // version: 1.435.0-615ebb9bbd
package/src/raml/api.raml CHANGED
@@ -256,6 +256,14 @@ types:
256
256
  description: Is RTDG Toggle enaled for Non-Web SDK Ingestion for given data graph
257
257
  type: boolean
258
258
  required: false
259
+ processIngestionApi:
260
+ description: Process Ingestion API data in real time
261
+ type: boolean
262
+ required: false
263
+ processSalesforceCrm:
264
+ description: Process Salesforce CRM connector data in real time
265
+ type: boolean
266
+ required: false
259
267
  cacheDurationInDays:
260
268
  description: No of days last accessed records are cached
261
269
  type: integer
@@ -416,6 +424,14 @@ types:
416
424
  description: Is RTDG Toggle enaled for Non-Web SDK Ingestion for given data graph
417
425
  type: boolean
418
426
  required: false
427
+ processIngestionApi:
428
+ description: Process Ingestion API data in real time
429
+ type: boolean
430
+ required: false
431
+ processSalesforceCrm:
432
+ description: Process Salesforce CRM connector data in real time
433
+ type: boolean
434
+ required: false
419
435
  cacheDurationInDays:
420
436
  description: No of days last accessed records are cached
421
437
  type: integer