@salesforce/lds-adapters-marketing-cdp 1.298.0 → 1.299.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.
@@ -267,6 +267,13 @@ function validate$8(obj, path = 'CdpDataGraphFieldOutputRepresentation') {
267
267
  return new TypeError('Expected "string" but received "' + typeof obj_ciFieldType + '" (at "' + path_ciFieldType + '")');
268
268
  }
269
269
  }
270
+ if (obj.ciFormula !== undefined) {
271
+ const obj_ciFormula = obj.ciFormula;
272
+ const path_ciFormula = path + '.ciFormula';
273
+ if (typeof obj_ciFormula !== 'string') {
274
+ return new TypeError('Expected "string" but received "' + typeof obj_ciFormula + '" (at "' + path_ciFormula + '")');
275
+ }
276
+ }
270
277
  if (obj.dataType !== undefined) {
271
278
  const obj_dataType = obj.dataType;
272
279
  const path_dataType = path + '.dataType';
@@ -298,13 +305,6 @@ function validate$8(obj, path = 'CdpDataGraphFieldOutputRepresentation') {
298
305
  return new TypeError('Expected "string" but received "' + typeof obj_devName + '" (at "' + path_devName + '")');
299
306
  }
300
307
  }
301
- if (obj.formula !== undefined) {
302
- const obj_formula = obj.formula;
303
- const path_formula = path + '.formula';
304
- if (typeof obj_formula !== 'string') {
305
- return new TypeError('Expected "string" but received "' + typeof obj_formula + '" (at "' + path_formula + '")');
306
- }
307
- }
308
308
  const obj_isKeyColumn = obj.isKeyColumn;
309
309
  const path_isKeyColumn = path + '.isKeyColumn';
