@salesforce/lds-adapters-marketing-cdp 0.131.0 → 1.131.0-dev11

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.
@@ -176,6 +176,13 @@ function validate$5(obj, path = 'CdpApplicationDataGraphFieldOutputRepresentatio
176
176
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
177
177
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
178
178
  }
179
+ if (obj.dataType !== undefined) {
180
+ const obj_dataType = obj.dataType;
181
+ const path_dataType = path + '.dataType';
182
+ if (typeof obj_dataType !== 'string') {
183
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
184
+ }
185
+ }
179
186
  const obj_isKeyColumn = obj.isKeyColumn;
180
187
  const path_isKeyColumn = path + '.isKeyColumn';
181
188
  if (typeof obj_isKeyColumn !== 'boolean') {
@@ -278,11 +285,18 @@ function validate$2(obj, path = 'CdpApplicationDataGraphSourceObjectOutputRepres
278
285
  if (obj.recencyCriteria !== undefined) {
279
286
  const obj_recencyCriteria = obj.recencyCriteria;
280
287
  const path_recencyCriteria = path + '.recencyCriteria';
281
- const referencepath_recencyCriteriaValidationError = validate$3(obj_recencyCriteria, path_recencyCriteria);
282
- if (referencepath_recencyCriteriaValidationError !== null) {
283
- let message = 'Object doesn\'t match CdpApplicationDataGraphRecencyCriteriaOutputRepresentation (at "' + path_recencyCriteria + '")\n';
284
- message += referencepath_recencyCriteriaValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
285
- return new TypeError(message);
288
+ if (!ArrayIsArray(obj_recencyCriteria)) {
289
+ return new TypeError('Expected "array" but received "' + typeof obj_recencyCriteria + '" (at "' + path_recencyCriteria + '")');
290
+ }
291
+ for (let i = 0; i < obj_recencyCriteria.length; i++) {
292
+ const obj_recencyCriteria_item = obj_recencyCriteria[i];
293
+ const path_recencyCriteria_item = path_recencyCriteria + '[' + i + ']';
294
+ const referencepath_recencyCriteria_itemValidationError = validate$3(obj_recencyCriteria_item, path_recencyCriteria_item);
295
+ if (referencepath_recencyCriteria_itemValidationError !== null) {
296
+ let message = 'Object doesn\'t match CdpApplicationDataGraphRecencyCriteriaOutputRepresentation (at "' + path_recencyCriteria_item + '")\n';
297
+ message += referencepath_recencyCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
298
+ return new TypeError(message);
299
+ }
286
300
  }
287
301
  }
288
302
  const obj_relatedObjects = obj.relatedObjects;
@@ -1,5 +1,5 @@
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
- export declare const VERSION = "e3ca443a544f4139e56ecc2ecb3fda03";
2
+ export declare const VERSION = "168cdcdf5cdbd4684db15469dd4d870f";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: CdpApplicationDataGraphFieldInputRepresentation, existing: CdpApplicationDataGraphFieldInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpApplicationDataGraphFieldInputRepresentationNormalized;
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: C
15
15
  * (none)
16
16
  */
17
17
  export interface CdpApplicationDataGraphFieldInputRepresentationNormalized {
18
+ /** Field Data Type */
19
+ dataType?: string;
18
20
  /** is column a key */
19
21
  isKeyColumn: boolean;
20
22
  /** source field name */
@@ -27,6 +29,7 @@ export interface CdpApplicationDataGraphFieldInputRepresentationNormalized {
27
29
  * (none)
28
30
  */
29
31
  export interface CdpApplicationDataGraphFieldInputRepresentation {
32
+ dataType?: string;
30
33
  isKeyColumn: boolean;
31
34
  sourceFieldName: string;
32
35
  }
@@ -1,5 +1,5 @@
1
1
  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';
2
- export declare const VERSION = "5ccd85bcaf66b23d82f3af541d347b3e";
2
+ export declare const VERSION = "549a4e75145c620d81f7824a2358f6ed";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: CdpApplicationDataGraphFieldOutputRepresentation, existing: CdpApplicationDataGraphFieldOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpApplicationDataGraphFieldOutputRepresentationNormalized;
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: C
15
15
  * (none)
16
16
  */
17
17
  export interface CdpApplicationDataGraphFieldOutputRepresentationNormalized {
18
+ /** Field Data Type */
19
+ dataType?: string;
18
20
  /** isKeyColumn */
19
21
  isKeyColumn: boolean;
20
22
  /** source_field_developer_name */
@@ -27,6 +29,7 @@ export interface CdpApplicationDataGraphFieldOutputRepresentationNormalized {
27
29
  * (none)
28
30
  */
29
31
  export interface CdpApplicationDataGraphFieldOutputRepresentation {
32
+ dataType?: string;
30
33
  isKeyColumn: boolean;
31
34
  sourceFieldName: string;
32
35
  }
@@ -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 = "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;
@@ -23,7 +23,7 @@ export interface CdpApplicationDataGraphSourceInputRepresentationNormalized exte
23
23
  /** path */
24
24
  path: Array<CdpApplicationDataGraphPathToParentInputRepresentation_CdpApplicationDataGraphPathToParentInputRepresentation>;
25
25
  /** recencyCriteria */
26
- recencyCriteria: unknown;
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: unknown;
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 = "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;
@@ -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?: CdpApplicationDataGraphRecencyCriteriaOutputRepresentation_CdpApplicationDataGraphRecencyCriteriaOutputRepresentation;
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": "0.131.0",
3
+ "version": "1.131.0-dev11",
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.6"
47
+ "@salesforce/lds-bindings": "1.131.0-dev11"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "1.131.0-244.6",
51
- "@salesforce/lds-karma": "1.131.0-244.6"
50
+ "@salesforce/lds-compiler-plugins": "1.131.0-dev11",
51
+ "@salesforce/lds-karma": "1.131.0-dev11"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -186,6 +186,13 @@ function validate$5(obj, path = 'CdpApplicationDataGraphFieldOutputRepresentatio
186
186
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
187
187
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
188
188
  }
189
+ if (obj.dataType !== undefined) {
190
+ const obj_dataType = obj.dataType;
191
+ const path_dataType = path + '.dataType';
192
+ if (typeof obj_dataType !== 'string') {
193
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
194
+ }
195
+ }
189
196
  const obj_isKeyColumn = obj.isKeyColumn;
190
197
  const path_isKeyColumn = path + '.isKeyColumn';
191
198
  if (typeof obj_isKeyColumn !== 'boolean') {
@@ -288,11 +295,18 @@ function validate$2(obj, path = 'CdpApplicationDataGraphSourceObjectOutputRepres
288
295
  if (obj.recencyCriteria !== undefined) {
289
296
  const obj_recencyCriteria = obj.recencyCriteria;
290
297
  const path_recencyCriteria = path + '.recencyCriteria';
291
- const referencepath_recencyCriteriaValidationError = validate$3(obj_recencyCriteria, path_recencyCriteria);
292
- if (referencepath_recencyCriteriaValidationError !== null) {
293
- let message = 'Object doesn\'t match CdpApplicationDataGraphRecencyCriteriaOutputRepresentation (at "' + path_recencyCriteria + '")\n';
294
- message += referencepath_recencyCriteriaValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
295
- return new TypeError(message);
298
+ if (!ArrayIsArray(obj_recencyCriteria)) {
299
+ return new TypeError('Expected "array" but received "' + typeof obj_recencyCriteria + '" (at "' + path_recencyCriteria + '")');
300
+ }
301
+ for (let i = 0; i < obj_recencyCriteria.length; i++) {
302
+ const obj_recencyCriteria_item = obj_recencyCriteria[i];
303
+ const path_recencyCriteria_item = path_recencyCriteria + '[' + i + ']';
304
+ const referencepath_recencyCriteria_itemValidationError = validate$3(obj_recencyCriteria_item, path_recencyCriteria_item);
305
+ if (referencepath_recencyCriteria_itemValidationError !== null) {
306
+ let message = 'Object doesn\'t match CdpApplicationDataGraphRecencyCriteriaOutputRepresentation (at "' + path_recencyCriteria_item + '")\n';
307
+ message += referencepath_recencyCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
308
+ return new TypeError(message);
309
+ }
296
310
  }
297
311
  }
298
312
  const obj_relatedObjects = obj.relatedObjects;
@@ -1132,4 +1146,4 @@ withDefaultLuvio((luvio) => {
1132
1146
  });
1133
1147
 
1134
1148
  export { createAdg, deleteAdg, getAdg, getAdgNotifyChange, getAdg_imperative, retryDataGraph };
1135
- // version: 0.131.0-c1ec5b7de
1149
+ // version: 1.131.0-dev11-734408c01
package/src/raml/api.raml CHANGED
@@ -112,6 +112,10 @@ types:
112
112
  description: ADG Field input representation
113
113
  type: object
114
114
  properties:
115
+ dataType:
116
+ description: Field Data Type
117
+ type: string
118
+ required: false
115
119
  isKeyColumn:
116
120
  description: is column a key
117
121
  type: boolean
@@ -122,6 +126,10 @@ types:
122
126
  description: Represents Cdp Application Data Graph Field Output
123
127
  type: object
124
128
  properties:
129
+ dataType:
130
+ description: Field Data Type
131
+ type: string
132
+ required: false
125
133
  isKeyColumn:
126
134
  description: isKeyColumn
127
135
  type: boolean
@@ -174,7 +182,9 @@ types:
174
182
  required: false
175
183
  recencyCriteria:
176
184
  description: recencyCriteria
177
- type: CdpApplicationDataGraphRecencyCriteriaOutputRepresentation
185
+ type: array
186
+ items:
187
+ type: CdpApplicationDataGraphRecencyCriteriaOutputRepresentation
178
188
  required: false
179
189
  relatedObjects:
180
190
  description: relatedObjects
@@ -270,7 +280,9 @@ types:
270
280
  type: CdpApplicationDataGraphPathToParentInputRepresentation
271
281
  recencyCriteria:
272
282
  description: recencyCriteria
273
- type: any
283
+ type: array
284
+ items:
285
+ type: object
274
286
  relatedObjects:
275
287
  description: relatedObjects
276
288
  type: array