@salesforce/lds-adapters-service-network-data-category 1.253.0 → 1.257.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/service-network-data-category.js +27 -6
- package/dist/es/es2018/types/src/generated/types/NetworkDataCategoryRepresentation.d.ts +1 -0
- package/dist/es/es2018/types/src/raml-artifacts/adapters/updateNetworkDataCategory/buildNetworkSnapshot.d.ts +3 -0
- package/package.json +15 -4
- package/sfdc/index.js +57 -36
- package/src/raml/luvio.raml +4 -0
|
@@ -413,18 +413,18 @@ function adapterFragment$5(luvio, config) {
|
|
|
413
413
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
414
414
|
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
415
415
|
config,
|
|
416
|
-
resolve: () => buildNetworkSnapshot$
|
|
416
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
417
417
|
});
|
|
418
418
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
419
419
|
}
|
|
420
420
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
421
421
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
422
422
|
config,
|
|
423
|
-
resolve: () => buildNetworkSnapshot$
|
|
423
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
424
424
|
});
|
|
425
425
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
426
426
|
}
|
|
427
|
-
function buildNetworkSnapshot$
|
|
427
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
428
428
|
const resourceParams = createResourceParams$7(config);
|
|
429
429
|
const request = createResourceRequest$7(resourceParams);
|
|
430
430
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -439,7 +439,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
441
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
442
|
-
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
442
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
443
443
|
}
|
|
444
444
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
445
445
|
const { luvio, config } = context;
|
|
@@ -450,7 +450,7 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
450
450
|
};
|
|
451
451
|
const cacheSnapshot = storeLookup(selector, {
|
|
452
452
|
config,
|
|
453
|
-
resolve: () => buildNetworkSnapshot$
|
|
453
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
454
454
|
});
|
|
455
455
|
return cacheSnapshot;
|
|
456
456
|
}
|
|
@@ -804,6 +804,20 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
804
804
|
mergeable: false
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
|
+
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
808
|
+
return function notifyNetworkDataCategoryRepresentationUpdateAvailable(configs) {
|
|
809
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
810
|
+
const requiredKeyParams = ['id'];
|
|
811
|
+
configs.forEach(config => {
|
|
812
|
+
if (false === requiredKeyParams.every(req => req in config)) {
|
|
813
|
+
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
814
|
+
}
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
const keys = configs.map(c => keyBuilder$c(luvio, c));
|
|
818
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
819
|
+
};
|
|
820
|
+
};
|
|
807
821
|
|
|
808
822
|
function select$c(luvio, params) {
|
|
809
823
|
return select$d();
|
|
@@ -842,6 +856,13 @@ function createResourceRequest$6(config) {
|
|
|
842
856
|
};
|
|
843
857
|
}
|
|
844
858
|
|
|
859
|
+
function buildNetworkSnapshot$8(luvio, config) {
|
|
860
|
+
return buildNetworkSnapshot$7(luvio, config).then((result) => {
|
|
861
|
+
notifyUpdateAvailableFactory$1(luvio)([{ id: config.networkDataCategoryId }]);
|
|
862
|
+
return result;
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
|
|
845
866
|
const adapterName$6 = 'updateNetworkDataCategory';
|
|
846
867
|
const updateNetworkDataCategory_ConfigPropertyMetadata = [
|
|
847
868
|
generateParamConfigMetadata('communityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
@@ -894,7 +915,7 @@ const updateNetworkDataCategoryAdapterFactory = (luvio) => {
|
|
|
894
915
|
if (config === null) {
|
|
895
916
|
throw new Error('Invalid config for "updateNetworkDataCategory"');
|
|
896
917
|
}
|
|
897
|
-
return buildNetworkSnapshot$
|
|
918
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
898
919
|
};
|
|
899
920
|
};
|
|
900
921
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Luvio } from '@luvio/engine';
|
|
2
|
+
import type { UpdateNetworkDataCategoryConfig } from '../../../generated/adapters/updateNetworkDataCategory';
|
|
3
|
+
export declare function buildNetworkSnapshot(luvio: Luvio, config: UpdateNetworkDataCategoryConfig): Promise<import("@luvio/engine").FulfilledSnapshot<import("../../../generated/types/NetworkDataCategoryRepresentation").NetworkDataCategoryRepresentation, {}> | import("@luvio/engine").StaleSnapshot<import("../../../generated/types/NetworkDataCategoryRepresentation").NetworkDataCategoryRepresentation, {}> | import("@luvio/engine").PendingSnapshot<import("../../../generated/types/NetworkDataCategoryRepresentation").NetworkDataCategoryRepresentation, any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-network-data-category",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.257.0",
|
|
4
4
|
"description": "Family that contains APIs pertaining to the NetworkDataCategory object",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-network-data-category.js",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test:compat": "nx build:karma && karma start --single-run --compat"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@salesforce/lds-bindings": "
|
|
46
|
+
"@salesforce/lds-bindings": "^1.257.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/lds-compiler-plugins": "
|
|
50
|
-
"@salesforce/lds-karma": "
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^1.257.0",
|
|
50
|
+
"@salesforce/lds-karma": "^1.257.0"
|
|
51
51
|
},
|
|
52
52
|
"nx": {
|
|
53
53
|
"targets": {
|
|
@@ -58,6 +58,17 @@
|
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
"build:raml": {
|
|
61
|
+
"inputs": [
|
|
62
|
+
{
|
|
63
|
+
"externalDependencies": [
|
|
64
|
+
"@luvio/compiler",
|
|
65
|
+
"@luvio/cli"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"{projectRoot}/**/*.raml",
|
|
69
|
+
"{projectRoot}/scripts/**",
|
|
70
|
+
"{projectRoot}/src/sfdc-module.json"
|
|
71
|
+
],
|
|
61
72
|
"outputs": [
|
|
62
73
|
"{projectRoot}/src/generated"
|
|
63
74
|
]
|
package/sfdc/index.js
CHANGED
|
@@ -375,18 +375,18 @@ function adapterFragment$5(luvio, config) {
|
|
|
375
375
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
376
376
|
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
377
377
|
config,
|
|
378
|
-
resolve: () => buildNetworkSnapshot$
|
|
378
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
379
379
|
});
|
|
380
380
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
381
381
|
}
|
|
382
382
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
383
383
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
384
384
|
config,
|
|
385
|
-
resolve: () => buildNetworkSnapshot$
|
|
385
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
386
386
|
});
|
|
387
387
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
388
388
|
}
|
|
389
|
-
function buildNetworkSnapshot$
|
|
389
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
390
390
|
const resourceParams = createResourceParams$7(config);
|
|
391
391
|
const request = createResourceRequest$7(resourceParams);
|
|
392
392
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -401,7 +401,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
404
|
-
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
404
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
405
405
|
}
|
|
406
406
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
407
407
|
const { luvio, config } = context;
|
|
@@ -412,7 +412,7 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
412
412
|
};
|
|
413
413
|
const cacheSnapshot = storeLookup(selector, {
|
|
414
414
|
config,
|
|
415
|
-
resolve: () => buildNetworkSnapshot$
|
|
415
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
416
416
|
});
|
|
417
417
|
return cacheSnapshot;
|
|
418
418
|
}
|
|
@@ -766,6 +766,20 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
766
766
|
mergeable: false
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
|
+
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
770
|
+
return function notifyNetworkDataCategoryRepresentationUpdateAvailable(configs) {
|
|
771
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
772
|
+
const requiredKeyParams = ['id'];
|
|
773
|
+
configs.forEach(config => {
|
|
774
|
+
if (false === requiredKeyParams.every(req => req in config)) {
|
|
775
|
+
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
776
|
+
}
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
const keys = configs.map(c => keyBuilder$c(luvio, c));
|
|
780
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
781
|
+
};
|
|
782
|
+
};
|
|
769
783
|
|
|
770
784
|
const VERSION$5 = "a632e4b22d40a2cfc312f36451d5319a";
|
|
771
785
|
function validate$6(obj, path = 'NetworkDataCategoryCollectionRepresentation') {
|
|
@@ -949,18 +963,18 @@ function adapterFragment$4(luvio, config) {
|
|
|
949
963
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
950
964
|
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
951
965
|
config,
|
|
952
|
-
resolve: () => buildNetworkSnapshot$
|
|
966
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
953
967
|
});
|
|
954
968
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
955
969
|
}
|
|
956
970
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
957
971
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
958
972
|
config,
|
|
959
|
-
resolve: () => buildNetworkSnapshot$
|
|
973
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
960
974
|
});
|
|
961
975
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
962
976
|
}
|
|
963
|
-
function buildNetworkSnapshot$
|
|
977
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
964
978
|
const resourceParams = createResourceParams$6(config);
|
|
965
979
|
const request = createResourceRequest$6(resourceParams);
|
|
966
980
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -975,7 +989,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
975
989
|
});
|
|
976
990
|
}
|
|
977
991
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
978
|
-
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
992
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
979
993
|
}
|
|
980
994
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
981
995
|
const { luvio, config } = context;
|
|
@@ -986,7 +1000,7 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
986
1000
|
};
|
|
987
1001
|
const cacheSnapshot = storeLookup(selector, {
|
|
988
1002
|
config,
|
|
989
|
-
resolve: () => buildNetworkSnapshot$
|
|
1003
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
990
1004
|
});
|
|
991
1005
|
return cacheSnapshot;
|
|
992
1006
|
}
|
|
@@ -1311,18 +1325,18 @@ function adapterFragment$3(luvio, config) {
|
|
|
1311
1325
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
1312
1326
|
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
1313
1327
|
config,
|
|
1314
|
-
resolve: () => buildNetworkSnapshot$
|
|
1328
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1315
1329
|
});
|
|
1316
1330
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1317
1331
|
}
|
|
1318
1332
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
1319
1333
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
1320
1334
|
config,
|
|
1321
|
-
resolve: () => buildNetworkSnapshot$
|
|
1335
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1322
1336
|
});
|
|
1323
1337
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1324
1338
|
}
|
|
1325
|
-
function buildNetworkSnapshot$
|
|
1339
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
1326
1340
|
const resourceParams = createResourceParams$5(config);
|
|
1327
1341
|
const request = createResourceRequest$5(resourceParams);
|
|
1328
1342
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -1337,7 +1351,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
1337
1351
|
});
|
|
1338
1352
|
}
|
|
1339
1353
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1340
|
-
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1354
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
1341
1355
|
}
|
|
1342
1356
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1343
1357
|
const { luvio, config } = context;
|
|
@@ -1348,7 +1362,7 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
1348
1362
|
};
|
|
1349
1363
|
const cacheSnapshot = storeLookup(selector, {
|
|
1350
1364
|
config,
|
|
1351
|
-
resolve: () => buildNetworkSnapshot$
|
|
1365
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1352
1366
|
});
|
|
1353
1367
|
return cacheSnapshot;
|
|
1354
1368
|
}
|
|
@@ -1474,18 +1488,18 @@ function adapterFragment$2(luvio, config) {
|
|
|
1474
1488
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1475
1489
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
1476
1490
|
config,
|
|
1477
|
-
resolve: () => buildNetworkSnapshot$
|
|
1491
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1478
1492
|
});
|
|
1479
1493
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1480
1494
|
}
|
|
1481
1495
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
1482
1496
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
1483
1497
|
config,
|
|
1484
|
-
resolve: () => buildNetworkSnapshot$
|
|
1498
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1485
1499
|
});
|
|
1486
1500
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1487
1501
|
}
|
|
1488
|
-
function buildNetworkSnapshot$
|
|
1502
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
1489
1503
|
const resourceParams = createResourceParams$4(config);
|
|
1490
1504
|
const request = createResourceRequest$4(resourceParams);
|
|
1491
1505
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -1500,7 +1514,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
1500
1514
|
});
|
|
1501
1515
|
}
|
|
1502
1516
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1503
|
-
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1517
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
1504
1518
|
}
|
|
1505
1519
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1506
1520
|
const { luvio, config } = context;
|
|
@@ -1511,7 +1525,7 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
1511
1525
|
};
|
|
1512
1526
|
const cacheSnapshot = storeLookup(selector, {
|
|
1513
1527
|
config,
|
|
1514
|
-
resolve: () => buildNetworkSnapshot$
|
|
1528
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1515
1529
|
});
|
|
1516
1530
|
return cacheSnapshot;
|
|
1517
1531
|
}
|
|
@@ -1845,18 +1859,18 @@ function adapterFragment$1(luvio, config) {
|
|
|
1845
1859
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1846
1860
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
1847
1861
|
config,
|
|
1848
|
-
resolve: () => buildNetworkSnapshot$
|
|
1862
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
1849
1863
|
});
|
|
1850
1864
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1851
1865
|
}
|
|
1852
1866
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1853
1867
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1854
1868
|
config,
|
|
1855
|
-
resolve: () => buildNetworkSnapshot$
|
|
1869
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
1856
1870
|
});
|
|
1857
1871
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1858
1872
|
}
|
|
1859
|
-
function buildNetworkSnapshot$
|
|
1873
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
1860
1874
|
const resourceParams = createResourceParams$3(config);
|
|
1861
1875
|
const request = createResourceRequest$3(resourceParams);
|
|
1862
1876
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -1871,7 +1885,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1871
1885
|
});
|
|
1872
1886
|
}
|
|
1873
1887
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1874
|
-
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1888
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
1875
1889
|
}
|
|
1876
1890
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1877
1891
|
const { luvio, config } = context;
|
|
@@ -1882,7 +1896,7 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
1882
1896
|
};
|
|
1883
1897
|
const cacheSnapshot = storeLookup(selector, {
|
|
1884
1898
|
config,
|
|
1885
|
-
resolve: () => buildNetworkSnapshot$
|
|
1899
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
1886
1900
|
});
|
|
1887
1901
|
return cacheSnapshot;
|
|
1888
1902
|
}
|
|
@@ -1982,18 +1996,18 @@ function adapterFragment(luvio, config) {
|
|
|
1982
1996
|
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
1983
1997
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
1984
1998
|
config,
|
|
1985
|
-
resolve: () => buildNetworkSnapshot$
|
|
1999
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1986
2000
|
});
|
|
1987
2001
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1988
2002
|
}
|
|
1989
2003
|
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
1990
2004
|
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
1991
2005
|
config,
|
|
1992
|
-
resolve: () => buildNetworkSnapshot$
|
|
2006
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1993
2007
|
});
|
|
1994
2008
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1995
2009
|
}
|
|
1996
|
-
function buildNetworkSnapshot$
|
|
2010
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1997
2011
|
const resourceParams = createResourceParams$2(config);
|
|
1998
2012
|
const request = createResourceRequest$2(resourceParams);
|
|
1999
2013
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -2008,7 +2022,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
2008
2022
|
});
|
|
2009
2023
|
}
|
|
2010
2024
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2011
|
-
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2025
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
2012
2026
|
}
|
|
2013
2027
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2014
2028
|
const { luvio, config } = context;
|
|
@@ -2019,7 +2033,7 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
2019
2033
|
};
|
|
2020
2034
|
const cacheSnapshot = storeLookup(selector, {
|
|
2021
2035
|
config,
|
|
2022
|
-
resolve: () => buildNetworkSnapshot$
|
|
2036
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
2023
2037
|
});
|
|
2024
2038
|
return cacheSnapshot;
|
|
2025
2039
|
}
|
|
@@ -2154,8 +2168,8 @@ function ingestSuccess$1(luvio, resourceParams, _response) {
|
|
|
2154
2168
|
return snapshot;
|
|
2155
2169
|
}
|
|
2156
2170
|
|
|
2157
|
-
function buildNetworkSnapshot$
|
|
2158
|
-
return buildNetworkSnapshot$
|
|
2171
|
+
function buildNetworkSnapshot$3(luvio, config) {
|
|
2172
|
+
return buildNetworkSnapshot$2(luvio, config).then((result) => {
|
|
2159
2173
|
notifyUpdateAvailableFactory(luvio)([{ communityId: config.communityId }]);
|
|
2160
2174
|
return result;
|
|
2161
2175
|
});
|
|
@@ -2191,7 +2205,7 @@ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
|
2191
2205
|
}
|
|
2192
2206
|
return config;
|
|
2193
2207
|
}
|
|
2194
|
-
function buildNetworkSnapshot$
|
|
2208
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
2195
2209
|
const resourceParams = createResourceParams$1(config);
|
|
2196
2210
|
const request = createResourceRequest$1(resourceParams);
|
|
2197
2211
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -2216,7 +2230,7 @@ const updateNetworkDataCategoriesAdapterFactory = (luvio) => {
|
|
|
2216
2230
|
if (config === null) {
|
|
2217
2231
|
throw new Error('Invalid config for "updateNetworkDataCategories"');
|
|
2218
2232
|
}
|
|
2219
|
-
return buildNetworkSnapshot$
|
|
2233
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
2220
2234
|
};
|
|
2221
2235
|
};
|
|
2222
2236
|
|
|
@@ -2257,6 +2271,13 @@ function createResourceRequest(config) {
|
|
|
2257
2271
|
};
|
|
2258
2272
|
}
|
|
2259
2273
|
|
|
2274
|
+
function buildNetworkSnapshot$1(luvio, config) {
|
|
2275
|
+
return buildNetworkSnapshot(luvio, config).then((result) => {
|
|
2276
|
+
notifyUpdateAvailableFactory$1(luvio)([{ id: config.networkDataCategoryId }]);
|
|
2277
|
+
return result;
|
|
2278
|
+
});
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2260
2281
|
const adapterName = 'updateNetworkDataCategory';
|
|
2261
2282
|
const updateNetworkDataCategory_ConfigPropertyMetadata = [
|
|
2262
2283
|
generateParamConfigMetadata('communityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
@@ -2309,7 +2330,7 @@ const updateNetworkDataCategoryAdapterFactory = (luvio) => {
|
|
|
2309
2330
|
if (config === null) {
|
|
2310
2331
|
throw new Error('Invalid config for "updateNetworkDataCategory"');
|
|
2311
2332
|
}
|
|
2312
|
-
return buildNetworkSnapshot(luvio, config);
|
|
2333
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
2313
2334
|
};
|
|
2314
2335
|
};
|
|
2315
2336
|
|
|
@@ -2388,4 +2409,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2388
2409
|
});
|
|
2389
2410
|
|
|
2390
2411
|
export { getArticlesForCategory, getArticlesForCategory_imperative, getChildCategories, getChildCategories_imperative, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getNetworkDataCategories_imperative, getParentNetworkDataCategoryPath, getParentNetworkDataCategoryPath_imperative, getServiceCatalogItems, getServiceCatalogItemsForCommunity, getServiceCatalogItemsForCommunity_imperative, getServiceCatalogItems_imperative, updateNetworkDataCategories, updateNetworkDataCategory };
|
|
2391
|
-
// version: 1.
|
|
2412
|
+
// version: 1.257.0-c494375b4
|
package/src/raml/luvio.raml
CHANGED
|
@@ -21,6 +21,10 @@ types:
|
|
|
21
21
|
NetworkDataCategoryRepresentation:
|
|
22
22
|
(luvio.key):
|
|
23
23
|
id: id
|
|
24
|
+
(luvio.updateAvailable):
|
|
25
|
+
name: notifyNetworkDataCategoryRepresentationUpdateAvailable
|
|
26
|
+
parameters:
|
|
27
|
+
id: id
|
|
24
28
|
|
|
25
29
|
/connect:
|
|
26
30
|
/network-data-category/{networkDataCategoryId}/catalog-item:
|