@salesforce/lds-adapters-marketing-cdp 1.296.1 → 1.298.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 +212 -91
- package/dist/es/es2018/types/src/generated/adapters/getDataGraph.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotDataGraphsByDataGraphName.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/types/CdpDataGraphFieldOutputRepresentation.d.ts +14 -1
- package/dist/es/es2018/types/src/generated/types/CdpDataGraphRelatedSegmentsOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CdpDataGraphSourceObjectOutputRepresentation.d.ts +21 -1
- package/package.json +4 -4
- package/sfdc/index.js +210 -88
- package/src/raml/api.raml +63 -0
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
function validate$
|
|
95
|
+
function validate$a(obj, path = 'CdpObjectBaseOutputRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -183,6 +183,78 @@ function equals$6(existing, incoming) {
|
|
|
183
183
|
return true;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
+
function validate$9(obj, path = 'DependencyOutputRepresentation') {
|
|
187
|
+
const v_error = (() => {
|
|
188
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
189
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
190
|
+
}
|
|
191
|
+
const obj_developerName = obj.developerName;
|
|
192
|
+
const path_developerName = path + '.developerName';
|
|
193
|
+
if (typeof obj_developerName !== 'string') {
|
|
194
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
195
|
+
}
|
|
196
|
+
const obj_displayName = obj.displayName;
|
|
197
|
+
const path_displayName = path + '.displayName';
|
|
198
|
+
if (typeof obj_displayName !== 'string') {
|
|
199
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
200
|
+
}
|
|
201
|
+
const obj_entityType = obj.entityType;
|
|
202
|
+
const path_entityType = path + '.entityType';
|
|
203
|
+
if (typeof obj_entityType !== 'string') {
|
|
204
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityType + '" (at "' + path_entityType + '")');
|
|
205
|
+
}
|
|
206
|
+
const obj_entityTypePluralLabel = obj.entityTypePluralLabel;
|
|
207
|
+
const path_entityTypePluralLabel = path + '.entityTypePluralLabel';
|
|
208
|
+
if (typeof obj_entityTypePluralLabel !== 'string') {
|
|
209
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityTypePluralLabel + '" (at "' + path_entityTypePluralLabel + '")');
|
|
210
|
+
}
|
|
211
|
+
const obj_id = obj.id;
|
|
212
|
+
const path_id = path + '.id';
|
|
213
|
+
if (typeof obj_id !== 'string') {
|
|
214
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
215
|
+
}
|
|
216
|
+
const obj_linkable = obj.linkable;
|
|
217
|
+
const path_linkable = path + '.linkable';
|
|
218
|
+
if (typeof obj_linkable !== 'boolean') {
|
|
219
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_linkable + '" (at "' + path_linkable + '")');
|
|
220
|
+
}
|
|
221
|
+
})();
|
|
222
|
+
return v_error === undefined ? null : v_error;
|
|
223
|
+
}
|
|
224
|
+
function equals$5(existing, incoming) {
|
|
225
|
+
const existing_linkable = existing.linkable;
|
|
226
|
+
const incoming_linkable = incoming.linkable;
|
|
227
|
+
if (!(existing_linkable === incoming_linkable)) {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
const existing_developerName = existing.developerName;
|
|
231
|
+
const incoming_developerName = incoming.developerName;
|
|
232
|
+
if (!(existing_developerName === incoming_developerName)) {
|
|
233
|
+
return false;
|
|
234
|
+
}
|
|
235
|
+
const existing_displayName = existing.displayName;
|
|
236
|
+
const incoming_displayName = incoming.displayName;
|
|
237
|
+
if (!(existing_displayName === incoming_displayName)) {
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
const existing_entityType = existing.entityType;
|
|
241
|
+
const incoming_entityType = incoming.entityType;
|
|
242
|
+
if (!(existing_entityType === incoming_entityType)) {
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
const existing_entityTypePluralLabel = existing.entityTypePluralLabel;
|
|
246
|
+
const incoming_entityTypePluralLabel = incoming.entityTypePluralLabel;
|
|
247
|
+
if (!(existing_entityTypePluralLabel === incoming_entityTypePluralLabel)) {
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
const existing_id = existing.id;
|
|
251
|
+
const incoming_id = incoming.id;
|
|
252
|
+
if (!(existing_id === incoming_id)) {
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
return true;
|
|
256
|
+
}
|
|
257
|
+
|
|
186
258
|
function validate$8(obj, path = 'CdpDataGraphFieldOutputRepresentation') {
|
|
187
259
|
const v_error = (() => {
|
|
188
260
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -202,6 +274,37 @@ function validate$8(obj, path = 'CdpDataGraphFieldOutputRepresentation') {
|
|
|
202
274
|
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
203
275
|
}
|
|
204
276
|
}
|
|
277
|
+
if (obj.dependency !== undefined) {
|
|
278
|
+
const obj_dependency = obj.dependency;
|
|
279
|
+
const path_dependency = path + '.dependency';
|
|
280
|
+
if (!ArrayIsArray(obj_dependency)) {
|
|
281
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependency + '" (at "' + path_dependency + '")');
|
|
282
|
+
}
|
|
283
|
+
for (let i = 0; i < obj_dependency.length; i++) {
|
|
284
|
+
const obj_dependency_item = obj_dependency[i];
|
|
285
|
+
const path_dependency_item = path_dependency + '[' + i + ']';
|
|
286
|
+
const referencepath_dependency_itemValidationError = validate$9(obj_dependency_item, path_dependency_item);
|
|
287
|
+
if (referencepath_dependency_itemValidationError !== null) {
|
|
288
|
+
let message = 'Object doesn\'t match DependencyOutputRepresentation (at "' + path_dependency_item + '")\n';
|
|
289
|
+
message += referencepath_dependency_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
290
|
+
return new TypeError(message);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (obj.devName !== undefined) {
|
|
295
|
+
const obj_devName = obj.devName;
|
|
296
|
+
const path_devName = path + '.devName';
|
|
297
|
+
if (typeof obj_devName !== 'string') {
|
|
298
|
+
return new TypeError('Expected "string" but received "' + typeof obj_devName + '" (at "' + path_devName + '")');
|
|
299
|
+
}
|
|
300
|
+
}
|
|
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
|
+
}
|
|
205
308
|
const obj_isKeyColumn = obj.isKeyColumn;
|
|
206
309
|
const path_isKeyColumn = path + '.isKeyColumn';
|
|
207
310
|
if (typeof obj_isKeyColumn !== 'boolean') {
|
|
@@ -221,6 +324,13 @@ function validate$8(obj, path = 'CdpDataGraphFieldOutputRepresentation') {
|
|
|
221
324
|
return new TypeError('Expected "string" but received "' + typeof obj_keyQualifierName + '" (at "' + path_keyQualifierName + '")');
|
|
222
325
|
}
|
|
223
326
|
}
|
|
327
|
+
if (obj.sourceFieldLabel !== undefined) {
|
|
328
|
+
const obj_sourceFieldLabel = obj.sourceFieldLabel;
|
|
329
|
+
const path_sourceFieldLabel = path + '.sourceFieldLabel';
|
|
330
|
+
if (typeof obj_sourceFieldLabel !== 'string') {
|
|
331
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceFieldLabel + '" (at "' + path_sourceFieldLabel + '")');
|
|
332
|
+
}
|
|
333
|
+
}
|
|
224
334
|
const obj_sourceFieldName = obj.sourceFieldName;
|
|
225
335
|
const path_sourceFieldName = path + '.sourceFieldName';
|
|
226
336
|
if (typeof obj_sourceFieldName !== 'string') {
|
|
@@ -285,11 +395,54 @@ function validate$6(obj, path = 'CdpDataGraphRecencyCriteriaOutputRepresentation
|
|
|
285
395
|
return v_error === undefined ? null : v_error;
|
|
286
396
|
}
|
|
287
397
|
|
|
288
|
-
function validate$5(obj, path = '
|
|
398
|
+
function validate$5(obj, path = 'CdpDataGraphRelatedSegmentsOutputRepresentation') {
|
|
289
399
|
const v_error = (() => {
|
|
290
400
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
291
401
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
292
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 + '")');
|
|
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 + '")');
|
|
412
|
+
}
|
|
413
|
+
})();
|
|
414
|
+
return v_error === undefined ? null : v_error;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
function validate$4(obj, path = 'CdpDataGraphSourceObjectOutputRepresentation') {
|
|
418
|
+
const v_error = (() => {
|
|
419
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
420
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
421
|
+
}
|
|
422
|
+
if (obj.dependency !== undefined) {
|
|
423
|
+
const obj_dependency = obj.dependency;
|
|
424
|
+
const path_dependency = path + '.dependency';
|
|
425
|
+
if (!ArrayIsArray(obj_dependency)) {
|
|
426
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependency + '" (at "' + path_dependency + '")');
|
|
427
|
+
}
|
|
428
|
+
for (let i = 0; i < obj_dependency.length; i++) {
|
|
429
|
+
const obj_dependency_item = obj_dependency[i];
|
|
430
|
+
const path_dependency_item = path_dependency + '[' + i + ']';
|
|
431
|
+
const referencepath_dependency_itemValidationError = validate$9(obj_dependency_item, path_dependency_item);
|
|
432
|
+
if (referencepath_dependency_itemValidationError !== null) {
|
|
433
|
+
let message = 'Object doesn\'t match DependencyOutputRepresentation (at "' + path_dependency_item + '")\n';
|
|
434
|
+
message += referencepath_dependency_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
435
|
+
return new TypeError(message);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
if (obj.devName !== undefined) {
|
|
440
|
+
const obj_devName = obj.devName;
|
|
441
|
+
const path_devName = path + '.devName';
|
|
442
|
+
if (typeof obj_devName !== 'string') {
|
|
443
|
+
return new TypeError('Expected "string" but received "' + typeof obj_devName + '" (at "' + path_devName + '")');
|
|
444
|
+
}
|
|
445
|
+
}
|
|
293
446
|
const obj_fields = obj.fields;
|
|
294
447
|
const path_fields = path + '.fields';
|
|
295
448
|
if (!ArrayIsArray(obj_fields)) {
|
|
@@ -305,6 +458,13 @@ function validate$5(obj, path = 'CdpDataGraphSourceObjectOutputRepresentation')
|
|
|
305
458
|
return new TypeError(message);
|
|
306
459
|
}
|
|
307
460
|
}
|
|
461
|
+
if (obj.fragmentDMOLabel !== undefined) {
|
|
462
|
+
const obj_fragmentDMOLabel = obj.fragmentDMOLabel;
|
|
463
|
+
const path_fragmentDMOLabel = path + '.fragmentDMOLabel';
|
|
464
|
+
if (typeof obj_fragmentDMOLabel !== 'string') {
|
|
465
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fragmentDMOLabel + '" (at "' + path_fragmentDMOLabel + '")');
|
|
466
|
+
}
|
|
467
|
+
}
|
|
308
468
|
if (obj.fragmentDMOName !== undefined) {
|
|
309
469
|
const obj_fragmentDMOName = obj.fragmentDMOName;
|
|
310
470
|
const path_fragmentDMOName = path + '.fragmentDMOName';
|
|
@@ -353,6 +513,13 @@ function validate$5(obj, path = 'CdpDataGraphSourceObjectOutputRepresentation')
|
|
|
353
513
|
}
|
|
354
514
|
}
|
|
355
515
|
}
|
|
516
|
+
if (obj.referenceDeveloperName !== undefined) {
|
|
517
|
+
const obj_referenceDeveloperName = obj.referenceDeveloperName;
|
|
518
|
+
const path_referenceDeveloperName = path + '.referenceDeveloperName';
|
|
519
|
+
if (typeof obj_referenceDeveloperName !== 'string') {
|
|
520
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceDeveloperName + '" (at "' + path_referenceDeveloperName + '")');
|
|
521
|
+
}
|
|
522
|
+
}
|
|
356
523
|
const obj_relatedObjects = obj.relatedObjects;
|
|
357
524
|
const path_relatedObjects = path + '.relatedObjects';
|
|
358
525
|
if (!ArrayIsArray(obj_relatedObjects)) {
|
|
@@ -365,10 +532,34 @@ function validate$5(obj, path = 'CdpDataGraphSourceObjectOutputRepresentation')
|
|
|
365
532
|
return new TypeError('Expected "defined" but received "' + typeof obj_relatedObjects_item + '" (at "' + path_relatedObjects_item + '")');
|
|
366
533
|
}
|
|
367
534
|
}
|
|
535
|
+
if (obj.relatedSegments !== undefined) {
|
|
536
|
+
const obj_relatedSegments = obj.relatedSegments;
|
|
537
|
+
const path_relatedSegments = path + '.relatedSegments';
|
|
538
|
+
if (!ArrayIsArray(obj_relatedSegments)) {
|
|
539
|
+
return new TypeError('Expected "array" but received "' + typeof obj_relatedSegments + '" (at "' + path_relatedSegments + '")');
|
|
540
|
+
}
|
|
541
|
+
for (let i = 0; i < obj_relatedSegments.length; i++) {
|
|
542
|
+
const obj_relatedSegments_item = obj_relatedSegments[i];
|
|
543
|
+
const path_relatedSegments_item = path_relatedSegments + '[' + i + ']';
|
|
544
|
+
const referencepath_relatedSegments_itemValidationError = validate$5(obj_relatedSegments_item, path_relatedSegments_item);
|
|
545
|
+
if (referencepath_relatedSegments_itemValidationError !== null) {
|
|
546
|
+
let message = 'Object doesn\'t match CdpDataGraphRelatedSegmentsOutputRepresentation (at "' + path_relatedSegments_item + '")\n';
|
|
547
|
+
message += referencepath_relatedSegments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
548
|
+
return new TypeError(message);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
if (obj.type !== undefined) {
|
|
553
|
+
const obj_type = obj.type;
|
|
554
|
+
const path_type = path + '.type';
|
|
555
|
+
if (typeof obj_type !== 'string') {
|
|
556
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
557
|
+
}
|
|
558
|
+
}
|
|
368
559
|
})();
|
|
369
560
|
return v_error === undefined ? null : v_error;
|
|
370
561
|
}
|
|
371
|
-
function equals$
|
|
562
|
+
function equals$4(existing, incoming) {
|
|
372
563
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
373
564
|
return false;
|
|
374
565
|
}
|
|
@@ -376,8 +567,8 @@ function equals$5(existing, incoming) {
|
|
|
376
567
|
}
|
|
377
568
|
|
|
378
569
|
const VERSION$3 = "5d9e99f6f73f52f2cfcb77b921003155";
|
|
379
|
-
function validate$
|
|
380
|
-
const validateCdpObjectBaseOutputRepresentation_validateError = validate$
|
|
570
|
+
function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
571
|
+
const validateCdpObjectBaseOutputRepresentation_validateError = validate$a(obj, path);
|
|
381
572
|
if (validateCdpObjectBaseOutputRepresentation_validateError !== null) {
|
|
382
573
|
return validateCdpObjectBaseOutputRepresentation_validateError;
|
|
383
574
|
}
|
|
@@ -444,7 +635,7 @@ function validate$4(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
444
635
|
}
|
|
445
636
|
const obj_sourceObject = obj.sourceObject;
|
|
446
637
|
const path_sourceObject = path + '.sourceObject';
|
|
447
|
-
const referencepath_sourceObjectValidationError = validate$
|
|
638
|
+
const referencepath_sourceObjectValidationError = validate$4(obj_sourceObject, path_sourceObject);
|
|
448
639
|
if (referencepath_sourceObjectValidationError !== null) {
|
|
449
640
|
let message = 'Object doesn\'t match CdpDataGraphSourceObjectOutputRepresentation (at "' + path_sourceObject + '")\n';
|
|
450
641
|
message += referencepath_sourceObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -493,7 +684,7 @@ const select$a = function CdpDataGraphOutputRepresentationSelect() {
|
|
|
493
684
|
opaque: true
|
|
494
685
|
};
|
|
495
686
|
};
|
|
496
|
-
function equals$
|
|
687
|
+
function equals$3(existing, incoming) {
|
|
497
688
|
if (equals$6(existing, incoming) === false) {
|
|
498
689
|
return false;
|
|
499
690
|
}
|
|
@@ -620,21 +811,21 @@ function equals$4(existing, incoming) {
|
|
|
620
811
|
}
|
|
621
812
|
const existing_sourceObject = existing.sourceObject;
|
|
622
813
|
const incoming_sourceObject = incoming.sourceObject;
|
|
623
|
-
if (!(equals$
|
|
814
|
+
if (!(equals$4(existing_sourceObject, incoming_sourceObject))) {
|
|
624
815
|
return false;
|
|
625
816
|
}
|
|
626
817
|
return true;
|
|
627
818
|
}
|
|
628
819
|
const ingest$3 = function CdpDataGraphOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
629
820
|
if (process.env.NODE_ENV !== 'production') {
|
|
630
|
-
const validateError = validate$
|
|
821
|
+
const validateError = validate$3(input);
|
|
631
822
|
if (validateError !== null) {
|
|
632
823
|
throw validateError;
|
|
633
824
|
}
|
|
634
825
|
}
|
|
635
826
|
const key = keyBuilderFromType$3(luvio, input);
|
|
636
827
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000000;
|
|
637
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "CDP", VERSION$3, RepresentationType$3, equals$
|
|
828
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "CDP", VERSION$3, RepresentationType$3, equals$3);
|
|
638
829
|
return createLink(key);
|
|
639
830
|
};
|
|
640
831
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -895,7 +1086,7 @@ function createResourceRequest$5(config) {
|
|
|
895
1086
|
method: 'get',
|
|
896
1087
|
body: null,
|
|
897
1088
|
urlParams: config.urlParams,
|
|
898
|
-
queryParams:
|
|
1089
|
+
queryParams: config.queryParams,
|
|
899
1090
|
headers,
|
|
900
1091
|
priority: 'normal',
|
|
901
1092
|
};
|
|
@@ -904,6 +1095,8 @@ function createResourceRequest$5(config) {
|
|
|
904
1095
|
const adapterName$5 = 'getDataGraph';
|
|
905
1096
|
const getDataGraph_ConfigPropertyMetadata = [
|
|
906
1097
|
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1098
|
+
generateParamConfigMetadata('includeCIDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1099
|
+
generateParamConfigMetadata('includeSegmentDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
907
1100
|
];
|
|
908
1101
|
const getDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getDataGraph_ConfigPropertyMetadata);
|
|
909
1102
|
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getDataGraph_ConfigPropertyMetadata);
|
|
@@ -1072,7 +1265,7 @@ const deleteDataGraphAdapterFactory = (luvio) => {
|
|
|
1072
1265
|
};
|
|
1073
1266
|
|
|
1074
1267
|
const VERSION$2 = "0c1f279e921d51f73cd64db1eaef780c";
|
|
1075
|
-
function validate$
|
|
1268
|
+
function validate$2(obj, path = 'CdpDataGraphRetryOutputRepresentation') {
|
|
1076
1269
|
const v_error = (() => {
|
|
1077
1270
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1078
1271
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1116,7 +1309,7 @@ const select$6 = function CdpDataGraphRetryOutputRepresentationSelect() {
|
|
|
1116
1309
|
opaque: true
|
|
1117
1310
|
};
|
|
1118
1311
|
};
|
|
1119
|
-
function equals$
|
|
1312
|
+
function equals$2(existing, incoming) {
|
|
1120
1313
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1121
1314
|
return false;
|
|
1122
1315
|
}
|
|
@@ -1124,14 +1317,14 @@ function equals$3(existing, incoming) {
|
|
|
1124
1317
|
}
|
|
1125
1318
|
const ingest$2 = function CdpDataGraphRetryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1126
1319
|
if (process.env.NODE_ENV !== 'production') {
|
|
1127
|
-
const validateError = validate$
|
|
1320
|
+
const validateError = validate$2(input);
|
|
1128
1321
|
if (validateError !== null) {
|
|
1129
1322
|
throw validateError;
|
|
1130
1323
|
}
|
|
1131
1324
|
}
|
|
1132
1325
|
const key = keyBuilderFromType$2(luvio, input);
|
|
1133
1326
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000000;
|
|
1134
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "CDP", VERSION$2, RepresentationType$2, equals$
|
|
1327
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "CDP", VERSION$2, RepresentationType$2, equals$2);
|
|
1135
1328
|
return createLink(key);
|
|
1136
1329
|
};
|
|
1137
1330
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1234,81 +1427,9 @@ const retryDataGraphAdapterFactory = (luvio) => {
|
|
|
1234
1427
|
};
|
|
1235
1428
|
};
|
|
1236
1429
|
|
|
1237
|
-
function validate$2(obj, path = 'DependencyOutputRepresentation') {
|
|
1238
|
-
const v_error = (() => {
|
|
1239
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1240
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1241
|
-
}
|
|
1242
|
-
const obj_developerName = obj.developerName;
|
|
1243
|
-
const path_developerName = path + '.developerName';
|
|
1244
|
-
if (typeof obj_developerName !== 'string') {
|
|
1245
|
-
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
1246
|
-
}
|
|
1247
|
-
const obj_displayName = obj.displayName;
|
|
1248
|
-
const path_displayName = path + '.displayName';
|
|
1249
|
-
if (typeof obj_displayName !== 'string') {
|
|
1250
|
-
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
1251
|
-
}
|
|
1252
|
-
const obj_entityType = obj.entityType;
|
|
1253
|
-
const path_entityType = path + '.entityType';
|
|
1254
|
-
if (typeof obj_entityType !== 'string') {
|
|
1255
|
-
return new TypeError('Expected "string" but received "' + typeof obj_entityType + '" (at "' + path_entityType + '")');
|
|
1256
|
-
}
|
|
1257
|
-
const obj_entityTypePluralLabel = obj.entityTypePluralLabel;
|
|
1258
|
-
const path_entityTypePluralLabel = path + '.entityTypePluralLabel';
|
|
1259
|
-
if (typeof obj_entityTypePluralLabel !== 'string') {
|
|
1260
|
-
return new TypeError('Expected "string" but received "' + typeof obj_entityTypePluralLabel + '" (at "' + path_entityTypePluralLabel + '")');
|
|
1261
|
-
}
|
|
1262
|
-
const obj_id = obj.id;
|
|
1263
|
-
const path_id = path + '.id';
|
|
1264
|
-
if (typeof obj_id !== 'string') {
|
|
1265
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1266
|
-
}
|
|
1267
|
-
const obj_linkable = obj.linkable;
|
|
1268
|
-
const path_linkable = path + '.linkable';
|
|
1269
|
-
if (typeof obj_linkable !== 'boolean') {
|
|
1270
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_linkable + '" (at "' + path_linkable + '")');
|
|
1271
|
-
}
|
|
1272
|
-
})();
|
|
1273
|
-
return v_error === undefined ? null : v_error;
|
|
1274
|
-
}
|
|
1275
|
-
function equals$2(existing, incoming) {
|
|
1276
|
-
const existing_linkable = existing.linkable;
|
|
1277
|
-
const incoming_linkable = incoming.linkable;
|
|
1278
|
-
if (!(existing_linkable === incoming_linkable)) {
|
|
1279
|
-
return false;
|
|
1280
|
-
}
|
|
1281
|
-
const existing_developerName = existing.developerName;
|
|
1282
|
-
const incoming_developerName = incoming.developerName;
|
|
1283
|
-
if (!(existing_developerName === incoming_developerName)) {
|
|
1284
|
-
return false;
|
|
1285
|
-
}
|
|
1286
|
-
const existing_displayName = existing.displayName;
|
|
1287
|
-
const incoming_displayName = incoming.displayName;
|
|
1288
|
-
if (!(existing_displayName === incoming_displayName)) {
|
|
1289
|
-
return false;
|
|
1290
|
-
}
|
|
1291
|
-
const existing_entityType = existing.entityType;
|
|
1292
|
-
const incoming_entityType = incoming.entityType;
|
|
1293
|
-
if (!(existing_entityType === incoming_entityType)) {
|
|
1294
|
-
return false;
|
|
1295
|
-
}
|
|
1296
|
-
const existing_entityTypePluralLabel = existing.entityTypePluralLabel;
|
|
1297
|
-
const incoming_entityTypePluralLabel = incoming.entityTypePluralLabel;
|
|
1298
|
-
if (!(existing_entityTypePluralLabel === incoming_entityTypePluralLabel)) {
|
|
1299
|
-
return false;
|
|
1300
|
-
}
|
|
1301
|
-
const existing_id = existing.id;
|
|
1302
|
-
const incoming_id = incoming.id;
|
|
1303
|
-
if (!(existing_id === incoming_id)) {
|
|
1304
|
-
return false;
|
|
1305
|
-
}
|
|
1306
|
-
return true;
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
1430
|
const VERSION$1 = "0c15cc932d3ea4f07bf6a3b0429e3520";
|
|
1310
1431
|
function validate$1(obj, path = 'CdpDataGraphDependencyOutputRepresentation') {
|
|
1311
|
-
const validateCdpObjectBaseOutputRepresentation_validateError = validate$
|
|
1432
|
+
const validateCdpObjectBaseOutputRepresentation_validateError = validate$a(obj, path);
|
|
1312
1433
|
if (validateCdpObjectBaseOutputRepresentation_validateError !== null) {
|
|
1313
1434
|
return validateCdpObjectBaseOutputRepresentation_validateError;
|
|
1314
1435
|
}
|
|
@@ -1324,7 +1445,7 @@ function validate$1(obj, path = 'CdpDataGraphDependencyOutputRepresentation') {
|
|
|
1324
1445
|
for (let i = 0; i < obj_dependency.length; i++) {
|
|
1325
1446
|
const obj_dependency_item = obj_dependency[i];
|
|
1326
1447
|
const path_dependency_item = path_dependency + '[' + i + ']';
|
|
1327
|
-
const referencepath_dependency_itemValidationError = validate$
|
|
1448
|
+
const referencepath_dependency_itemValidationError = validate$9(obj_dependency_item, path_dependency_item);
|
|
1328
1449
|
if (referencepath_dependency_itemValidationError !== null) {
|
|
1329
1450
|
let message = 'Object doesn\'t match DependencyOutputRepresentation (at "' + path_dependency_item + '")\n';
|
|
1330
1451
|
message += referencepath_dependency_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1359,7 +1480,7 @@ function equals$1(existing, incoming) {
|
|
|
1359
1480
|
const existing_dependency = existing.dependency;
|
|
1360
1481
|
const incoming_dependency = incoming.dependency;
|
|
1361
1482
|
const equals_dependency_items = equalsArray(existing_dependency, incoming_dependency, (existing_dependency_item, incoming_dependency_item) => {
|
|
1362
|
-
if (!(equals$
|
|
1483
|
+
if (!(equals$5(existing_dependency_item, incoming_dependency_item))) {
|
|
1363
1484
|
return false;
|
|
1364
1485
|
}
|
|
1365
1486
|
});
|
|
@@ -1532,7 +1653,7 @@ function validate(obj, path = 'CdpDataGraphDraftOutputRepresentation') {
|
|
|
1532
1653
|
}
|
|
1533
1654
|
const obj_outputRepresentation = obj.outputRepresentation;
|
|
1534
1655
|
const path_outputRepresentation = path + '.outputRepresentation';
|
|
1535
|
-
const referencepath_outputRepresentationValidationError = validate$
|
|
1656
|
+
const referencepath_outputRepresentationValidationError = validate$3(obj_outputRepresentation, path_outputRepresentation);
|
|
1536
1657
|
if (referencepath_outputRepresentationValidationError !== null) {
|
|
1537
1658
|
let message = 'Object doesn\'t match CdpDataGraphOutputRepresentation (at "' + path_outputRepresentation + '")\n';
|
|
1538
1659
|
message += referencepath_outputRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8,6 +8,8 @@ export declare const getDataGraph_ConfigPropertyMetadata: $64$luvio_engine_Adapt
|
|
|
8
8
|
export declare const getDataGraph_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
9
|
export interface GetDataGraphConfig {
|
|
10
10
|
dataGraphName: string;
|
|
11
|
+
includeCIDetails?: boolean;
|
|
12
|
+
includeSegmentDetails?: boolean;
|
|
11
13
|
}
|
|
12
14
|
export declare const createResourceParams: (config: GetDataGraphConfig) => resources_getSsotDataGraphsByDataGraphName_ResourceRequestConfig;
|
|
13
15
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetDataGraphConfig): string;
|
|
@@ -4,6 +4,10 @@ export interface ResourceRequestConfig {
|
|
|
4
4
|
urlParams: {
|
|
5
5
|
dataGraphName: string;
|
|
6
6
|
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
includeCIDetails?: boolean;
|
|
9
|
+
includeSegmentDetails?: boolean;
|
|
10
|
+
};
|
|
7
11
|
}
|
|
8
12
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { DependencyOutputRepresentation as DependencyOutputRepresentation_DependencyOutputRepresentation } from './DependencyOutputRepresentation';
|
|
1
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';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "63e338e25339d2db4126574c5596d1ed";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
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;
|
|
@@ -18,12 +19,20 @@ export interface CdpDataGraphFieldOutputRepresentationNormalized {
|
|
|
18
19
|
ciFieldType?: string;
|
|
19
20
|
/** Field Data Type */
|
|
20
21
|
dataType?: string;
|
|
22
|
+
/** dependency */
|
|
23
|
+
dependency?: Array<DependencyOutputRepresentation_DependencyOutputRepresentation>;
|
|
24
|
+
/** dev_name */
|
|
25
|
+
devName?: string;
|
|
26
|
+
/** formula */
|
|
27
|
+
formula?: string;
|
|
21
28
|
/** isKeyColumn */
|
|
22
29
|
isKeyColumn: boolean;
|
|
23
30
|
/** is_projected */
|
|
24
31
|
isProjected?: boolean;
|
|
25
32
|
/** key_qualifier_name */
|
|
26
33
|
keyQualifierName?: string;
|
|
34
|
+
/** source_field_Label */
|
|
35
|
+
sourceFieldLabel?: string;
|
|
27
36
|
/** source_field_developer_name */
|
|
28
37
|
sourceFieldName: string;
|
|
29
38
|
/** usage_tag */
|
|
@@ -38,9 +47,13 @@ export interface CdpDataGraphFieldOutputRepresentationNormalized {
|
|
|
38
47
|
export interface CdpDataGraphFieldOutputRepresentation {
|
|
39
48
|
ciFieldType?: string;
|
|
40
49
|
dataType?: string;
|
|
50
|
+
dependency?: Array<DependencyOutputRepresentation_DependencyOutputRepresentation>;
|
|
51
|
+
devName?: string;
|
|
52
|
+
formula?: string;
|
|
41
53
|
isKeyColumn: boolean;
|
|
42
54
|
isProjected?: boolean;
|
|
43
55
|
keyQualifierName?: string;
|
|
56
|
+
sourceFieldLabel?: string;
|
|
44
57
|
sourceFieldName: string;
|
|
45
58
|
usageTag?: string;
|
|
46
59
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
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;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CdpDataGraphRelatedSegmentsOutputRepresentationNormalized, incoming: CdpDataGraphRelatedSegmentsOutputRepresentationNormalized): boolean;
|
|
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;
|
|
10
|
+
/**
|
|
11
|
+
* Represents Data Graph Related Segments
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CdpDataGraphRelatedSegmentsOutputRepresentationNormalized {
|
|
17
|
+
/** apiName */
|
|
18
|
+
apiName: string;
|
|
19
|
+
/** displayName */
|
|
20
|
+
displayName: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Represents Data Graph Related Segments
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface CdpDataGraphRelatedSegmentsOutputRepresentation {
|
|
29
|
+
apiName: string;
|
|
30
|
+
displayName: string;
|
|
31
|
+
}
|
package/dist/es/es2018/types/src/generated/types/CdpDataGraphSourceObjectOutputRepresentation.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { DependencyOutputRepresentation as DependencyOutputRepresentation_DependencyOutputRepresentation } from './DependencyOutputRepresentation';
|
|
1
2
|
import { CdpDataGraphFieldOutputRepresentation as CdpDataGraphFieldOutputRepresentation_CdpDataGraphFieldOutputRepresentation } from './CdpDataGraphFieldOutputRepresentation';
|
|
2
3
|
import { CdpDataGraphPathToParentOutputRepresentation as CdpDataGraphPathToParentOutputRepresentation_CdpDataGraphPathToParentOutputRepresentation } from './CdpDataGraphPathToParentOutputRepresentation';
|
|
3
4
|
import { CdpDataGraphRecencyCriteriaOutputRepresentation as CdpDataGraphRecencyCriteriaOutputRepresentation_CdpDataGraphRecencyCriteriaOutputRepresentation } from './CdpDataGraphRecencyCriteriaOutputRepresentation';
|
|
5
|
+
import { CdpDataGraphRelatedSegmentsOutputRepresentation as CdpDataGraphRelatedSegmentsOutputRepresentation_CdpDataGraphRelatedSegmentsOutputRepresentation } from './CdpDataGraphRelatedSegmentsOutputRepresentation';
|
|
4
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';
|
|
5
|
-
export declare const VERSION = "
|
|
7
|
+
export declare const VERSION = "ea0d39a56ce70db9a1080730e498482f";
|
|
6
8
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
9
|
export declare const RepresentationType: string;
|
|
8
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;
|
|
@@ -17,8 +19,14 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
19
|
* (none)
|
|
18
20
|
*/
|
|
19
21
|
export interface CdpDataGraphSourceObjectOutputRepresentationNormalized {
|
|
22
|
+
/** dependency */
|
|
23
|
+
dependency?: Array<DependencyOutputRepresentation_DependencyOutputRepresentation>;
|
|
24
|
+
/** devName */
|
|
25
|
+
devName?: string;
|
|
20
26
|
/** fields */
|
|
21
27
|
fields: Array<$64$luvio_engine_StoreLink>;
|
|
28
|
+
/** fragmentDMOLabel */
|
|
29
|
+
fragmentDMOLabel?: string;
|
|
22
30
|
/** fragmentDMOName */
|
|
23
31
|
fragmentDMOName?: string;
|
|
24
32
|
/** jsonPath */
|
|
@@ -27,8 +35,14 @@ export interface CdpDataGraphSourceObjectOutputRepresentationNormalized {
|
|
|
27
35
|
path?: Array<CdpDataGraphPathToParentOutputRepresentation_CdpDataGraphPathToParentOutputRepresentation>;
|
|
28
36
|
/** recencyCriteria */
|
|
29
37
|
recencyCriteria?: Array<CdpDataGraphRecencyCriteriaOutputRepresentation_CdpDataGraphRecencyCriteriaOutputRepresentation>;
|
|
38
|
+
/** referenceDeveloperName */
|
|
39
|
+
referenceDeveloperName?: string;
|
|
30
40
|
/** relatedObjects */
|
|
31
41
|
relatedObjects: Array<unknown>;
|
|
42
|
+
/** relatedSegments */
|
|
43
|
+
relatedSegments?: Array<CdpDataGraphRelatedSegmentsOutputRepresentation_CdpDataGraphRelatedSegmentsOutputRepresentation>;
|
|
44
|
+
/** type */
|
|
45
|
+
type?: string;
|
|
32
46
|
}
|
|
33
47
|
/**
|
|
34
48
|
* Represents Cdp Data Graph Source Output
|
|
@@ -37,10 +51,16 @@ export interface CdpDataGraphSourceObjectOutputRepresentationNormalized {
|
|
|
37
51
|
* (none)
|
|
38
52
|
*/
|
|
39
53
|
export interface CdpDataGraphSourceObjectOutputRepresentation {
|
|
54
|
+
dependency?: Array<DependencyOutputRepresentation_DependencyOutputRepresentation>;
|
|
55
|
+
devName?: string;
|
|
40
56
|
fields: Array<CdpDataGraphFieldOutputRepresentation_CdpDataGraphFieldOutputRepresentation>;
|
|
57
|
+
fragmentDMOLabel?: string;
|
|
41
58
|
fragmentDMOName?: string;
|
|
42
59
|
jsonPath?: string;
|
|
43
60
|
path?: Array<CdpDataGraphPathToParentOutputRepresentation_CdpDataGraphPathToParentOutputRepresentation>;
|
|
44
61
|
recencyCriteria?: Array<CdpDataGraphRecencyCriteriaOutputRepresentation_CdpDataGraphRecencyCriteriaOutputRepresentation>;
|
|
62
|
+
referenceDeveloperName?: string;
|
|
45
63
|
relatedObjects: Array<unknown>;
|
|
64
|
+
relatedSegments?: Array<CdpDataGraphRelatedSegmentsOutputRepresentation_CdpDataGraphRelatedSegmentsOutputRepresentation>;
|
|
65
|
+
type?: string;
|
|
46
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-marketing-cdp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.298.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.
|
|
46
|
+
"@salesforce/lds-bindings": "^1.298.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
50
|
-
"@salesforce/lds-karma": "^1.
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^1.298.0",
|
|
50
|
+
"@salesforce/lds-karma": "^1.298.0"
|
|
51
51
|
},
|
|
52
52
|
"nx": {
|
|
53
53
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -102,7 +102,7 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function validate$
|
|
105
|
+
function validate$a(obj, path = 'CdpObjectBaseOutputRepresentation') {
|
|
106
106
|
const v_error = (() => {
|
|
107
107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -193,6 +193,78 @@ function equals$6(existing, incoming) {
|
|
|
193
193
|
return true;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
function validate$9(obj, path = 'DependencyOutputRepresentation') {
|
|
197
|
+
const v_error = (() => {
|
|
198
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
199
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
200
|
+
}
|
|
201
|
+
const obj_developerName = obj.developerName;
|
|
202
|
+
const path_developerName = path + '.developerName';
|
|
203
|
+
if (typeof obj_developerName !== 'string') {
|
|
204
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
205
|
+
}
|
|
206
|
+
const obj_displayName = obj.displayName;
|
|
207
|
+
const path_displayName = path + '.displayName';
|
|
208
|
+
if (typeof obj_displayName !== 'string') {
|
|
209
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
210
|
+
}
|
|
211
|
+
const obj_entityType = obj.entityType;
|
|
212
|
+
const path_entityType = path + '.entityType';
|
|
213
|
+
if (typeof obj_entityType !== 'string') {
|
|
214
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityType + '" (at "' + path_entityType + '")');
|
|
215
|
+
}
|
|
216
|
+
const obj_entityTypePluralLabel = obj.entityTypePluralLabel;
|
|
217
|
+
const path_entityTypePluralLabel = path + '.entityTypePluralLabel';
|
|
218
|
+
if (typeof obj_entityTypePluralLabel !== 'string') {
|
|
219
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityTypePluralLabel + '" (at "' + path_entityTypePluralLabel + '")');
|
|
220
|
+
}
|
|
221
|
+
const obj_id = obj.id;
|
|
222
|
+
const path_id = path + '.id';
|
|
223
|
+
if (typeof obj_id !== 'string') {
|
|
224
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
225
|
+
}
|
|
226
|
+
const obj_linkable = obj.linkable;
|
|
227
|
+
const path_linkable = path + '.linkable';
|
|
228
|
+
if (typeof obj_linkable !== 'boolean') {
|
|
229
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_linkable + '" (at "' + path_linkable + '")');
|
|
230
|
+
}
|
|
231
|
+
})();
|
|
232
|
+
return v_error === undefined ? null : v_error;
|
|
233
|
+
}
|
|
234
|
+
function equals$5(existing, incoming) {
|
|
235
|
+
const existing_linkable = existing.linkable;
|
|
236
|
+
const incoming_linkable = incoming.linkable;
|
|
237
|
+
if (!(existing_linkable === incoming_linkable)) {
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
const existing_developerName = existing.developerName;
|
|
241
|
+
const incoming_developerName = incoming.developerName;
|
|
242
|
+
if (!(existing_developerName === incoming_developerName)) {
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
const existing_displayName = existing.displayName;
|
|
246
|
+
const incoming_displayName = incoming.displayName;
|
|
247
|
+
if (!(existing_displayName === incoming_displayName)) {
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
const existing_entityType = existing.entityType;
|
|
251
|
+
const incoming_entityType = incoming.entityType;
|
|
252
|
+
if (!(existing_entityType === incoming_entityType)) {
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
const existing_entityTypePluralLabel = existing.entityTypePluralLabel;
|
|
256
|
+
const incoming_entityTypePluralLabel = incoming.entityTypePluralLabel;
|
|
257
|
+
if (!(existing_entityTypePluralLabel === incoming_entityTypePluralLabel)) {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
const existing_id = existing.id;
|
|
261
|
+
const incoming_id = incoming.id;
|
|
262
|
+
if (!(existing_id === incoming_id)) {
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
return true;
|
|
266
|
+
}
|
|
267
|
+
|
|
196
268
|
function validate$8(obj, path = 'CdpDataGraphFieldOutputRepresentation') {
|
|
197
269
|
const v_error = (() => {
|
|
198
270
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -212,6 +284,37 @@ function validate$8(obj, path = 'CdpDataGraphFieldOutputRepresentation') {
|
|
|
212
284
|
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
213
285
|
}
|
|
214
286
|
}
|
|
287
|
+
if (obj.dependency !== undefined) {
|
|
288
|
+
const obj_dependency = obj.dependency;
|
|
289
|
+
const path_dependency = path + '.dependency';
|
|
290
|
+
if (!ArrayIsArray(obj_dependency)) {
|
|
291
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependency + '" (at "' + path_dependency + '")');
|
|
292
|
+
}
|
|
293
|
+
for (let i = 0; i < obj_dependency.length; i++) {
|
|
294
|
+
const obj_dependency_item = obj_dependency[i];
|
|
295
|
+
const path_dependency_item = path_dependency + '[' + i + ']';
|
|
296
|
+
const referencepath_dependency_itemValidationError = validate$9(obj_dependency_item, path_dependency_item);
|
|
297
|
+
if (referencepath_dependency_itemValidationError !== null) {
|
|
298
|
+
let message = 'Object doesn\'t match DependencyOutputRepresentation (at "' + path_dependency_item + '")\n';
|
|
299
|
+
message += referencepath_dependency_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
300
|
+
return new TypeError(message);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
if (obj.devName !== undefined) {
|
|
305
|
+
const obj_devName = obj.devName;
|
|
306
|
+
const path_devName = path + '.devName';
|
|
307
|
+
if (typeof obj_devName !== 'string') {
|
|
308
|
+
return new TypeError('Expected "string" but received "' + typeof obj_devName + '" (at "' + path_devName + '")');
|
|
309
|
+
}
|
|
310
|
+
}
|
|
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
|
+
}
|
|
215
318
|
const obj_isKeyColumn = obj.isKeyColumn;
|
|
216
319
|
const path_isKeyColumn = path + '.isKeyColumn';
|
|
217
320
|
if (typeof obj_isKeyColumn !== 'boolean') {
|
|
@@ -231,6 +334,13 @@ function validate$8(obj, path = 'CdpDataGraphFieldOutputRepresentation') {
|
|
|
231
334
|
return new TypeError('Expected "string" but received "' + typeof obj_keyQualifierName + '" (at "' + path_keyQualifierName + '")');
|
|
232
335
|
}
|
|
233
336
|
}
|
|
337
|
+
if (obj.sourceFieldLabel !== undefined) {
|
|
338
|
+
const obj_sourceFieldLabel = obj.sourceFieldLabel;
|
|
339
|
+
const path_sourceFieldLabel = path + '.sourceFieldLabel';
|
|
340
|
+
if (typeof obj_sourceFieldLabel !== 'string') {
|
|
341
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceFieldLabel + '" (at "' + path_sourceFieldLabel + '")');
|
|
342
|
+
}
|
|
343
|
+
}
|
|
234
344
|
const obj_sourceFieldName = obj.sourceFieldName;
|
|
235
345
|
const path_sourceFieldName = path + '.sourceFieldName';
|
|
236
346
|
if (typeof obj_sourceFieldName !== 'string') {
|
|
@@ -295,11 +405,54 @@ function validate$6(obj, path = 'CdpDataGraphRecencyCriteriaOutputRepresentation
|
|
|
295
405
|
return v_error === undefined ? null : v_error;
|
|
296
406
|
}
|
|
297
407
|
|
|
298
|
-
function validate$5(obj, path = '
|
|
408
|
+
function validate$5(obj, path = 'CdpDataGraphRelatedSegmentsOutputRepresentation') {
|
|
409
|
+
const v_error = (() => {
|
|
410
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
411
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
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 + '")');
|
|
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 + '")');
|
|
422
|
+
}
|
|
423
|
+
})();
|
|
424
|
+
return v_error === undefined ? null : v_error;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
function validate$4(obj, path = 'CdpDataGraphSourceObjectOutputRepresentation') {
|
|
299
428
|
const v_error = (() => {
|
|
300
429
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
301
430
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
302
431
|
}
|
|
432
|
+
if (obj.dependency !== undefined) {
|
|
433
|
+
const obj_dependency = obj.dependency;
|
|
434
|
+
const path_dependency = path + '.dependency';
|
|
435
|
+
if (!ArrayIsArray(obj_dependency)) {
|
|
436
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependency + '" (at "' + path_dependency + '")');
|
|
437
|
+
}
|
|
438
|
+
for (let i = 0; i < obj_dependency.length; i++) {
|
|
439
|
+
const obj_dependency_item = obj_dependency[i];
|
|
440
|
+
const path_dependency_item = path_dependency + '[' + i + ']';
|
|
441
|
+
const referencepath_dependency_itemValidationError = validate$9(obj_dependency_item, path_dependency_item);
|
|
442
|
+
if (referencepath_dependency_itemValidationError !== null) {
|
|
443
|
+
let message = 'Object doesn\'t match DependencyOutputRepresentation (at "' + path_dependency_item + '")\n';
|
|
444
|
+
message += referencepath_dependency_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
445
|
+
return new TypeError(message);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
if (obj.devName !== undefined) {
|
|
450
|
+
const obj_devName = obj.devName;
|
|
451
|
+
const path_devName = path + '.devName';
|
|
452
|
+
if (typeof obj_devName !== 'string') {
|
|
453
|
+
return new TypeError('Expected "string" but received "' + typeof obj_devName + '" (at "' + path_devName + '")');
|
|
454
|
+
}
|
|
455
|
+
}
|
|
303
456
|
const obj_fields = obj.fields;
|
|
304
457
|
const path_fields = path + '.fields';
|
|
305
458
|
if (!ArrayIsArray(obj_fields)) {
|
|
@@ -315,6 +468,13 @@ function validate$5(obj, path = 'CdpDataGraphSourceObjectOutputRepresentation')
|
|
|
315
468
|
return new TypeError(message);
|
|
316
469
|
}
|
|
317
470
|
}
|
|
471
|
+
if (obj.fragmentDMOLabel !== undefined) {
|
|
472
|
+
const obj_fragmentDMOLabel = obj.fragmentDMOLabel;
|
|
473
|
+
const path_fragmentDMOLabel = path + '.fragmentDMOLabel';
|
|
474
|
+
if (typeof obj_fragmentDMOLabel !== 'string') {
|
|
475
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fragmentDMOLabel + '" (at "' + path_fragmentDMOLabel + '")');
|
|
476
|
+
}
|
|
477
|
+
}
|
|
318
478
|
if (obj.fragmentDMOName !== undefined) {
|
|
319
479
|
const obj_fragmentDMOName = obj.fragmentDMOName;
|
|
320
480
|
const path_fragmentDMOName = path + '.fragmentDMOName';
|
|
@@ -363,6 +523,13 @@ function validate$5(obj, path = 'CdpDataGraphSourceObjectOutputRepresentation')
|
|
|
363
523
|
}
|
|
364
524
|
}
|
|
365
525
|
}
|
|
526
|
+
if (obj.referenceDeveloperName !== undefined) {
|
|
527
|
+
const obj_referenceDeveloperName = obj.referenceDeveloperName;
|
|
528
|
+
const path_referenceDeveloperName = path + '.referenceDeveloperName';
|
|
529
|
+
if (typeof obj_referenceDeveloperName !== 'string') {
|
|
530
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceDeveloperName + '" (at "' + path_referenceDeveloperName + '")');
|
|
531
|
+
}
|
|
532
|
+
}
|
|
366
533
|
const obj_relatedObjects = obj.relatedObjects;
|
|
367
534
|
const path_relatedObjects = path + '.relatedObjects';
|
|
368
535
|
if (!ArrayIsArray(obj_relatedObjects)) {
|
|
@@ -375,10 +542,34 @@ function validate$5(obj, path = 'CdpDataGraphSourceObjectOutputRepresentation')
|
|
|
375
542
|
return new TypeError('Expected "defined" but received "' + typeof obj_relatedObjects_item + '" (at "' + path_relatedObjects_item + '")');
|
|
376
543
|
}
|
|
377
544
|
}
|
|
545
|
+
if (obj.relatedSegments !== undefined) {
|
|
546
|
+
const obj_relatedSegments = obj.relatedSegments;
|
|
547
|
+
const path_relatedSegments = path + '.relatedSegments';
|
|
548
|
+
if (!ArrayIsArray(obj_relatedSegments)) {
|
|
549
|
+
return new TypeError('Expected "array" but received "' + typeof obj_relatedSegments + '" (at "' + path_relatedSegments + '")');
|
|
550
|
+
}
|
|
551
|
+
for (let i = 0; i < obj_relatedSegments.length; i++) {
|
|
552
|
+
const obj_relatedSegments_item = obj_relatedSegments[i];
|
|
553
|
+
const path_relatedSegments_item = path_relatedSegments + '[' + i + ']';
|
|
554
|
+
const referencepath_relatedSegments_itemValidationError = validate$5(obj_relatedSegments_item, path_relatedSegments_item);
|
|
555
|
+
if (referencepath_relatedSegments_itemValidationError !== null) {
|
|
556
|
+
let message = 'Object doesn\'t match CdpDataGraphRelatedSegmentsOutputRepresentation (at "' + path_relatedSegments_item + '")\n';
|
|
557
|
+
message += referencepath_relatedSegments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
558
|
+
return new TypeError(message);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
if (obj.type !== undefined) {
|
|
563
|
+
const obj_type = obj.type;
|
|
564
|
+
const path_type = path + '.type';
|
|
565
|
+
if (typeof obj_type !== 'string') {
|
|
566
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
567
|
+
}
|
|
568
|
+
}
|
|
378
569
|
})();
|
|
379
570
|
return v_error === undefined ? null : v_error;
|
|
380
571
|
}
|
|
381
|
-
function equals$
|
|
572
|
+
function equals$4(existing, incoming) {
|
|
382
573
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
383
574
|
return false;
|
|
384
575
|
}
|
|
@@ -386,8 +577,8 @@ function equals$5(existing, incoming) {
|
|
|
386
577
|
}
|
|
387
578
|
|
|
388
579
|
const VERSION$3 = "5d9e99f6f73f52f2cfcb77b921003155";
|
|
389
|
-
function validate$
|
|
390
|
-
const validateCdpObjectBaseOutputRepresentation_validateError = validate$
|
|
580
|
+
function validate$3(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
581
|
+
const validateCdpObjectBaseOutputRepresentation_validateError = validate$a(obj, path);
|
|
391
582
|
if (validateCdpObjectBaseOutputRepresentation_validateError !== null) {
|
|
392
583
|
return validateCdpObjectBaseOutputRepresentation_validateError;
|
|
393
584
|
}
|
|
@@ -454,7 +645,7 @@ function validate$4(obj, path = 'CdpDataGraphOutputRepresentation') {
|
|
|
454
645
|
}
|
|
455
646
|
const obj_sourceObject = obj.sourceObject;
|
|
456
647
|
const path_sourceObject = path + '.sourceObject';
|
|
457
|
-
const referencepath_sourceObjectValidationError = validate$
|
|
648
|
+
const referencepath_sourceObjectValidationError = validate$4(obj_sourceObject, path_sourceObject);
|
|
458
649
|
if (referencepath_sourceObjectValidationError !== null) {
|
|
459
650
|
let message = 'Object doesn\'t match CdpDataGraphSourceObjectOutputRepresentation (at "' + path_sourceObject + '")\n';
|
|
460
651
|
message += referencepath_sourceObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -503,7 +694,7 @@ const select$a = function CdpDataGraphOutputRepresentationSelect() {
|
|
|
503
694
|
opaque: true
|
|
504
695
|
};
|
|
505
696
|
};
|
|
506
|
-
function equals$
|
|
697
|
+
function equals$3(existing, incoming) {
|
|
507
698
|
if (equals$6(existing, incoming) === false) {
|
|
508
699
|
return false;
|
|
509
700
|
}
|
|
@@ -630,21 +821,21 @@ function equals$4(existing, incoming) {
|
|
|
630
821
|
}
|
|
631
822
|
const existing_sourceObject = existing.sourceObject;
|
|
632
823
|
const incoming_sourceObject = incoming.sourceObject;
|
|
633
|
-
if (!(equals$
|
|
824
|
+
if (!(equals$4(existing_sourceObject, incoming_sourceObject))) {
|
|
634
825
|
return false;
|
|
635
826
|
}
|
|
636
827
|
return true;
|
|
637
828
|
}
|
|
638
829
|
const ingest$3 = function CdpDataGraphOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
639
830
|
if (process.env.NODE_ENV !== 'production') {
|
|
640
|
-
const validateError = validate$
|
|
831
|
+
const validateError = validate$3(input);
|
|
641
832
|
if (validateError !== null) {
|
|
642
833
|
throw validateError;
|
|
643
834
|
}
|
|
644
835
|
}
|
|
645
836
|
const key = keyBuilderFromType$3(luvio, input);
|
|
646
837
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000000;
|
|
647
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "CDP", VERSION$3, RepresentationType$3, equals$
|
|
838
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "CDP", VERSION$3, RepresentationType$3, equals$3);
|
|
648
839
|
return createLink(key);
|
|
649
840
|
};
|
|
650
841
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -989,7 +1180,7 @@ function createResourceRequest$4(config) {
|
|
|
989
1180
|
method: 'get',
|
|
990
1181
|
body: null,
|
|
991
1182
|
urlParams: config.urlParams,
|
|
992
|
-
queryParams:
|
|
1183
|
+
queryParams: config.queryParams,
|
|
993
1184
|
headers,
|
|
994
1185
|
priority: 'normal',
|
|
995
1186
|
};
|
|
@@ -997,6 +1188,7 @@ function createResourceRequest$4(config) {
|
|
|
997
1188
|
function createResourceRequestFromRepresentation$2(representation) {
|
|
998
1189
|
const config = {
|
|
999
1190
|
urlParams: {},
|
|
1191
|
+
queryParams: {},
|
|
1000
1192
|
};
|
|
1001
1193
|
config.urlParams.dataGraphName = representation.name;
|
|
1002
1194
|
return createResourceRequest$4(config);
|
|
@@ -1005,6 +1197,8 @@ function createResourceRequestFromRepresentation$2(representation) {
|
|
|
1005
1197
|
const adapterName$4 = 'getDataGraph';
|
|
1006
1198
|
const getDataGraph_ConfigPropertyMetadata = [
|
|
1007
1199
|
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1200
|
+
generateParamConfigMetadata('includeCIDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1201
|
+
generateParamConfigMetadata('includeSegmentDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1008
1202
|
];
|
|
1009
1203
|
const getDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getDataGraph_ConfigPropertyMetadata);
|
|
1010
1204
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getDataGraph_ConfigPropertyMetadata);
|
|
@@ -1117,81 +1311,9 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
1117
1311
|
};
|
|
1118
1312
|
};
|
|
1119
1313
|
|
|
1120
|
-
function validate$3(obj, path = 'DependencyOutputRepresentation') {
|
|
1121
|
-
const v_error = (() => {
|
|
1122
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1123
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1124
|
-
}
|
|
1125
|
-
const obj_developerName = obj.developerName;
|
|
1126
|
-
const path_developerName = path + '.developerName';
|
|
1127
|
-
if (typeof obj_developerName !== 'string') {
|
|
1128
|
-
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
1129
|
-
}
|
|
1130
|
-
const obj_displayName = obj.displayName;
|
|
1131
|
-
const path_displayName = path + '.displayName';
|
|
1132
|
-
if (typeof obj_displayName !== 'string') {
|
|
1133
|
-
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
1134
|
-
}
|
|
1135
|
-
const obj_entityType = obj.entityType;
|
|
1136
|
-
const path_entityType = path + '.entityType';
|
|
1137
|
-
if (typeof obj_entityType !== 'string') {
|
|
1138
|
-
return new TypeError('Expected "string" but received "' + typeof obj_entityType + '" (at "' + path_entityType + '")');
|
|
1139
|
-
}
|
|
1140
|
-
const obj_entityTypePluralLabel = obj.entityTypePluralLabel;
|
|
1141
|
-
const path_entityTypePluralLabel = path + '.entityTypePluralLabel';
|
|
1142
|
-
if (typeof obj_entityTypePluralLabel !== 'string') {
|
|
1143
|
-
return new TypeError('Expected "string" but received "' + typeof obj_entityTypePluralLabel + '" (at "' + path_entityTypePluralLabel + '")');
|
|
1144
|
-
}
|
|
1145
|
-
const obj_id = obj.id;
|
|
1146
|
-
const path_id = path + '.id';
|
|
1147
|
-
if (typeof obj_id !== 'string') {
|
|
1148
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1149
|
-
}
|
|
1150
|
-
const obj_linkable = obj.linkable;
|
|
1151
|
-
const path_linkable = path + '.linkable';
|
|
1152
|
-
if (typeof obj_linkable !== 'boolean') {
|
|
1153
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_linkable + '" (at "' + path_linkable + '")');
|
|
1154
|
-
}
|
|
1155
|
-
})();
|
|
1156
|
-
return v_error === undefined ? null : v_error;
|
|
1157
|
-
}
|
|
1158
|
-
function equals$3(existing, incoming) {
|
|
1159
|
-
const existing_linkable = existing.linkable;
|
|
1160
|
-
const incoming_linkable = incoming.linkable;
|
|
1161
|
-
if (!(existing_linkable === incoming_linkable)) {
|
|
1162
|
-
return false;
|
|
1163
|
-
}
|
|
1164
|
-
const existing_developerName = existing.developerName;
|
|
1165
|
-
const incoming_developerName = incoming.developerName;
|
|
1166
|
-
if (!(existing_developerName === incoming_developerName)) {
|
|
1167
|
-
return false;
|
|
1168
|
-
}
|
|
1169
|
-
const existing_displayName = existing.displayName;
|
|
1170
|
-
const incoming_displayName = incoming.displayName;
|
|
1171
|
-
if (!(existing_displayName === incoming_displayName)) {
|
|
1172
|
-
return false;
|
|
1173
|
-
}
|
|
1174
|
-
const existing_entityType = existing.entityType;
|
|
1175
|
-
const incoming_entityType = incoming.entityType;
|
|
1176
|
-
if (!(existing_entityType === incoming_entityType)) {
|
|
1177
|
-
return false;
|
|
1178
|
-
}
|
|
1179
|
-
const existing_entityTypePluralLabel = existing.entityTypePluralLabel;
|
|
1180
|
-
const incoming_entityTypePluralLabel = incoming.entityTypePluralLabel;
|
|
1181
|
-
if (!(existing_entityTypePluralLabel === incoming_entityTypePluralLabel)) {
|
|
1182
|
-
return false;
|
|
1183
|
-
}
|
|
1184
|
-
const existing_id = existing.id;
|
|
1185
|
-
const incoming_id = incoming.id;
|
|
1186
|
-
if (!(existing_id === incoming_id)) {
|
|
1187
|
-
return false;
|
|
1188
|
-
}
|
|
1189
|
-
return true;
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
1314
|
const VERSION$2 = "0c15cc932d3ea4f07bf6a3b0429e3520";
|
|
1193
1315
|
function validate$2(obj, path = 'CdpDataGraphDependencyOutputRepresentation') {
|
|
1194
|
-
const validateCdpObjectBaseOutputRepresentation_validateError = validate$
|
|
1316
|
+
const validateCdpObjectBaseOutputRepresentation_validateError = validate$a(obj, path);
|
|
1195
1317
|
if (validateCdpObjectBaseOutputRepresentation_validateError !== null) {
|
|
1196
1318
|
return validateCdpObjectBaseOutputRepresentation_validateError;
|
|
1197
1319
|
}
|
|
@@ -1207,7 +1329,7 @@ function validate$2(obj, path = 'CdpDataGraphDependencyOutputRepresentation') {
|
|
|
1207
1329
|
for (let i = 0; i < obj_dependency.length; i++) {
|
|
1208
1330
|
const obj_dependency_item = obj_dependency[i];
|
|
1209
1331
|
const path_dependency_item = path_dependency + '[' + i + ']';
|
|
1210
|
-
const referencepath_dependency_itemValidationError = validate$
|
|
1332
|
+
const referencepath_dependency_itemValidationError = validate$9(obj_dependency_item, path_dependency_item);
|
|
1211
1333
|
if (referencepath_dependency_itemValidationError !== null) {
|
|
1212
1334
|
let message = 'Object doesn\'t match DependencyOutputRepresentation (at "' + path_dependency_item + '")\n';
|
|
1213
1335
|
message += referencepath_dependency_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1242,7 +1364,7 @@ function equals$2(existing, incoming) {
|
|
|
1242
1364
|
const existing_dependency = existing.dependency;
|
|
1243
1365
|
const incoming_dependency = incoming.dependency;
|
|
1244
1366
|
const equals_dependency_items = equalsArray(existing_dependency, incoming_dependency, (existing_dependency_item, incoming_dependency_item) => {
|
|
1245
|
-
if (!(equals$
|
|
1367
|
+
if (!(equals$5(existing_dependency_item, incoming_dependency_item))) {
|
|
1246
1368
|
return false;
|
|
1247
1369
|
}
|
|
1248
1370
|
});
|
|
@@ -1451,7 +1573,7 @@ function validate$1(obj, path = 'CdpDataGraphDraftOutputRepresentation') {
|
|
|
1451
1573
|
}
|
|
1452
1574
|
const obj_outputRepresentation = obj.outputRepresentation;
|
|
1453
1575
|
const path_outputRepresentation = path + '.outputRepresentation';
|
|
1454
|
-
const referencepath_outputRepresentationValidationError = validate$
|
|
1576
|
+
const referencepath_outputRepresentationValidationError = validate$3(obj_outputRepresentation, path_outputRepresentation);
|
|
1455
1577
|
if (referencepath_outputRepresentationValidationError !== null) {
|
|
1456
1578
|
let message = 'Object doesn\'t match CdpDataGraphOutputRepresentation (at "' + path_outputRepresentation + '")\n';
|
|
1457
1579
|
message += referencepath_outputRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2000,4 +2122,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2000
2122
|
});
|
|
2001
2123
|
|
|
2002
2124
|
export { createDataGraph, deleteDataGraph, editDataGraph, getDataGraph, getDataGraphDependency, getDataGraphDependencyNotifyChange, getDataGraphDependency_imperative, getDataGraphDraft, getDataGraphDraftNotifyChange, getDataGraphDraft_imperative, getDataGraphNotifyChange, getDataGraph_imperative, retryDataGraph, saveDataGraphDraft };
|
|
2003
|
-
// version: 1.
|
|
2125
|
+
// version: 1.298.0-6f15dc1ec
|
package/src/raml/api.raml
CHANGED
|
@@ -168,6 +168,24 @@ types:
|
|
|
168
168
|
description: usage_tag
|
|
169
169
|
type: string
|
|
170
170
|
required: false
|
|
171
|
+
dependency:
|
|
172
|
+
description: dependency
|
|
173
|
+
type: array
|
|
174
|
+
items:
|
|
175
|
+
type: DependencyOutputRepresentation
|
|
176
|
+
required: false
|
|
177
|
+
devName:
|
|
178
|
+
description: dev_name
|
|
179
|
+
type: string
|
|
180
|
+
required: false
|
|
181
|
+
formula:
|
|
182
|
+
description: formula
|
|
183
|
+
type: string
|
|
184
|
+
required: false
|
|
185
|
+
sourceFieldLabel:
|
|
186
|
+
description: source_field_Label
|
|
187
|
+
type: string
|
|
188
|
+
required: false
|
|
171
189
|
CdpDataGraphInputRepresentation:
|
|
172
190
|
description: Input representation for creating CDP Data Graph
|
|
173
191
|
type: object
|
|
@@ -252,6 +270,34 @@ types:
|
|
|
252
270
|
type: array
|
|
253
271
|
items:
|
|
254
272
|
type: any #Add any to remove circular dependency
|
|
273
|
+
dependency:
|
|
274
|
+
description: dependency
|
|
275
|
+
type: array
|
|
276
|
+
items:
|
|
277
|
+
type: DependencyOutputRepresentation
|
|
278
|
+
required: false
|
|
279
|
+
devName:
|
|
280
|
+
description: devName
|
|
281
|
+
type: string
|
|
282
|
+
required: false
|
|
283
|
+
fragmentDMOLabel:
|
|
284
|
+
description: fragmentDMOLabel
|
|
285
|
+
type: string
|
|
286
|
+
required: false
|
|
287
|
+
referenceDeveloperName:
|
|
288
|
+
description: referenceDeveloperName
|
|
289
|
+
type: string
|
|
290
|
+
required: false
|
|
291
|
+
relatedSegments:
|
|
292
|
+
description: relatedSegments
|
|
293
|
+
type: array
|
|
294
|
+
items:
|
|
295
|
+
type: CdpDataGraphRelatedSegmentsOutputRepresentation
|
|
296
|
+
required: false
|
|
297
|
+
type:
|
|
298
|
+
description: type
|
|
299
|
+
type: string
|
|
300
|
+
required: false
|
|
255
301
|
CdpDataGraphOutputRepresentation:
|
|
256
302
|
description: Represents Cdp Data Graph Output
|
|
257
303
|
type: CdpObjectBaseOutputRepresentation
|
|
@@ -369,6 +415,16 @@ types:
|
|
|
369
415
|
type: array
|
|
370
416
|
items:
|
|
371
417
|
type: any
|
|
418
|
+
CdpDataGraphRelatedSegmentsOutputRepresentation:
|
|
419
|
+
description: Represents Data Graph Related Segments
|
|
420
|
+
type: object
|
|
421
|
+
properties:
|
|
422
|
+
apiName:
|
|
423
|
+
description: apiName
|
|
424
|
+
type: string
|
|
425
|
+
displayName:
|
|
426
|
+
description: displayName
|
|
427
|
+
type: string
|
|
372
428
|
CdpDataGraphRetryInputRepresentation:
|
|
373
429
|
description: Input representation for retry running error state CDP Data Graph
|
|
374
430
|
type: object
|
|
@@ -475,6 +531,13 @@ types:
|
|
|
475
531
|
body:
|
|
476
532
|
application/json:
|
|
477
533
|
type: CdpDataGraphOutputRepresentation
|
|
534
|
+
queryParameters:
|
|
535
|
+
includeCIDetails:
|
|
536
|
+
type: boolean
|
|
537
|
+
required: false
|
|
538
|
+
includeSegmentDetails:
|
|
539
|
+
type: boolean
|
|
540
|
+
required: false
|
|
478
541
|
delete:
|
|
479
542
|
displayName: deleteCdpDataGraph
|
|
480
543
|
description: Delete Data Graph
|