@salesforce/lds-adapters-marketing-cdp 1.451.0-dev10 → 1.451.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.
- package/dist/es/es2018/marketing-cdp.js +201 -79
- package/dist/es/es2018/types/src/generated/adapters/editDataGraphByName.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/putSsotDataGraphsByDataGraphName.d.ts +38 -0
- package/package.json +3 -3
- package/sfdc/index.js +187 -62
- package/src/raml/api.raml +17 -0
- package/src/raml/luvio.raml +3 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$9, typeCheckConfig as typeCheckConfig$9, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -1019,7 +1019,7 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
1019
1019
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1020
1020
|
return input;
|
|
1021
1021
|
}
|
|
1022
|
-
const select$
|
|
1022
|
+
const select$b = function CdpDataGraphOutputRepresentationSelect() {
|
|
1023
1023
|
return {
|
|
1024
1024
|
kind: 'Fragment',
|
|
1025
1025
|
version: VERSION$3,
|
|
@@ -1345,19 +1345,19 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
|
-
function select$
|
|
1349
|
-
return select$
|
|
1348
|
+
function select$a(luvio, params) {
|
|
1349
|
+
return select$b();
|
|
1350
1350
|
}
|
|
1351
|
-
function getResponseCacheKeys$
|
|
1351
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1352
1352
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1353
1353
|
}
|
|
1354
|
-
function ingestSuccess$
|
|
1354
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
1355
1355
|
const { body } = response;
|
|
1356
1356
|
const key = keyBuilderFromType$3(luvio, body);
|
|
1357
1357
|
luvio.storeIngest(key, ingest$3, body);
|
|
1358
1358
|
const snapshot = luvio.storeLookup({
|
|
1359
1359
|
recordId: key,
|
|
1360
|
-
node: select$
|
|
1360
|
+
node: select$a(),
|
|
1361
1361
|
variables: {},
|
|
1362
1362
|
});
|
|
1363
1363
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1368,7 +1368,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
1368
1368
|
deepFreeze(snapshot.data);
|
|
1369
1369
|
return snapshot;
|
|
1370
1370
|
}
|
|
1371
|
-
function createResourceRequest$
|
|
1371
|
+
function createResourceRequest$8(config) {
|
|
1372
1372
|
const headers = {};
|
|
1373
1373
|
return {
|
|
1374
1374
|
baseUri: '/services/data/v68.0',
|
|
@@ -1382,7 +1382,7 @@ function createResourceRequest$7(config) {
|
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
1384
|
|
|
1385
|
-
const adapterName$
|
|
1385
|
+
const adapterName$8 = 'createDataGraph';
|
|
1386
1386
|
const createDataGraph_ConfigPropertyMetadata = [
|
|
1387
1387
|
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1388
1388
|
generateParamConfigMetadata('dataKitName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1404,11 +1404,11 @@ const createDataGraph_ConfigPropertyMetadata = [
|
|
|
1404
1404
|
generateParamConfigMetadata('fullRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1405
1405
|
generateParamConfigMetadata('incrementalRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1406
1406
|
];
|
|
1407
|
-
const createDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1408
|
-
const createResourceParams$
|
|
1409
|
-
function typeCheckConfig$
|
|
1407
|
+
const createDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createDataGraph_ConfigPropertyMetadata);
|
|
1408
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(createDataGraph_ConfigPropertyMetadata);
|
|
1409
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
1410
1410
|
const config = {};
|
|
1411
|
-
typeCheckConfig$
|
|
1411
|
+
typeCheckConfig$9(untrustedConfig, config, createDataGraph_ConfigPropertyMetadata);
|
|
1412
1412
|
const untrustedConfig_sourceObject = untrustedConfig.sourceObject;
|
|
1413
1413
|
config.sourceObject = untrustedConfig_sourceObject;
|
|
1414
1414
|
const untrustedConfig_fullRefreshConfig = untrustedConfig.fullRefreshConfig;
|
|
@@ -1423,30 +1423,30 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
return config;
|
|
1425
1425
|
}
|
|
1426
|
-
function validateAdapterConfig$
|
|
1426
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
1427
1427
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1428
1428
|
return null;
|
|
1429
1429
|
}
|
|
1430
1430
|
if (process.env.NODE_ENV !== 'production') {
|
|
1431
1431
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1432
1432
|
}
|
|
1433
|
-
const config = typeCheckConfig$
|
|
1433
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
1434
1434
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1435
1435
|
return null;
|
|
1436
1436
|
}
|
|
1437
1437
|
return config;
|
|
1438
1438
|
}
|
|
1439
|
-
function buildNetworkSnapshot$
|
|
1440
|
-
const resourceParams = createResourceParams$
|
|
1441
|
-
const request = createResourceRequest$
|
|
1439
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
1440
|
+
const resourceParams = createResourceParams$8(config);
|
|
1441
|
+
const request = createResourceRequest$8(resourceParams);
|
|
1442
1442
|
return luvio.dispatchResourceRequest(request, options)
|
|
1443
1443
|
.then((response) => {
|
|
1444
1444
|
return luvio.handleSuccessResponse(() => {
|
|
1445
|
-
const snapshot = ingestSuccess$
|
|
1445
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
1446
1446
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1447
1447
|
}, () => {
|
|
1448
1448
|
const cache = new StoreKeyMap();
|
|
1449
|
-
getResponseCacheKeys$
|
|
1449
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
1450
1450
|
return cache;
|
|
1451
1451
|
});
|
|
1452
1452
|
}, (response) => {
|
|
@@ -1456,28 +1456,28 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
const createDataGraphAdapterFactory = (luvio) => {
|
|
1458
1458
|
return function createDataGraph(untrustedConfig) {
|
|
1459
|
-
const config = validateAdapterConfig$
|
|
1459
|
+
const config = validateAdapterConfig$8(untrustedConfig, createDataGraph_ConfigPropertyNames);
|
|
1460
1460
|
// Invalid or incomplete config
|
|
1461
1461
|
if (config === null) {
|
|
1462
1462
|
throw new Error('Invalid config for "createDataGraph"');
|
|
1463
1463
|
}
|
|
1464
|
-
return buildNetworkSnapshot$
|
|
1464
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
1465
1465
|
};
|
|
1466
1466
|
};
|
|
1467
1467
|
|
|
1468
|
-
function select$
|
|
1469
|
-
return select$
|
|
1468
|
+
function select$9(luvio, params) {
|
|
1469
|
+
return select$b();
|
|
1470
1470
|
}
|
|
1471
|
-
function getResponseCacheKeys$
|
|
1471
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
1472
1472
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1473
1473
|
}
|
|
1474
|
-
function ingestSuccess$
|
|
1474
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
1475
1475
|
const { body } = response;
|
|
1476
1476
|
const key = keyBuilderFromType$3(luvio, body);
|
|
1477
1477
|
luvio.storeIngest(key, ingest$3, body);
|
|
1478
1478
|
const snapshot = luvio.storeLookup({
|
|
1479
1479
|
recordId: key,
|
|
1480
|
-
node: select$
|
|
1480
|
+
node: select$9(),
|
|
1481
1481
|
variables: {},
|
|
1482
1482
|
});
|
|
1483
1483
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1488,7 +1488,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
1488
1488
|
deepFreeze(snapshot.data);
|
|
1489
1489
|
return snapshot;
|
|
1490
1490
|
}
|
|
1491
|
-
function createResourceRequest$
|
|
1491
|
+
function createResourceRequest$7(config) {
|
|
1492
1492
|
const headers = {};
|
|
1493
1493
|
return {
|
|
1494
1494
|
baseUri: '/services/data/v68.0',
|
|
@@ -1502,7 +1502,7 @@ function createResourceRequest$6(config) {
|
|
|
1502
1502
|
};
|
|
1503
1503
|
}
|
|
1504
1504
|
|
|
1505
|
-
const adapterName$
|
|
1505
|
+
const adapterName$7 = 'editDataGraph';
|
|
1506
1506
|
const editDataGraph_ConfigPropertyMetadata = [
|
|
1507
1507
|
generateParamConfigMetadata('editScheduleOnly', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1508
1508
|
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1525,11 +1525,11 @@ const editDataGraph_ConfigPropertyMetadata = [
|
|
|
1525
1525
|
generateParamConfigMetadata('fullRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1526
1526
|
generateParamConfigMetadata('incrementalRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1527
1527
|
];
|
|
1528
|
-
const editDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1529
|
-
const createResourceParams$
|
|
1530
|
-
function typeCheckConfig$
|
|
1528
|
+
const editDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, editDataGraph_ConfigPropertyMetadata);
|
|
1529
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(editDataGraph_ConfigPropertyMetadata);
|
|
1530
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
1531
1531
|
const config = {};
|
|
1532
|
-
typeCheckConfig$
|
|
1532
|
+
typeCheckConfig$9(untrustedConfig, config, editDataGraph_ConfigPropertyMetadata);
|
|
1533
1533
|
const untrustedConfig_sourceObject = untrustedConfig.sourceObject;
|
|
1534
1534
|
config.sourceObject = untrustedConfig_sourceObject;
|
|
1535
1535
|
const untrustedConfig_fullRefreshConfig = untrustedConfig.fullRefreshConfig;
|
|
@@ -1544,30 +1544,30 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
return config;
|
|
1546
1546
|
}
|
|
1547
|
-
function validateAdapterConfig$
|
|
1547
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
1548
1548
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1549
1549
|
return null;
|
|
1550
1550
|
}
|
|
1551
1551
|
if (process.env.NODE_ENV !== 'production') {
|
|
1552
1552
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1553
1553
|
}
|
|
1554
|
-
const config = typeCheckConfig$
|
|
1554
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
1555
1555
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1556
1556
|
return null;
|
|
1557
1557
|
}
|
|
1558
1558
|
return config;
|
|
1559
1559
|
}
|
|
1560
|
-
function buildNetworkSnapshot$
|
|
1561
|
-
const resourceParams = createResourceParams$
|
|
1562
|
-
const request = createResourceRequest$
|
|
1560
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
1561
|
+
const resourceParams = createResourceParams$7(config);
|
|
1562
|
+
const request = createResourceRequest$7(resourceParams);
|
|
1563
1563
|
return luvio.dispatchResourceRequest(request, options)
|
|
1564
1564
|
.then((response) => {
|
|
1565
1565
|
return luvio.handleSuccessResponse(() => {
|
|
1566
|
-
const snapshot = ingestSuccess$
|
|
1566
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
1567
1567
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1568
1568
|
}, () => {
|
|
1569
1569
|
const cache = new StoreKeyMap();
|
|
1570
|
-
getResponseCacheKeys$
|
|
1570
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
1571
1571
|
return cache;
|
|
1572
1572
|
});
|
|
1573
1573
|
}, (response) => {
|
|
@@ -1577,33 +1577,33 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
const editDataGraphAdapterFactory = (luvio) => {
|
|
1579
1579
|
return function editDataGraph(untrustedConfig) {
|
|
1580
|
-
const config = validateAdapterConfig$
|
|
1580
|
+
const config = validateAdapterConfig$7(untrustedConfig, editDataGraph_ConfigPropertyNames);
|
|
1581
1581
|
// Invalid or incomplete config
|
|
1582
1582
|
if (config === null) {
|
|
1583
1583
|
throw new Error('Invalid config for "editDataGraph"');
|
|
1584
1584
|
}
|
|
1585
|
-
return buildNetworkSnapshot$
|
|
1585
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
1586
1586
|
};
|
|
1587
1587
|
};
|
|
1588
1588
|
|
|
1589
|
-
function select$
|
|
1590
|
-
return select$
|
|
1589
|
+
function select$8(luvio, params) {
|
|
1590
|
+
return select$b();
|
|
1591
1591
|
}
|
|
1592
1592
|
function keyBuilder$9(luvio, params) {
|
|
1593
1593
|
return keyBuilder$a(luvio, {
|
|
1594
1594
|
name: params.urlParams.dataGraphName
|
|
1595
1595
|
});
|
|
1596
1596
|
}
|
|
1597
|
-
function getResponseCacheKeys$
|
|
1597
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
1598
1598
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1599
1599
|
}
|
|
1600
|
-
function ingestSuccess$
|
|
1600
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
1601
1601
|
const { body } = response;
|
|
1602
1602
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
1603
1603
|
luvio.storeIngest(key, ingest$3, body);
|
|
1604
1604
|
const snapshot = luvio.storeLookup({
|
|
1605
1605
|
recordId: key,
|
|
1606
|
-
node: select$
|
|
1606
|
+
node: select$8(),
|
|
1607
1607
|
variables: {},
|
|
1608
1608
|
}, snapshotRefresh);
|
|
1609
1609
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1620,7 +1620,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
1620
1620
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1621
1621
|
return errorSnapshot;
|
|
1622
1622
|
}
|
|
1623
|
-
function createResourceRequest$
|
|
1623
|
+
function createResourceRequest$6(config) {
|
|
1624
1624
|
const headers = {};
|
|
1625
1625
|
return {
|
|
1626
1626
|
baseUri: '/services/data/v68.0',
|
|
@@ -1634,62 +1634,62 @@ function createResourceRequest$5(config) {
|
|
|
1634
1634
|
};
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
|
-
const adapterName$
|
|
1637
|
+
const adapterName$6 = 'getDataGraph';
|
|
1638
1638
|
const getDataGraph_ConfigPropertyMetadata = [
|
|
1639
1639
|
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1640
1640
|
generateParamConfigMetadata('includeCIDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1641
1641
|
generateParamConfigMetadata('includeSegmentDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1642
1642
|
];
|
|
1643
|
-
const getDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1644
|
-
const createResourceParams$
|
|
1643
|
+
const getDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDataGraph_ConfigPropertyMetadata);
|
|
1644
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(getDataGraph_ConfigPropertyMetadata);
|
|
1645
1645
|
function keyBuilder$8(luvio, config) {
|
|
1646
|
-
const resourceParams = createResourceParams$
|
|
1646
|
+
const resourceParams = createResourceParams$6(config);
|
|
1647
1647
|
return keyBuilder$9(luvio, resourceParams);
|
|
1648
1648
|
}
|
|
1649
|
-
function typeCheckConfig$
|
|
1649
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
1650
1650
|
const config = {};
|
|
1651
|
-
typeCheckConfig$
|
|
1651
|
+
typeCheckConfig$9(untrustedConfig, config, getDataGraph_ConfigPropertyMetadata);
|
|
1652
1652
|
return config;
|
|
1653
1653
|
}
|
|
1654
|
-
function validateAdapterConfig$
|
|
1654
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
1655
1655
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1656
1656
|
return null;
|
|
1657
1657
|
}
|
|
1658
1658
|
if (process.env.NODE_ENV !== 'production') {
|
|
1659
1659
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1660
1660
|
}
|
|
1661
|
-
const config = typeCheckConfig$
|
|
1661
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
1662
1662
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1663
1663
|
return null;
|
|
1664
1664
|
}
|
|
1665
1665
|
return config;
|
|
1666
1666
|
}
|
|
1667
1667
|
function adapterFragment$2(luvio, config) {
|
|
1668
|
-
createResourceParams$
|
|
1669
|
-
return select$
|
|
1668
|
+
createResourceParams$6(config);
|
|
1669
|
+
return select$8();
|
|
1670
1670
|
}
|
|
1671
1671
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1672
|
-
const snapshot = ingestSuccess$
|
|
1672
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
1673
1673
|
config,
|
|
1674
|
-
resolve: () => buildNetworkSnapshot$
|
|
1674
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1675
1675
|
});
|
|
1676
1676
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1677
1677
|
}
|
|
1678
1678
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
1679
1679
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
1680
1680
|
config,
|
|
1681
|
-
resolve: () => buildNetworkSnapshot$
|
|
1681
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1682
1682
|
});
|
|
1683
1683
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1684
1684
|
}
|
|
1685
|
-
function buildNetworkSnapshot$
|
|
1686
|
-
const resourceParams = createResourceParams$
|
|
1687
|
-
const request = createResourceRequest$
|
|
1685
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
1686
|
+
const resourceParams = createResourceParams$6(config);
|
|
1687
|
+
const request = createResourceRequest$6(resourceParams);
|
|
1688
1688
|
return luvio.dispatchResourceRequest(request, options)
|
|
1689
1689
|
.then((response) => {
|
|
1690
1690
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
1691
1691
|
const cache = new StoreKeyMap();
|
|
1692
|
-
getResponseCacheKeys$
|
|
1692
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
1693
1693
|
return cache;
|
|
1694
1694
|
});
|
|
1695
1695
|
}, (response) => {
|
|
@@ -1697,7 +1697,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
1697
1697
|
});
|
|
1698
1698
|
}
|
|
1699
1699
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1700
|
-
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1700
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
1701
1701
|
}
|
|
1702
1702
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1703
1703
|
const { luvio, config } = context;
|
|
@@ -1708,12 +1708,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
1708
1708
|
};
|
|
1709
1709
|
const cacheSnapshot = storeLookup(selector, {
|
|
1710
1710
|
config,
|
|
1711
|
-
resolve: () => buildNetworkSnapshot$
|
|
1711
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1712
1712
|
});
|
|
1713
1713
|
return cacheSnapshot;
|
|
1714
1714
|
}
|
|
1715
1715
|
const getDataGraphAdapterFactory = (luvio) => function CDP__getDataGraph(untrustedConfig, requestContext) {
|
|
1716
|
-
const config = validateAdapterConfig$
|
|
1716
|
+
const config = validateAdapterConfig$6(untrustedConfig, getDataGraph_ConfigPropertyNames);
|
|
1717
1717
|
// Invalid or incomplete config
|
|
1718
1718
|
if (config === null) {
|
|
1719
1719
|
return null;
|
|
@@ -1722,6 +1722,128 @@ const getDataGraphAdapterFactory = (luvio) => function CDP__getDataGraph(untrust
|
|
|
1722
1722
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1723
1723
|
};
|
|
1724
1724
|
|
|
1725
|
+
function select$7(luvio, params) {
|
|
1726
|
+
return select$b();
|
|
1727
|
+
}
|
|
1728
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1729
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1730
|
+
}
|
|
1731
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
1732
|
+
const { body } = response;
|
|
1733
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
1734
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
1735
|
+
const snapshot = luvio.storeLookup({
|
|
1736
|
+
recordId: key,
|
|
1737
|
+
node: select$7(),
|
|
1738
|
+
variables: {},
|
|
1739
|
+
});
|
|
1740
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1741
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1742
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
deepFreeze(snapshot.data);
|
|
1746
|
+
return snapshot;
|
|
1747
|
+
}
|
|
1748
|
+
function createResourceRequest$5(config) {
|
|
1749
|
+
const headers = {};
|
|
1750
|
+
return {
|
|
1751
|
+
baseUri: '/services/data/v68.0',
|
|
1752
|
+
basePath: '/ssot/data-graphs/' + config.urlParams.dataGraphName + '',
|
|
1753
|
+
method: 'put',
|
|
1754
|
+
body: config.body,
|
|
1755
|
+
urlParams: config.urlParams,
|
|
1756
|
+
queryParams: config.queryParams,
|
|
1757
|
+
headers,
|
|
1758
|
+
priority: 'normal',
|
|
1759
|
+
};
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
const adapterName$5 = 'editDataGraphByName';
|
|
1763
|
+
const editDataGraphByName_ConfigPropertyMetadata = [
|
|
1764
|
+
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1765
|
+
generateParamConfigMetadata('editScheduleOnly', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1766
|
+
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1767
|
+
generateParamConfigMetadata('dataKitName', false, 2 /* Body */, 0 /* String */),
|
|
1768
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1769
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
1770
|
+
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
1771
|
+
generateParamConfigMetadata('primaryObjectName', true, 2 /* Body */, 0 /* String */),
|
|
1772
|
+
generateParamConfigMetadata('sourceObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1773
|
+
generateParamConfigMetadata('templateName', false, 2 /* Body */, 0 /* String */),
|
|
1774
|
+
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
1775
|
+
generateParamConfigMetadata('isRecordCachingDisabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
1776
|
+
generateParamConfigMetadata('isRealTimeToggleEnabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
1777
|
+
generateParamConfigMetadata('processIngestionApi', false, 2 /* Body */, 1 /* Boolean */),
|
|
1778
|
+
generateParamConfigMetadata('processSalesforceCrm', false, 2 /* Body */, 1 /* Boolean */),
|
|
1779
|
+
generateParamConfigMetadata('cacheDurationInDays', false, 2 /* Body */, 3 /* Integer */),
|
|
1780
|
+
generateParamConfigMetadata('maxRecordsCached', false, 2 /* Body */, 3 /* Integer */),
|
|
1781
|
+
generateParamConfigMetadata('sessionEnd', false, 2 /* Body */, 3 /* Integer */),
|
|
1782
|
+
generateParamConfigMetadata('sessionEndTimeUnit', false, 2 /* Body */, 0 /* String */),
|
|
1783
|
+
generateParamConfigMetadata('fullRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1784
|
+
generateParamConfigMetadata('incrementalRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1785
|
+
];
|
|
1786
|
+
const editDataGraphByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, editDataGraphByName_ConfigPropertyMetadata);
|
|
1787
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(editDataGraphByName_ConfigPropertyMetadata);
|
|
1788
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
1789
|
+
const config = {};
|
|
1790
|
+
typeCheckConfig$9(untrustedConfig, config, editDataGraphByName_ConfigPropertyMetadata);
|
|
1791
|
+
const untrustedConfig_sourceObject = untrustedConfig.sourceObject;
|
|
1792
|
+
config.sourceObject = untrustedConfig_sourceObject;
|
|
1793
|
+
const untrustedConfig_fullRefreshConfig = untrustedConfig.fullRefreshConfig;
|
|
1794
|
+
const referenceDataGraphFullRefreshConfigInputRepresentationValidationError = validate$h(untrustedConfig_fullRefreshConfig);
|
|
1795
|
+
if (referenceDataGraphFullRefreshConfigInputRepresentationValidationError === null) {
|
|
1796
|
+
config.fullRefreshConfig = untrustedConfig_fullRefreshConfig;
|
|
1797
|
+
}
|
|
1798
|
+
const untrustedConfig_incrementalRefreshConfig = untrustedConfig.incrementalRefreshConfig;
|
|
1799
|
+
const referenceDataGraphIncrementalRefreshConfigInputRepresentationValidationError = validate$g(untrustedConfig_incrementalRefreshConfig);
|
|
1800
|
+
if (referenceDataGraphIncrementalRefreshConfigInputRepresentationValidationError === null) {
|
|
1801
|
+
config.incrementalRefreshConfig = untrustedConfig_incrementalRefreshConfig;
|
|
1802
|
+
}
|
|
1803
|
+
return config;
|
|
1804
|
+
}
|
|
1805
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
1806
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1807
|
+
return null;
|
|
1808
|
+
}
|
|
1809
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1810
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1811
|
+
}
|
|
1812
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
1813
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1814
|
+
return null;
|
|
1815
|
+
}
|
|
1816
|
+
return config;
|
|
1817
|
+
}
|
|
1818
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
1819
|
+
const resourceParams = createResourceParams$5(config);
|
|
1820
|
+
const request = createResourceRequest$5(resourceParams);
|
|
1821
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1822
|
+
.then((response) => {
|
|
1823
|
+
return luvio.handleSuccessResponse(() => {
|
|
1824
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
1825
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1826
|
+
}, () => {
|
|
1827
|
+
const cache = new StoreKeyMap();
|
|
1828
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
1829
|
+
return cache;
|
|
1830
|
+
});
|
|
1831
|
+
}, (response) => {
|
|
1832
|
+
deepFreeze(response);
|
|
1833
|
+
throw response;
|
|
1834
|
+
});
|
|
1835
|
+
}
|
|
1836
|
+
const editDataGraphByNameAdapterFactory = (luvio) => {
|
|
1837
|
+
return function editDataGraphByName(untrustedConfig) {
|
|
1838
|
+
const config = validateAdapterConfig$5(untrustedConfig, editDataGraphByName_ConfigPropertyNames);
|
|
1839
|
+
// Invalid or incomplete config
|
|
1840
|
+
if (config === null) {
|
|
1841
|
+
throw new Error('Invalid config for "editDataGraphByName"');
|
|
1842
|
+
}
|
|
1843
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
1844
|
+
};
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1725
1847
|
function keyBuilder$7(luvio, params) {
|
|
1726
1848
|
return keyBuilder$a(luvio, {
|
|
1727
1849
|
name: params.urlParams.dataGraphName
|
|
@@ -1758,10 +1880,10 @@ const deleteDataGraph_ConfigPropertyMetadata = [
|
|
|
1758
1880
|
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1759
1881
|
];
|
|
1760
1882
|
const deleteDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteDataGraph_ConfigPropertyMetadata);
|
|
1761
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
1883
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(deleteDataGraph_ConfigPropertyMetadata);
|
|
1762
1884
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1763
1885
|
const config = {};
|
|
1764
|
-
typeCheckConfig$
|
|
1886
|
+
typeCheckConfig$9(untrustedConfig, config, deleteDataGraph_ConfigPropertyMetadata);
|
|
1765
1887
|
return config;
|
|
1766
1888
|
}
|
|
1767
1889
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -1921,10 +2043,10 @@ const retryDataGraph_ConfigPropertyMetadata = [
|
|
|
1921
2043
|
generateParamConfigMetadata('dataGraphName', true, 2 /* Body */, 0 /* String */),
|
|
1922
2044
|
];
|
|
1923
2045
|
const retryDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, retryDataGraph_ConfigPropertyMetadata);
|
|
1924
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
2046
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(retryDataGraph_ConfigPropertyMetadata);
|
|
1925
2047
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1926
2048
|
const config = {};
|
|
1927
|
-
typeCheckConfig$
|
|
2049
|
+
typeCheckConfig$9(untrustedConfig, config, retryDataGraph_ConfigPropertyMetadata);
|
|
1928
2050
|
return config;
|
|
1929
2051
|
}
|
|
1930
2052
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -2106,14 +2228,14 @@ const getDataGraphDependency_ConfigPropertyMetadata = [
|
|
|
2106
2228
|
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2107
2229
|
];
|
|
2108
2230
|
const getDataGraphDependency_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataGraphDependency_ConfigPropertyMetadata);
|
|
2109
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
2231
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(getDataGraphDependency_ConfigPropertyMetadata);
|
|
2110
2232
|
function keyBuilder$3(luvio, config) {
|
|
2111
2233
|
const resourceParams = createResourceParams$2(config);
|
|
2112
2234
|
return keyBuilder$4(luvio, resourceParams);
|
|
2113
2235
|
}
|
|
2114
2236
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2115
2237
|
const config = {};
|
|
2116
|
-
typeCheckConfig$
|
|
2238
|
+
typeCheckConfig$9(untrustedConfig, config, getDataGraphDependency_ConfigPropertyMetadata);
|
|
2117
2239
|
return config;
|
|
2118
2240
|
}
|
|
2119
2241
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -2296,10 +2418,10 @@ const saveDataGraphDraft_ConfigPropertyMetadata = [
|
|
|
2296
2418
|
generateParamConfigMetadata('jsonSchema', true, 2 /* Body */, 0 /* String */),
|
|
2297
2419
|
];
|
|
2298
2420
|
const saveDataGraphDraft_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, saveDataGraphDraft_ConfigPropertyMetadata);
|
|
2299
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
2421
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(saveDataGraphDraft_ConfigPropertyMetadata);
|
|
2300
2422
|
function typeCheckConfig$1(untrustedConfig) {
|
|
2301
2423
|
const config = {};
|
|
2302
|
-
typeCheckConfig$
|
|
2424
|
+
typeCheckConfig$9(untrustedConfig, config, saveDataGraphDraft_ConfigPropertyMetadata);
|
|
2303
2425
|
return config;
|
|
2304
2426
|
}
|
|
2305
2427
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2397,14 +2519,14 @@ const getDataGraphDraft_ConfigPropertyMetadata = [
|
|
|
2397
2519
|
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2398
2520
|
];
|
|
2399
2521
|
const getDataGraphDraft_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDataGraphDraft_ConfigPropertyMetadata);
|
|
2400
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2522
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$9(getDataGraphDraft_ConfigPropertyMetadata);
|
|
2401
2523
|
function keyBuilder(luvio, config) {
|
|
2402
2524
|
const resourceParams = createResourceParams(config);
|
|
2403
2525
|
return keyBuilder$1(luvio, resourceParams);
|
|
2404
2526
|
}
|
|
2405
2527
|
function typeCheckConfig(untrustedConfig) {
|
|
2406
2528
|
const config = {};
|
|
2407
|
-
typeCheckConfig$
|
|
2529
|
+
typeCheckConfig$9(untrustedConfig, config, getDataGraphDraft_ConfigPropertyMetadata);
|
|
2408
2530
|
return config;
|
|
2409
2531
|
}
|
|
2410
2532
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2478,4 +2600,4 @@ const getDataGraphDraftAdapterFactory = (luvio) => function CDP__getDataGraphDra
|
|
|
2478
2600
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
2479
2601
|
};
|
|
2480
2602
|
|
|
2481
|
-
export { createDataGraphAdapterFactory, deleteDataGraphAdapterFactory, editDataGraphAdapterFactory, getDataGraphAdapterFactory, getDataGraphDependencyAdapterFactory, getDataGraphDraftAdapterFactory, retryDataGraphAdapterFactory, saveDataGraphDraftAdapterFactory };
|
|
2603
|
+
export { createDataGraphAdapterFactory, deleteDataGraphAdapterFactory, editDataGraphAdapterFactory, editDataGraphByNameAdapterFactory, getDataGraphAdapterFactory, getDataGraphDependencyAdapterFactory, getDataGraphDraftAdapterFactory, retryDataGraphAdapterFactory, saveDataGraphDraftAdapterFactory };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { DataGraphFullRefreshConfigInputRepresentation as types_DataGraphFullRefreshConfigInputRepresentation_DataGraphFullRefreshConfigInputRepresentation } from '../types/DataGraphFullRefreshConfigInputRepresentation';
|
|
4
|
+
import { DataGraphIncrementalRefreshConfigInputRepresentation as types_DataGraphIncrementalRefreshConfigInputRepresentation_DataGraphIncrementalRefreshConfigInputRepresentation } from '../types/DataGraphIncrementalRefreshConfigInputRepresentation';
|
|
5
|
+
import { ResourceRequestConfig as resources_putSsotDataGraphsByDataGraphName_ResourceRequestConfig } from '../resources/putSsotDataGraphsByDataGraphName';
|
|
6
|
+
import { CdpDataGraphOutputRepresentation as types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation } from '../types/CdpDataGraphOutputRepresentation';
|
|
7
|
+
export declare const adapterName = "editDataGraphByName";
|
|
8
|
+
export declare const editDataGraphByName_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
9
|
+
export declare const editDataGraphByName_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
10
|
+
export interface EditDataGraphByNameConfig {
|
|
11
|
+
dataGraphName: string;
|
|
12
|
+
editScheduleOnly?: boolean;
|
|
13
|
+
dataspaceName?: string;
|
|
14
|
+
dataKitName?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
primaryObjectName: string;
|
|
19
|
+
sourceObject: unknown;
|
|
20
|
+
templateName?: string;
|
|
21
|
+
type?: string;
|
|
22
|
+
isRecordCachingDisabled?: boolean;
|
|
23
|
+
isRealTimeToggleEnabled?: boolean;
|
|
24
|
+
processIngestionApi?: boolean;
|
|
25
|
+
processSalesforceCrm?: boolean;
|
|
26
|
+
cacheDurationInDays?: number;
|
|
27
|
+
maxRecordsCached?: number;
|
|
28
|
+
sessionEnd?: number;
|
|
29
|
+
sessionEndTimeUnit?: string;
|
|
30
|
+
fullRefreshConfig?: types_DataGraphFullRefreshConfigInputRepresentation_DataGraphFullRefreshConfigInputRepresentation;
|
|
31
|
+
incrementalRefreshConfig?: types_DataGraphIncrementalRefreshConfigInputRepresentation_DataGraphIncrementalRefreshConfigInputRepresentation;
|
|
32
|
+
}
|
|
33
|
+
export declare const createResourceParams: (config: EditDataGraphByNameConfig) => resources_putSsotDataGraphsByDataGraphName_ResourceRequestConfig;
|
|
34
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<EditDataGraphByNameConfig>): adapter$45$utils_Untrusted<EditDataGraphByNameConfig>;
|
|
35
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): EditDataGraphByNameConfig | null;
|
|
36
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: EditDataGraphByNameConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation, any>>;
|
|
37
|
+
export declare const editDataGraphByNameAdapterFactory: $64$luvio_engine_AdapterFactory<EditDataGraphByNameConfig, types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { createDataGraphAdapterFactory } from '../adapters/createDataGraph';
|
|
2
2
|
export { editDataGraphAdapterFactory } from '../adapters/editDataGraph';
|
|
3
3
|
export { getDataGraphAdapterFactory } from '../adapters/getDataGraph';
|
|
4
|
+
export { editDataGraphByNameAdapterFactory } from '../adapters/editDataGraphByName';
|
|
4
5
|
export { deleteDataGraphAdapterFactory } from '../adapters/deleteDataGraph';
|
|
5
6
|
export { retryDataGraphAdapterFactory } from '../adapters/retryDataGraph';
|
|
6
7
|
export { getDataGraphDependencyAdapterFactory } from '../adapters/getDataGraphDependency';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare let createDataGraph: any;
|
|
2
2
|
declare let deleteDataGraph: any;
|
|
3
3
|
declare let editDataGraph: any;
|
|
4
|
+
declare let editDataGraphByName: any;
|
|
4
5
|
declare let getDataGraph: any;
|
|
5
6
|
declare let getDataGraphDependency: any;
|
|
6
7
|
declare let getDataGraphDependencyNotifyChange: any;
|
|
@@ -12,4 +13,4 @@ declare let saveDataGraphDraft: any;
|
|
|
12
13
|
declare let getDataGraph_imperative: any;
|
|
13
14
|
declare let getDataGraphDependency_imperative: any;
|
|
14
15
|
declare let getDataGraphDraft_imperative: any;
|
|
15
|
-
export { createDataGraph, deleteDataGraph, editDataGraph, getDataGraph, getDataGraphDependency, getDataGraphDependencyNotifyChange, getDataGraphDraft, getDataGraphDraftNotifyChange, getDataGraphNotifyChange, retryDataGraph, saveDataGraphDraft, getDataGraph_imperative, getDataGraphDependency_imperative, getDataGraphDraft_imperative, };
|
|
16
|
+
export { createDataGraph, deleteDataGraph, editDataGraph, editDataGraphByName, getDataGraph, getDataGraphDependency, getDataGraphDependencyNotifyChange, getDataGraphDraft, getDataGraphDraftNotifyChange, getDataGraphNotifyChange, retryDataGraph, saveDataGraphDraft, getDataGraph_imperative, getDataGraphDependency_imperative, getDataGraphDraft_imperative, };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DataGraphFullRefreshConfigInputRepresentation as types_DataGraphFullRefreshConfigInputRepresentation_DataGraphFullRefreshConfigInputRepresentation } from '../types/DataGraphFullRefreshConfigInputRepresentation';
|
|
2
|
+
import { DataGraphIncrementalRefreshConfigInputRepresentation as types_DataGraphIncrementalRefreshConfigInputRepresentation_DataGraphIncrementalRefreshConfigInputRepresentation } from '../types/DataGraphIncrementalRefreshConfigInputRepresentation';
|
|
3
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
4
|
+
import { CdpDataGraphOutputRepresentation as types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation } from '../types/CdpDataGraphOutputRepresentation';
|
|
5
|
+
export interface ResourceRequestConfig {
|
|
6
|
+
urlParams: {
|
|
7
|
+
dataGraphName: string;
|
|
8
|
+
};
|
|
9
|
+
queryParams: {
|
|
10
|
+
editScheduleOnly?: boolean;
|
|
11
|
+
};
|
|
12
|
+
body: {
|
|
13
|
+
dataspaceName?: string;
|
|
14
|
+
dataKitName?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
primaryObjectName: string;
|
|
19
|
+
sourceObject: unknown;
|
|
20
|
+
templateName?: string;
|
|
21
|
+
type?: string;
|
|
22
|
+
isRecordCachingDisabled?: boolean;
|
|
23
|
+
isRealTimeToggleEnabled?: boolean;
|
|
24
|
+
processIngestionApi?: boolean;
|
|
25
|
+
processSalesforceCrm?: boolean;
|
|
26
|
+
cacheDurationInDays?: number;
|
|
27
|
+
maxRecordsCached?: number;
|
|
28
|
+
sessionEnd?: number;
|
|
29
|
+
sessionEndTimeUnit?: string;
|
|
30
|
+
fullRefreshConfig?: types_DataGraphFullRefreshConfigInputRepresentation_DataGraphFullRefreshConfigInputRepresentation;
|
|
31
|
+
incrementalRefreshConfig?: types_DataGraphIncrementalRefreshConfigInputRepresentation_DataGraphIncrementalRefreshConfigInputRepresentation;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
35
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation): void;
|
|
36
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CdpDataGraphOutputRepresentation_CdpDataGraphOutputRepresentation, any>;
|
|
37
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
38
|
+
export default createResourceRequest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-marketing-cdp",
|
|
3
|
-
"version": "1.451.0-
|
|
3
|
+
"version": "1.451.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",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.451.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.451.0-dev11"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.451.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.451.0-dev11"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$9, typeCheckConfig as typeCheckConfig$9, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -1029,7 +1029,7 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
1029
1029
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1030
1030
|
return input;
|
|
1031
1031
|
}
|
|
1032
|
-
const select$
|
|
1032
|
+
const select$b = function CdpDataGraphOutputRepresentationSelect() {
|
|
1033
1033
|
return {
|
|
1034
1034
|
kind: 'Fragment',
|
|
1035
1035
|
version: VERSION$3,
|
|
@@ -1355,19 +1355,19 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1355
1355
|
});
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
1358
|
-
function select$
|
|
1359
|
-
return select$
|
|
1358
|
+
function select$a(luvio, params) {
|
|
1359
|
+
return select$b();
|
|
1360
1360
|
}
|
|
1361
|
-
function getResponseCacheKeys$
|
|
1361
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1362
1362
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1363
1363
|
}
|
|
1364
|
-
function ingestSuccess$
|
|
1364
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
1365
1365
|
const { body } = response;
|
|
1366
1366
|
const key = keyBuilderFromType$3(luvio, body);
|
|
1367
1367
|
luvio.storeIngest(key, ingest$3, body);
|
|
1368
1368
|
const snapshot = luvio.storeLookup({
|
|
1369
1369
|
recordId: key,
|
|
1370
|
-
node: select$
|
|
1370
|
+
node: select$a(),
|
|
1371
1371
|
variables: {},
|
|
1372
1372
|
});
|
|
1373
1373
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1378,7 +1378,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
1378
1378
|
deepFreeze(snapshot.data);
|
|
1379
1379
|
return snapshot;
|
|
1380
1380
|
}
|
|
1381
|
-
function createResourceRequest$
|
|
1381
|
+
function createResourceRequest$8(config) {
|
|
1382
1382
|
const headers = {};
|
|
1383
1383
|
return {
|
|
1384
1384
|
baseUri: '/services/data/v68.0',
|
|
@@ -1392,7 +1392,7 @@ function createResourceRequest$7(config) {
|
|
|
1392
1392
|
};
|
|
1393
1393
|
}
|
|
1394
1394
|
|
|
1395
|
-
const adapterName$
|
|
1395
|
+
const adapterName$8 = 'createDataGraph';
|
|
1396
1396
|
const createDataGraph_ConfigPropertyMetadata = [
|
|
1397
1397
|
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1398
1398
|
generateParamConfigMetadata('dataKitName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1414,11 +1414,11 @@ const createDataGraph_ConfigPropertyMetadata = [
|
|
|
1414
1414
|
generateParamConfigMetadata('fullRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1415
1415
|
generateParamConfigMetadata('incrementalRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1416
1416
|
];
|
|
1417
|
-
const createDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1418
|
-
const createResourceParams$
|
|
1419
|
-
function typeCheckConfig$
|
|
1417
|
+
const createDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createDataGraph_ConfigPropertyMetadata);
|
|
1418
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(createDataGraph_ConfigPropertyMetadata);
|
|
1419
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
1420
1420
|
const config = {};
|
|
1421
|
-
typeCheckConfig$
|
|
1421
|
+
typeCheckConfig$9(untrustedConfig, config, createDataGraph_ConfigPropertyMetadata);
|
|
1422
1422
|
const untrustedConfig_sourceObject = untrustedConfig.sourceObject;
|
|
1423
1423
|
config.sourceObject = untrustedConfig_sourceObject;
|
|
1424
1424
|
const untrustedConfig_fullRefreshConfig = untrustedConfig.fullRefreshConfig;
|
|
@@ -1433,30 +1433,30 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
return config;
|
|
1435
1435
|
}
|
|
1436
|
-
function validateAdapterConfig$
|
|
1436
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
1437
1437
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1438
1438
|
return null;
|
|
1439
1439
|
}
|
|
1440
1440
|
if (process.env.NODE_ENV !== 'production') {
|
|
1441
1441
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1442
1442
|
}
|
|
1443
|
-
const config = typeCheckConfig$
|
|
1443
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
1444
1444
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1445
1445
|
return null;
|
|
1446
1446
|
}
|
|
1447
1447
|
return config;
|
|
1448
1448
|
}
|
|
1449
|
-
function buildNetworkSnapshot$
|
|
1450
|
-
const resourceParams = createResourceParams$
|
|
1451
|
-
const request = createResourceRequest$
|
|
1449
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
1450
|
+
const resourceParams = createResourceParams$8(config);
|
|
1451
|
+
const request = createResourceRequest$8(resourceParams);
|
|
1452
1452
|
return luvio.dispatchResourceRequest(request, options)
|
|
1453
1453
|
.then((response) => {
|
|
1454
1454
|
return luvio.handleSuccessResponse(() => {
|
|
1455
|
-
const snapshot = ingestSuccess$
|
|
1455
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
1456
1456
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1457
1457
|
}, () => {
|
|
1458
1458
|
const cache = new StoreKeyMap();
|
|
1459
|
-
getResponseCacheKeys$
|
|
1459
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
1460
1460
|
return cache;
|
|
1461
1461
|
});
|
|
1462
1462
|
}, (response) => {
|
|
@@ -1466,12 +1466,12 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
const createDataGraphAdapterFactory = (luvio) => {
|
|
1468
1468
|
return function createDataGraph(untrustedConfig) {
|
|
1469
|
-
const config = validateAdapterConfig$
|
|
1469
|
+
const config = validateAdapterConfig$8(untrustedConfig, createDataGraph_ConfigPropertyNames);
|
|
1470
1470
|
// Invalid or incomplete config
|
|
1471
1471
|
if (config === null) {
|
|
1472
1472
|
throw new Error('Invalid config for "createDataGraph"');
|
|
1473
1473
|
}
|
|
1474
|
-
return buildNetworkSnapshot$
|
|
1474
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
1475
1475
|
};
|
|
1476
1476
|
};
|
|
1477
1477
|
|
|
@@ -1480,7 +1480,7 @@ function keyBuilder$9(luvio, params) {
|
|
|
1480
1480
|
name: params.urlParams.dataGraphName
|
|
1481
1481
|
});
|
|
1482
1482
|
}
|
|
1483
|
-
function getResponseCacheKeys$
|
|
1483
|
+
function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
|
|
1484
1484
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
1485
1485
|
cacheKeyMap.set(key, {
|
|
1486
1486
|
namespace: keyPrefix,
|
|
@@ -1492,7 +1492,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
1492
1492
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
1493
1493
|
luvio.storeEvict(key);
|
|
1494
1494
|
}
|
|
1495
|
-
function createResourceRequest$
|
|
1495
|
+
function createResourceRequest$7(config) {
|
|
1496
1496
|
const headers = {};
|
|
1497
1497
|
return {
|
|
1498
1498
|
baseUri: '/services/data/v68.0',
|
|
@@ -1506,15 +1506,136 @@ function createResourceRequest$6(config) {
|
|
|
1506
1506
|
};
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
|
-
const adapterName$
|
|
1509
|
+
const adapterName$7 = 'deleteDataGraph';
|
|
1510
1510
|
const deleteDataGraph_ConfigPropertyMetadata = [
|
|
1511
1511
|
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1512
1512
|
];
|
|
1513
|
-
const deleteDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1514
|
-
const createResourceParams$
|
|
1513
|
+
const deleteDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteDataGraph_ConfigPropertyMetadata);
|
|
1514
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(deleteDataGraph_ConfigPropertyMetadata);
|
|
1515
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
1516
|
+
const config = {};
|
|
1517
|
+
typeCheckConfig$9(untrustedConfig, config, deleteDataGraph_ConfigPropertyMetadata);
|
|
1518
|
+
return config;
|
|
1519
|
+
}
|
|
1520
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
1521
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1522
|
+
return null;
|
|
1523
|
+
}
|
|
1524
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1525
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1526
|
+
}
|
|
1527
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
1528
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1529
|
+
return null;
|
|
1530
|
+
}
|
|
1531
|
+
return config;
|
|
1532
|
+
}
|
|
1533
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
1534
|
+
const resourceParams = createResourceParams$7(config);
|
|
1535
|
+
const request = createResourceRequest$7(resourceParams);
|
|
1536
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1537
|
+
.then(() => {
|
|
1538
|
+
return luvio.handleSuccessResponse(() => {
|
|
1539
|
+
evictSuccess(luvio, resourceParams);
|
|
1540
|
+
return luvio.storeBroadcast();
|
|
1541
|
+
}, () => {
|
|
1542
|
+
const cache = new StoreKeyMap();
|
|
1543
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams);
|
|
1544
|
+
return cache;
|
|
1545
|
+
});
|
|
1546
|
+
}, (response) => {
|
|
1547
|
+
deepFreeze(response);
|
|
1548
|
+
throw response;
|
|
1549
|
+
});
|
|
1550
|
+
}
|
|
1551
|
+
const deleteDataGraphAdapterFactory = (luvio) => {
|
|
1552
|
+
return function CDPdeleteDataGraph(untrustedConfig) {
|
|
1553
|
+
const config = validateAdapterConfig$7(untrustedConfig, deleteDataGraph_ConfigPropertyNames);
|
|
1554
|
+
// Invalid or incomplete config
|
|
1555
|
+
if (config === null) {
|
|
1556
|
+
throw new Error(`Invalid config for "${adapterName$7}"`);
|
|
1557
|
+
}
|
|
1558
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
1559
|
+
};
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1562
|
+
function select$9(luvio, params) {
|
|
1563
|
+
return select$b();
|
|
1564
|
+
}
|
|
1565
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
1566
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1567
|
+
}
|
|
1568
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
1569
|
+
const { body } = response;
|
|
1570
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
1571
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
1572
|
+
const snapshot = luvio.storeLookup({
|
|
1573
|
+
recordId: key,
|
|
1574
|
+
node: select$9(),
|
|
1575
|
+
variables: {},
|
|
1576
|
+
});
|
|
1577
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1578
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1579
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
deepFreeze(snapshot.data);
|
|
1583
|
+
return snapshot;
|
|
1584
|
+
}
|
|
1585
|
+
function createResourceRequest$6(config) {
|
|
1586
|
+
const headers = {};
|
|
1587
|
+
return {
|
|
1588
|
+
baseUri: '/services/data/v68.0',
|
|
1589
|
+
basePath: '/ssot/data-graphs',
|
|
1590
|
+
method: 'put',
|
|
1591
|
+
body: config.body,
|
|
1592
|
+
urlParams: {},
|
|
1593
|
+
queryParams: config.queryParams,
|
|
1594
|
+
headers,
|
|
1595
|
+
priority: 'normal',
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
const adapterName$6 = 'editDataGraph';
|
|
1600
|
+
const editDataGraph_ConfigPropertyMetadata = [
|
|
1601
|
+
generateParamConfigMetadata('editScheduleOnly', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1602
|
+
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1603
|
+
generateParamConfigMetadata('dataKitName', false, 2 /* Body */, 0 /* String */),
|
|
1604
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1605
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
1606
|
+
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
1607
|
+
generateParamConfigMetadata('primaryObjectName', true, 2 /* Body */, 0 /* String */),
|
|
1608
|
+
generateParamConfigMetadata('sourceObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1609
|
+
generateParamConfigMetadata('templateName', false, 2 /* Body */, 0 /* String */),
|
|
1610
|
+
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
1611
|
+
generateParamConfigMetadata('isRecordCachingDisabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
1612
|
+
generateParamConfigMetadata('isRealTimeToggleEnabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
1613
|
+
generateParamConfigMetadata('processIngestionApi', false, 2 /* Body */, 1 /* Boolean */),
|
|
1614
|
+
generateParamConfigMetadata('processSalesforceCrm', false, 2 /* Body */, 1 /* Boolean */),
|
|
1615
|
+
generateParamConfigMetadata('cacheDurationInDays', false, 2 /* Body */, 3 /* Integer */),
|
|
1616
|
+
generateParamConfigMetadata('maxRecordsCached', false, 2 /* Body */, 3 /* Integer */),
|
|
1617
|
+
generateParamConfigMetadata('sessionEnd', false, 2 /* Body */, 3 /* Integer */),
|
|
1618
|
+
generateParamConfigMetadata('sessionEndTimeUnit', false, 2 /* Body */, 0 /* String */),
|
|
1619
|
+
generateParamConfigMetadata('fullRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1620
|
+
generateParamConfigMetadata('incrementalRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1621
|
+
];
|
|
1622
|
+
const editDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, editDataGraph_ConfigPropertyMetadata);
|
|
1623
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(editDataGraph_ConfigPropertyMetadata);
|
|
1515
1624
|
function typeCheckConfig$6(untrustedConfig) {
|
|
1516
1625
|
const config = {};
|
|
1517
|
-
typeCheckConfig$
|
|
1626
|
+
typeCheckConfig$9(untrustedConfig, config, editDataGraph_ConfigPropertyMetadata);
|
|
1627
|
+
const untrustedConfig_sourceObject = untrustedConfig.sourceObject;
|
|
1628
|
+
config.sourceObject = untrustedConfig_sourceObject;
|
|
1629
|
+
const untrustedConfig_fullRefreshConfig = untrustedConfig.fullRefreshConfig;
|
|
1630
|
+
const referenceDataGraphFullRefreshConfigInputRepresentationValidationError = validate$h(untrustedConfig_fullRefreshConfig);
|
|
1631
|
+
if (referenceDataGraphFullRefreshConfigInputRepresentationValidationError === null) {
|
|
1632
|
+
config.fullRefreshConfig = untrustedConfig_fullRefreshConfig;
|
|
1633
|
+
}
|
|
1634
|
+
const untrustedConfig_incrementalRefreshConfig = untrustedConfig.incrementalRefreshConfig;
|
|
1635
|
+
const referenceDataGraphIncrementalRefreshConfigInputRepresentationValidationError = validate$g(untrustedConfig_incrementalRefreshConfig);
|
|
1636
|
+
if (referenceDataGraphIncrementalRefreshConfigInputRepresentationValidationError === null) {
|
|
1637
|
+
config.incrementalRefreshConfig = untrustedConfig_incrementalRefreshConfig;
|
|
1638
|
+
}
|
|
1518
1639
|
return config;
|
|
1519
1640
|
}
|
|
1520
1641
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -1534,13 +1655,13 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
1534
1655
|
const resourceParams = createResourceParams$6(config);
|
|
1535
1656
|
const request = createResourceRequest$6(resourceParams);
|
|
1536
1657
|
return luvio.dispatchResourceRequest(request, options)
|
|
1537
|
-
.then(() => {
|
|
1658
|
+
.then((response) => {
|
|
1538
1659
|
return luvio.handleSuccessResponse(() => {
|
|
1539
|
-
|
|
1540
|
-
return luvio.storeBroadcast();
|
|
1660
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
1661
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1541
1662
|
}, () => {
|
|
1542
1663
|
const cache = new StoreKeyMap();
|
|
1543
|
-
getResponseCacheKeys$6(cache, luvio, resourceParams);
|
|
1664
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
1544
1665
|
return cache;
|
|
1545
1666
|
});
|
|
1546
1667
|
}, (response) => {
|
|
@@ -1548,19 +1669,19 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
1548
1669
|
throw response;
|
|
1549
1670
|
});
|
|
1550
1671
|
}
|
|
1551
|
-
const
|
|
1552
|
-
return function
|
|
1553
|
-
const config = validateAdapterConfig$6(untrustedConfig,
|
|
1672
|
+
const editDataGraphAdapterFactory = (luvio) => {
|
|
1673
|
+
return function editDataGraph(untrustedConfig) {
|
|
1674
|
+
const config = validateAdapterConfig$6(untrustedConfig, editDataGraph_ConfigPropertyNames);
|
|
1554
1675
|
// Invalid or incomplete config
|
|
1555
1676
|
if (config === null) {
|
|
1556
|
-
throw new Error(
|
|
1677
|
+
throw new Error('Invalid config for "editDataGraph"');
|
|
1557
1678
|
}
|
|
1558
1679
|
return buildNetworkSnapshot$6(luvio, config);
|
|
1559
1680
|
};
|
|
1560
1681
|
};
|
|
1561
1682
|
|
|
1562
1683
|
function select$8(luvio, params) {
|
|
1563
|
-
return select$
|
|
1684
|
+
return select$b();
|
|
1564
1685
|
}
|
|
1565
1686
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1566
1687
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
@@ -1586,18 +1707,19 @@ function createResourceRequest$5(config) {
|
|
|
1586
1707
|
const headers = {};
|
|
1587
1708
|
return {
|
|
1588
1709
|
baseUri: '/services/data/v68.0',
|
|
1589
|
-
basePath: '/ssot/data-graphs',
|
|
1710
|
+
basePath: '/ssot/data-graphs/' + config.urlParams.dataGraphName + '',
|
|
1590
1711
|
method: 'put',
|
|
1591
1712
|
body: config.body,
|
|
1592
|
-
urlParams:
|
|
1713
|
+
urlParams: config.urlParams,
|
|
1593
1714
|
queryParams: config.queryParams,
|
|
1594
1715
|
headers,
|
|
1595
1716
|
priority: 'normal',
|
|
1596
1717
|
};
|
|
1597
1718
|
}
|
|
1598
1719
|
|
|
1599
|
-
const adapterName$5 = '
|
|
1600
|
-
const
|
|
1720
|
+
const adapterName$5 = 'editDataGraphByName';
|
|
1721
|
+
const editDataGraphByName_ConfigPropertyMetadata = [
|
|
1722
|
+
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1601
1723
|
generateParamConfigMetadata('editScheduleOnly', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1602
1724
|
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1603
1725
|
generateParamConfigMetadata('dataKitName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1619,11 +1741,11 @@ const editDataGraph_ConfigPropertyMetadata = [
|
|
|
1619
1741
|
generateParamConfigMetadata('fullRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1620
1742
|
generateParamConfigMetadata('incrementalRefreshConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1621
1743
|
];
|
|
1622
|
-
const
|
|
1623
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
1744
|
+
const editDataGraphByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, editDataGraphByName_ConfigPropertyMetadata);
|
|
1745
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(editDataGraphByName_ConfigPropertyMetadata);
|
|
1624
1746
|
function typeCheckConfig$5(untrustedConfig) {
|
|
1625
1747
|
const config = {};
|
|
1626
|
-
typeCheckConfig$
|
|
1748
|
+
typeCheckConfig$9(untrustedConfig, config, editDataGraphByName_ConfigPropertyMetadata);
|
|
1627
1749
|
const untrustedConfig_sourceObject = untrustedConfig.sourceObject;
|
|
1628
1750
|
config.sourceObject = untrustedConfig_sourceObject;
|
|
1629
1751
|
const untrustedConfig_fullRefreshConfig = untrustedConfig.fullRefreshConfig;
|
|
@@ -1669,19 +1791,19 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
1669
1791
|
throw response;
|
|
1670
1792
|
});
|
|
1671
1793
|
}
|
|
1672
|
-
const
|
|
1673
|
-
return function
|
|
1674
|
-
const config = validateAdapterConfig$5(untrustedConfig,
|
|
1794
|
+
const editDataGraphByNameAdapterFactory = (luvio) => {
|
|
1795
|
+
return function editDataGraphByName(untrustedConfig) {
|
|
1796
|
+
const config = validateAdapterConfig$5(untrustedConfig, editDataGraphByName_ConfigPropertyNames);
|
|
1675
1797
|
// Invalid or incomplete config
|
|
1676
1798
|
if (config === null) {
|
|
1677
|
-
throw new Error('Invalid config for "
|
|
1799
|
+
throw new Error('Invalid config for "editDataGraphByName"');
|
|
1678
1800
|
}
|
|
1679
1801
|
return buildNetworkSnapshot$5(luvio, config);
|
|
1680
1802
|
};
|
|
1681
1803
|
};
|
|
1682
1804
|
|
|
1683
1805
|
function select$7(luvio, params) {
|
|
1684
|
-
return select$
|
|
1806
|
+
return select$b();
|
|
1685
1807
|
}
|
|
1686
1808
|
function keyBuilder$8(luvio, params) {
|
|
1687
1809
|
return keyBuilder$a(luvio, {
|
|
@@ -1743,14 +1865,14 @@ const getDataGraph_ConfigPropertyMetadata = [
|
|
|
1743
1865
|
generateParamConfigMetadata('includeSegmentDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1744
1866
|
];
|
|
1745
1867
|
const getDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getDataGraph_ConfigPropertyMetadata);
|
|
1746
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
1868
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(getDataGraph_ConfigPropertyMetadata);
|
|
1747
1869
|
function keyBuilder$7(luvio, config) {
|
|
1748
1870
|
const resourceParams = createResourceParams$4(config);
|
|
1749
1871
|
return keyBuilder$8(luvio, resourceParams);
|
|
1750
1872
|
}
|
|
1751
1873
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1752
1874
|
const config = {};
|
|
1753
|
-
typeCheckConfig$
|
|
1875
|
+
typeCheckConfig$9(untrustedConfig, config, getDataGraph_ConfigPropertyMetadata);
|
|
1754
1876
|
return config;
|
|
1755
1877
|
}
|
|
1756
1878
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -1997,14 +2119,14 @@ const getDataGraphDependency_ConfigPropertyMetadata = [
|
|
|
1997
2119
|
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1998
2120
|
];
|
|
1999
2121
|
const getDataGraphDependency_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDataGraphDependency_ConfigPropertyMetadata);
|
|
2000
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
2122
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(getDataGraphDependency_ConfigPropertyMetadata);
|
|
2001
2123
|
function keyBuilder$4(luvio, config) {
|
|
2002
2124
|
const resourceParams = createResourceParams$3(config);
|
|
2003
2125
|
return keyBuilder$5(luvio, resourceParams);
|
|
2004
2126
|
}
|
|
2005
2127
|
function typeCheckConfig$3(untrustedConfig) {
|
|
2006
2128
|
const config = {};
|
|
2007
|
-
typeCheckConfig$
|
|
2129
|
+
typeCheckConfig$9(untrustedConfig, config, getDataGraphDependency_ConfigPropertyMetadata);
|
|
2008
2130
|
return config;
|
|
2009
2131
|
}
|
|
2010
2132
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -2233,14 +2355,14 @@ const getDataGraphDraft_ConfigPropertyMetadata = [
|
|
|
2233
2355
|
generateParamConfigMetadata('dataGraphName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2234
2356
|
];
|
|
2235
2357
|
const getDataGraphDraft_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataGraphDraft_ConfigPropertyMetadata);
|
|
2236
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
2358
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(getDataGraphDraft_ConfigPropertyMetadata);
|
|
2237
2359
|
function keyBuilder$1(luvio, config) {
|
|
2238
2360
|
const resourceParams = createResourceParams$2(config);
|
|
2239
2361
|
return keyBuilder$2(luvio, resourceParams);
|
|
2240
2362
|
}
|
|
2241
2363
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2242
2364
|
const config = {};
|
|
2243
|
-
typeCheckConfig$
|
|
2365
|
+
typeCheckConfig$9(untrustedConfig, config, getDataGraphDraft_ConfigPropertyMetadata);
|
|
2244
2366
|
return config;
|
|
2245
2367
|
}
|
|
2246
2368
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -2458,10 +2580,10 @@ const retryDataGraph_ConfigPropertyMetadata = [
|
|
|
2458
2580
|
generateParamConfigMetadata('dataGraphName', true, 2 /* Body */, 0 /* String */),
|
|
2459
2581
|
];
|
|
2460
2582
|
const retryDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, retryDataGraph_ConfigPropertyMetadata);
|
|
2461
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
2583
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(retryDataGraph_ConfigPropertyMetadata);
|
|
2462
2584
|
function typeCheckConfig$1(untrustedConfig) {
|
|
2463
2585
|
const config = {};
|
|
2464
|
-
typeCheckConfig$
|
|
2586
|
+
typeCheckConfig$9(untrustedConfig, config, retryDataGraph_ConfigPropertyMetadata);
|
|
2465
2587
|
return config;
|
|
2466
2588
|
}
|
|
2467
2589
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2549,10 +2671,10 @@ const saveDataGraphDraft_ConfigPropertyMetadata = [
|
|
|
2549
2671
|
generateParamConfigMetadata('jsonSchema', true, 2 /* Body */, 0 /* String */),
|
|
2550
2672
|
];
|
|
2551
2673
|
const saveDataGraphDraft_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, saveDataGraphDraft_ConfigPropertyMetadata);
|
|
2552
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2674
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$9(saveDataGraphDraft_ConfigPropertyMetadata);
|
|
2553
2675
|
function typeCheckConfig(untrustedConfig) {
|
|
2554
2676
|
const config = {};
|
|
2555
|
-
typeCheckConfig$
|
|
2677
|
+
typeCheckConfig$9(untrustedConfig, config, saveDataGraphDraft_ConfigPropertyMetadata);
|
|
2556
2678
|
return config;
|
|
2557
2679
|
}
|
|
2558
2680
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2600,6 +2722,7 @@ const saveDataGraphDraftAdapterFactory = (luvio) => {
|
|
|
2600
2722
|
let createDataGraph;
|
|
2601
2723
|
let deleteDataGraph;
|
|
2602
2724
|
let editDataGraph;
|
|
2725
|
+
let editDataGraphByName;
|
|
2603
2726
|
let getDataGraph;
|
|
2604
2727
|
let getDataGraphDependency;
|
|
2605
2728
|
let getDataGraphDependencyNotifyChange;
|
|
@@ -2627,8 +2750,9 @@ function bindExportsTo(luvio) {
|
|
|
2627
2750
|
}
|
|
2628
2751
|
return {
|
|
2629
2752
|
createDataGraph: unwrapSnapshotData(createDataGraphAdapterFactory),
|
|
2630
|
-
deleteDataGraph: createLDSAdapter(luvio, adapterName$
|
|
2753
|
+
deleteDataGraph: createLDSAdapter(luvio, adapterName$7, deleteDataGraphAdapterFactory),
|
|
2631
2754
|
editDataGraph: unwrapSnapshotData(editDataGraphAdapterFactory),
|
|
2755
|
+
editDataGraphByName: unwrapSnapshotData(editDataGraphByNameAdapterFactory),
|
|
2632
2756
|
getDataGraph: createWireAdapterConstructor(luvio, getDataGraph_ldsAdapter, getDataGraphMetadata),
|
|
2633
2757
|
getDataGraphDependency: createWireAdapterConstructor(luvio, getDataGraphDependency_ldsAdapter, getDataGraphDependencyMetadata),
|
|
2634
2758
|
getDataGraphDependencyNotifyChange: createLDSAdapter(luvio, 'getDataGraphDependencyNotifyChange', notifyChangeFactory$1),
|
|
@@ -2649,6 +2773,7 @@ withDefaultLuvio((luvio) => {
|
|
|
2649
2773
|
createDataGraph,
|
|
2650
2774
|
deleteDataGraph,
|
|
2651
2775
|
editDataGraph,
|
|
2776
|
+
editDataGraphByName,
|
|
2652
2777
|
getDataGraph,
|
|
2653
2778
|
getDataGraphDependency,
|
|
2654
2779
|
getDataGraphDependencyNotifyChange,
|
|
@@ -2663,5 +2788,5 @@ withDefaultLuvio((luvio) => {
|
|
|
2663
2788
|
} = bindExportsTo(luvio));
|
|
2664
2789
|
});
|
|
2665
2790
|
|
|
2666
|
-
export { createDataGraph, deleteDataGraph, editDataGraph, getDataGraph, getDataGraphDependency, getDataGraphDependencyNotifyChange, getDataGraphDependency_imperative, getDataGraphDraft, getDataGraphDraftNotifyChange, getDataGraphDraft_imperative, getDataGraphNotifyChange, getDataGraph_imperative, retryDataGraph, saveDataGraphDraft };
|
|
2667
|
-
// version: 1.451.0-
|
|
2791
|
+
export { createDataGraph, deleteDataGraph, editDataGraph, editDataGraphByName, getDataGraph, getDataGraphDependency, getDataGraphDependencyNotifyChange, getDataGraphDependency_imperative, getDataGraphDraft, getDataGraphDraftNotifyChange, getDataGraphDraft_imperative, getDataGraphNotifyChange, getDataGraph_imperative, retryDataGraph, saveDataGraphDraft };
|
|
2792
|
+
// version: 1.451.0-dev11-1934f1a3ff
|
package/src/raml/api.raml
CHANGED
|
@@ -768,6 +768,23 @@ types:
|
|
|
768
768
|
includeSegmentDetails:
|
|
769
769
|
type: boolean
|
|
770
770
|
required: false
|
|
771
|
+
put:
|
|
772
|
+
displayName: putCdpDataGraphByName
|
|
773
|
+
description: Edit Data Graph by name
|
|
774
|
+
responses:
|
|
775
|
+
'200':
|
|
776
|
+
description: Success
|
|
777
|
+
body:
|
|
778
|
+
application/json:
|
|
779
|
+
type: CdpDataGraphOutputRepresentation
|
|
780
|
+
queryParameters:
|
|
781
|
+
editScheduleOnly:
|
|
782
|
+
type: boolean
|
|
783
|
+
required: false
|
|
784
|
+
body:
|
|
785
|
+
application/json:
|
|
786
|
+
type: CdpDataGraphInputRepresentation
|
|
787
|
+
(oas-body-name): input
|
|
771
788
|
delete:
|
|
772
789
|
displayName: deleteCdpDataGraph
|
|
773
790
|
description: Delete Data Graph
|