@salesforce/lds-adapters-platform-enablement 1.260.0 → 1.262.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/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/package.json +4 -5
- package/sfdc/index.d.ts +1 -1
- package/sfdc/index.js +89 -73
- package/dist/es/es2018/types/src/main.d.ts +0 -2
- package/dist/es/es2018/types/src/sfdc.d.ts +0 -3
|
@@ -5,3 +5,4 @@ export { getProgramSummaryCollectionAdapterFactory } from '../adapters/getProgra
|
|
|
5
5
|
export { getEnablementProgramSummaryAdapterFactory } from '../adapters/getEnablementProgramSummary';
|
|
6
6
|
export { selfEnrollInEnablementProgramAdapterFactory } from '../adapters/selfEnrollInEnablementProgram';
|
|
7
7
|
export { unenrollFromEnablementProgramAdapterFactory } from '../adapters/unenrollFromEnablementProgram';
|
|
8
|
+
export { notifyUpdateAvailableFactory as notifyEnablementProgramSummaryUpdateAvailableFactory } from '../types/EnablementProgramSummaryRepresentation';
|
|
@@ -10,4 +10,6 @@ declare let getAssignedEnablementProgramSummaryForCommunity_imperative: any;
|
|
|
10
10
|
declare let getEnablementProgramSummary_imperative: any;
|
|
11
11
|
declare let getProgramSummaryCollection_imperative: any;
|
|
12
12
|
declare let getProgramSummaryCollectionForCommunity_imperative: any;
|
|
13
|
-
|
|
13
|
+
declare let notifyEnablementProgramSummaryUpdateAvailable: any;
|
|
14
|
+
export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummaryForCommunity, getEnablementProgramSummary, getProgramSummaryCollection, getProgramSummaryCollectionForCommunity, selfEnrollInEnablementProgram, unenrollFromEnablementProgram, getAssignedEnablementProgramSummary_imperative, getAssignedEnablementProgramSummaryForCommunity_imperative, getEnablementProgramSummary_imperative, getProgramSummaryCollection_imperative, getProgramSummaryCollectionForCommunity_imperative, };
|
|
15
|
+
export { notifyEnablementProgramSummaryUpdateAvailable };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-enablement",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.262.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters for enablement APIs",
|
|
6
6
|
"main": "dist/es/es2018/platform-enablement.js",
|
|
@@ -41,15 +41,14 @@
|
|
|
41
41
|
"release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-platform-enablement",
|
|
42
42
|
"start": "nx build:karma && karma start",
|
|
43
43
|
"test": "nx build:karma && karma start --single-run",
|
|
44
|
-
"test:compat": "nx build:karma && karma start --single-run --compat",
|
|
45
44
|
"test:unit": "jest"
|
|
46
45
|
},
|
|
47
46
|
"dependencies": {
|
|
48
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.262.0"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
52
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.262.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.262.0"
|
|
53
52
|
},
|
|
54
53
|
"nx": {
|
|
55
54
|
"targets": {
|
package/sfdc/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../dist/es/es2018/types/src/sfdc';
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|
package/sfdc/index.js
CHANGED
|
@@ -1135,7 +1135,7 @@ function select$7(luvio, params) {
|
|
|
1135
1135
|
return select$8();
|
|
1136
1136
|
}
|
|
1137
1137
|
function keyBuilder$a(luvio, params) {
|
|
1138
|
-
return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + '
|
|
1138
|
+
return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
1139
1139
|
}
|
|
1140
1140
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
1141
1141
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
@@ -1167,32 +1167,31 @@ function createResourceRequest$6(config) {
|
|
|
1167
1167
|
const headers = {};
|
|
1168
1168
|
return {
|
|
1169
1169
|
baseUri: '/services/data/v60.0',
|
|
1170
|
-
basePath: '/connect/
|
|
1170
|
+
basePath: '/connect/enablement/program/summary/assigned',
|
|
1171
1171
|
method: 'get',
|
|
1172
1172
|
body: null,
|
|
1173
|
-
urlParams:
|
|
1173
|
+
urlParams: {},
|
|
1174
1174
|
queryParams: config.queryParams,
|
|
1175
1175
|
headers,
|
|
1176
1176
|
priority: 'normal',
|
|
1177
1177
|
};
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
|
-
const adapterName$6 = '
|
|
1181
|
-
const
|
|
1182
|
-
generateParamConfigMetadata('communityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1180
|
+
const adapterName$6 = 'getAssignedEnablementProgramSummary';
|
|
1181
|
+
const getAssignedEnablementProgramSummary_ConfigPropertyMetadata = [
|
|
1183
1182
|
generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1184
1183
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1185
1184
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1186
1185
|
];
|
|
1187
|
-
const
|
|
1188
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(
|
|
1186
|
+
const getAssignedEnablementProgramSummary_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAssignedEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1187
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getAssignedEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1189
1188
|
function keyBuilder$9(luvio, config) {
|
|
1190
1189
|
const resourceParams = createResourceParams$6(config);
|
|
1191
1190
|
return keyBuilder$a(luvio, resourceParams);
|
|
1192
1191
|
}
|
|
1193
1192
|
function typeCheckConfig$6(untrustedConfig) {
|
|
1194
1193
|
const config = {};
|
|
1195
|
-
typeCheckConfig$7(untrustedConfig, config,
|
|
1194
|
+
typeCheckConfig$7(untrustedConfig, config, getAssignedEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1196
1195
|
return config;
|
|
1197
1196
|
}
|
|
1198
1197
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -1256,8 +1255,8 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
1256
1255
|
});
|
|
1257
1256
|
return cacheSnapshot;
|
|
1258
1257
|
}
|
|
1259
|
-
const
|
|
1260
|
-
const config = validateAdapterConfig$6(untrustedConfig,
|
|
1258
|
+
const getAssignedEnablementProgramSummaryAdapterFactory = (luvio) => function enablement__getAssignedEnablementProgramSummary(untrustedConfig, requestContext) {
|
|
1259
|
+
const config = validateAdapterConfig$6(untrustedConfig, getAssignedEnablementProgramSummary_ConfigPropertyNames);
|
|
1261
1260
|
// Invalid or incomplete config
|
|
1262
1261
|
if (config === null) {
|
|
1263
1262
|
return null;
|
|
@@ -1302,7 +1301,7 @@ function createResourceRequest$5(config) {
|
|
|
1302
1301
|
const headers = {};
|
|
1303
1302
|
return {
|
|
1304
1303
|
baseUri: '/services/data/v60.0',
|
|
1305
|
-
basePath: '/connect/communities/' + config.urlParams.communityId + '/enablement/program/summary/
|
|
1304
|
+
basePath: '/connect/communities/' + config.urlParams.communityId + '/enablement/program/summary/assigned',
|
|
1306
1305
|
method: 'get',
|
|
1307
1306
|
body: null,
|
|
1308
1307
|
urlParams: config.urlParams,
|
|
@@ -1312,22 +1311,22 @@ function createResourceRequest$5(config) {
|
|
|
1312
1311
|
};
|
|
1313
1312
|
}
|
|
1314
1313
|
|
|
1315
|
-
const adapterName$5 = '
|
|
1316
|
-
const
|
|
1314
|
+
const adapterName$5 = 'getAssignedEnablementProgramSummaryForCommunity';
|
|
1315
|
+
const getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyMetadata = [
|
|
1317
1316
|
generateParamConfigMetadata('communityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1318
1317
|
generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1319
1318
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1320
1319
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1321
1320
|
];
|
|
1322
|
-
const
|
|
1323
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(
|
|
1321
|
+
const getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyMetadata);
|
|
1322
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyMetadata);
|
|
1324
1323
|
function keyBuilder$7(luvio, config) {
|
|
1325
1324
|
const resourceParams = createResourceParams$5(config);
|
|
1326
1325
|
return keyBuilder$8(luvio, resourceParams);
|
|
1327
1326
|
}
|
|
1328
1327
|
function typeCheckConfig$5(untrustedConfig) {
|
|
1329
1328
|
const config = {};
|
|
1330
|
-
typeCheckConfig$7(untrustedConfig, config,
|
|
1329
|
+
typeCheckConfig$7(untrustedConfig, config, getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyMetadata);
|
|
1331
1330
|
return config;
|
|
1332
1331
|
}
|
|
1333
1332
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -1391,8 +1390,8 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
1391
1390
|
});
|
|
1392
1391
|
return cacheSnapshot;
|
|
1393
1392
|
}
|
|
1394
|
-
const
|
|
1395
|
-
const config = validateAdapterConfig$5(untrustedConfig,
|
|
1393
|
+
const getAssignedEnablementProgramSummaryForCommunityAdapterFactory = (luvio) => function enablement__getAssignedEnablementProgramSummaryForCommunity(untrustedConfig, requestContext) {
|
|
1394
|
+
const config = validateAdapterConfig$5(untrustedConfig, getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyNames);
|
|
1396
1395
|
// Invalid or incomplete config
|
|
1397
1396
|
if (config === null) {
|
|
1398
1397
|
return null;
|
|
@@ -1402,18 +1401,20 @@ const getProgramSummaryCollectionForCommunityAdapterFactory = (luvio) => functio
|
|
|
1402
1401
|
};
|
|
1403
1402
|
|
|
1404
1403
|
function select$5(luvio, params) {
|
|
1405
|
-
return select$
|
|
1404
|
+
return select$9();
|
|
1406
1405
|
}
|
|
1407
1406
|
function keyBuilder$6(luvio, params) {
|
|
1408
|
-
return
|
|
1407
|
+
return keyBuilder$b(luvio, {
|
|
1408
|
+
enablement_program_id: params.urlParams.enablementProgramId
|
|
1409
|
+
});
|
|
1409
1410
|
}
|
|
1410
1411
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1411
|
-
getTypeCacheKeys$
|
|
1412
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
1412
1413
|
}
|
|
1413
1414
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
1414
1415
|
const { body } = response;
|
|
1415
1416
|
const key = keyBuilder$6(luvio, resourceParams);
|
|
1416
|
-
luvio.storeIngest(key, ingest$
|
|
1417
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1417
1418
|
const snapshot = luvio.storeLookup({
|
|
1418
1419
|
recordId: key,
|
|
1419
1420
|
node: select$5(),
|
|
@@ -1430,38 +1431,43 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1430
1431
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1431
1432
|
const key = keyBuilder$6(luvio, params);
|
|
1432
1433
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1433
|
-
|
|
1434
|
+
const storeMetadataParams = {
|
|
1435
|
+
ttl: TTL$1,
|
|
1436
|
+
namespace: keyPrefix,
|
|
1437
|
+
version: VERSION$2,
|
|
1438
|
+
representationName: RepresentationType$2
|
|
1439
|
+
};
|
|
1440
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1434
1441
|
return errorSnapshot;
|
|
1435
1442
|
}
|
|
1436
1443
|
function createResourceRequest$4(config) {
|
|
1437
1444
|
const headers = {};
|
|
1438
1445
|
return {
|
|
1439
1446
|
baseUri: '/services/data/v60.0',
|
|
1440
|
-
basePath: '/connect/enablement/program/summary/
|
|
1447
|
+
basePath: '/connect/enablement/program/summary/' + config.urlParams.enablementProgramId + '',
|
|
1441
1448
|
method: 'get',
|
|
1442
1449
|
body: null,
|
|
1443
|
-
urlParams:
|
|
1450
|
+
urlParams: config.urlParams,
|
|
1444
1451
|
queryParams: config.queryParams,
|
|
1445
1452
|
headers,
|
|
1446
1453
|
priority: 'normal',
|
|
1447
1454
|
};
|
|
1448
1455
|
}
|
|
1449
1456
|
|
|
1450
|
-
const adapterName$4 = '
|
|
1451
|
-
const
|
|
1452
|
-
generateParamConfigMetadata('
|
|
1453
|
-
generateParamConfigMetadata('
|
|
1454
|
-
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1457
|
+
const adapterName$4 = 'getEnablementProgramSummary';
|
|
1458
|
+
const getEnablementProgramSummary_ConfigPropertyMetadata = [
|
|
1459
|
+
generateParamConfigMetadata('enablementProgramId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1460
|
+
generateParamConfigMetadata('includeProgress', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1455
1461
|
];
|
|
1456
|
-
const
|
|
1457
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(
|
|
1462
|
+
const getEnablementProgramSummary_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1463
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1458
1464
|
function keyBuilder$5(luvio, config) {
|
|
1459
1465
|
const resourceParams = createResourceParams$4(config);
|
|
1460
1466
|
return keyBuilder$6(luvio, resourceParams);
|
|
1461
1467
|
}
|
|
1462
1468
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1463
1469
|
const config = {};
|
|
1464
|
-
typeCheckConfig$7(untrustedConfig, config,
|
|
1470
|
+
typeCheckConfig$7(untrustedConfig, config, getEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1465
1471
|
return config;
|
|
1466
1472
|
}
|
|
1467
1473
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -1525,8 +1531,8 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
1525
1531
|
});
|
|
1526
1532
|
return cacheSnapshot;
|
|
1527
1533
|
}
|
|
1528
|
-
const
|
|
1529
|
-
const config = validateAdapterConfig$4(untrustedConfig,
|
|
1534
|
+
const getEnablementProgramSummaryAdapterFactory = (luvio) => function enablement__getEnablementProgramSummary(untrustedConfig, requestContext) {
|
|
1535
|
+
const config = validateAdapterConfig$4(untrustedConfig, getEnablementProgramSummary_ConfigPropertyNames);
|
|
1530
1536
|
// Invalid or incomplete config
|
|
1531
1537
|
if (config === null) {
|
|
1532
1538
|
return null;
|
|
@@ -1670,20 +1676,18 @@ const getProgramSummaryCollectionAdapterFactory = (luvio) => function enablement
|
|
|
1670
1676
|
};
|
|
1671
1677
|
|
|
1672
1678
|
function select$3(luvio, params) {
|
|
1673
|
-
return select$
|
|
1679
|
+
return select$8();
|
|
1674
1680
|
}
|
|
1675
1681
|
function keyBuilder$2(luvio, params) {
|
|
1676
|
-
return
|
|
1677
|
-
enablement_program_id: params.urlParams.enablementProgramId
|
|
1678
|
-
});
|
|
1682
|
+
return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'communityId:' + params.urlParams.communityId + ')';
|
|
1679
1683
|
}
|
|
1680
1684
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1681
|
-
getTypeCacheKeys$
|
|
1685
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
1682
1686
|
}
|
|
1683
1687
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1684
1688
|
const { body } = response;
|
|
1685
1689
|
const key = keyBuilder$2(luvio, resourceParams);
|
|
1686
|
-
luvio.storeIngest(key, ingest$
|
|
1690
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1687
1691
|
const snapshot = luvio.storeLookup({
|
|
1688
1692
|
recordId: key,
|
|
1689
1693
|
node: select$3(),
|
|
@@ -1700,20 +1704,14 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1700
1704
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
1701
1705
|
const key = keyBuilder$2(luvio, params);
|
|
1702
1706
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1703
|
-
|
|
1704
|
-
ttl: TTL$1,
|
|
1705
|
-
namespace: keyPrefix,
|
|
1706
|
-
version: VERSION$2,
|
|
1707
|
-
representationName: RepresentationType$2
|
|
1708
|
-
};
|
|
1709
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1707
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
1710
1708
|
return errorSnapshot;
|
|
1711
1709
|
}
|
|
1712
1710
|
function createResourceRequest$2(config) {
|
|
1713
1711
|
const headers = {};
|
|
1714
1712
|
return {
|
|
1715
1713
|
baseUri: '/services/data/v60.0',
|
|
1716
|
-
basePath: '/connect/
|
|
1714
|
+
basePath: '/connect/communities/' + config.urlParams.communityId + '/enablement/program/summary/collection',
|
|
1717
1715
|
method: 'get',
|
|
1718
1716
|
body: null,
|
|
1719
1717
|
urlParams: config.urlParams,
|
|
@@ -1723,20 +1721,22 @@ function createResourceRequest$2(config) {
|
|
|
1723
1721
|
};
|
|
1724
1722
|
}
|
|
1725
1723
|
|
|
1726
|
-
const adapterName$2 = '
|
|
1727
|
-
const
|
|
1728
|
-
generateParamConfigMetadata('
|
|
1729
|
-
generateParamConfigMetadata('
|
|
1724
|
+
const adapterName$2 = 'getProgramSummaryCollectionForCommunity';
|
|
1725
|
+
const getProgramSummaryCollectionForCommunity_ConfigPropertyMetadata = [
|
|
1726
|
+
generateParamConfigMetadata('communityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1727
|
+
generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1728
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1729
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1730
1730
|
];
|
|
1731
|
-
const
|
|
1732
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(
|
|
1731
|
+
const getProgramSummaryCollectionForCommunity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getProgramSummaryCollectionForCommunity_ConfigPropertyMetadata);
|
|
1732
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getProgramSummaryCollectionForCommunity_ConfigPropertyMetadata);
|
|
1733
1733
|
function keyBuilder$1(luvio, config) {
|
|
1734
1734
|
const resourceParams = createResourceParams$2(config);
|
|
1735
1735
|
return keyBuilder$2(luvio, resourceParams);
|
|
1736
1736
|
}
|
|
1737
1737
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1738
1738
|
const config = {};
|
|
1739
|
-
typeCheckConfig$7(untrustedConfig, config,
|
|
1739
|
+
typeCheckConfig$7(untrustedConfig, config, getProgramSummaryCollectionForCommunity_ConfigPropertyMetadata);
|
|
1740
1740
|
return config;
|
|
1741
1741
|
}
|
|
1742
1742
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1800,8 +1800,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
1800
1800
|
});
|
|
1801
1801
|
return cacheSnapshot;
|
|
1802
1802
|
}
|
|
1803
|
-
const
|
|
1804
|
-
const config = validateAdapterConfig$2(untrustedConfig,
|
|
1803
|
+
const getProgramSummaryCollectionForCommunityAdapterFactory = (luvio) => function enablement__getProgramSummaryCollectionForCommunity(untrustedConfig, requestContext) {
|
|
1804
|
+
const config = validateAdapterConfig$2(untrustedConfig, getProgramSummaryCollectionForCommunity_ConfigPropertyNames);
|
|
1805
1805
|
// Invalid or incomplete config
|
|
1806
1806
|
if (config === null) {
|
|
1807
1807
|
return null;
|
|
@@ -2075,11 +2075,29 @@ let getEnablementProgramSummary_imperative;
|
|
|
2075
2075
|
let getProgramSummaryCollection_imperative;
|
|
2076
2076
|
let getProgramSummaryCollectionForCommunity_imperative;
|
|
2077
2077
|
// Adapter Metadata
|
|
2078
|
-
const getAssignedEnablementProgramSummaryMetadata = {
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
const
|
|
2078
|
+
const getAssignedEnablementProgramSummaryMetadata = {
|
|
2079
|
+
apiFamily: 'enablement',
|
|
2080
|
+
name: 'getAssignedEnablementProgramSummary',
|
|
2081
|
+
};
|
|
2082
|
+
const getAssignedEnablementProgramSummaryForCommunityMetadata = {
|
|
2083
|
+
apiFamily: 'enablement',
|
|
2084
|
+
name: 'getAssignedEnablementProgramSummaryForCommunity',
|
|
2085
|
+
};
|
|
2086
|
+
const getEnablementProgramSummaryMetadata = {
|
|
2087
|
+
apiFamily: 'enablement',
|
|
2088
|
+
name: 'getEnablementProgramSummary',
|
|
2089
|
+
ttl: 15000,
|
|
2090
|
+
};
|
|
2091
|
+
const getProgramSummaryCollectionMetadata = {
|
|
2092
|
+
apiFamily: 'enablement',
|
|
2093
|
+
name: 'getProgramSummaryCollection',
|
|
2094
|
+
};
|
|
2095
|
+
const getProgramSummaryCollectionForCommunityMetadata = {
|
|
2096
|
+
apiFamily: 'enablement',
|
|
2097
|
+
name: 'getProgramSummaryCollectionForCommunity',
|
|
2098
|
+
};
|
|
2099
|
+
// Notify Update Available
|
|
2100
|
+
let notifyEnablementProgramSummaryUpdateAvailable;
|
|
2083
2101
|
function bindExportsTo(luvio) {
|
|
2084
2102
|
// LDS Adapters
|
|
2085
2103
|
const getAssignedEnablementProgramSummary_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAssignedEnablementProgramSummary', getAssignedEnablementProgramSummaryAdapterFactory), getAssignedEnablementProgramSummaryMetadata);
|
|
@@ -2089,7 +2107,7 @@ function bindExportsTo(luvio) {
|
|
|
2089
2107
|
const getProgramSummaryCollectionForCommunity_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getProgramSummaryCollectionForCommunity', getProgramSummaryCollectionForCommunityAdapterFactory), getProgramSummaryCollectionForCommunityMetadata);
|
|
2090
2108
|
function unwrapSnapshotData(factory) {
|
|
2091
2109
|
const adapter = factory(luvio);
|
|
2092
|
-
return (config) => adapter(config).then(snapshot => snapshot.data);
|
|
2110
|
+
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
2093
2111
|
}
|
|
2094
2112
|
return {
|
|
2095
2113
|
getAssignedEnablementProgramSummary: createWireAdapterConstructor(luvio, getAssignedEnablementProgramSummary_ldsAdapter, getAssignedEnablementProgramSummaryMetadata),
|
|
@@ -2104,7 +2122,9 @@ function bindExportsTo(luvio) {
|
|
|
2104
2122
|
getAssignedEnablementProgramSummaryForCommunity_imperative: createImperativeAdapter(luvio, getAssignedEnablementProgramSummaryForCommunity_ldsAdapter, getAssignedEnablementProgramSummaryForCommunityMetadata),
|
|
2105
2123
|
getEnablementProgramSummary_imperative: createImperativeAdapter(luvio, getEnablementProgramSummary_ldsAdapter, getEnablementProgramSummaryMetadata),
|
|
2106
2124
|
getProgramSummaryCollection_imperative: createImperativeAdapter(luvio, getProgramSummaryCollection_ldsAdapter, getProgramSummaryCollectionMetadata),
|
|
2107
|
-
getProgramSummaryCollectionForCommunity_imperative: createImperativeAdapter(luvio, getProgramSummaryCollectionForCommunity_ldsAdapter, getProgramSummaryCollectionForCommunityMetadata)
|
|
2125
|
+
getProgramSummaryCollectionForCommunity_imperative: createImperativeAdapter(luvio, getProgramSummaryCollectionForCommunity_ldsAdapter, getProgramSummaryCollectionForCommunityMetadata),
|
|
2126
|
+
// Notify Update Availables
|
|
2127
|
+
notifyEnablementProgramSummaryUpdateAvailable: createLDSAdapter(luvio, 'notifyEnablementProgramSummaryUpdateAvailable', notifyUpdateAvailableFactory),
|
|
2108
2128
|
};
|
|
2109
2129
|
}
|
|
2110
2130
|
withDefaultLuvio((luvio) => {
|
|
@@ -2120,14 +2140,10 @@ withDefaultLuvio((luvio) => {
|
|
|
2120
2140
|
getAssignedEnablementProgramSummaryForCommunity_imperative,
|
|
2121
2141
|
getEnablementProgramSummary_imperative,
|
|
2122
2142
|
getProgramSummaryCollection_imperative,
|
|
2123
|
-
getProgramSummaryCollectionForCommunity_imperative
|
|
2143
|
+
getProgramSummaryCollectionForCommunity_imperative,
|
|
2144
|
+
notifyEnablementProgramSummaryUpdateAvailable,
|
|
2124
2145
|
} = bindExportsTo(luvio));
|
|
2125
2146
|
});
|
|
2126
2147
|
|
|
2127
|
-
let notifyEnablementProgramSummaryUpdateAvailable;
|
|
2128
|
-
withDefaultLuvio((luvio) => {
|
|
2129
|
-
notifyEnablementProgramSummaryUpdateAvailable = createLDSAdapter(luvio, 'notifyEnablementProgramSummaryUpdateAvailable', notifyUpdateAvailableFactory);
|
|
2130
|
-
});
|
|
2131
|
-
|
|
2132
2148
|
export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummaryForCommunity, getAssignedEnablementProgramSummaryForCommunity_imperative, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary, getEnablementProgramSummary_imperative, getProgramSummaryCollection, getProgramSummaryCollectionForCommunity, getProgramSummaryCollectionForCommunity_imperative, getProgramSummaryCollection_imperative, notifyEnablementProgramSummaryUpdateAvailable, selfEnrollInEnablementProgram, unenrollFromEnablementProgram };
|
|
2133
|
-
// version: 1.
|
|
2149
|
+
// version: 1.262.0-d3c071fdc
|