@salesforce/lds-adapters-marketing-cdp 1.178.0 → 1.179.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.
@@ -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
- const referencepath_recencyCriteriaValidationError = validate$3(obj_recencyCriteria, path_recencyCriteria);
260
- if (referencepath_recencyCriteriaValidationError !== null) {
261
- let message = 'Object doesn\'t match CdpApplicationDataGraphRecencyCriteriaOutputRepresentation (at "' + path_recencyCriteria + '")\n';
262
- message += referencepath_recencyCriteriaValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
263
- return new TypeError(message);
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 = "6e89ba5bf3413349e1863e3d2d3d7bf9";
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: unknown;
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: unknown;
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 = "b02451e0d5808bb999fb27ec07ced883";
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?: CdpApplicationDataGraphRecencyCriteriaOutputRepresentation_CdpApplicationDataGraphRecencyCriteriaOutputRepresentation;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-marketing-cdp",
3
- "version": "1.178.0",
3
+ "version": "1.179.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",
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
- const referencepath_recencyCriteriaValidationError = validate$3(obj_recencyCriteria, path_recencyCriteria);
270
- if (referencepath_recencyCriteriaValidationError !== null) {
271
- let message = 'Object doesn\'t match CdpApplicationDataGraphRecencyCriteriaOutputRepresentation (at "' + path_recencyCriteria + '")\n';
272
- message += referencepath_recencyCriteriaValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
273
- return new TypeError(message);
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.178.0-2e30c899e
1129
+ // version: 1.179.0-98165b745
package/src/raml/api.raml CHANGED
@@ -174,7 +174,9 @@ types:
174
174
  required: false
175
175
  recencyCriteria:
176
176
  description: recencyCriteria
177
- type: CdpApplicationDataGraphRecencyCriteriaOutputRepresentation
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: any
275
+ type: array
276
+ items:
277
+ type: object
274
278
  relatedObjects:
275
279
  description: relatedObjects
276
280
  type: array