@salesforce/lds-adapters-marketing-cdp 1.178.0 → 1.180.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 +12 -5
- package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphSourceInputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CdpApplicationDataGraphSourceObjectOutputRepresentation.d.ts +4 -3
- package/package.json +1 -1
- package/sfdc/index.js +13 -6
- package/src/raml/api.raml +6 -2
|
@@ -256,11 +256,18 @@ function validate$2(obj, path = 'CdpApplicationDataGraphSourceObjectOutputRepres
|
|
|
256
256
|
if (obj.recencyCriteria !== undefined) {
|
|
257
257
|
const obj_recencyCriteria = obj.recencyCriteria;
|
|
258
258
|
const path_recencyCriteria = path + '.recencyCriteria';
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
259
|
+
if (!ArrayIsArray(obj_recencyCriteria)) {
|
|
260
|
+
return new TypeError('Expected "array" but received "' + typeof obj_recencyCriteria + '" (at "' + path_recencyCriteria + '")');
|
|
261
|
+
}
|
|
262
|
+
for (let i = 0; i < obj_recencyCriteria.length; i++) {
|
|
263
|
+
const obj_recencyCriteria_item = obj_recencyCriteria[i];
|
|
264
|
+
const path_recencyCriteria_item = path_recencyCriteria + '[' + i + ']';
|
|
265
|
+
const referencepath_recencyCriteria_itemValidationError = validate$3(obj_recencyCriteria_item, path_recencyCriteria_item);
|
|
266
|
+
if (referencepath_recencyCriteria_itemValidationError !== null) {
|
|
267
|
+
let message = 'Object doesn\'t match CdpApplicationDataGraphRecencyCriteriaOutputRepresentation (at "' + path_recencyCriteria_item + '")\n';
|
|
268
|
+
message += referencepath_recencyCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
269
|
+
return new TypeError(message);
|
|
270
|
+
}
|
|
264
271
|
}
|
|
265
272
|
}
|
|
266
273
|
const obj_relatedObjects = obj.relatedObjects;
|
|
@@ -2,7 +2,7 @@ import { CdpObjectBaseInputRepresentation as CdpObjectBaseInputRepresentation_Cd
|
|
|
2
2
|
import { CdpApplicationDataGraphFieldInputRepresentation as CdpApplicationDataGraphFieldInputRepresentation_CdpApplicationDataGraphFieldInputRepresentation } from './CdpApplicationDataGraphFieldInputRepresentation';
|
|
3
3
|
import { CdpApplicationDataGraphPathToParentInputRepresentation as CdpApplicationDataGraphPathToParentInputRepresentation_CdpApplicationDataGraphPathToParentInputRepresentation } from './CdpApplicationDataGraphPathToParentInputRepresentation';
|
|
4
4
|
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';
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "57ba00c2c3a0debf78f5bff20675e784";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export declare function normalize(input: CdpApplicationDataGraphSourceInputRepresentation, existing: CdpApplicationDataGraphSourceInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpApplicationDataGraphSourceInputRepresentationNormalized;
|
|
@@ -22,7 +22,7 @@ export interface CdpApplicationDataGraphSourceInputRepresentationNormalized exte
|
|
|
22
22
|
/** path */
|
|
23
23
|
path: Array<CdpApplicationDataGraphPathToParentInputRepresentation_CdpApplicationDataGraphPathToParentInputRepresentation>;
|
|
24
24
|
/** recencyCriteria */
|
|
25
|
-
recencyCriteria:
|
|
25
|
+
recencyCriteria: Array<{}>;
|
|
26
26
|
/** relatedObjects */
|
|
27
27
|
relatedObjects: Array<unknown>;
|
|
28
28
|
/** type */
|
|
@@ -37,7 +37,7 @@ export interface CdpApplicationDataGraphSourceInputRepresentationNormalized exte
|
|
|
37
37
|
export interface CdpApplicationDataGraphSourceInputRepresentation extends CdpObjectBaseInputRepresentation_CdpObjectBaseInputRepresentation {
|
|
38
38
|
fields: Array<CdpApplicationDataGraphFieldInputRepresentation_CdpApplicationDataGraphFieldInputRepresentation>;
|
|
39
39
|
path: Array<CdpApplicationDataGraphPathToParentInputRepresentation_CdpApplicationDataGraphPathToParentInputRepresentation>;
|
|
40
|
-
recencyCriteria:
|
|
40
|
+
recencyCriteria: Array<{}>;
|
|
41
41
|
relatedObjects: Array<unknown>;
|
|
42
42
|
type: string;
|
|
43
43
|
}
|
|
@@ -2,7 +2,7 @@ import { CdpApplicationDataGraphFieldOutputRepresentation as CdpApplicationDataG
|
|
|
2
2
|
import { CdpApplicationDataGraphPathToParentOutputRepresentation as CdpApplicationDataGraphPathToParentOutputRepresentation_CdpApplicationDataGraphPathToParentOutputRepresentation } from './CdpApplicationDataGraphPathToParentOutputRepresentation';
|
|
3
3
|
import { CdpApplicationDataGraphRecencyCriteriaOutputRepresentation as CdpApplicationDataGraphRecencyCriteriaOutputRepresentation_CdpApplicationDataGraphRecencyCriteriaOutputRepresentation } from './CdpApplicationDataGraphRecencyCriteriaOutputRepresentation';
|
|
4
4
|
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, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "ed30ec2fd4180f91570fb050f3bfb6ce";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export declare function normalize(input: CdpApplicationDataGraphSourceObjectOutputRepresentation, existing: CdpApplicationDataGraphSourceObjectOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpApplicationDataGraphSourceObjectOutputRepresentationNormalized;
|
|
@@ -21,7 +21,8 @@ export interface CdpApplicationDataGraphSourceObjectOutputRepresentationNormaliz
|
|
|
21
21
|
fields: Array<$64$luvio_engine_StoreLink>;
|
|
22
22
|
/** path */
|
|
23
23
|
path?: Array<CdpApplicationDataGraphPathToParentOutputRepresentation_CdpApplicationDataGraphPathToParentOutputRepresentation>;
|
|
24
|
-
recencyCriteria
|
|
24
|
+
/** recencyCriteria */
|
|
25
|
+
recencyCriteria?: Array<CdpApplicationDataGraphRecencyCriteriaOutputRepresentation_CdpApplicationDataGraphRecencyCriteriaOutputRepresentation>;
|
|
25
26
|
/** relatedObjects */
|
|
26
27
|
relatedObjects: Array<unknown>;
|
|
27
28
|
/** type */
|
|
@@ -36,7 +37,7 @@ export interface CdpApplicationDataGraphSourceObjectOutputRepresentationNormaliz
|
|
|
36
37
|
export interface CdpApplicationDataGraphSourceObjectOutputRepresentation {
|
|
37
38
|
fields: Array<CdpApplicationDataGraphFieldOutputRepresentation_CdpApplicationDataGraphFieldOutputRepresentation>;
|
|
38
39
|
path?: Array<CdpApplicationDataGraphPathToParentOutputRepresentation_CdpApplicationDataGraphPathToParentOutputRepresentation>;
|
|
39
|
-
recencyCriteria?: CdpApplicationDataGraphRecencyCriteriaOutputRepresentation_CdpApplicationDataGraphRecencyCriteriaOutputRepresentation
|
|
40
|
+
recencyCriteria?: Array<CdpApplicationDataGraphRecencyCriteriaOutputRepresentation_CdpApplicationDataGraphRecencyCriteriaOutputRepresentation>;
|
|
40
41
|
relatedObjects: Array<unknown>;
|
|
41
42
|
type: string;
|
|
42
43
|
}
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -266,11 +266,18 @@ function validate$2(obj, path = 'CdpApplicationDataGraphSourceObjectOutputRepres
|
|
|
266
266
|
if (obj.recencyCriteria !== undefined) {
|
|
267
267
|
const obj_recencyCriteria = obj.recencyCriteria;
|
|
268
268
|
const path_recencyCriteria = path + '.recencyCriteria';
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
269
|
+
if (!ArrayIsArray(obj_recencyCriteria)) {
|
|
270
|
+
return new TypeError('Expected "array" but received "' + typeof obj_recencyCriteria + '" (at "' + path_recencyCriteria + '")');
|
|
271
|
+
}
|
|
272
|
+
for (let i = 0; i < obj_recencyCriteria.length; i++) {
|
|
273
|
+
const obj_recencyCriteria_item = obj_recencyCriteria[i];
|
|
274
|
+
const path_recencyCriteria_item = path_recencyCriteria + '[' + i + ']';
|
|
275
|
+
const referencepath_recencyCriteria_itemValidationError = validate$3(obj_recencyCriteria_item, path_recencyCriteria_item);
|
|
276
|
+
if (referencepath_recencyCriteria_itemValidationError !== null) {
|
|
277
|
+
let message = 'Object doesn\'t match CdpApplicationDataGraphRecencyCriteriaOutputRepresentation (at "' + path_recencyCriteria_item + '")\n';
|
|
278
|
+
message += referencepath_recencyCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
279
|
+
return new TypeError(message);
|
|
280
|
+
}
|
|
274
281
|
}
|
|
275
282
|
}
|
|
276
283
|
const obj_relatedObjects = obj.relatedObjects;
|
|
@@ -1119,4 +1126,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1119
1126
|
});
|
|
1120
1127
|
|
|
1121
1128
|
export { createAdg, deleteAdg, getAdg, getAdgNotifyChange, getAdg_imperative, retryDataGraph };
|
|
1122
|
-
// version: 1.
|
|
1129
|
+
// version: 1.180.0-4b3410cfe
|
package/src/raml/api.raml
CHANGED
|
@@ -174,7 +174,9 @@ types:
|
|
|
174
174
|
required: false
|
|
175
175
|
recencyCriteria:
|
|
176
176
|
description: recencyCriteria
|
|
177
|
-
type:
|
|
177
|
+
type: array
|
|
178
|
+
items:
|
|
179
|
+
type: CdpApplicationDataGraphRecencyCriteriaOutputRepresentation
|
|
178
180
|
required: false
|
|
179
181
|
relatedObjects:
|
|
180
182
|
description: relatedObjects
|
|
@@ -270,7 +272,9 @@ types:
|
|
|
270
272
|
type: CdpApplicationDataGraphPathToParentInputRepresentation
|
|
271
273
|
recencyCriteria:
|
|
272
274
|
description: recencyCriteria
|
|
273
|
-
type:
|
|
275
|
+
type: array
|
|
276
|
+
items:
|
|
277
|
+
type: object
|
|
274
278
|
relatedObjects:
|
|
275
279
|
description: relatedObjects
|
|
276
280
|
type: array
|