@salesforce/lds-adapters-marketing-cdp 0.131.0 → 1.131.0-dev9
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 +4 -4
- package/sfdc/index.js +13 -6
- package/src/raml/api.raml +6 -2
|
@@ -278,11 +278,18 @@ function validate$2(obj, path = 'CdpApplicationDataGraphSourceObjectOutputRepres
|
|
|
278
278
|
if (obj.recencyCriteria !== undefined) {
|
|
279
279
|
const obj_recencyCriteria = obj.recencyCriteria;
|
|
280
280
|
const path_recencyCriteria = path + '.recencyCriteria';
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
281
|
+
if (!ArrayIsArray(obj_recencyCriteria)) {
|
|
282
|
+
return new TypeError('Expected "array" but received "' + typeof obj_recencyCriteria + '" (at "' + path_recencyCriteria + '")');
|
|
283
|
+
}
|
|
284
|
+
for (let i = 0; i < obj_recencyCriteria.length; i++) {
|
|
285
|
+
const obj_recencyCriteria_item = obj_recencyCriteria[i];
|
|
286
|
+
const path_recencyCriteria_item = path_recencyCriteria + '[' + i + ']';
|
|
287
|
+
const referencepath_recencyCriteria_itemValidationError = validate$3(obj_recencyCriteria_item, path_recencyCriteria_item);
|
|
288
|
+
if (referencepath_recencyCriteria_itemValidationError !== null) {
|
|
289
|
+
let message = 'Object doesn\'t match CdpApplicationDataGraphRecencyCriteriaOutputRepresentation (at "' + path_recencyCriteria_item + '")\n';
|
|
290
|
+
message += referencepath_recencyCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
291
|
+
return new TypeError(message);
|
|
292
|
+
}
|
|
286
293
|
}
|
|
287
294
|
}
|
|
288
295
|
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } 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;
|
|
@@ -23,7 +23,7 @@ export interface CdpApplicationDataGraphSourceInputRepresentationNormalized exte
|
|
|
23
23
|
/** path */
|
|
24
24
|
path: Array<CdpApplicationDataGraphPathToParentInputRepresentation_CdpApplicationDataGraphPathToParentInputRepresentation>;
|
|
25
25
|
/** recencyCriteria */
|
|
26
|
-
recencyCriteria:
|
|
26
|
+
recencyCriteria: Array<{}>;
|
|
27
27
|
/** relatedObjects */
|
|
28
28
|
relatedObjects: Array<unknown>;
|
|
29
29
|
/** type */
|
|
@@ -38,7 +38,7 @@ export interface CdpApplicationDataGraphSourceInputRepresentationNormalized exte
|
|
|
38
38
|
export interface CdpApplicationDataGraphSourceInputRepresentation extends CdpObjectBaseInputRepresentation_CdpObjectBaseInputRepresentation {
|
|
39
39
|
fields: Array<CdpApplicationDataGraphFieldInputRepresentation_CdpApplicationDataGraphFieldInputRepresentation>;
|
|
40
40
|
path: Array<CdpApplicationDataGraphPathToParentInputRepresentation_CdpApplicationDataGraphPathToParentInputRepresentation>;
|
|
41
|
-
recencyCriteria:
|
|
41
|
+
recencyCriteria: Array<{}>;
|
|
42
42
|
relatedObjects: Array<unknown>;
|
|
43
43
|
type: string;
|
|
44
44
|
}
|
|
@@ -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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } 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;
|
|
@@ -22,7 +22,8 @@ export interface CdpApplicationDataGraphSourceObjectOutputRepresentationNormaliz
|
|
|
22
22
|
fields: Array<$64$luvio_engine_StoreLink>;
|
|
23
23
|
/** path */
|
|
24
24
|
path?: Array<CdpApplicationDataGraphPathToParentOutputRepresentation_CdpApplicationDataGraphPathToParentOutputRepresentation>;
|
|
25
|
-
recencyCriteria
|
|
25
|
+
/** recencyCriteria */
|
|
26
|
+
recencyCriteria?: Array<CdpApplicationDataGraphRecencyCriteriaOutputRepresentation_CdpApplicationDataGraphRecencyCriteriaOutputRepresentation>;
|
|
26
27
|
/** relatedObjects */
|
|
27
28
|
relatedObjects: Array<unknown>;
|
|
28
29
|
/** type */
|
|
@@ -37,7 +38,7 @@ export interface CdpApplicationDataGraphSourceObjectOutputRepresentationNormaliz
|
|
|
37
38
|
export interface CdpApplicationDataGraphSourceObjectOutputRepresentation {
|
|
38
39
|
fields: Array<CdpApplicationDataGraphFieldOutputRepresentation_CdpApplicationDataGraphFieldOutputRepresentation>;
|
|
39
40
|
path?: Array<CdpApplicationDataGraphPathToParentOutputRepresentation_CdpApplicationDataGraphPathToParentOutputRepresentation>;
|
|
40
|
-
recencyCriteria?: CdpApplicationDataGraphRecencyCriteriaOutputRepresentation_CdpApplicationDataGraphRecencyCriteriaOutputRepresentation
|
|
41
|
+
recencyCriteria?: Array<CdpApplicationDataGraphRecencyCriteriaOutputRepresentation_CdpApplicationDataGraphRecencyCriteriaOutputRepresentation>;
|
|
41
42
|
relatedObjects: Array<unknown>;
|
|
42
43
|
type: string;
|
|
43
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-marketing-cdp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.131.0-dev9",
|
|
4
4
|
"description": "LDS adapters for CDP",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/marketing-cdp.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test:unit": "jest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "1.131.0-244.
|
|
47
|
+
"@salesforce/lds-bindings": "1.131.0-244.8"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "1.131.0-244.
|
|
51
|
-
"@salesforce/lds-karma": "1.131.0-244.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "1.131.0-244.8",
|
|
51
|
+
"@salesforce/lds-karma": "1.131.0-244.8"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -288,11 +288,18 @@ function validate$2(obj, path = 'CdpApplicationDataGraphSourceObjectOutputRepres
|
|
|
288
288
|
if (obj.recencyCriteria !== undefined) {
|
|
289
289
|
const obj_recencyCriteria = obj.recencyCriteria;
|
|
290
290
|
const path_recencyCriteria = path + '.recencyCriteria';
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
291
|
+
if (!ArrayIsArray(obj_recencyCriteria)) {
|
|
292
|
+
return new TypeError('Expected "array" but received "' + typeof obj_recencyCriteria + '" (at "' + path_recencyCriteria + '")');
|
|
293
|
+
}
|
|
294
|
+
for (let i = 0; i < obj_recencyCriteria.length; i++) {
|
|
295
|
+
const obj_recencyCriteria_item = obj_recencyCriteria[i];
|
|
296
|
+
const path_recencyCriteria_item = path_recencyCriteria + '[' + i + ']';
|
|
297
|
+
const referencepath_recencyCriteria_itemValidationError = validate$3(obj_recencyCriteria_item, path_recencyCriteria_item);
|
|
298
|
+
if (referencepath_recencyCriteria_itemValidationError !== null) {
|
|
299
|
+
let message = 'Object doesn\'t match CdpApplicationDataGraphRecencyCriteriaOutputRepresentation (at "' + path_recencyCriteria_item + '")\n';
|
|
300
|
+
message += referencepath_recencyCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
301
|
+
return new TypeError(message);
|
|
302
|
+
}
|
|
296
303
|
}
|
|
297
304
|
}
|
|
298
305
|
const obj_relatedObjects = obj.relatedObjects;
|
|
@@ -1132,4 +1139,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1132
1139
|
});
|
|
1133
1140
|
|
|
1134
1141
|
export { createAdg, deleteAdg, getAdg, getAdgNotifyChange, getAdg_imperative, retryDataGraph };
|
|
1135
|
-
// version:
|
|
1142
|
+
// version: 1.131.0-dev9-9940b321d
|
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
|