310
310
  if (typeof obj_isKeyColumn !== 'boolean') {
@@ -395,20 +395,20 @@ function validate$6(obj, path = 'CdpDataGraphRecencyCriteriaOutputRepresentation
395
395
  return v_error === undefined ? null : v_error;
396
396
  }
397
397
 
398
- function validate$5(obj, path = 'CdpDataGraphRelatedSegmentsOutputRepresentation') {
398
+ function validate$5(obj, path = 'CdpDataGraphRelatedSegmentOutputRepresentation') {
399
399
  const v_error = (() => {
400
400
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
401
401
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
402
402
  }
403
- const obj_apiName = obj.apiName;
404
- const path_apiName = path + '.apiName';
405
- if (typeof obj_apiName !== 'string') {
406
- return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
403
+ const obj_label = obj.label;
404
+ const path_label = path + '.label';
405
+ if (typeof obj_label !== 'string') {
406
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
407
407
  }
408
- const obj_displayName = obj.displayName;
409
- const path_displayName = path + '.displayName';
410
- if (typeof obj_displayName !== 'string') {
411
- return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
408
+ const obj_name = obj.name;
409
+ const path_name = path + '.name';
410
+ if (typeof obj_name !== 'string') {
411
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
412
412
  }
413
413
  })();
414
414
  return v_error === undefined ? null : v_error;
@@ -543,7 +543,7 @@ function validate$4(obj, path = 'CdpDataGraphSourceObjectOutputRepresentation')
543
543
  const path_relatedSegments_item = path_relatedSegments + '[' + i + ']';
544
544
  const referencepath_relatedSegments_itemValidationError = validate$5(obj_relatedSegments_item, path_relatedSegments_item);
545
545
  if (referencepath_relatedSegments_itemValidationError !== null) {
546
- let message = 'Object doesn\'t match CdpDataGraphRelatedSegmentsOutputRepresentation (at "' + path_relatedSegments_item + '")\n';
546
+ let message = 'Object doesn\'t match CdpDataGraphRelatedSegmentOutputRepresentation (at "' + path_relatedSegments_item + '")\n';
547
547
  message += referencepath_relatedSegments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
548
548
  return new TypeError(message);
549
549
  }
@@ -1,6 +1,6 @@
1
1
  import { DependencyOutputRepresentation as DependencyOutputRepresentation_DependencyOutputRepresentation } from './DependencyOutputRepresentation';
2
2
  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';
3
- export declare const VERSION = "63e338e25339d2db4126574c5596d1ed";
3
+ export declare const VERSION = "219de7a0da486bc572343a015392900f";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: CdpDataGraphFieldOutputRepresentation, existing: CdpDataGraphFieldOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpDataGraphFieldOutputRepresentationNormalized;
@@ -17,14 +17,14 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
17
17
  export interface CdpDataGraphFieldOutputRepresentationNormalized {
18
18
  /** ci_field_type */
19
19
  ciFieldType?: string;
20
+ /** ciFormula */
21
+ ciFormula?: string;
20
22
  /** Field Data Type */
21
23
  dataType?: string;
22
24
  /** dependency */
23
25
  dependency?: Array<DependencyOutputRepresentation_DependencyOutputRepresentation>;
24
26
  /** dev_name */
25
27
  devName?: string;
26
- /** formula */
27
- formula?: string;
28
28
  /** isKeyColumn */
29
29
  isKeyColumn: boolean;
30
30
  /** is_projected */
@@ -46,10 +46,10 @@ export interface CdpDataGraphFieldOutputRepresentationNormalized {
46
46
  */
47
47
  export interface CdpDataGraphFieldOutputRepresentation {
48
48
  ciFieldType?: string;
49
+ ciFormula?: string;
49
50
  dataType?: string;
50
51
  dependency?: Array<DependencyOutputRepresentation_DependencyOutputRepresentation>;
51
52
  devName?: string;
52
- formula?: string;
53
53
  isKeyColumn: boolean;
54
54
  isProjected?: boolean;
55
55
  keyQualifierName?: string;
@@ -1,31 +1,31 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 = "13156c2899b37d29a6dbfc0543c151f7";
2
+ export declare const VERSION = "4aebb02aa3037c095e4ae19bc4fdf302";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
- export declare function normalize(input: CdpDataGraphRelatedSegmentsOutputRepresentation, existing: CdpDataGraphRelatedSegmentsOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpDataGraphRelatedSegmentsOutputRepresentationNormalized;
5
+ export declare function normalize(input: CdpDataGraphRelatedSegmentOutputRepresentation, existing: CdpDataGraphRelatedSegmentOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpDataGraphRelatedSegmentOutputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
- export declare function equals(existing: CdpDataGraphRelatedSegmentsOutputRepresentationNormalized, incoming: CdpDataGraphRelatedSegmentsOutputRepresentationNormalized): boolean;
7
+ export declare function equals(existing: CdpDataGraphRelatedSegmentOutputRepresentationNormalized, incoming: CdpDataGraphRelatedSegmentOutputRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpDataGraphRelatedSegmentsOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpDataGraphRelatedSegmentOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
- * Represents Data Graph Related Segments
11
+ * Represents Data Graph Related Segment
12
12
  *
13
13
  * Keys:
14
14
  * (none)
15
15
  */
16
- export interface CdpDataGraphRelatedSegmentsOutputRepresentationNormalized {
17
- /** apiName */
18
- apiName: string;
19
- /** displayName */
20
- displayName: string;
16
+ export interface CdpDataGraphRelatedSegmentOutputRepresentationNormalized {
17
+ /** label */
18
+ label: string;
19
+ /** name */
20
+ name: string;
21
21
  }
22
22
  /**
23
- * Represents Data Graph Related Segments
23
+ * Represents Data Graph Related Segment
24
24
  *
25
25
  * Keys:
26
26
  * (none)
27
27
  */
28
- export interface CdpDataGraphRelatedSegmentsOutputRepresentation {
29
- apiName: string;
30
- displayName: string;
28
+ export interface CdpDataGraphRelatedSegmentOutputRepresentation {
29
+ label: string;
30
+ name: string;
31
31
  }
@@ -2,9 +2,9 @@ import { DependencyOutputRepresentation as DependencyOutputRepresentation_Depend
2
2
  import { CdpDataGraphFieldOutputRepresentation as CdpDataGraphFieldOutputRepresentation_CdpDataGraphFieldOutputRepresentation } from './CdpDataGraphFieldOutputRepresentation';
3
3
  import { CdpDataGraphPathToParentOutputRepresentation as CdpDataGraphPathToParentOutputRepresentation_CdpDataGraphPathToParentOutputRepresentation } from './CdpDataGraphPathToParentOutputRepresentation';
4
4
  import { CdpDataGraphRecencyCriteriaOutputRepresentation as CdpDataGraphRecencyCriteriaOutputRepresentation_CdpDataGraphRecencyCriteriaOutputRepresentation } from './CdpDataGraphRecencyCriteriaOutputRepresentation';
5
- import { CdpDataGraphRelatedSegmentsOutputRepresentation as CdpDataGraphRelatedSegmentsOutputRepresentation_CdpDataGraphRelatedSegmentsOutputRepresentation } from './CdpDataGraphRelatedSegmentsOutputRepresentation';
5
+ import { CdpDataGraphRelatedSegmentOutputRepresentation as CdpDataGraphRelatedSegmentOutputRepresentation_CdpDataGraphRelatedSegmentOutputRepresentation } from './CdpDataGraphRelatedSegmentOutputRepresentation';
6
6
  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';
7
- export declare const VERSION = "ea0d39a56ce70db9a1080730e498482f";
7
+ export declare const VERSION = "0b0bb8e05dbaadc7993d9cc10fe4d8f0";
8
8
  export declare function validate(obj: any, path?: string): TypeError | null;
9
9
  export declare const RepresentationType: string;
10
10
  export declare function normalize(input: CdpDataGraphSourceObjectOutputRepresentation, existing: CdpDataGraphSourceObjectOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpDataGraphSourceObjectOutputRepresentationNormalized;
@@ -40,7 +40,7 @@ export interface CdpDataGraphSourceObjectOutputRepresentationNormalized {
40
40
  /** relatedObjects */
41
41
  relatedObjects: Array<unknown>;
42
42
  /** relatedSegments */
43
- relatedSegments?: Array<CdpDataGraphRelatedSegmentsOutputRepresentation_CdpDataGraphRelatedSegmentsOutputRepresentation>;
43
+ relatedSegments?: Array<CdpDataGraphRelatedSegmentOutputRepresentation_CdpDataGraphRelatedSegmentOutputRepresentation>;
44
44
  /** type */
45
45
  type?: string;
46
46
  }
@@ -61,6 +61,6 @@ export interface CdpDataGraphSourceObjectOutputRepresentation {
61
61
  recencyCriteria?: Array<CdpDataGraphRecencyCriteriaOutputRepresentation_CdpDataGraphRecencyCriteriaOutputRepresentation>;
62
62
  referenceDeveloperName?: string;
63
63
  relatedObjects: Array<unknown>;
64
- relatedSegments?: Array<CdpDataGraphRelatedSegmentsOutputRepresentation_CdpDataGraphRelatedSegmentsOutputRepresentation>;
64
+ relatedSegments?: Array<CdpDataGraphRelatedSegmentOutputRepresentation_CdpDataGraphRelatedSegmentOutputRepresentation>;
65
65
  type?: string;
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-marketing-cdp",
3
- "version": "1.298.0",
3
+ "version": "1.299.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.298.0"
46
+ "@salesforce/lds-bindings": "^1.299.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@salesforce/lds-compiler-plugins": "^1.298.0",
50
- "@salesforce/lds-karma": "^1.298.0"
49
+ "@salesforce/lds-compiler-plugins": "^1.299.0",
50
+ "@salesforce/lds-karma": "^1.299.0"
51
51
  },
52
52
  "nx": {
53
53
  "targets": {
package/sfdc/index.js CHANGED
@@ -277,6 +277,13 @@ function validate$8(obj, path = 'CdpDataGraphFieldOutputRepresentation') {
277
277
  return new TypeError('Expected "string" but received "' + typeof obj_ciFieldType + '" (at "' + path_ciFieldType + '")');
278
278
  }
279
279
  }
280
+ if (obj.ciFormula !== undefined) {
281
+ const obj_ciFormula = obj.ciFormula;
282
+ const path_ciFormula = path + '.ciFormula';
283
+ if (typeof obj_ciFormula !== 'string') {
284
+ return new TypeError('Expected "string" but received "' + typeof obj_ciFormula + '" (at "' + path_ciFormula + '")');
285
+ }
286
+ }
280
287
  if (obj.dataType !== undefined) {
281
288
  const obj_dataType = obj.dataType;
282
289
  const path_dataType = path + '.dataType';
@@ -308,13 +315,6 @@ function validate$8(obj, path = 'CdpDataGraphFieldOutputRepresentation') {
308
315
  return new TypeError('Expected "string" but received "' + typeof obj_devName + '" (at "' + path_devName + '")');
309
316
  }
310
317
  }
311
- if (obj.formula !== undefined) {
312
- const obj_formula = obj.formula;
313
- const path_formula = path + '.formula';
314
- if (typeof obj_formula !== 'string') {
315
- return new TypeError('Expected "string" but received "' + typeof obj_formula + '" (at "' + path_formula + '")');
316
- }
317
- }
318
318
  const obj_isKeyColumn = obj.isKeyColumn;
319
319
  const path_isKeyColumn = path + '.isKeyColumn';
320
320
  if (typeof obj_isKeyColumn !== 'boolean') {
@@ -405,20 +405,20 @@ function validate$6(obj, path = 'CdpDataGraphRecencyCriteriaOutputRepresentation
405
405
  return v_error === undefined ? null : v_error;
406
406
  }
407
407
 
408
- function validate$5(obj, path = 'CdpDataGraphRelatedSegmentsOutputRepresentation') {
408
+ function validate$5(obj, path = 'CdpDataGraphRelatedSegmentOutputRepresentation') {
409
409
  const v_error = (() => {
410
410
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
411
411
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
412
412
  }
413
- const obj_apiName = obj.apiName;
414
- const path_apiName = path + '.apiName';
415
- if (typeof obj_apiName !== 'string') {
416
- return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
413
+ const obj_label = obj.label;
414
+ const path_label = path + '.label';
415
+ if (typeof obj_label !== 'string') {
416
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
417
417
  }
418
- const obj_displayName = obj.displayName;
419
- const path_displayName = path + '.displayName';
420
- if (typeof obj_displayName !== 'string') {
421
- return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
418
+ const obj_name = obj.name;
419
+ const path_name = path + '.name';
420
+ if (typeof obj_name !== 'string') {
421
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
422
422
  }
423
423
  })();
424
424
  return v_error === undefined ? null : v_error;
@@ -553,7 +553,7 @@ function validate$4(obj, path = 'CdpDataGraphSourceObjectOutputRepresentation')
553
553
  const path_relatedSegments_item = path_relatedSegments + '[' + i + ']';
554
554
  const referencepath_relatedSegments_itemValidationError = validate$5(obj_relatedSegments_item, path_relatedSegments_item);
555
555
  if (referencepath_relatedSegments_itemValidationError !== null) {
556
- let message = 'Object doesn\'t match CdpDataGraphRelatedSegmentsOutputRepresentation (at "' + path_relatedSegments_item + '")\n';
556
+ let message = 'Object doesn\'t match CdpDataGraphRelatedSegmentOutputRepresentation (at "' + path_relatedSegments_item + '")\n';
557
557
  message += referencepath_relatedSegments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
558
558
  return new TypeError(message);
559
559
  }
@@ -2122,4 +2122,4 @@ withDefaultLuvio((luvio) => {
2122
2122
  });
2123
2123
 
2124
2124
  export { createDataGraph, deleteDataGraph, editDataGraph, getDataGraph, getDataGraphDependency, getDataGraphDependencyNotifyChange, getDataGraphDependency_imperative, getDataGraphDraft, getDataGraphDraftNotifyChange, getDataGraphDraft_imperative, getDataGraphNotifyChange, getDataGraph_imperative, retryDataGraph, saveDataGraphDraft };
2125
- // version: 1.298.0-6f15dc1ec
2125
+ // version: 1.299.0-161c48605a
package/src/raml/api.raml CHANGED
@@ -178,8 +178,8 @@ types:
178
178
  description: dev_name
179
179
  type: string
180
180
  required: false
181
- formula:
182
- description: formula
181
+ ciFormula:
182
+ description: ciFormula
183
183
  type: string
184
184
  required: false
185
185
  sourceFieldLabel:
@@ -292,7 +292,7 @@ types:
292
292
  description: relatedSegments
293
293
  type: array
294
294
  items:
295
- type: CdpDataGraphRelatedSegmentsOutputRepresentation
295
+ type: CdpDataGraphRelatedSegmentOutputRepresentation
296
296
  required: false
297
297
  type:
298
298
  description: type
@@ -415,15 +415,15 @@ types:
415
415
  type: array
416
416
  items:
417
417
  type: any
418
- CdpDataGraphRelatedSegmentsOutputRepresentation:
419
- description: Represents Data Graph Related Segments
418
+ CdpDataGraphRelatedSegmentOutputRepresentation:
419
+ description: Represents Data Graph Related Segment
420
420
  type: object
421
421
  properties:
422
- apiName:
423
- description: apiName
422
+ name:
423
+ description: name
424
424
  type: string
425
- displayName:
426
- description: displayName
425
+ label:
426
+ description: label
427
427
  type: string
428
428
  CdpDataGraphRetryInputRepresentation:
429
429
  description: Input representation for retry running error state CDP Data Graph