@salesforce/lds-adapters-service-network-data-category 1.228.0 → 1.228.1
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 +259 -63
- package/dist/es/es2018/types/src/generated/types/NetworkDataCategoryGroupRepresentation.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/NetworkDataCategoryRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/ServiceCatalogItemRepresentation.d.ts +5 -5
- package/package.json +1 -1
- package/sfdc/index.js +260 -64
- package/src/raml/api.raml +12 -6
|
@@ -93,16 +93,39 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const VERSION$7 = "
|
|
96
|
+
const VERSION$7 = "e09f2c8e969b05cce02145ff503c5764";
|
|
97
97
|
function validate$8(obj, path = 'ServiceCatalogItemRepresentation') {
|
|
98
98
|
const v_error = (() => {
|
|
99
99
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
100
100
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
101
101
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
if (obj.description !== undefined) {
|
|
103
|
+
const obj_description = obj.description;
|
|
104
|
+
const path_description = path + '.description';
|
|
105
|
+
let obj_description_union0 = null;
|
|
106
|
+
const obj_description_union0_error = (() => {
|
|
107
|
+
if (typeof obj_description !== 'string') {
|
|
108
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
109
|
+
}
|
|
110
|
+
})();
|
|
111
|
+
if (obj_description_union0_error != null) {
|
|
112
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
113
|
+
}
|
|
114
|
+
let obj_description_union1 = null;
|
|
115
|
+
const obj_description_union1_error = (() => {
|
|
116
|
+
if (obj_description !== null) {
|
|
117
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
118
|
+
}
|
|
119
|
+
})();
|
|
120
|
+
if (obj_description_union1_error != null) {
|
|
121
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
122
|
+
}
|
|
123
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
124
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
125
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
126
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
127
|
+
return new TypeError(message);
|
|
128
|
+
}
|
|
106
129
|
}
|
|
107
130
|
const obj_developerName = obj.developerName;
|
|
108
131
|
const path_developerName = path + '.developerName';
|
|
@@ -114,10 +137,33 @@ function validate$8(obj, path = 'ServiceCatalogItemRepresentation') {
|
|
|
114
137
|
if (typeof obj_id !== 'string') {
|
|
115
138
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
116
139
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
140
|
+
if (obj.imageUrl !== undefined) {
|
|
141
|
+
const obj_imageUrl = obj.imageUrl;
|
|
142
|
+
const path_imageUrl = path + '.imageUrl';
|
|
143
|
+
let obj_imageUrl_union0 = null;
|
|
144
|
+
const obj_imageUrl_union0_error = (() => {
|
|
145
|
+
if (typeof obj_imageUrl !== 'string') {
|
|
146
|
+
return new TypeError('Expected "string" but received "' + typeof obj_imageUrl + '" (at "' + path_imageUrl + '")');
|
|
147
|
+
}
|
|
148
|
+
})();
|
|
149
|
+
if (obj_imageUrl_union0_error != null) {
|
|
150
|
+
obj_imageUrl_union0 = obj_imageUrl_union0_error.message;
|
|
151
|
+
}
|
|
152
|
+
let obj_imageUrl_union1 = null;
|
|
153
|
+
const obj_imageUrl_union1_error = (() => {
|
|
154
|
+
if (obj_imageUrl !== null) {
|
|
155
|
+
return new TypeError('Expected "null" but received "' + typeof obj_imageUrl + '" (at "' + path_imageUrl + '")');
|
|
156
|
+
}
|
|
157
|
+
})();
|
|
158
|
+
if (obj_imageUrl_union1_error != null) {
|
|
159
|
+
obj_imageUrl_union1 = obj_imageUrl_union1_error.message;
|
|
160
|
+
}
|
|
161
|
+
if (obj_imageUrl_union0 && obj_imageUrl_union1) {
|
|
162
|
+
let message = 'Object doesn\'t match union (at "' + path_imageUrl + '")';
|
|
163
|
+
message += '\n' + obj_imageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
164
|
+
message += '\n' + obj_imageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
165
|
+
return new TypeError(message);
|
|
166
|
+
}
|
|
121
167
|
}
|
|
122
168
|
const obj_label = obj.label;
|
|
123
169
|
const path_label = path + '.label';
|
|
@@ -135,7 +181,8 @@ const select$c = function ServiceCatalogItemRepresentationSelect() {
|
|
|
135
181
|
selections: [
|
|
136
182
|
{
|
|
137
183
|
name: 'description',
|
|
138
|
-
kind: 'Scalar'
|
|
184
|
+
kind: 'Scalar',
|
|
185
|
+
required: false
|
|
139
186
|
},
|
|
140
187
|
{
|
|
141
188
|
name: 'developerName',
|
|
@@ -147,7 +194,8 @@ const select$c = function ServiceCatalogItemRepresentationSelect() {
|
|
|
147
194
|
},
|
|
148
195
|
{
|
|
149
196
|
name: 'imageUrl',
|
|
150
|
-
kind: 'Scalar'
|
|
197
|
+
kind: 'Scalar',
|
|
198
|
+
required: false
|
|
151
199
|
},
|
|
152
200
|
{
|
|
153
201
|
name: 'label',
|
|
@@ -157,11 +205,6 @@ const select$c = function ServiceCatalogItemRepresentationSelect() {
|
|
|
157
205
|
};
|
|
158
206
|
};
|
|
159
207
|
function equals$7(existing, incoming) {
|
|
160
|
-
const existing_description = existing.description;
|
|
161
|
-
const incoming_description = incoming.description;
|
|
162
|
-
if (!(existing_description === incoming_description)) {
|
|
163
|
-
return false;
|
|
164
|
-
}
|
|
165
208
|
const existing_developerName = existing.developerName;
|
|
166
209
|
const incoming_developerName = incoming.developerName;
|
|
167
210
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -172,16 +215,37 @@ function equals$7(existing, incoming) {
|
|
|
172
215
|
if (!(existing_id === incoming_id)) {
|
|
173
216
|
return false;
|
|
174
217
|
}
|
|
175
|
-
const existing_imageUrl = existing.imageUrl;
|
|
176
|
-
const incoming_imageUrl = incoming.imageUrl;
|
|
177
|
-
if (!(existing_imageUrl === incoming_imageUrl)) {
|
|
178
|
-
return false;
|
|
179
|
-
}
|
|
180
218
|
const existing_label = existing.label;
|
|
181
219
|
const incoming_label = incoming.label;
|
|
182
220
|
if (!(existing_label === incoming_label)) {
|
|
183
221
|
return false;
|
|
184
222
|
}
|
|
223
|
+
const existing_description = existing.description;
|
|
224
|
+
const incoming_description = incoming.description;
|
|
225
|
+
// if at least one of these optionals is defined
|
|
226
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
227
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
228
|
+
// not equal
|
|
229
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
230
|
+
return false;
|
|
231
|
+
}
|
|
232
|
+
if (!(existing_description === incoming_description)) {
|
|
233
|
+
return false;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
const existing_imageUrl = existing.imageUrl;
|
|
237
|
+
const incoming_imageUrl = incoming.imageUrl;
|
|
238
|
+
// if at least one of these optionals is defined
|
|
239
|
+
if (existing_imageUrl !== undefined || incoming_imageUrl !== undefined) {
|
|
240
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
241
|
+
// not equal
|
|
242
|
+
if (existing_imageUrl === undefined || incoming_imageUrl === undefined) {
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
if (!(existing_imageUrl === incoming_imageUrl)) {
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
185
249
|
return true;
|
|
186
250
|
}
|
|
187
251
|
|
|
@@ -860,7 +924,7 @@ const getArticlesForCategoryAdapterFactory = (luvio) => function NetworkDataCate
|
|
|
860
924
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
861
925
|
};
|
|
862
926
|
|
|
863
|
-
const VERSION$3 = "
|
|
927
|
+
const VERSION$3 = "0d501a366f70d5f5cdd9a7d7af934c58";
|
|
864
928
|
function validate$4(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
865
929
|
const v_error = (() => {
|
|
866
930
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -883,25 +947,94 @@ function validate$4(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
|
883
947
|
return new TypeError('Expected "defined" but received "' + typeof obj_childCategories_item + '" (at "' + path_childCategories_item + '")');
|
|
884
948
|
}
|
|
885
949
|
}
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
950
|
+
if (obj.description !== undefined) {
|
|
951
|
+
const obj_description = obj.description;
|
|
952
|
+
const path_description = path + '.description';
|
|
953
|
+
let obj_description_union0 = null;
|
|
954
|
+
const obj_description_union0_error = (() => {
|
|
955
|
+
if (typeof obj_description !== 'string') {
|
|
956
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
957
|
+
}
|
|
958
|
+
})();
|
|
959
|
+
if (obj_description_union0_error != null) {
|
|
960
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
961
|
+
}
|
|
962
|
+
let obj_description_union1 = null;
|
|
963
|
+
const obj_description_union1_error = (() => {
|
|
964
|
+
if (obj_description !== null) {
|
|
965
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
966
|
+
}
|
|
967
|
+
})();
|
|
968
|
+
if (obj_description_union1_error != null) {
|
|
969
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
970
|
+
}
|
|
971
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
972
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
973
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
974
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
975
|
+
return new TypeError(message);
|
|
976
|
+
}
|
|
890
977
|
}
|
|
891
978
|
const obj_id = obj.id;
|
|
892
979
|
const path_id = path + '.id';
|
|
893
980
|
if (typeof obj_id !== 'string') {
|
|
894
981
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
895
982
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
983
|
+
if (obj.imageUrl !== undefined) {
|
|
984
|
+
const obj_imageUrl = obj.imageUrl;
|
|
985
|
+
const path_imageUrl = path + '.imageUrl';
|
|
986
|
+
let obj_imageUrl_union0 = null;
|
|
987
|
+
const obj_imageUrl_union0_error = (() => {
|
|
988
|
+
if (typeof obj_imageUrl !== 'string') {
|
|
989
|
+
return new TypeError('Expected "string" but received "' + typeof obj_imageUrl + '" (at "' + path_imageUrl + '")');
|
|
990
|
+
}
|
|
991
|
+
})();
|
|
992
|
+
if (obj_imageUrl_union0_error != null) {
|
|
993
|
+
obj_imageUrl_union0 = obj_imageUrl_union0_error.message;
|
|
994
|
+
}
|
|
995
|
+
let obj_imageUrl_union1 = null;
|
|
996
|
+
const obj_imageUrl_union1_error = (() => {
|
|
997
|
+
if (obj_imageUrl !== null) {
|
|
998
|
+
return new TypeError('Expected "null" but received "' + typeof obj_imageUrl + '" (at "' + path_imageUrl + '")');
|
|
999
|
+
}
|
|
1000
|
+
})();
|
|
1001
|
+
if (obj_imageUrl_union1_error != null) {
|
|
1002
|
+
obj_imageUrl_union1 = obj_imageUrl_union1_error.message;
|
|
1003
|
+
}
|
|
1004
|
+
if (obj_imageUrl_union0 && obj_imageUrl_union1) {
|
|
1005
|
+
let message = 'Object doesn\'t match union (at "' + path_imageUrl + '")';
|
|
1006
|
+
message += '\n' + obj_imageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1007
|
+
message += '\n' + obj_imageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1008
|
+
return new TypeError(message);
|
|
1009
|
+
}
|
|
900
1010
|
}
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
1011
|
+
if (obj.label !== undefined) {
|
|
1012
|
+
const obj_label = obj.label;
|
|
1013
|
+
const path_label = path + '.label';
|
|
1014
|
+
let obj_label_union0 = null;
|
|
1015
|
+
const obj_label_union0_error = (() => {
|
|
1016
|
+
if (typeof obj_label !== 'string') {
|
|
1017
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1018
|
+
}
|
|
1019
|
+
})();
|
|
1020
|
+
if (obj_label_union0_error != null) {
|
|
1021
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
1022
|
+
}
|
|
1023
|
+
let obj_label_union1 = null;
|
|
1024
|
+
const obj_label_union1_error = (() => {
|
|
1025
|
+
if (obj_label !== null) {
|
|
1026
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1027
|
+
}
|
|
1028
|
+
})();
|
|
1029
|
+
if (obj_label_union1_error != null) {
|
|
1030
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
1031
|
+
}
|
|
1032
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
1033
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
1034
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1035
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1036
|
+
return new TypeError(message);
|
|
1037
|
+
}
|
|
905
1038
|
}
|
|
906
1039
|
})();
|
|
907
1040
|
return v_error === undefined ? null : v_error;
|
|
@@ -923,7 +1056,8 @@ const select$5 = function NetworkDataCategoryRepresentationSelect() {
|
|
|
923
1056
|
},
|
|
924
1057
|
{
|
|
925
1058
|
name: 'description',
|
|
926
|
-
kind: 'Scalar'
|
|
1059
|
+
kind: 'Scalar',
|
|
1060
|
+
required: false
|
|
927
1061
|
},
|
|
928
1062
|
{
|
|
929
1063
|
name: 'id',
|
|
@@ -931,11 +1065,13 @@ const select$5 = function NetworkDataCategoryRepresentationSelect() {
|
|
|
931
1065
|
},
|
|
932
1066
|
{
|
|
933
1067
|
name: 'imageUrl',
|
|
934
|
-
kind: 'Scalar'
|
|
1068
|
+
kind: 'Scalar',
|
|
1069
|
+
required: false
|
|
935
1070
|
},
|
|
936
1071
|
{
|
|
937
1072
|
name: 'label',
|
|
938
|
-
kind: 'Scalar'
|
|
1073
|
+
kind: 'Scalar',
|
|
1074
|
+
required: false
|
|
939
1075
|
}
|
|
940
1076
|
]
|
|
941
1077
|
};
|
|
@@ -946,26 +1082,11 @@ function equals$3(existing, incoming) {
|
|
|
946
1082
|
if (!(existing_categoryName === incoming_categoryName)) {
|
|
947
1083
|
return false;
|
|
948
1084
|
}
|
|
949
|
-
const existing_description = existing.description;
|
|
950
|
-
const incoming_description = incoming.description;
|
|
951
|
-
if (!(existing_description === incoming_description)) {
|
|
952
|
-
return false;
|
|
953
|
-
}
|
|
954
1085
|
const existing_id = existing.id;
|
|
955
1086
|
const incoming_id = incoming.id;
|
|
956
1087
|
if (!(existing_id === incoming_id)) {
|
|
957
1088
|
return false;
|
|
958
1089
|
}
|
|
959
|
-
const existing_imageUrl = existing.imageUrl;
|
|
960
|
-
const incoming_imageUrl = incoming.imageUrl;
|
|
961
|
-
if (!(existing_imageUrl === incoming_imageUrl)) {
|
|
962
|
-
return false;
|
|
963
|
-
}
|
|
964
|
-
const existing_label = existing.label;
|
|
965
|
-
const incoming_label = incoming.label;
|
|
966
|
-
if (!(existing_label === incoming_label)) {
|
|
967
|
-
return false;
|
|
968
|
-
}
|
|
969
1090
|
const existing_childCategories = existing.childCategories;
|
|
970
1091
|
const incoming_childCategories = incoming.childCategories;
|
|
971
1092
|
const equals_childCategories_items = equalsArray(existing_childCategories, incoming_childCategories, (existing_childCategories_item, incoming_childCategories_item) => {
|
|
@@ -976,10 +1097,49 @@ function equals$3(existing, incoming) {
|
|
|
976
1097
|
if (equals_childCategories_items === false) {
|
|
977
1098
|
return false;
|
|
978
1099
|
}
|
|
1100
|
+
const existing_description = existing.description;
|
|
1101
|
+
const incoming_description = incoming.description;
|
|
1102
|
+
// if at least one of these optionals is defined
|
|
1103
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
1104
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1105
|
+
// not equal
|
|
1106
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
1107
|
+
return false;
|
|
1108
|
+
}
|
|
1109
|
+
if (!(existing_description === incoming_description)) {
|
|
1110
|
+
return false;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
const existing_imageUrl = existing.imageUrl;
|
|
1114
|
+
const incoming_imageUrl = incoming.imageUrl;
|
|
1115
|
+
// if at least one of these optionals is defined
|
|
1116
|
+
if (existing_imageUrl !== undefined || incoming_imageUrl !== undefined) {
|
|
1117
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1118
|
+
// not equal
|
|
1119
|
+
if (existing_imageUrl === undefined || incoming_imageUrl === undefined) {
|
|
1120
|
+
return false;
|
|
1121
|
+
}
|
|
1122
|
+
if (!(existing_imageUrl === incoming_imageUrl)) {
|
|
1123
|
+
return false;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
const existing_label = existing.label;
|
|
1127
|
+
const incoming_label = incoming.label;
|
|
1128
|
+
// if at least one of these optionals is defined
|
|
1129
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
1130
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1131
|
+
// not equal
|
|
1132
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
1133
|
+
return false;
|
|
1134
|
+
}
|
|
1135
|
+
if (!(existing_label === incoming_label)) {
|
|
1136
|
+
return false;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
979
1139
|
return true;
|
|
980
1140
|
}
|
|
981
1141
|
|
|
982
|
-
const VERSION$2 = "
|
|
1142
|
+
const VERSION$2 = "971192bd937efc9d89177c7289adf241";
|
|
983
1143
|
function validate$3(obj, path = 'NetworkDataCategoryGroupRepresentation') {
|
|
984
1144
|
const v_error = (() => {
|
|
985
1145
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -990,13 +1150,36 @@ function validate$3(obj, path = 'NetworkDataCategoryGroupRepresentation') {
|
|
|
990
1150
|
if (typeof obj_categoryGroupName !== 'string') {
|
|
991
1151
|
return new TypeError('Expected "string" but received "' + typeof obj_categoryGroupName + '" (at "' + path_categoryGroupName + '")');
|
|
992
1152
|
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1153
|
+
if (obj.rootCategory !== undefined) {
|
|
1154
|
+
const obj_rootCategory = obj.rootCategory;
|
|
1155
|
+
const path_rootCategory = path + '.rootCategory';
|
|
1156
|
+
let obj_rootCategory_union0 = null;
|
|
1157
|
+
const obj_rootCategory_union0_error = (() => {
|
|
1158
|
+
const referencepath_rootCategoryValidationError = validate$4(obj_rootCategory, path_rootCategory);
|
|
1159
|
+
if (referencepath_rootCategoryValidationError !== null) {
|
|
1160
|
+
let message = 'Object doesn\'t match NetworkDataCategoryRepresentation (at "' + path_rootCategory + '")\n';
|
|
1161
|
+
message += referencepath_rootCategoryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1162
|
+
return new TypeError(message);
|
|
1163
|
+
}
|
|
1164
|
+
})();
|
|
1165
|
+
if (obj_rootCategory_union0_error != null) {
|
|
1166
|
+
obj_rootCategory_union0 = obj_rootCategory_union0_error.message;
|
|
1167
|
+
}
|
|
1168
|
+
let obj_rootCategory_union1 = null;
|
|
1169
|
+
const obj_rootCategory_union1_error = (() => {
|
|
1170
|
+
if (obj_rootCategory !== null) {
|
|
1171
|
+
return new TypeError('Expected "null" but received "' + typeof obj_rootCategory + '" (at "' + path_rootCategory + '")');
|
|
1172
|
+
}
|
|
1173
|
+
})();
|
|
1174
|
+
if (obj_rootCategory_union1_error != null) {
|
|
1175
|
+
obj_rootCategory_union1 = obj_rootCategory_union1_error.message;
|
|
1176
|
+
}
|
|
1177
|
+
if (obj_rootCategory_union0 && obj_rootCategory_union1) {
|
|
1178
|
+
let message = 'Object doesn\'t match union (at "' + path_rootCategory + '")';
|
|
1179
|
+
message += '\n' + obj_rootCategory_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1180
|
+
message += '\n' + obj_rootCategory_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1181
|
+
return new TypeError(message);
|
|
1182
|
+
}
|
|
1000
1183
|
}
|
|
1001
1184
|
})();
|
|
1002
1185
|
return v_error === undefined ? null : v_error;
|
|
@@ -1015,7 +1198,9 @@ const select$4 = function NetworkDataCategoryGroupRepresentationSelect() {
|
|
|
1015
1198
|
{
|
|
1016
1199
|
name: 'rootCategory',
|
|
1017
1200
|
kind: 'Object',
|
|
1018
|
-
|
|
1201
|
+
nullable: true,
|
|
1202
|
+
selections: NetworkDataCategoryRepresentation__selections,
|
|
1203
|
+
required: false
|
|
1019
1204
|
}
|
|
1020
1205
|
]
|
|
1021
1206
|
};
|
|
@@ -1028,8 +1213,19 @@ function equals$2(existing, incoming) {
|
|
|
1028
1213
|
}
|
|
1029
1214
|
const existing_rootCategory = existing.rootCategory;
|
|
1030
1215
|
const incoming_rootCategory = incoming.rootCategory;
|
|
1031
|
-
if
|
|
1032
|
-
|
|
1216
|
+
// if at least one of these optionals is defined
|
|
1217
|
+
if (existing_rootCategory !== undefined || incoming_rootCategory !== undefined) {
|
|
1218
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1219
|
+
// not equal
|
|
1220
|
+
if (existing_rootCategory === undefined || incoming_rootCategory === undefined) {
|
|
1221
|
+
return false;
|
|
1222
|
+
}
|
|
1223
|
+
if (!(existing_rootCategory === incoming_rootCategory
|
|
1224
|
+
|| (existing_rootCategory != null &&
|
|
1225
|
+
incoming_rootCategory != null &&
|
|
1226
|
+
equals$3(existing_rootCategory, incoming_rootCategory)))) {
|
|
1227
|
+
return false;
|
|
1228
|
+
}
|
|
1033
1229
|
}
|
|
1034
1230
|
return true;
|
|
1035
1231
|
}
|
package/dist/es/es2018/types/src/generated/types/NetworkDataCategoryGroupRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NetworkDataCategoryRepresentation as NetworkDataCategoryRepresentation_NetworkDataCategoryRepresentation } from './NetworkDataCategoryRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "971192bd937efc9d89177c7289adf241";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: NetworkDataCategoryGroupRepresentation, existing: NetworkDataCategoryGroupRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NetworkDataCategoryGroupRepresentationNormalized;
|
|
@@ -17,7 +17,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
17
|
export interface NetworkDataCategoryGroupRepresentationNormalized {
|
|
18
18
|
/** Network Data Category Group Name */
|
|
19
19
|
categoryGroupName: string;
|
|
20
|
-
|
|
20
|
+
/** Root Category Representation */
|
|
21
|
+
rootCategory?: NetworkDataCategoryRepresentation_NetworkDataCategoryRepresentation | null;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* Describes a network data category group
|
|
@@ -27,5 +28,5 @@ export interface NetworkDataCategoryGroupRepresentationNormalized {
|
|
|
27
28
|
*/
|
|
28
29
|
export interface NetworkDataCategoryGroupRepresentation {
|
|
29
30
|
categoryGroupName: string;
|
|
30
|
-
rootCategory
|
|
31
|
+
rootCategory?: NetworkDataCategoryRepresentation_NetworkDataCategoryRepresentation | null;
|
|
31
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "0d501a366f70d5f5cdd9a7d7af934c58";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: NetworkDataCategoryRepresentation, existing: NetworkDataCategoryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NetworkDataCategoryRepresentationNormalized;
|
|
@@ -19,13 +19,13 @@ export interface NetworkDataCategoryRepresentationNormalized {
|
|
|
19
19
|
/** Children of Network Data Category */
|
|
20
20
|
childCategories: Array<unknown>;
|
|
21
21
|
/** Network Data Category Description */
|
|
22
|
-
description
|
|
22
|
+
description?: string | null;
|
|
23
23
|
/** Network Data Category id */
|
|
24
24
|
id: string;
|
|
25
25
|
/** Image Url of Network Data Category */
|
|
26
|
-
imageUrl
|
|
26
|
+
imageUrl?: string | null;
|
|
27
27
|
/** Network Data Category Label */
|
|
28
|
-
label
|
|
28
|
+
label?: string | null;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Describes a network data category
|
|
@@ -36,8 +36,8 @@ export interface NetworkDataCategoryRepresentationNormalized {
|
|
|
36
36
|
export interface NetworkDataCategoryRepresentation {
|
|
37
37
|
categoryName: string;
|
|
38
38
|
childCategories: Array<unknown>;
|
|
39
|
-
description
|
|
39
|
+
description?: string | null;
|
|
40
40
|
id: string;
|
|
41
|
-
imageUrl
|
|
42
|
-
label
|
|
41
|
+
imageUrl?: string | null;
|
|
42
|
+
label?: string | null;
|
|
43
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "e09f2c8e969b05cce02145ff503c5764";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ServiceCatalogItemRepresentation, existing: ServiceCatalogItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceCatalogItemRepresentationNormalized;
|
|
@@ -15,13 +15,13 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
*/
|
|
16
16
|
export interface ServiceCatalogItemRepresentationNormalized {
|
|
17
17
|
/** Short Description of Service Catalog Item */
|
|
18
|
-
description
|
|
18
|
+
description?: string | null;
|
|
19
19
|
/** Dev name of Service Catalog Item */
|
|
20
20
|
developerName: string;
|
|
21
21
|
/** Service Catalog Item Id */
|
|
22
22
|
id: string;
|
|
23
23
|
/** Image url of Service Catalog Item */
|
|
24
|
-
imageUrl
|
|
24
|
+
imageUrl?: string | null;
|
|
25
25
|
/** Label of Service Catalog Item */
|
|
26
26
|
label: string;
|
|
27
27
|
}
|
|
@@ -32,9 +32,9 @@ export interface ServiceCatalogItemRepresentationNormalized {
|
|
|
32
32
|
* (none)
|
|
33
33
|
*/
|
|
34
34
|
export interface ServiceCatalogItemRepresentation {
|
|
35
|
-
description
|
|
35
|
+
description?: string | null;
|
|
36
36
|
developerName: string;
|
|
37
37
|
id: string;
|
|
38
|
-
imageUrl
|
|
38
|
+
imageUrl?: string | null;
|
|
39
39
|
label: string;
|
|
40
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-network-data-category",
|
|
3
|
-
"version": "1.228.
|
|
3
|
+
"version": "1.228.1",
|
|
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",
|
package/sfdc/index.js
CHANGED
|
@@ -426,7 +426,7 @@ const getArticlesForCategoryAdapterFactory = (luvio) => function NetworkDataCate
|
|
|
426
426
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
427
427
|
};
|
|
428
428
|
|
|
429
|
-
const VERSION$5 = "
|
|
429
|
+
const VERSION$5 = "0d501a366f70d5f5cdd9a7d7af934c58";
|
|
430
430
|
function validate$6(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
431
431
|
const v_error = (() => {
|
|
432
432
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -449,25 +449,94 @@ function validate$6(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
|
449
449
|
return new TypeError('Expected "defined" but received "' + typeof obj_childCategories_item + '" (at "' + path_childCategories_item + '")');
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
452
|
+
if (obj.description !== undefined) {
|
|
453
|
+
const obj_description = obj.description;
|
|
454
|
+
const path_description = path + '.description';
|
|
455
|
+
let obj_description_union0 = null;
|
|
456
|
+
const obj_description_union0_error = (() => {
|
|
457
|
+
if (typeof obj_description !== 'string') {
|
|
458
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
459
|
+
}
|
|
460
|
+
})();
|
|
461
|
+
if (obj_description_union0_error != null) {
|
|
462
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
463
|
+
}
|
|
464
|
+
let obj_description_union1 = null;
|
|
465
|
+
const obj_description_union1_error = (() => {
|
|
466
|
+
if (obj_description !== null) {
|
|
467
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
468
|
+
}
|
|
469
|
+
})();
|
|
470
|
+
if (obj_description_union1_error != null) {
|
|
471
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
472
|
+
}
|
|
473
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
474
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
475
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
476
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
477
|
+
return new TypeError(message);
|
|
478
|
+
}
|
|
456
479
|
}
|
|
457
480
|
const obj_id = obj.id;
|
|
458
481
|
const path_id = path + '.id';
|
|
459
482
|
if (typeof obj_id !== 'string') {
|
|
460
483
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
461
484
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
485
|
+
if (obj.imageUrl !== undefined) {
|
|
486
|
+
const obj_imageUrl = obj.imageUrl;
|
|
487
|
+
const path_imageUrl = path + '.imageUrl';
|
|
488
|
+
let obj_imageUrl_union0 = null;
|
|
489
|
+
const obj_imageUrl_union0_error = (() => {
|
|
490
|
+
if (typeof obj_imageUrl !== 'string') {
|
|
491
|
+
return new TypeError('Expected "string" but received "' + typeof obj_imageUrl + '" (at "' + path_imageUrl + '")');
|
|
492
|
+
}
|
|
493
|
+
})();
|
|
494
|
+
if (obj_imageUrl_union0_error != null) {
|
|
495
|
+
obj_imageUrl_union0 = obj_imageUrl_union0_error.message;
|
|
496
|
+
}
|
|
497
|
+
let obj_imageUrl_union1 = null;
|
|
498
|
+
const obj_imageUrl_union1_error = (() => {
|
|
499
|
+
if (obj_imageUrl !== null) {
|
|
500
|
+
return new TypeError('Expected "null" but received "' + typeof obj_imageUrl + '" (at "' + path_imageUrl + '")');
|
|
501
|
+
}
|
|
502
|
+
})();
|
|
503
|
+
if (obj_imageUrl_union1_error != null) {
|
|
504
|
+
obj_imageUrl_union1 = obj_imageUrl_union1_error.message;
|
|
505
|
+
}
|
|
506
|
+
if (obj_imageUrl_union0 && obj_imageUrl_union1) {
|
|
507
|
+
let message = 'Object doesn\'t match union (at "' + path_imageUrl + '")';
|
|
508
|
+
message += '\n' + obj_imageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
509
|
+
message += '\n' + obj_imageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
510
|
+
return new TypeError(message);
|
|
511
|
+
}
|
|
466
512
|
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
513
|
+
if (obj.label !== undefined) {
|
|
514
|
+
const obj_label = obj.label;
|
|
515
|
+
const path_label = path + '.label';
|
|
516
|
+
let obj_label_union0 = null;
|
|
517
|
+
const obj_label_union0_error = (() => {
|
|
518
|
+
if (typeof obj_label !== 'string') {
|
|
519
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
520
|
+
}
|
|
521
|
+
})();
|
|
522
|
+
if (obj_label_union0_error != null) {
|
|
523
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
524
|
+
}
|
|
525
|
+
let obj_label_union1 = null;
|
|
526
|
+
const obj_label_union1_error = (() => {
|
|
527
|
+
if (obj_label !== null) {
|
|
528
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
529
|
+
}
|
|
530
|
+
})();
|
|
531
|
+
if (obj_label_union1_error != null) {
|
|
532
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
533
|
+
}
|
|
534
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
535
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
536
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
537
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
538
|
+
return new TypeError(message);
|
|
539
|
+
}
|
|
471
540
|
}
|
|
472
541
|
})();
|
|
473
542
|
return v_error === undefined ? null : v_error;
|
|
@@ -489,7 +558,8 @@ const select$9 = function NetworkDataCategoryRepresentationSelect() {
|
|
|
489
558
|
},
|
|
490
559
|
{
|
|
491
560
|
name: 'description',
|
|
492
|
-
kind: 'Scalar'
|
|
561
|
+
kind: 'Scalar',
|
|
562
|
+
required: false
|
|
493
563
|
},
|
|
494
564
|
{
|
|
495
565
|
name: 'id',
|
|
@@ -497,11 +567,13 @@ const select$9 = function NetworkDataCategoryRepresentationSelect() {
|
|
|
497
567
|
},
|
|
498
568
|
{
|
|
499
569
|
name: 'imageUrl',
|
|
500
|
-
kind: 'Scalar'
|
|
570
|
+
kind: 'Scalar',
|
|
571
|
+
required: false
|
|
501
572
|
},
|
|
502
573
|
{
|
|
503
574
|
name: 'label',
|
|
504
|
-
kind: 'Scalar'
|
|
575
|
+
kind: 'Scalar',
|
|
576
|
+
required: false
|
|
505
577
|
}
|
|
506
578
|
]
|
|
507
579
|
};
|
|
@@ -512,26 +584,11 @@ function equals$5(existing, incoming) {
|
|
|
512
584
|
if (!(existing_categoryName === incoming_categoryName)) {
|
|
513
585
|
return false;
|
|
514
586
|
}
|
|
515
|
-
const existing_description = existing.description;
|
|
516
|
-
const incoming_description = incoming.description;
|
|
517
|
-
if (!(existing_description === incoming_description)) {
|
|
518
|
-
return false;
|
|
519
|
-
}
|
|
520
587
|
const existing_id = existing.id;
|
|
521
588
|
const incoming_id = incoming.id;
|
|
522
589
|
if (!(existing_id === incoming_id)) {
|
|
523
590
|
return false;
|
|
524
591
|
}
|
|
525
|
-
const existing_imageUrl = existing.imageUrl;
|
|
526
|
-
const incoming_imageUrl = incoming.imageUrl;
|
|
527
|
-
if (!(existing_imageUrl === incoming_imageUrl)) {
|
|
528
|
-
return false;
|
|
529
|
-
}
|
|
530
|
-
const existing_label = existing.label;
|
|
531
|
-
const incoming_label = incoming.label;
|
|
532
|
-
if (!(existing_label === incoming_label)) {
|
|
533
|
-
return false;
|
|
534
|
-
}
|
|
535
592
|
const existing_childCategories = existing.childCategories;
|
|
536
593
|
const incoming_childCategories = incoming.childCategories;
|
|
537
594
|
const equals_childCategories_items = equalsArray(existing_childCategories, incoming_childCategories, (existing_childCategories_item, incoming_childCategories_item) => {
|
|
@@ -542,10 +599,49 @@ function equals$5(existing, incoming) {
|
|
|
542
599
|
if (equals_childCategories_items === false) {
|
|
543
600
|
return false;
|
|
544
601
|
}
|
|
602
|
+
const existing_description = existing.description;
|
|
603
|
+
const incoming_description = incoming.description;
|
|
604
|
+
// if at least one of these optionals is defined
|
|
605
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
606
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
607
|
+
// not equal
|
|
608
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
609
|
+
return false;
|
|
610
|
+
}
|
|
611
|
+
if (!(existing_description === incoming_description)) {
|
|
612
|
+
return false;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
const existing_imageUrl = existing.imageUrl;
|
|
616
|
+
const incoming_imageUrl = incoming.imageUrl;
|
|
617
|
+
// if at least one of these optionals is defined
|
|
618
|
+
if (existing_imageUrl !== undefined || incoming_imageUrl !== undefined) {
|
|
619
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
620
|
+
// not equal
|
|
621
|
+
if (existing_imageUrl === undefined || incoming_imageUrl === undefined) {
|
|
622
|
+
return false;
|
|
623
|
+
}
|
|
624
|
+
if (!(existing_imageUrl === incoming_imageUrl)) {
|
|
625
|
+
return false;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
const existing_label = existing.label;
|
|
629
|
+
const incoming_label = incoming.label;
|
|
630
|
+
// if at least one of these optionals is defined
|
|
631
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
632
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
633
|
+
// not equal
|
|
634
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
635
|
+
return false;
|
|
636
|
+
}
|
|
637
|
+
if (!(existing_label === incoming_label)) {
|
|
638
|
+
return false;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
545
641
|
return true;
|
|
546
642
|
}
|
|
547
643
|
|
|
548
|
-
const VERSION$4 = "
|
|
644
|
+
const VERSION$4 = "971192bd937efc9d89177c7289adf241";
|
|
549
645
|
function validate$5(obj, path = 'NetworkDataCategoryGroupRepresentation') {
|
|
550
646
|
const v_error = (() => {
|
|
551
647
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -556,13 +652,36 @@ function validate$5(obj, path = 'NetworkDataCategoryGroupRepresentation') {
|
|
|
556
652
|
if (typeof obj_categoryGroupName !== 'string') {
|
|
557
653
|
return new TypeError('Expected "string" but received "' + typeof obj_categoryGroupName + '" (at "' + path_categoryGroupName + '")');
|
|
558
654
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
655
|
+
if (obj.rootCategory !== undefined) {
|
|
656
|
+
const obj_rootCategory = obj.rootCategory;
|
|
657
|
+
const path_rootCategory = path + '.rootCategory';
|
|
658
|
+
let obj_rootCategory_union0 = null;
|
|
659
|
+
const obj_rootCategory_union0_error = (() => {
|
|
660
|
+
const referencepath_rootCategoryValidationError = validate$6(obj_rootCategory, path_rootCategory);
|
|
661
|
+
if (referencepath_rootCategoryValidationError !== null) {
|
|
662
|
+
let message = 'Object doesn\'t match NetworkDataCategoryRepresentation (at "' + path_rootCategory + '")\n';
|
|
663
|
+
message += referencepath_rootCategoryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
664
|
+
return new TypeError(message);
|
|
665
|
+
}
|
|
666
|
+
})();
|
|
667
|
+
if (obj_rootCategory_union0_error != null) {
|
|
668
|
+
obj_rootCategory_union0 = obj_rootCategory_union0_error.message;
|
|
669
|
+
}
|
|
670
|
+
let obj_rootCategory_union1 = null;
|
|
671
|
+
const obj_rootCategory_union1_error = (() => {
|
|
672
|
+
if (obj_rootCategory !== null) {
|
|
673
|
+
return new TypeError('Expected "null" but received "' + typeof obj_rootCategory + '" (at "' + path_rootCategory + '")');
|
|
674
|
+
}
|
|
675
|
+
})();
|
|
676
|
+
if (obj_rootCategory_union1_error != null) {
|
|
677
|
+
obj_rootCategory_union1 = obj_rootCategory_union1_error.message;
|
|
678
|
+
}
|
|
679
|
+
if (obj_rootCategory_union0 && obj_rootCategory_union1) {
|
|
680
|
+
let message = 'Object doesn\'t match union (at "' + path_rootCategory + '")';
|
|
681
|
+
message += '\n' + obj_rootCategory_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
682
|
+
message += '\n' + obj_rootCategory_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
683
|
+
return new TypeError(message);
|
|
684
|
+
}
|
|
566
685
|
}
|
|
567
686
|
})();
|
|
568
687
|
return v_error === undefined ? null : v_error;
|
|
@@ -581,7 +700,9 @@ const select$8 = function NetworkDataCategoryGroupRepresentationSelect() {
|
|
|
581
700
|
{
|
|
582
701
|
name: 'rootCategory',
|
|
583
702
|
kind: 'Object',
|
|
584
|
-
|
|
703
|
+
nullable: true,
|
|
704
|
+
selections: NetworkDataCategoryRepresentation__selections,
|
|
705
|
+
required: false
|
|
585
706
|
}
|
|
586
707
|
]
|
|
587
708
|
};
|
|
@@ -594,8 +715,19 @@ function equals$4(existing, incoming) {
|
|
|
594
715
|
}
|
|
595
716
|
const existing_rootCategory = existing.rootCategory;
|
|
596
717
|
const incoming_rootCategory = incoming.rootCategory;
|
|
597
|
-
if
|
|
598
|
-
|
|
718
|
+
// if at least one of these optionals is defined
|
|
719
|
+
if (existing_rootCategory !== undefined || incoming_rootCategory !== undefined) {
|
|
720
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
721
|
+
// not equal
|
|
722
|
+
if (existing_rootCategory === undefined || incoming_rootCategory === undefined) {
|
|
723
|
+
return false;
|
|
724
|
+
}
|
|
725
|
+
if (!(existing_rootCategory === incoming_rootCategory
|
|
726
|
+
|| (existing_rootCategory != null &&
|
|
727
|
+
incoming_rootCategory != null &&
|
|
728
|
+
equals$5(existing_rootCategory, incoming_rootCategory)))) {
|
|
729
|
+
return false;
|
|
730
|
+
}
|
|
599
731
|
}
|
|
600
732
|
return true;
|
|
601
733
|
}
|
|
@@ -886,16 +1018,39 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
886
1018
|
};
|
|
887
1019
|
};
|
|
888
1020
|
|
|
889
|
-
const VERSION$2 = "
|
|
1021
|
+
const VERSION$2 = "e09f2c8e969b05cce02145ff503c5764";
|
|
890
1022
|
function validate$3(obj, path = 'ServiceCatalogItemRepresentation') {
|
|
891
1023
|
const v_error = (() => {
|
|
892
1024
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
893
1025
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
894
1026
|
}
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
1027
|
+
if (obj.description !== undefined) {
|
|
1028
|
+
const obj_description = obj.description;
|
|
1029
|
+
const path_description = path + '.description';
|
|
1030
|
+
let obj_description_union0 = null;
|
|
1031
|
+
const obj_description_union0_error = (() => {
|
|
1032
|
+
if (typeof obj_description !== 'string') {
|
|
1033
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1034
|
+
}
|
|
1035
|
+
})();
|
|
1036
|
+
if (obj_description_union0_error != null) {
|
|
1037
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
1038
|
+
}
|
|
1039
|
+
let obj_description_union1 = null;
|
|
1040
|
+
const obj_description_union1_error = (() => {
|
|
1041
|
+
if (obj_description !== null) {
|
|
1042
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1043
|
+
}
|
|
1044
|
+
})();
|
|
1045
|
+
if (obj_description_union1_error != null) {
|
|
1046
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
1047
|
+
}
|
|
1048
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
1049
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
1050
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1051
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1052
|
+
return new TypeError(message);
|
|
1053
|
+
}
|
|
899
1054
|
}
|
|
900
1055
|
const obj_developerName = obj.developerName;
|
|
901
1056
|
const path_developerName = path + '.developerName';
|
|
@@ -907,10 +1062,33 @@ function validate$3(obj, path = 'ServiceCatalogItemRepresentation') {
|
|
|
907
1062
|
if (typeof obj_id !== 'string') {
|
|
908
1063
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
909
1064
|
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
1065
|
+
if (obj.imageUrl !== undefined) {
|
|
1066
|
+
const obj_imageUrl = obj.imageUrl;
|
|
1067
|
+
const path_imageUrl = path + '.imageUrl';
|
|
1068
|
+
let obj_imageUrl_union0 = null;
|
|
1069
|
+
const obj_imageUrl_union0_error = (() => {
|
|
1070
|
+
if (typeof obj_imageUrl !== 'string') {
|
|
1071
|
+
return new TypeError('Expected "string" but received "' + typeof obj_imageUrl + '" (at "' + path_imageUrl + '")');
|
|
1072
|
+
}
|
|
1073
|
+
})();
|
|
1074
|
+
if (obj_imageUrl_union0_error != null) {
|
|
1075
|
+
obj_imageUrl_union0 = obj_imageUrl_union0_error.message;
|
|
1076
|
+
}
|
|
1077
|
+
let obj_imageUrl_union1 = null;
|
|
1078
|
+
const obj_imageUrl_union1_error = (() => {
|
|
1079
|
+
if (obj_imageUrl !== null) {
|
|
1080
|
+
return new TypeError('Expected "null" but received "' + typeof obj_imageUrl + '" (at "' + path_imageUrl + '")');
|
|
1081
|
+
}
|
|
1082
|
+
})();
|
|
1083
|
+
if (obj_imageUrl_union1_error != null) {
|
|
1084
|
+
obj_imageUrl_union1 = obj_imageUrl_union1_error.message;
|
|
1085
|
+
}
|
|
1086
|
+
if (obj_imageUrl_union0 && obj_imageUrl_union1) {
|
|
1087
|
+
let message = 'Object doesn\'t match union (at "' + path_imageUrl + '")';
|
|
1088
|
+
message += '\n' + obj_imageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1089
|
+
message += '\n' + obj_imageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1090
|
+
return new TypeError(message);
|
|
1091
|
+
}
|
|
914
1092
|
}
|
|
915
1093
|
const obj_label = obj.label;
|
|
916
1094
|
const path_label = path + '.label';
|
|
@@ -928,7 +1106,8 @@ const select$5 = function ServiceCatalogItemRepresentationSelect() {
|
|
|
928
1106
|
selections: [
|
|
929
1107
|
{
|
|
930
1108
|
name: 'description',
|
|
931
|
-
kind: 'Scalar'
|
|
1109
|
+
kind: 'Scalar',
|
|
1110
|
+
required: false
|
|
932
1111
|
},
|
|
933
1112
|
{
|
|
934
1113
|
name: 'developerName',
|
|
@@ -940,7 +1119,8 @@ const select$5 = function ServiceCatalogItemRepresentationSelect() {
|
|
|
940
1119
|
},
|
|
941
1120
|
{
|
|
942
1121
|
name: 'imageUrl',
|
|
943
|
-
kind: 'Scalar'
|
|
1122
|
+
kind: 'Scalar',
|
|
1123
|
+
required: false
|
|
944
1124
|
},
|
|
945
1125
|
{
|
|
946
1126
|
name: 'label',
|
|
@@ -950,11 +1130,6 @@ const select$5 = function ServiceCatalogItemRepresentationSelect() {
|
|
|
950
1130
|
};
|
|
951
1131
|
};
|
|
952
1132
|
function equals$2(existing, incoming) {
|
|
953
|
-
const existing_description = existing.description;
|
|
954
|
-
const incoming_description = incoming.description;
|
|
955
|
-
if (!(existing_description === incoming_description)) {
|
|
956
|
-
return false;
|
|
957
|
-
}
|
|
958
1133
|
const existing_developerName = existing.developerName;
|
|
959
1134
|
const incoming_developerName = incoming.developerName;
|
|
960
1135
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -965,16 +1140,37 @@ function equals$2(existing, incoming) {
|
|
|
965
1140
|
if (!(existing_id === incoming_id)) {
|
|
966
1141
|
return false;
|
|
967
1142
|
}
|
|
968
|
-
const existing_imageUrl = existing.imageUrl;
|
|
969
|
-
const incoming_imageUrl = incoming.imageUrl;
|
|
970
|
-
if (!(existing_imageUrl === incoming_imageUrl)) {
|
|
971
|
-
return false;
|
|
972
|
-
}
|
|
973
1143
|
const existing_label = existing.label;
|
|
974
1144
|
const incoming_label = incoming.label;
|
|
975
1145
|
if (!(existing_label === incoming_label)) {
|
|
976
1146
|
return false;
|
|
977
1147
|
}
|
|
1148
|
+
const existing_description = existing.description;
|
|
1149
|
+
const incoming_description = incoming.description;
|
|
1150
|
+
// if at least one of these optionals is defined
|
|
1151
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
1152
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1153
|
+
// not equal
|
|
1154
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
1155
|
+
return false;
|
|
1156
|
+
}
|
|
1157
|
+
if (!(existing_description === incoming_description)) {
|
|
1158
|
+
return false;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
const existing_imageUrl = existing.imageUrl;
|
|
1162
|
+
const incoming_imageUrl = incoming.imageUrl;
|
|
1163
|
+
// if at least one of these optionals is defined
|
|
1164
|
+
if (existing_imageUrl !== undefined || incoming_imageUrl !== undefined) {
|
|
1165
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1166
|
+
// not equal
|
|
1167
|
+
if (existing_imageUrl === undefined || incoming_imageUrl === undefined) {
|
|
1168
|
+
return false;
|
|
1169
|
+
}
|
|
1170
|
+
if (!(existing_imageUrl === incoming_imageUrl)) {
|
|
1171
|
+
return false;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
978
1174
|
return true;
|
|
979
1175
|
}
|
|
980
1176
|
|
|
@@ -1573,4 +1769,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1573
1769
|
});
|
|
1574
1770
|
|
|
1575
1771
|
export { getArticlesForCategory, getArticlesForCategory_imperative, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getNetworkDataCategories_imperative, getServiceCatalogItems, getServiceCatalogItemsForCommunity, getServiceCatalogItemsForCommunity_imperative, getServiceCatalogItems_imperative, updateNetworkDataCategories };
|
|
1576
|
-
// version: 1.228.
|
|
1772
|
+
// version: 1.228.1-0cb6f94f1
|
package/src/raml/api.raml
CHANGED
|
@@ -39,7 +39,8 @@ types:
|
|
|
39
39
|
type: string
|
|
40
40
|
rootCategory:
|
|
41
41
|
description: Root Category Representation
|
|
42
|
-
type: NetworkDataCategoryRepresentation
|
|
42
|
+
type: NetworkDataCategoryRepresentation | nil
|
|
43
|
+
required: false
|
|
43
44
|
NetworkDataCategoryRepresentation:
|
|
44
45
|
description: Describes a network data category
|
|
45
46
|
type: object
|
|
@@ -54,16 +55,19 @@ types:
|
|
|
54
55
|
type: any # This is a workaround because recursive (tree) representations aren't supported in Luvio, even though they're supported in Connect API
|
|
55
56
|
description:
|
|
56
57
|
description: Network Data Category Description
|
|
57
|
-
type: string
|
|
58
|
+
type: string | nil
|
|
59
|
+
required: false
|
|
58
60
|
id:
|
|
59
61
|
description: Network Data Category id
|
|
60
62
|
type: string
|
|
61
63
|
imageUrl:
|
|
62
64
|
description: Image Url of Network Data Category
|
|
63
|
-
type: string
|
|
65
|
+
type: string | nil
|
|
66
|
+
required: false
|
|
64
67
|
label:
|
|
65
68
|
description: Network Data Category Label
|
|
66
|
-
type: string
|
|
69
|
+
type: string | nil
|
|
70
|
+
required: false
|
|
67
71
|
NetworkDataCategoryTreeRepresentation:
|
|
68
72
|
description: Represents a network data category tree
|
|
69
73
|
type: object
|
|
@@ -136,7 +140,8 @@ types:
|
|
|
136
140
|
properties:
|
|
137
141
|
description:
|
|
138
142
|
description: Short Description of Service Catalog Item
|
|
139
|
-
type: string
|
|
143
|
+
type: string | nil
|
|
144
|
+
required: false
|
|
140
145
|
developerName:
|
|
141
146
|
description: Dev name of Service Catalog Item
|
|
142
147
|
type: string
|
|
@@ -145,7 +150,8 @@ types:
|
|
|
145
150
|
type: string
|
|
146
151
|
imageUrl:
|
|
147
152
|
description: Image url of Service Catalog Item
|
|
148
|
-
type: string
|
|
153
|
+
type: string | nil
|
|
154
|
+
required: false
|
|
149
155
|
label:
|
|
150
156
|
description: Label of Service Catalog Item
|
|
151
157
|
type: string
|