@salesforce/lds-adapters-service-network-data-category 1.263.0 → 1.265.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 +305 -319
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +1 -2
- package/dist/es/es2018/types/src/generated/types/NetworkDataCategoryRepresentation.d.ts +0 -1
- package/package.json +4 -4
- package/sfdc/index.js +3 -20
- package/src/raml/luvio.raml +0 -4
|
@@ -917,20 +917,6 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
917
917
|
mergeable: false
|
|
918
918
|
});
|
|
919
919
|
}
|
|
920
|
-
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
921
|
-
return function notifyNetworkDataCategoryRepresentationUpdateAvailable(configs) {
|
|
922
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
923
|
-
const requiredKeyParams = ['id'];
|
|
924
|
-
configs.forEach(config => {
|
|
925
|
-
if (false === requiredKeyParams.every(req => req in config)) {
|
|
926
|
-
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
927
|
-
}
|
|
928
|
-
});
|
|
929
|
-
}
|
|
930
|
-
const keys = configs.map(c => keyBuilder$c(luvio, c));
|
|
931
|
-
return luvio.notifyStoreUpdateAvailable(keys);
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
920
|
|
|
935
921
|
function select$c(luvio, params) {
|
|
936
922
|
return select$d();
|
|
@@ -969,9 +955,230 @@ function createResourceRequest$6(config) {
|
|
|
969
955
|
};
|
|
970
956
|
}
|
|
971
957
|
|
|
958
|
+
const VERSION$5 = "15c619f1c41ed55ac3d19e24eb94542b";
|
|
959
|
+
function validate$6(obj, path = 'NetworkDataCategoryGroupRepresentation') {
|
|
960
|
+
const v_error = (() => {
|
|
961
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
962
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
963
|
+
}
|
|
964
|
+
const obj_categoryGroupName = obj.categoryGroupName;
|
|
965
|
+
const path_categoryGroupName = path + '.categoryGroupName';
|
|
966
|
+
if (typeof obj_categoryGroupName !== 'string') {
|
|
967
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categoryGroupName + '" (at "' + path_categoryGroupName + '")');
|
|
968
|
+
}
|
|
969
|
+
const obj_rootCategory = obj.rootCategory;
|
|
970
|
+
const path_rootCategory = path + '.rootCategory';
|
|
971
|
+
if (typeof obj_rootCategory !== 'object') {
|
|
972
|
+
return new TypeError('Expected "object" but received "' + typeof obj_rootCategory + '" (at "' + path_rootCategory + '")');
|
|
973
|
+
}
|
|
974
|
+
})();
|
|
975
|
+
return v_error === undefined ? null : v_error;
|
|
976
|
+
}
|
|
977
|
+
const RepresentationType$4 = 'NetworkDataCategoryGroupRepresentation';
|
|
978
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
979
|
+
const input_rootCategory = input.rootCategory;
|
|
980
|
+
const input_rootCategory_id = path.fullPath + '__rootCategory';
|
|
981
|
+
input.rootCategory = ingest$5(input_rootCategory, {
|
|
982
|
+
fullPath: input_rootCategory_id,
|
|
983
|
+
propertyName: 'rootCategory',
|
|
984
|
+
parent: {
|
|
985
|
+
data: input,
|
|
986
|
+
key: path.fullPath,
|
|
987
|
+
existing: existing,
|
|
988
|
+
},
|
|
989
|
+
ttl: path.ttl
|
|
990
|
+
}, luvio, store, timestamp);
|
|
991
|
+
return input;
|
|
992
|
+
}
|
|
993
|
+
const select$b = function NetworkDataCategoryGroupRepresentationSelect() {
|
|
994
|
+
return {
|
|
995
|
+
kind: 'Fragment',
|
|
996
|
+
version: VERSION$5,
|
|
997
|
+
private: [],
|
|
998
|
+
selections: [
|
|
999
|
+
{
|
|
1000
|
+
name: 'categoryGroupName',
|
|
1001
|
+
kind: 'Scalar'
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
name: 'rootCategory',
|
|
1005
|
+
kind: 'Link',
|
|
1006
|
+
fragment: select$d()
|
|
1007
|
+
}
|
|
1008
|
+
]
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
function equals$5(existing, incoming) {
|
|
1012
|
+
const existing_categoryGroupName = existing.categoryGroupName;
|
|
1013
|
+
const incoming_categoryGroupName = incoming.categoryGroupName;
|
|
1014
|
+
if (!(existing_categoryGroupName === incoming_categoryGroupName)) {
|
|
1015
|
+
return false;
|
|
1016
|
+
}
|
|
1017
|
+
const existing_rootCategory = existing.rootCategory;
|
|
1018
|
+
const incoming_rootCategory = incoming.rootCategory;
|
|
1019
|
+
if (!(existing_rootCategory.__ref === incoming_rootCategory.__ref)) {
|
|
1020
|
+
return false;
|
|
1021
|
+
}
|
|
1022
|
+
return true;
|
|
1023
|
+
}
|
|
1024
|
+
const ingest$4 = function NetworkDataCategoryGroupRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1025
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1026
|
+
const validateError = validate$6(input);
|
|
1027
|
+
if (validateError !== null) {
|
|
1028
|
+
throw validateError;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
const key = path.fullPath;
|
|
1032
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 900000;
|
|
1033
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "NetworkDataCategory", VERSION$5, RepresentationType$4, equals$5);
|
|
1034
|
+
return createLink(key);
|
|
1035
|
+
};
|
|
1036
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
1037
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1038
|
+
const rootKey = fullPathFactory();
|
|
1039
|
+
rootKeySet.set(rootKey, {
|
|
1040
|
+
namespace: keyPrefix,
|
|
1041
|
+
representationName: RepresentationType$4,
|
|
1042
|
+
mergeable: false
|
|
1043
|
+
});
|
|
1044
|
+
getTypeCacheKeys$5(rootKeySet, luvio, input.rootCategory);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
const VERSION$4 = "5e66b8759100556a58fea2ff97dab767";
|
|
1048
|
+
function validate$5(obj, path = 'NetworkDataCategoryTreeRepresentation') {
|
|
1049
|
+
const v_error = (() => {
|
|
1050
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1051
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1052
|
+
}
|
|
1053
|
+
const obj_communityId = obj.communityId;
|
|
1054
|
+
const path_communityId = path + '.communityId';
|
|
1055
|
+
if (typeof obj_communityId !== 'string') {
|
|
1056
|
+
return new TypeError('Expected "string" but received "' + typeof obj_communityId + '" (at "' + path_communityId + '")');
|
|
1057
|
+
}
|
|
1058
|
+
const obj_dataCategoryGroups = obj.dataCategoryGroups;
|
|
1059
|
+
const path_dataCategoryGroups = path + '.dataCategoryGroups';
|
|
1060
|
+
if (!ArrayIsArray(obj_dataCategoryGroups)) {
|
|
1061
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataCategoryGroups + '" (at "' + path_dataCategoryGroups + '")');
|
|
1062
|
+
}
|
|
1063
|
+
for (let i = 0; i < obj_dataCategoryGroups.length; i++) {
|
|
1064
|
+
const obj_dataCategoryGroups_item = obj_dataCategoryGroups[i];
|
|
1065
|
+
const path_dataCategoryGroups_item = path_dataCategoryGroups + '[' + i + ']';
|
|
1066
|
+
if (typeof obj_dataCategoryGroups_item !== 'object') {
|
|
1067
|
+
return new TypeError('Expected "object" but received "' + typeof obj_dataCategoryGroups_item + '" (at "' + path_dataCategoryGroups_item + '")');
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
})();
|
|
1071
|
+
return v_error === undefined ? null : v_error;
|
|
1072
|
+
}
|
|
1073
|
+
const RepresentationType$3 = 'NetworkDataCategoryTreeRepresentation';
|
|
1074
|
+
function keyBuilder$b(luvio, config) {
|
|
1075
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.communityId;
|
|
1076
|
+
}
|
|
1077
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
1078
|
+
const keyParams = {
|
|
1079
|
+
communityId: object.communityId
|
|
1080
|
+
};
|
|
1081
|
+
return keyBuilder$b(luvio, keyParams);
|
|
1082
|
+
}
|
|
1083
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1084
|
+
const input_dataCategoryGroups = input.dataCategoryGroups;
|
|
1085
|
+
const input_dataCategoryGroups_id = path.fullPath + '__dataCategoryGroups';
|
|
1086
|
+
for (let i = 0; i < input_dataCategoryGroups.length; i++) {
|
|
1087
|
+
const input_dataCategoryGroups_item = input_dataCategoryGroups[i];
|
|
1088
|
+
let input_dataCategoryGroups_item_id = input_dataCategoryGroups_id + '__' + i;
|
|
1089
|
+
input_dataCategoryGroups[i] = ingest$4(input_dataCategoryGroups_item, {
|
|
1090
|
+
fullPath: input_dataCategoryGroups_item_id,
|
|
1091
|
+
propertyName: i,
|
|
1092
|
+
parent: {
|
|
1093
|
+
data: input,
|
|
1094
|
+
key: path.fullPath,
|
|
1095
|
+
existing: existing,
|
|
1096
|
+
},
|
|
1097
|
+
ttl: path.ttl
|
|
1098
|
+
}, luvio, store, timestamp);
|
|
1099
|
+
}
|
|
1100
|
+
return input;
|
|
1101
|
+
}
|
|
1102
|
+
const select$a = function NetworkDataCategoryTreeRepresentationSelect() {
|
|
1103
|
+
return {
|
|
1104
|
+
kind: 'Fragment',
|
|
1105
|
+
version: VERSION$4,
|
|
1106
|
+
private: [],
|
|
1107
|
+
selections: [
|
|
1108
|
+
{
|
|
1109
|
+
name: 'communityId',
|
|
1110
|
+
kind: 'Scalar'
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
name: 'dataCategoryGroups',
|
|
1114
|
+
kind: 'Link',
|
|
1115
|
+
plural: true,
|
|
1116
|
+
fragment: select$b()
|
|
1117
|
+
}
|
|
1118
|
+
]
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
function equals$4(existing, incoming) {
|
|
1122
|
+
const existing_communityId = existing.communityId;
|
|
1123
|
+
const incoming_communityId = incoming.communityId;
|
|
1124
|
+
if (!(existing_communityId === incoming_communityId)) {
|
|
1125
|
+
return false;
|
|
1126
|
+
}
|
|
1127
|
+
const existing_dataCategoryGroups = existing.dataCategoryGroups;
|
|
1128
|
+
const incoming_dataCategoryGroups = incoming.dataCategoryGroups;
|
|
1129
|
+
const equals_dataCategoryGroups_items = equalsArray(existing_dataCategoryGroups, incoming_dataCategoryGroups, (existing_dataCategoryGroups_item, incoming_dataCategoryGroups_item) => {
|
|
1130
|
+
if (!(existing_dataCategoryGroups_item.__ref === incoming_dataCategoryGroups_item.__ref)) {
|
|
1131
|
+
return false;
|
|
1132
|
+
}
|
|
1133
|
+
});
|
|
1134
|
+
if (equals_dataCategoryGroups_items === false) {
|
|
1135
|
+
return false;
|
|
1136
|
+
}
|
|
1137
|
+
return true;
|
|
1138
|
+
}
|
|
1139
|
+
const ingest$3 = function NetworkDataCategoryTreeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1140
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1141
|
+
const validateError = validate$5(input);
|
|
1142
|
+
if (validateError !== null) {
|
|
1143
|
+
throw validateError;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
1147
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 900000;
|
|
1148
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "NetworkDataCategory", VERSION$4, RepresentationType$3, equals$4);
|
|
1149
|
+
return createLink(key);
|
|
1150
|
+
};
|
|
1151
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
1152
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1153
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
1154
|
+
rootKeySet.set(rootKey, {
|
|
1155
|
+
namespace: keyPrefix,
|
|
1156
|
+
representationName: RepresentationType$3,
|
|
1157
|
+
mergeable: false
|
|
1158
|
+
});
|
|
1159
|
+
const input_dataCategoryGroups_length = input.dataCategoryGroups.length;
|
|
1160
|
+
for (let i = 0; i < input_dataCategoryGroups_length; i++) {
|
|
1161
|
+
getTypeCacheKeys$4(rootKeySet, luvio, input.dataCategoryGroups[i], () => '');
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
1165
|
+
return function notifyNetworkDataCategoryTreeRepresentationUpdateAvailable(configs) {
|
|
1166
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1167
|
+
const requiredKeyParams = ['communityId'];
|
|
1168
|
+
configs.forEach(config => {
|
|
1169
|
+
if (false === requiredKeyParams.every(req => req in config)) {
|
|
1170
|
+
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
const keys = configs.map(c => keyBuilder$b(luvio, c));
|
|
1175
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
1176
|
+
};
|
|
1177
|
+
};
|
|
1178
|
+
|
|
972
1179
|
function buildNetworkSnapshot$8(luvio, config) {
|
|
973
1180
|
return buildNetworkSnapshot$7(luvio, config).then((result) => {
|
|
974
|
-
notifyUpdateAvailableFactory
|
|
1181
|
+
notifyUpdateAvailableFactory(luvio)([{ communityId: config.communityId }]);
|
|
975
1182
|
return result;
|
|
976
1183
|
});
|
|
977
1184
|
}
|
|
@@ -1032,22 +1239,22 @@ const updateNetworkDataCategoryAdapterFactory = (luvio) => {
|
|
|
1032
1239
|
};
|
|
1033
1240
|
};
|
|
1034
1241
|
|
|
1035
|
-
function select$
|
|
1242
|
+
function select$9(luvio, params) {
|
|
1036
1243
|
return select$f();
|
|
1037
1244
|
}
|
|
1038
|
-
function keyBuilder$
|
|
1245
|
+
function keyBuilder$a(luvio, params) {
|
|
1039
1246
|
return keyPrefix + '::ServiceCatalogItemCollectionRepresentation:(' + 'pageSize:' + params.queryParams.pageSize + ',' + 'pageNumber:' + params.queryParams.pageNumber + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'sortedBy:' + params.queryParams.sortedBy + ',' + 'networkDataCategoryId:' + params.urlParams.networkDataCategoryId + ',' + 'communityId:' + params.urlParams.communityId + ')';
|
|
1040
1247
|
}
|
|
1041
1248
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1042
|
-
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$
|
|
1249
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
1043
1250
|
}
|
|
1044
1251
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
1045
1252
|
const { body } = response;
|
|
1046
|
-
const key = keyBuilder$
|
|
1253
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
1047
1254
|
luvio.storeIngest(key, ingest$6, body);
|
|
1048
1255
|
const snapshot = luvio.storeLookup({
|
|
1049
1256
|
recordId: key,
|
|
1050
|
-
node: select$
|
|
1257
|
+
node: select$9(),
|
|
1051
1258
|
variables: {},
|
|
1052
1259
|
}, snapshotRefresh);
|
|
1053
1260
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1059,7 +1266,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1059
1266
|
return snapshot;
|
|
1060
1267
|
}
|
|
1061
1268
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
1062
|
-
const key = keyBuilder$
|
|
1269
|
+
const key = keyBuilder$a(luvio, params);
|
|
1063
1270
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1064
1271
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1065
1272
|
return errorSnapshot;
|
|
@@ -1089,9 +1296,9 @@ const getServiceCatalogItemsForCommunity_ConfigPropertyMetadata = [
|
|
|
1089
1296
|
];
|
|
1090
1297
|
const getServiceCatalogItemsForCommunity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getServiceCatalogItemsForCommunity_ConfigPropertyMetadata);
|
|
1091
1298
|
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getServiceCatalogItemsForCommunity_ConfigPropertyMetadata);
|
|
1092
|
-
function keyBuilder$
|
|
1299
|
+
function keyBuilder$9(luvio, config) {
|
|
1093
1300
|
const resourceParams = createResourceParams$5(config);
|
|
1094
|
-
return keyBuilder$
|
|
1301
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
1095
1302
|
}
|
|
1096
1303
|
function typeCheckConfig$5(untrustedConfig) {
|
|
1097
1304
|
const config = {};
|
|
@@ -1113,7 +1320,7 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
|
1113
1320
|
}
|
|
1114
1321
|
function adapterFragment$4(luvio, config) {
|
|
1115
1322
|
createResourceParams$5(config);
|
|
1116
|
-
return select$
|
|
1323
|
+
return select$9();
|
|
1117
1324
|
}
|
|
1118
1325
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
1119
1326
|
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
@@ -1149,7 +1356,7 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
|
|
|
1149
1356
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
1150
1357
|
const { luvio, config } = context;
|
|
1151
1358
|
const selector = {
|
|
1152
|
-
recordId: keyBuilder$
|
|
1359
|
+
recordId: keyBuilder$9(luvio, config),
|
|
1153
1360
|
node: adapterFragment$4(luvio, config),
|
|
1154
1361
|
variables: {},
|
|
1155
1362
|
};
|
|
@@ -1169,8 +1376,8 @@ const getServiceCatalogItemsForCommunityAdapterFactory = (luvio) => function Net
|
|
|
1169
1376
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
1170
1377
|
};
|
|
1171
1378
|
|
|
1172
|
-
const VERSION$
|
|
1173
|
-
function validate$
|
|
1379
|
+
const VERSION$3 = "1579429bf94d94aa9fe7ba4906607811";
|
|
1380
|
+
function validate$4(obj, path = 'LightningKnowledgeArticleVersionRepresentation') {
|
|
1174
1381
|
const v_error = (() => {
|
|
1175
1382
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1176
1383
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1231,10 +1438,10 @@ function validate$6(obj, path = 'LightningKnowledgeArticleVersionRepresentation'
|
|
|
1231
1438
|
})();
|
|
1232
1439
|
return v_error === undefined ? null : v_error;
|
|
1233
1440
|
}
|
|
1234
|
-
const select$
|
|
1441
|
+
const select$8 = function LightningKnowledgeArticleVersionRepresentationSelect() {
|
|
1235
1442
|
return {
|
|
1236
1443
|
kind: 'Fragment',
|
|
1237
|
-
version: VERSION$
|
|
1444
|
+
version: VERSION$3,
|
|
1238
1445
|
private: [],
|
|
1239
1446
|
selections: [
|
|
1240
1447
|
{
|
|
@@ -1265,7 +1472,7 @@ const select$a = function LightningKnowledgeArticleVersionRepresentationSelect()
|
|
|
1265
1472
|
]
|
|
1266
1473
|
};
|
|
1267
1474
|
};
|
|
1268
|
-
function equals$
|
|
1475
|
+
function equals$3(existing, incoming) {
|
|
1269
1476
|
const existing_id = existing.id;
|
|
1270
1477
|
const incoming_id = incoming.id;
|
|
1271
1478
|
if (!(existing_id === incoming_id)) {
|
|
@@ -1307,8 +1514,8 @@ function equals$5(existing, incoming) {
|
|
|
1307
1514
|
return true;
|
|
1308
1515
|
}
|
|
1309
1516
|
|
|
1310
|
-
const VERSION$
|
|
1311
|
-
function validate$
|
|
1517
|
+
const VERSION$2 = "6e0f7ad284b0bacd2260182b92f0e398";
|
|
1518
|
+
function validate$3(obj, path = 'LightningKnowledgeArticleVersionCollectionRepresentation') {
|
|
1312
1519
|
const v_error = (() => {
|
|
1313
1520
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1314
1521
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1349,7 +1556,7 @@ function validate$5(obj, path = 'LightningKnowledgeArticleVersionCollectionRepre
|
|
|
1349
1556
|
for (let i = 0; i < obj_items.length; i++) {
|
|
1350
1557
|
const obj_items_item = obj_items[i];
|
|
1351
1558
|
const path_items_item = path_items + '[' + i + ']';
|
|
1352
|
-
const referencepath_items_itemValidationError = validate$
|
|
1559
|
+
const referencepath_items_itemValidationError = validate$4(obj_items_item, path_items_item);
|
|
1353
1560
|
if (referencepath_items_itemValidationError !== null) {
|
|
1354
1561
|
let message = 'Object doesn\'t match LightningKnowledgeArticleVersionRepresentation (at "' + path_items_item + '")\n';
|
|
1355
1562
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1359,15 +1566,15 @@ function validate$5(obj, path = 'LightningKnowledgeArticleVersionCollectionRepre
|
|
|
1359
1566
|
})();
|
|
1360
1567
|
return v_error === undefined ? null : v_error;
|
|
1361
1568
|
}
|
|
1362
|
-
const RepresentationType$
|
|
1363
|
-
function normalize$
|
|
1569
|
+
const RepresentationType$2 = 'LightningKnowledgeArticleVersionCollectionRepresentation';
|
|
1570
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1364
1571
|
return input;
|
|
1365
1572
|
}
|
|
1366
|
-
const select$
|
|
1367
|
-
const { selections: LightningKnowledgeArticleVersionRepresentation__selections, opaque: LightningKnowledgeArticleVersionRepresentation__opaque, } = select$
|
|
1573
|
+
const select$7 = function LightningKnowledgeArticleVersionCollectionRepresentationSelect() {
|
|
1574
|
+
const { selections: LightningKnowledgeArticleVersionRepresentation__selections, opaque: LightningKnowledgeArticleVersionRepresentation__opaque, } = select$8();
|
|
1368
1575
|
return {
|
|
1369
1576
|
kind: 'Fragment',
|
|
1370
|
-
version: VERSION$
|
|
1577
|
+
version: VERSION$2,
|
|
1371
1578
|
private: [],
|
|
1372
1579
|
selections: [
|
|
1373
1580
|
{
|
|
@@ -1384,7 +1591,7 @@ const select$9 = function LightningKnowledgeArticleVersionCollectionRepresentati
|
|
|
1384
1591
|
]
|
|
1385
1592
|
};
|
|
1386
1593
|
};
|
|
1387
|
-
function equals$
|
|
1594
|
+
function equals$2(existing, incoming) {
|
|
1388
1595
|
const existing_baseUrl = existing.baseUrl;
|
|
1389
1596
|
const incoming_baseUrl = incoming.baseUrl;
|
|
1390
1597
|
// if at least one of these optionals is defined
|
|
@@ -1401,7 +1608,7 @@ function equals$4(existing, incoming) {
|
|
|
1401
1608
|
const existing_items = existing.items;
|
|
1402
1609
|
const incoming_items = incoming.items;
|
|
1403
1610
|
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
1404
|
-
if (!(equals$
|
|
1611
|
+
if (!(equals$3(existing_items_item, incoming_items_item))) {
|
|
1405
1612
|
return false;
|
|
1406
1613
|
}
|
|
1407
1614
|
});
|
|
@@ -1410,44 +1617,44 @@ function equals$4(existing, incoming) {
|
|
|
1410
1617
|
}
|
|
1411
1618
|
return true;
|
|
1412
1619
|
}
|
|
1413
|
-
const ingest$
|
|
1620
|
+
const ingest$2 = function LightningKnowledgeArticleVersionCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1414
1621
|
if (process.env.NODE_ENV !== 'production') {
|
|
1415
|
-
const validateError = validate$
|
|
1622
|
+
const validateError = validate$3(input);
|
|
1416
1623
|
if (validateError !== null) {
|
|
1417
1624
|
throw validateError;
|
|
1418
1625
|
}
|
|
1419
1626
|
}
|
|
1420
1627
|
const key = path.fullPath;
|
|
1421
1628
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 900000;
|
|
1422
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1629
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "NetworkDataCategory", VERSION$2, RepresentationType$2, equals$2);
|
|
1423
1630
|
return createLink(key);
|
|
1424
1631
|
};
|
|
1425
|
-
function getTypeCacheKeys$
|
|
1632
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
1426
1633
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1427
1634
|
const rootKey = fullPathFactory();
|
|
1428
1635
|
rootKeySet.set(rootKey, {
|
|
1429
1636
|
namespace: keyPrefix,
|
|
1430
|
-
representationName: RepresentationType$
|
|
1637
|
+
representationName: RepresentationType$2,
|
|
1431
1638
|
mergeable: false
|
|
1432
1639
|
});
|
|
1433
1640
|
}
|
|
1434
1641
|
|
|
1435
|
-
function select$
|
|
1436
|
-
return select$
|
|
1642
|
+
function select$6(luvio, params) {
|
|
1643
|
+
return select$7();
|
|
1437
1644
|
}
|
|
1438
|
-
function keyBuilder$
|
|
1645
|
+
function keyBuilder$8(luvio, params) {
|
|
1439
1646
|
return keyPrefix + '::LightningKnowledgeArticleVersionCollectionRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'pageNumber:' + params.queryParams.pageNumber + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'sortedBy:' + params.queryParams.sortedBy + ',' + 'networkDataCategoryId:' + params.urlParams.networkDataCategoryId + ',' + 'communityId:' + params.urlParams.communityId + ')';
|
|
1440
1647
|
}
|
|
1441
1648
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1442
|
-
getTypeCacheKeys$
|
|
1649
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
1443
1650
|
}
|
|
1444
1651
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
1445
1652
|
const { body } = response;
|
|
1446
|
-
const key = keyBuilder$
|
|
1447
|
-
luvio.storeIngest(key, ingest$
|
|
1653
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
1654
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1448
1655
|
const snapshot = luvio.storeLookup({
|
|
1449
1656
|
recordId: key,
|
|
1450
|
-
node: select$
|
|
1657
|
+
node: select$6(),
|
|
1451
1658
|
variables: {},
|
|
1452
1659
|
}, snapshotRefresh);
|
|
1453
1660
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1459,7 +1666,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1459
1666
|
return snapshot;
|
|
1460
1667
|
}
|
|
1461
1668
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
1462
|
-
const key = keyBuilder$
|
|
1669
|
+
const key = keyBuilder$8(luvio, params);
|
|
1463
1670
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1464
1671
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1465
1672
|
return errorSnapshot;
|
|
@@ -1490,9 +1697,9 @@ const getArticlesForCategory_ConfigPropertyMetadata = [
|
|
|
1490
1697
|
];
|
|
1491
1698
|
const getArticlesForCategory_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getArticlesForCategory_ConfigPropertyMetadata);
|
|
1492
1699
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getArticlesForCategory_ConfigPropertyMetadata);
|
|
1493
|
-
function keyBuilder$
|
|
1700
|
+
function keyBuilder$7(luvio, config) {
|
|
1494
1701
|
const resourceParams = createResourceParams$4(config);
|
|
1495
|
-
return keyBuilder$
|
|
1702
|
+
return keyBuilder$8(luvio, resourceParams);
|
|
1496
1703
|
}
|
|
1497
1704
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1498
1705
|
const config = {};
|
|
@@ -1514,7 +1721,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
1514
1721
|
}
|
|
1515
1722
|
function adapterFragment$3(luvio, config) {
|
|
1516
1723
|
createResourceParams$4(config);
|
|
1517
|
-
return select$
|
|
1724
|
+
return select$6();
|
|
1518
1725
|
}
|
|
1519
1726
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
1520
1727
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
@@ -1550,7 +1757,7 @@ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext
|
|
|
1550
1757
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1551
1758
|
const { luvio, config } = context;
|
|
1552
1759
|
const selector = {
|
|
1553
|
-
recordId: keyBuilder$
|
|
1760
|
+
recordId: keyBuilder$7(luvio, config),
|
|
1554
1761
|
node: adapterFragment$3(luvio, config),
|
|
1555
1762
|
variables: {},
|
|
1556
1763
|
};
|
|
@@ -1570,8 +1777,8 @@ const getArticlesForCategoryAdapterFactory = (luvio) => function NetworkDataCate
|
|
|
1570
1777
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1571
1778
|
};
|
|
1572
1779
|
|
|
1573
|
-
const VERSION$
|
|
1574
|
-
function validate$
|
|
1780
|
+
const VERSION$1 = "55e759666b11e19f41045930d9ac0dd6";
|
|
1781
|
+
function validate$2(obj, path = 'NetworkDataCategoryCollectionRepresentation') {
|
|
1575
1782
|
const v_error = (() => {
|
|
1576
1783
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1577
1784
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1619,8 +1826,8 @@ function validate$4(obj, path = 'NetworkDataCategoryCollectionRepresentation') {
|
|
|
1619
1826
|
})();
|
|
1620
1827
|
return v_error === undefined ? null : v_error;
|
|
1621
1828
|
}
|
|
1622
|
-
const RepresentationType$
|
|
1623
|
-
function normalize$
|
|
1829
|
+
const RepresentationType$1 = 'NetworkDataCategoryCollectionRepresentation';
|
|
1830
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1624
1831
|
const input_networkDataCategories = input.networkDataCategories;
|
|
1625
1832
|
const input_networkDataCategories_id = path.fullPath + '__networkDataCategories';
|
|
1626
1833
|
for (let i = 0; i < input_networkDataCategories.length; i++) {
|
|
@@ -1639,10 +1846,10 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
1639
1846
|
}
|
|
1640
1847
|
return input;
|
|
1641
1848
|
}
|
|
1642
|
-
const select$
|
|
1849
|
+
const select$5 = function NetworkDataCategoryCollectionRepresentationSelect() {
|
|
1643
1850
|
return {
|
|
1644
1851
|
kind: 'Fragment',
|
|
1645
|
-
version: VERSION$
|
|
1852
|
+
version: VERSION$1,
|
|
1646
1853
|
private: [],
|
|
1647
1854
|
selections: [
|
|
1648
1855
|
{
|
|
@@ -1659,7 +1866,7 @@ const select$7 = function NetworkDataCategoryCollectionRepresentationSelect() {
|
|
|
1659
1866
|
]
|
|
1660
1867
|
};
|
|
1661
1868
|
};
|
|
1662
|
-
function equals$
|
|
1869
|
+
function equals$1(existing, incoming) {
|
|
1663
1870
|
const existing_baseUrl = existing.baseUrl;
|
|
1664
1871
|
const incoming_baseUrl = incoming.baseUrl;
|
|
1665
1872
|
// if at least one of these optionals is defined
|
|
@@ -1685,24 +1892,24 @@ function equals$3(existing, incoming) {
|
|
|
1685
1892
|
}
|
|
1686
1893
|
return true;
|
|
1687
1894
|
}
|
|
1688
|
-
const ingest$
|
|
1895
|
+
const ingest$1 = function NetworkDataCategoryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1689
1896
|
if (process.env.NODE_ENV !== 'production') {
|
|
1690
|
-
const validateError = validate$
|
|
1897
|
+
const validateError = validate$2(input);
|
|
1691
1898
|
if (validateError !== null) {
|
|
1692
1899
|
throw validateError;
|
|
1693
1900
|
}
|
|
1694
1901
|
}
|
|
1695
1902
|
const key = path.fullPath;
|
|
1696
1903
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 900000;
|
|
1697
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1904
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "NetworkDataCategory", VERSION$1, RepresentationType$1, equals$1);
|
|
1698
1905
|
return createLink(key);
|
|
1699
1906
|
};
|
|
1700
|
-
function getTypeCacheKeys$
|
|
1907
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1701
1908
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1702
1909
|
const rootKey = fullPathFactory();
|
|
1703
1910
|
rootKeySet.set(rootKey, {
|
|
1704
1911
|
namespace: keyPrefix,
|
|
1705
|
-
representationName: RepresentationType$
|
|
1912
|
+
representationName: RepresentationType$1,
|
|
1706
1913
|
mergeable: false
|
|
1707
1914
|
});
|
|
1708
1915
|
const input_networkDataCategories_length = input.networkDataCategories.length;
|
|
@@ -1711,22 +1918,22 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1711
1918
|
}
|
|
1712
1919
|
}
|
|
1713
1920
|
|
|
1714
|
-
function select$
|
|
1715
|
-
return select$
|
|
1921
|
+
function select$4(luvio, params) {
|
|
1922
|
+
return select$5();
|
|
1716
1923
|
}
|
|
1717
|
-
function keyBuilder$
|
|
1924
|
+
function keyBuilder$6(luvio, params) {
|
|
1718
1925
|
return keyPrefix + '::NetworkDataCategoryCollectionRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'communityId:' + params.urlParams.communityId + ',' + 'networkDataCategoryId:' + params.urlParams.networkDataCategoryId + ')';
|
|
1719
1926
|
}
|
|
1720
1927
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1721
|
-
getTypeCacheKeys$
|
|
1928
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
1722
1929
|
}
|
|
1723
1930
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
1724
1931
|
const { body } = response;
|
|
1725
|
-
const key = keyBuilder$
|
|
1726
|
-
luvio.storeIngest(key, ingest$
|
|
1932
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
1933
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1727
1934
|
const snapshot = luvio.storeLookup({
|
|
1728
1935
|
recordId: key,
|
|
1729
|
-
node: select$
|
|
1936
|
+
node: select$4(),
|
|
1730
1937
|
variables: {},
|
|
1731
1938
|
}, snapshotRefresh);
|
|
1732
1939
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1738,7 +1945,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1738
1945
|
return snapshot;
|
|
1739
1946
|
}
|
|
1740
1947
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1741
|
-
const key = keyBuilder$
|
|
1948
|
+
const key = keyBuilder$6(luvio, params);
|
|
1742
1949
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1743
1950
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1744
1951
|
return errorSnapshot;
|
|
@@ -1765,9 +1972,9 @@ const getParentNetworkDataCategoryPath_ConfigPropertyMetadata = [
|
|
|
1765
1972
|
];
|
|
1766
1973
|
const getParentNetworkDataCategoryPath_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getParentNetworkDataCategoryPath_ConfigPropertyMetadata);
|
|
1767
1974
|
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(getParentNetworkDataCategoryPath_ConfigPropertyMetadata);
|
|
1768
|
-
function keyBuilder$
|
|
1975
|
+
function keyBuilder$5(luvio, config) {
|
|
1769
1976
|
const resourceParams = createResourceParams$3(config);
|
|
1770
|
-
return keyBuilder$
|
|
1977
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
1771
1978
|
}
|
|
1772
1979
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1773
1980
|
const config = {};
|
|
@@ -1789,7 +1996,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
|
1789
1996
|
}
|
|
1790
1997
|
function adapterFragment$2(luvio, config) {
|
|
1791
1998
|
createResourceParams$3(config);
|
|
1792
|
-
return select$
|
|
1999
|
+
return select$4();
|
|
1793
2000
|
}
|
|
1794
2001
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1795
2002
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
@@ -1825,7 +2032,7 @@ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext
|
|
|
1825
2032
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1826
2033
|
const { luvio, config } = context;
|
|
1827
2034
|
const selector = {
|
|
1828
|
-
recordId: keyBuilder$
|
|
2035
|
+
recordId: keyBuilder$5(luvio, config),
|
|
1829
2036
|
node: adapterFragment$2(luvio, config),
|
|
1830
2037
|
variables: {},
|
|
1831
2038
|
};
|
|
@@ -1845,22 +2052,22 @@ const getParentNetworkDataCategoryPathAdapterFactory = (luvio) => function Netwo
|
|
|
1845
2052
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1846
2053
|
};
|
|
1847
2054
|
|
|
1848
|
-
function select$
|
|
1849
|
-
return select$
|
|
2055
|
+
function select$3(luvio, params) {
|
|
2056
|
+
return select$5();
|
|
1850
2057
|
}
|
|
1851
|
-
function keyBuilder$
|
|
2058
|
+
function keyBuilder$4(luvio, params) {
|
|
1852
2059
|
return keyPrefix + '::NetworkDataCategoryCollectionRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'pageNumber:' + params.queryParams.pageNumber + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'sortedBy:' + params.queryParams.sortedBy + ',' + 'communityId:' + params.urlParams.communityId + ',' + 'networkDataCategoryId:' + params.urlParams.networkDataCategoryId + ')';
|
|
1853
2060
|
}
|
|
1854
2061
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1855
|
-
getTypeCacheKeys$
|
|
2062
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
|
|
1856
2063
|
}
|
|
1857
2064
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1858
2065
|
const { body } = response;
|
|
1859
|
-
const key = keyBuilder$
|
|
1860
|
-
luvio.storeIngest(key, ingest$
|
|
2066
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
2067
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1861
2068
|
const snapshot = luvio.storeLookup({
|
|
1862
2069
|
recordId: key,
|
|
1863
|
-
node: select$
|
|
2070
|
+
node: select$3(),
|
|
1864
2071
|
variables: {},
|
|
1865
2072
|
}, snapshotRefresh);
|
|
1866
2073
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1872,7 +2079,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1872
2079
|
return snapshot;
|
|
1873
2080
|
}
|
|
1874
2081
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
1875
|
-
const key = keyBuilder$
|
|
2082
|
+
const key = keyBuilder$4(luvio, params);
|
|
1876
2083
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1877
2084
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1878
2085
|
return errorSnapshot;
|
|
@@ -1903,9 +2110,9 @@ const getChildCategories_ConfigPropertyMetadata = [
|
|
|
1903
2110
|
];
|
|
1904
2111
|
const getChildCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getChildCategories_ConfigPropertyMetadata);
|
|
1905
2112
|
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(getChildCategories_ConfigPropertyMetadata);
|
|
1906
|
-
function keyBuilder$
|
|
2113
|
+
function keyBuilder$3(luvio, config) {
|
|
1907
2114
|
const resourceParams = createResourceParams$2(config);
|
|
1908
|
-
return keyBuilder$
|
|
2115
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
1909
2116
|
}
|
|
1910
2117
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1911
2118
|
const config = {};
|
|
@@ -1927,7 +2134,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
1927
2134
|
}
|
|
1928
2135
|
function adapterFragment$1(luvio, config) {
|
|
1929
2136
|
createResourceParams$2(config);
|
|
1930
|
-
return select$
|
|
2137
|
+
return select$3();
|
|
1931
2138
|
}
|
|
1932
2139
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1933
2140
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
@@ -1963,7 +2170,7 @@ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext
|
|
|
1963
2170
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1964
2171
|
const { luvio, config } = context;
|
|
1965
2172
|
const selector = {
|
|
1966
|
-
recordId: keyBuilder$
|
|
2173
|
+
recordId: keyBuilder$3(luvio, config),
|
|
1967
2174
|
node: adapterFragment$1(luvio, config),
|
|
1968
2175
|
variables: {},
|
|
1969
2176
|
};
|
|
@@ -1983,242 +2190,21 @@ const getChildCategoriesAdapterFactory = (luvio) => function NetworkDataCategory
|
|
|
1983
2190
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1984
2191
|
};
|
|
1985
2192
|
|
|
1986
|
-
const VERSION$2 = "15c619f1c41ed55ac3d19e24eb94542b";
|
|
1987
|
-
function validate$3(obj, path = 'NetworkDataCategoryGroupRepresentation') {
|
|
1988
|
-
const v_error = (() => {
|
|
1989
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1990
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1991
|
-
}
|
|
1992
|
-
const obj_categoryGroupName = obj.categoryGroupName;
|
|
1993
|
-
const path_categoryGroupName = path + '.categoryGroupName';
|
|
1994
|
-
if (typeof obj_categoryGroupName !== 'string') {
|
|
1995
|
-
return new TypeError('Expected "string" but received "' + typeof obj_categoryGroupName + '" (at "' + path_categoryGroupName + '")');
|
|
1996
|
-
}
|
|
1997
|
-
const obj_rootCategory = obj.rootCategory;
|
|
1998
|
-
const path_rootCategory = path + '.rootCategory';
|
|
1999
|
-
if (typeof obj_rootCategory !== 'object') {
|
|
2000
|
-
return new TypeError('Expected "object" but received "' + typeof obj_rootCategory + '" (at "' + path_rootCategory + '")');
|
|
2001
|
-
}
|
|
2002
|
-
})();
|
|
2003
|
-
return v_error === undefined ? null : v_error;
|
|
2004
|
-
}
|
|
2005
|
-
const RepresentationType$2 = 'NetworkDataCategoryGroupRepresentation';
|
|
2006
|
-
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
2007
|
-
const input_rootCategory = input.rootCategory;
|
|
2008
|
-
const input_rootCategory_id = path.fullPath + '__rootCategory';
|
|
2009
|
-
input.rootCategory = ingest$5(input_rootCategory, {
|
|
2010
|
-
fullPath: input_rootCategory_id,
|
|
2011
|
-
propertyName: 'rootCategory',
|
|
2012
|
-
parent: {
|
|
2013
|
-
data: input,
|
|
2014
|
-
key: path.fullPath,
|
|
2015
|
-
existing: existing,
|
|
2016
|
-
},
|
|
2017
|
-
ttl: path.ttl
|
|
2018
|
-
}, luvio, store, timestamp);
|
|
2019
|
-
return input;
|
|
2020
|
-
}
|
|
2021
|
-
const select$4 = function NetworkDataCategoryGroupRepresentationSelect() {
|
|
2022
|
-
return {
|
|
2023
|
-
kind: 'Fragment',
|
|
2024
|
-
version: VERSION$2,
|
|
2025
|
-
private: [],
|
|
2026
|
-
selections: [
|
|
2027
|
-
{
|
|
2028
|
-
name: 'categoryGroupName',
|
|
2029
|
-
kind: 'Scalar'
|
|
2030
|
-
},
|
|
2031
|
-
{
|
|
2032
|
-
name: 'rootCategory',
|
|
2033
|
-
kind: 'Link',
|
|
2034
|
-
fragment: select$d()
|
|
2035
|
-
}
|
|
2036
|
-
]
|
|
2037
|
-
};
|
|
2038
|
-
};
|
|
2039
|
-
function equals$2(existing, incoming) {
|
|
2040
|
-
const existing_categoryGroupName = existing.categoryGroupName;
|
|
2041
|
-
const incoming_categoryGroupName = incoming.categoryGroupName;
|
|
2042
|
-
if (!(existing_categoryGroupName === incoming_categoryGroupName)) {
|
|
2043
|
-
return false;
|
|
2044
|
-
}
|
|
2045
|
-
const existing_rootCategory = existing.rootCategory;
|
|
2046
|
-
const incoming_rootCategory = incoming.rootCategory;
|
|
2047
|
-
if (!(existing_rootCategory.__ref === incoming_rootCategory.__ref)) {
|
|
2048
|
-
return false;
|
|
2049
|
-
}
|
|
2050
|
-
return true;
|
|
2051
|
-
}
|
|
2052
|
-
const ingest$2 = function NetworkDataCategoryGroupRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2053
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2054
|
-
const validateError = validate$3(input);
|
|
2055
|
-
if (validateError !== null) {
|
|
2056
|
-
throw validateError;
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
const key = path.fullPath;
|
|
2060
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 900000;
|
|
2061
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "NetworkDataCategory", VERSION$2, RepresentationType$2, equals$2);
|
|
2062
|
-
return createLink(key);
|
|
2063
|
-
};
|
|
2064
|
-
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
2065
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2066
|
-
const rootKey = fullPathFactory();
|
|
2067
|
-
rootKeySet.set(rootKey, {
|
|
2068
|
-
namespace: keyPrefix,
|
|
2069
|
-
representationName: RepresentationType$2,
|
|
2070
|
-
mergeable: false
|
|
2071
|
-
});
|
|
2072
|
-
getTypeCacheKeys$5(rootKeySet, luvio, input.rootCategory);
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
const VERSION$1 = "5e66b8759100556a58fea2ff97dab767";
|
|
2076
|
-
function validate$2(obj, path = 'NetworkDataCategoryTreeRepresentation') {
|
|
2077
|
-
const v_error = (() => {
|
|
2078
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2079
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2080
|
-
}
|
|
2081
|
-
const obj_communityId = obj.communityId;
|
|
2082
|
-
const path_communityId = path + '.communityId';
|
|
2083
|
-
if (typeof obj_communityId !== 'string') {
|
|
2084
|
-
return new TypeError('Expected "string" but received "' + typeof obj_communityId + '" (at "' + path_communityId + '")');
|
|
2085
|
-
}
|
|
2086
|
-
const obj_dataCategoryGroups = obj.dataCategoryGroups;
|
|
2087
|
-
const path_dataCategoryGroups = path + '.dataCategoryGroups';
|
|
2088
|
-
if (!ArrayIsArray(obj_dataCategoryGroups)) {
|
|
2089
|
-
return new TypeError('Expected "array" but received "' + typeof obj_dataCategoryGroups + '" (at "' + path_dataCategoryGroups + '")');
|
|
2090
|
-
}
|
|
2091
|
-
for (let i = 0; i < obj_dataCategoryGroups.length; i++) {
|
|
2092
|
-
const obj_dataCategoryGroups_item = obj_dataCategoryGroups[i];
|
|
2093
|
-
const path_dataCategoryGroups_item = path_dataCategoryGroups + '[' + i + ']';
|
|
2094
|
-
if (typeof obj_dataCategoryGroups_item !== 'object') {
|
|
2095
|
-
return new TypeError('Expected "object" but received "' + typeof obj_dataCategoryGroups_item + '" (at "' + path_dataCategoryGroups_item + '")');
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
})();
|
|
2099
|
-
return v_error === undefined ? null : v_error;
|
|
2100
|
-
}
|
|
2101
|
-
const RepresentationType$1 = 'NetworkDataCategoryTreeRepresentation';
|
|
2102
|
-
function keyBuilder$3(luvio, config) {
|
|
2103
|
-
return keyPrefix + '::' + RepresentationType$1 + ':' + config.communityId;
|
|
2104
|
-
}
|
|
2105
|
-
function keyBuilderFromType$1(luvio, object) {
|
|
2106
|
-
const keyParams = {
|
|
2107
|
-
communityId: object.communityId
|
|
2108
|
-
};
|
|
2109
|
-
return keyBuilder$3(luvio, keyParams);
|
|
2110
|
-
}
|
|
2111
|
-
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
2112
|
-
const input_dataCategoryGroups = input.dataCategoryGroups;
|
|
2113
|
-
const input_dataCategoryGroups_id = path.fullPath + '__dataCategoryGroups';
|
|
2114
|
-
for (let i = 0; i < input_dataCategoryGroups.length; i++) {
|
|
2115
|
-
const input_dataCategoryGroups_item = input_dataCategoryGroups[i];
|
|
2116
|
-
let input_dataCategoryGroups_item_id = input_dataCategoryGroups_id + '__' + i;
|
|
2117
|
-
input_dataCategoryGroups[i] = ingest$2(input_dataCategoryGroups_item, {
|
|
2118
|
-
fullPath: input_dataCategoryGroups_item_id,
|
|
2119
|
-
propertyName: i,
|
|
2120
|
-
parent: {
|
|
2121
|
-
data: input,
|
|
2122
|
-
key: path.fullPath,
|
|
2123
|
-
existing: existing,
|
|
2124
|
-
},
|
|
2125
|
-
ttl: path.ttl
|
|
2126
|
-
}, luvio, store, timestamp);
|
|
2127
|
-
}
|
|
2128
|
-
return input;
|
|
2129
|
-
}
|
|
2130
|
-
const select$3 = function NetworkDataCategoryTreeRepresentationSelect() {
|
|
2131
|
-
return {
|
|
2132
|
-
kind: 'Fragment',
|
|
2133
|
-
version: VERSION$1,
|
|
2134
|
-
private: [],
|
|
2135
|
-
selections: [
|
|
2136
|
-
{
|
|
2137
|
-
name: 'communityId',
|
|
2138
|
-
kind: 'Scalar'
|
|
2139
|
-
},
|
|
2140
|
-
{
|
|
2141
|
-
name: 'dataCategoryGroups',
|
|
2142
|
-
kind: 'Link',
|
|
2143
|
-
plural: true,
|
|
2144
|
-
fragment: select$4()
|
|
2145
|
-
}
|
|
2146
|
-
]
|
|
2147
|
-
};
|
|
2148
|
-
};
|
|
2149
|
-
function equals$1(existing, incoming) {
|
|
2150
|
-
const existing_communityId = existing.communityId;
|
|
2151
|
-
const incoming_communityId = incoming.communityId;
|
|
2152
|
-
if (!(existing_communityId === incoming_communityId)) {
|
|
2153
|
-
return false;
|
|
2154
|
-
}
|
|
2155
|
-
const existing_dataCategoryGroups = existing.dataCategoryGroups;
|
|
2156
|
-
const incoming_dataCategoryGroups = incoming.dataCategoryGroups;
|
|
2157
|
-
const equals_dataCategoryGroups_items = equalsArray(existing_dataCategoryGroups, incoming_dataCategoryGroups, (existing_dataCategoryGroups_item, incoming_dataCategoryGroups_item) => {
|
|
2158
|
-
if (!(existing_dataCategoryGroups_item.__ref === incoming_dataCategoryGroups_item.__ref)) {
|
|
2159
|
-
return false;
|
|
2160
|
-
}
|
|
2161
|
-
});
|
|
2162
|
-
if (equals_dataCategoryGroups_items === false) {
|
|
2163
|
-
return false;
|
|
2164
|
-
}
|
|
2165
|
-
return true;
|
|
2166
|
-
}
|
|
2167
|
-
const ingest$1 = function NetworkDataCategoryTreeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2168
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2169
|
-
const validateError = validate$2(input);
|
|
2170
|
-
if (validateError !== null) {
|
|
2171
|
-
throw validateError;
|
|
2172
|
-
}
|
|
2173
|
-
}
|
|
2174
|
-
const key = keyBuilderFromType$1(luvio, input);
|
|
2175
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 900000;
|
|
2176
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "NetworkDataCategory", VERSION$1, RepresentationType$1, equals$1);
|
|
2177
|
-
return createLink(key);
|
|
2178
|
-
};
|
|
2179
|
-
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
2180
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2181
|
-
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
2182
|
-
rootKeySet.set(rootKey, {
|
|
2183
|
-
namespace: keyPrefix,
|
|
2184
|
-
representationName: RepresentationType$1,
|
|
2185
|
-
mergeable: false
|
|
2186
|
-
});
|
|
2187
|
-
const input_dataCategoryGroups_length = input.dataCategoryGroups.length;
|
|
2188
|
-
for (let i = 0; i < input_dataCategoryGroups_length; i++) {
|
|
2189
|
-
getTypeCacheKeys$2(rootKeySet, luvio, input.dataCategoryGroups[i], () => '');
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
|
-
const notifyUpdateAvailableFactory = (luvio) => {
|
|
2193
|
-
return function notifyNetworkDataCategoryTreeRepresentationUpdateAvailable(configs) {
|
|
2194
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2195
|
-
const requiredKeyParams = ['communityId'];
|
|
2196
|
-
configs.forEach(config => {
|
|
2197
|
-
if (false === requiredKeyParams.every(req => req in config)) {
|
|
2198
|
-
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
2199
|
-
}
|
|
2200
|
-
});
|
|
2201
|
-
}
|
|
2202
|
-
const keys = configs.map(c => keyBuilder$3(luvio, c));
|
|
2203
|
-
return luvio.notifyStoreUpdateAvailable(keys);
|
|
2204
|
-
};
|
|
2205
|
-
};
|
|
2206
|
-
|
|
2207
2193
|
function select$2(luvio, params) {
|
|
2208
|
-
return select$
|
|
2194
|
+
return select$a();
|
|
2209
2195
|
}
|
|
2210
2196
|
function keyBuilder$2(luvio, params) {
|
|
2211
|
-
return keyBuilder$
|
|
2197
|
+
return keyBuilder$b(luvio, {
|
|
2212
2198
|
communityId: params.urlParams.communityId
|
|
2213
2199
|
});
|
|
2214
2200
|
}
|
|
2215
2201
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
2216
|
-
getTypeCacheKeys$
|
|
2202
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
2217
2203
|
}
|
|
2218
2204
|
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
2219
2205
|
const { body } = response;
|
|
2220
2206
|
const key = keyBuilder$2(luvio, resourceParams);
|
|
2221
|
-
luvio.storeIngest(key, ingest$
|
|
2207
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
2222
2208
|
const snapshot = luvio.storeLookup({
|
|
2223
2209
|
recordId: key,
|
|
2224
2210
|
node: select$2(),
|
|
@@ -2525,4 +2511,4 @@ const updateNetworkDataCategoriesAdapterFactory = (luvio) => {
|
|
|
2525
2511
|
};
|
|
2526
2512
|
};
|
|
2527
2513
|
|
|
2528
|
-
export { getArticlesForCategoryAdapterFactory, getChildCategoriesAdapterFactory, getNetworkDataCategoriesAdapterFactory, getParentNetworkDataCategoryPathAdapterFactory, getServiceCatalogItemsAdapterFactory, getServiceCatalogItemsForCommunityAdapterFactory, notifyUpdateAvailableFactory
|
|
2514
|
+
export { getArticlesForCategoryAdapterFactory, getChildCategoriesAdapterFactory, getNetworkDataCategoriesAdapterFactory, getParentNetworkDataCategoryPathAdapterFactory, getServiceCatalogItemsAdapterFactory, getServiceCatalogItemsForCommunityAdapterFactory, notifyUpdateAvailableFactory as notifyNetworkDataCategoryTreeRepresentationUpdateAvailableFactory, updateNetworkDataCategoriesAdapterFactory, updateNetworkDataCategoryAdapterFactory };
|
|
@@ -6,5 +6,4 @@ export { getParentNetworkDataCategoryPathAdapterFactory } from '../adapters/getP
|
|
|
6
6
|
export { getChildCategoriesAdapterFactory } from '../adapters/getChildCategories';
|
|
7
7
|
export { getNetworkDataCategoriesAdapterFactory } from '../adapters/getNetworkDataCategories';
|
|
8
8
|
export { updateNetworkDataCategoriesAdapterFactory } from '../adapters/updateNetworkDataCategories';
|
|
9
|
-
export { notifyUpdateAvailableFactory as notifyNetworkDataCategoryRepresentationUpdateAvailableFactory } from '../types/NetworkDataCategoryRepresentation';
|
|
10
9
|
export { notifyUpdateAvailableFactory as notifyNetworkDataCategoryTreeRepresentationUpdateAvailableFactory } from '../types/NetworkDataCategoryTreeRepresentation';
|
|
@@ -13,7 +13,6 @@ declare let getNetworkDataCategories_imperative: any;
|
|
|
13
13
|
declare let getParentNetworkDataCategoryPath_imperative: any;
|
|
14
14
|
declare let getServiceCatalogItems_imperative: any;
|
|
15
15
|
declare let getServiceCatalogItemsForCommunity_imperative: any;
|
|
16
|
-
declare let notifyNetworkDataCategoryRepresentationUpdateAvailable: any;
|
|
17
16
|
declare let notifyNetworkDataCategoryTreeRepresentationUpdateAvailable: any;
|
|
18
17
|
export { getArticlesForCategory, getChildCategories, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getParentNetworkDataCategoryPath, getServiceCatalogItems, getServiceCatalogItemsForCommunity, updateNetworkDataCategories, updateNetworkDataCategory, getArticlesForCategory_imperative, getChildCategories_imperative, getNetworkDataCategories_imperative, getParentNetworkDataCategoryPath_imperative, getServiceCatalogItems_imperative, getServiceCatalogItemsForCommunity_imperative, };
|
|
19
|
-
export {
|
|
18
|
+
export { notifyNetworkDataCategoryTreeRepresentationUpdateAvailable };
|
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.265.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",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"test:unit": "jest --config=./jest.config.js"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@salesforce/lds-bindings": "^1.
|
|
45
|
+
"@salesforce/lds-bindings": "^1.265.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
49
|
-
"@salesforce/lds-karma": "^1.
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.265.0",
|
|
49
|
+
"@salesforce/lds-karma": "^1.265.0"
|
|
50
50
|
},
|
|
51
51
|
"nx": {
|
|
52
52
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -911,20 +911,6 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
911
911
|
mergeable: false
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
|
-
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
915
|
-
return function notifyNetworkDataCategoryRepresentationUpdateAvailable(configs) {
|
|
916
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
917
|
-
const requiredKeyParams = ['id'];
|
|
918
|
-
configs.forEach(config => {
|
|
919
|
-
if (false === requiredKeyParams.every(req => req in config)) {
|
|
920
|
-
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
921
|
-
}
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
const keys = configs.map(c => keyBuilder$c(luvio, c));
|
|
925
|
-
return luvio.notifyStoreUpdateAvailable(keys);
|
|
926
|
-
};
|
|
927
|
-
};
|
|
928
914
|
|
|
929
915
|
const VERSION$5 = "55e759666b11e19f41045930d9ac0dd6";
|
|
930
916
|
function validate$6(obj, path = 'NetworkDataCategoryCollectionRepresentation') {
|
|
@@ -2510,7 +2496,7 @@ function createResourceRequest(config) {
|
|
|
2510
2496
|
|
|
2511
2497
|
function buildNetworkSnapshot$1(luvio, config) {
|
|
2512
2498
|
return buildNetworkSnapshot(luvio, config).then((result) => {
|
|
2513
|
-
notifyUpdateAvailableFactory
|
|
2499
|
+
notifyUpdateAvailableFactory(luvio)([{ communityId: config.communityId }]);
|
|
2514
2500
|
return result;
|
|
2515
2501
|
});
|
|
2516
2502
|
}
|
|
@@ -2610,7 +2596,6 @@ const getServiceCatalogItemsForCommunityMetadata = {
|
|
|
2610
2596
|
name: 'getServiceCatalogItemsForCommunity',
|
|
2611
2597
|
};
|
|
2612
2598
|
// Notify Update Available
|
|
2613
|
-
let notifyNetworkDataCategoryRepresentationUpdateAvailable;
|
|
2614
2599
|
let notifyNetworkDataCategoryTreeRepresentationUpdateAvailable;
|
|
2615
2600
|
function bindExportsTo(luvio) {
|
|
2616
2601
|
// LDS Adapters
|
|
@@ -2642,7 +2627,6 @@ function bindExportsTo(luvio) {
|
|
|
2642
2627
|
getServiceCatalogItems_imperative: createImperativeAdapter(luvio, getServiceCatalogItems_ldsAdapter, getServiceCatalogItemsMetadata),
|
|
2643
2628
|
getServiceCatalogItemsForCommunity_imperative: createImperativeAdapter(luvio, getServiceCatalogItemsForCommunity_ldsAdapter, getServiceCatalogItemsForCommunityMetadata),
|
|
2644
2629
|
// Notify Update Availables
|
|
2645
|
-
notifyNetworkDataCategoryRepresentationUpdateAvailable: createLDSAdapter(luvio, 'notifyNetworkDataCategoryRepresentationUpdateAvailable', notifyUpdateAvailableFactory$1),
|
|
2646
2630
|
notifyNetworkDataCategoryTreeRepresentationUpdateAvailable: createLDSAdapter(luvio, 'notifyNetworkDataCategoryTreeRepresentationUpdateAvailable', notifyUpdateAvailableFactory),
|
|
2647
2631
|
};
|
|
2648
2632
|
}
|
|
@@ -2663,10 +2647,9 @@ withDefaultLuvio((luvio) => {
|
|
|
2663
2647
|
getParentNetworkDataCategoryPath_imperative,
|
|
2664
2648
|
getServiceCatalogItems_imperative,
|
|
2665
2649
|
getServiceCatalogItemsForCommunity_imperative,
|
|
2666
|
-
notifyNetworkDataCategoryRepresentationUpdateAvailable,
|
|
2667
2650
|
notifyNetworkDataCategoryTreeRepresentationUpdateAvailable,
|
|
2668
2651
|
} = bindExportsTo(luvio));
|
|
2669
2652
|
});
|
|
2670
2653
|
|
|
2671
|
-
export { getArticlesForCategory, getArticlesForCategory_imperative, getChildCategories, getChildCategories_imperative, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getNetworkDataCategories_imperative, getParentNetworkDataCategoryPath, getParentNetworkDataCategoryPath_imperative, getServiceCatalogItems, getServiceCatalogItemsForCommunity, getServiceCatalogItemsForCommunity_imperative, getServiceCatalogItems_imperative,
|
|
2672
|
-
// version: 1.
|
|
2654
|
+
export { getArticlesForCategory, getArticlesForCategory_imperative, getChildCategories, getChildCategories_imperative, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getNetworkDataCategories_imperative, getParentNetworkDataCategoryPath, getParentNetworkDataCategoryPath_imperative, getServiceCatalogItems, getServiceCatalogItemsForCommunity, getServiceCatalogItemsForCommunity_imperative, getServiceCatalogItems_imperative, notifyNetworkDataCategoryTreeRepresentationUpdateAvailable, updateNetworkDataCategories, updateNetworkDataCategory };
|
|
2655
|
+
// version: 1.265.0-25488bd30
|
package/src/raml/luvio.raml
CHANGED
|
@@ -21,10 +21,6 @@ types:
|
|
|
21
21
|
NetworkDataCategoryRepresentation:
|
|
22
22
|
(luvio.key):
|
|
23
23
|
id: id
|
|
24
|
-
(luvio.updateAvailable):
|
|
25
|
-
name: notifyNetworkDataCategoryRepresentationUpdateAvailable
|
|
26
|
-
parameters:
|
|
27
|
-
id: id
|
|
28
24
|
|
|
29
25
|
/connect:
|
|
30
26
|
/network-data-category/{networkDataCategoryId}/catalog-item:
|