@salesforce/lds-adapters-service-network-data-category 1.262.4 → 1.263.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 +90 -12
- package/dist/es/es2018/types/src/generated/types/LightningKnowledgeArticleVersionRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/NetworkDataCategoryRepresentation.d.ts +4 -1
- package/package.json +4 -4
- package/sfdc/index.js +91 -13
- package/src/raml/api.raml +6 -1
|
@@ -510,7 +510,7 @@ const getServiceCatalogItemsAdapterFactory = (luvio) => function NetworkDataCate
|
|
|
510
510
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
511
511
|
};
|
|
512
512
|
|
|
513
|
-
const VERSION$6 = "
|
|
513
|
+
const VERSION$6 = "cddad6e33054c6b9860f0ea60265869e";
|
|
514
514
|
function validate$7(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
515
515
|
const v_error = (() => {
|
|
516
516
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -570,6 +570,34 @@ function validate$7(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
|
570
570
|
message += '\n' + obj_categoryName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
571
571
|
return new TypeError(message);
|
|
572
572
|
}
|
|
573
|
+
if (obj.categoryOrGroupLabel !== undefined) {
|
|
574
|
+
const obj_categoryOrGroupLabel = obj.categoryOrGroupLabel;
|
|
575
|
+
const path_categoryOrGroupLabel = path + '.categoryOrGroupLabel';
|
|
576
|
+
let obj_categoryOrGroupLabel_union0 = null;
|
|
577
|
+
const obj_categoryOrGroupLabel_union0_error = (() => {
|
|
578
|
+
if (typeof obj_categoryOrGroupLabel !== 'string') {
|
|
579
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categoryOrGroupLabel + '" (at "' + path_categoryOrGroupLabel + '")');
|
|
580
|
+
}
|
|
581
|
+
})();
|
|
582
|
+
if (obj_categoryOrGroupLabel_union0_error != null) {
|
|
583
|
+
obj_categoryOrGroupLabel_union0 = obj_categoryOrGroupLabel_union0_error.message;
|
|
584
|
+
}
|
|
585
|
+
let obj_categoryOrGroupLabel_union1 = null;
|
|
586
|
+
const obj_categoryOrGroupLabel_union1_error = (() => {
|
|
587
|
+
if (obj_categoryOrGroupLabel !== null) {
|
|
588
|
+
return new TypeError('Expected "null" but received "' + typeof obj_categoryOrGroupLabel + '" (at "' + path_categoryOrGroupLabel + '")');
|
|
589
|
+
}
|
|
590
|
+
})();
|
|
591
|
+
if (obj_categoryOrGroupLabel_union1_error != null) {
|
|
592
|
+
obj_categoryOrGroupLabel_union1 = obj_categoryOrGroupLabel_union1_error.message;
|
|
593
|
+
}
|
|
594
|
+
if (obj_categoryOrGroupLabel_union0 && obj_categoryOrGroupLabel_union1) {
|
|
595
|
+
let message = 'Object doesn\'t match union (at "' + path_categoryOrGroupLabel + '")';
|
|
596
|
+
message += '\n' + obj_categoryOrGroupLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
597
|
+
message += '\n' + obj_categoryOrGroupLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
598
|
+
return new TypeError(message);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
573
601
|
const obj_childCategories = obj.childCategories;
|
|
574
602
|
const path_childCategories = path + '.childCategories';
|
|
575
603
|
if (!ArrayIsArray(obj_childCategories)) {
|
|
@@ -730,6 +758,11 @@ const select$d = function NetworkDataCategoryRepresentationSelect() {
|
|
|
730
758
|
name: 'categoryName',
|
|
731
759
|
kind: 'Scalar'
|
|
732
760
|
},
|
|
761
|
+
{
|
|
762
|
+
name: 'categoryOrGroupLabel',
|
|
763
|
+
kind: 'Scalar',
|
|
764
|
+
required: false
|
|
765
|
+
},
|
|
733
766
|
{
|
|
734
767
|
name: 'childCategories',
|
|
735
768
|
kind: 'Object',
|
|
@@ -786,6 +819,19 @@ function equals$6(existing, incoming) {
|
|
|
786
819
|
if (!(existing_categoryName === incoming_categoryName)) {
|
|
787
820
|
return false;
|
|
788
821
|
}
|
|
822
|
+
const existing_categoryOrGroupLabel = existing.categoryOrGroupLabel;
|
|
823
|
+
const incoming_categoryOrGroupLabel = incoming.categoryOrGroupLabel;
|
|
824
|
+
// if at least one of these optionals is defined
|
|
825
|
+
if (existing_categoryOrGroupLabel !== undefined || incoming_categoryOrGroupLabel !== undefined) {
|
|
826
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
827
|
+
// not equal
|
|
828
|
+
if (existing_categoryOrGroupLabel === undefined || incoming_categoryOrGroupLabel === undefined) {
|
|
829
|
+
return false;
|
|
830
|
+
}
|
|
831
|
+
if (!(existing_categoryOrGroupLabel === incoming_categoryOrGroupLabel)) {
|
|
832
|
+
return false;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
789
835
|
const existing_childCategories = existing.childCategories;
|
|
790
836
|
const incoming_childCategories = incoming.childCategories;
|
|
791
837
|
const equals_childCategories_items = equalsArray(existing_childCategories, incoming_childCategories, (existing_childCategories_item, incoming_childCategories_item) => {
|
|
@@ -1123,7 +1169,7 @@ const getServiceCatalogItemsForCommunityAdapterFactory = (luvio) => function Net
|
|
|
1123
1169
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
1124
1170
|
};
|
|
1125
1171
|
|
|
1126
|
-
const VERSION$5 = "
|
|
1172
|
+
const VERSION$5 = "1579429bf94d94aa9fe7ba4906607811";
|
|
1127
1173
|
function validate$6(obj, path = 'LightningKnowledgeArticleVersionRepresentation') {
|
|
1128
1174
|
const v_error = (() => {
|
|
1129
1175
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1144,10 +1190,33 @@ function validate$6(obj, path = 'LightningKnowledgeArticleVersionRepresentation'
|
|
|
1144
1190
|
if (typeof obj_lastPublishedDate !== 'string') {
|
|
1145
1191
|
return new TypeError('Expected "string" but received "' + typeof obj_lastPublishedDate + '" (at "' + path_lastPublishedDate + '")');
|
|
1146
1192
|
}
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1193
|
+
if (obj.summary !== undefined) {
|
|
1194
|
+
const obj_summary = obj.summary;
|
|
1195
|
+
const path_summary = path + '.summary';
|
|
1196
|
+
let obj_summary_union0 = null;
|
|
1197
|
+
const obj_summary_union0_error = (() => {
|
|
1198
|
+
if (typeof obj_summary !== 'string') {
|
|
1199
|
+
return new TypeError('Expected "string" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
|
|
1200
|
+
}
|
|
1201
|
+
})();
|
|
1202
|
+
if (obj_summary_union0_error != null) {
|
|
1203
|
+
obj_summary_union0 = obj_summary_union0_error.message;
|
|
1204
|
+
}
|
|
1205
|
+
let obj_summary_union1 = null;
|
|
1206
|
+
const obj_summary_union1_error = (() => {
|
|
1207
|
+
if (obj_summary !== null) {
|
|
1208
|
+
return new TypeError('Expected "null" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
|
|
1209
|
+
}
|
|
1210
|
+
})();
|
|
1211
|
+
if (obj_summary_union1_error != null) {
|
|
1212
|
+
obj_summary_union1 = obj_summary_union1_error.message;
|
|
1213
|
+
}
|
|
1214
|
+
if (obj_summary_union0 && obj_summary_union1) {
|
|
1215
|
+
let message = 'Object doesn\'t match union (at "' + path_summary + '")';
|
|
1216
|
+
message += '\n' + obj_summary_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1217
|
+
message += '\n' + obj_summary_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1218
|
+
return new TypeError(message);
|
|
1219
|
+
}
|
|
1151
1220
|
}
|
|
1152
1221
|
const obj_title = obj.title;
|
|
1153
1222
|
const path_title = path + '.title';
|
|
@@ -1182,7 +1251,8 @@ const select$a = function LightningKnowledgeArticleVersionRepresentationSelect()
|
|
|
1182
1251
|
},
|
|
1183
1252
|
{
|
|
1184
1253
|
name: 'summary',
|
|
1185
|
-
kind: 'Scalar'
|
|
1254
|
+
kind: 'Scalar',
|
|
1255
|
+
required: false
|
|
1186
1256
|
},
|
|
1187
1257
|
{
|
|
1188
1258
|
name: 'title',
|
|
@@ -1211,11 +1281,6 @@ function equals$5(existing, incoming) {
|
|
|
1211
1281
|
if (!(existing_lastPublishedDate === incoming_lastPublishedDate)) {
|
|
1212
1282
|
return false;
|
|
1213
1283
|
}
|
|
1214
|
-
const existing_summary = existing.summary;
|
|
1215
|
-
const incoming_summary = incoming.summary;
|
|
1216
|
-
if (!(existing_summary === incoming_summary)) {
|
|
1217
|
-
return false;
|
|
1218
|
-
}
|
|
1219
1284
|
const existing_title = existing.title;
|
|
1220
1285
|
const incoming_title = incoming.title;
|
|
1221
1286
|
if (!(existing_title === incoming_title)) {
|
|
@@ -1226,6 +1291,19 @@ function equals$5(existing, incoming) {
|
|
|
1226
1291
|
if (!(existing_urlName === incoming_urlName)) {
|
|
1227
1292
|
return false;
|
|
1228
1293
|
}
|
|
1294
|
+
const existing_summary = existing.summary;
|
|
1295
|
+
const incoming_summary = incoming.summary;
|
|
1296
|
+
// if at least one of these optionals is defined
|
|
1297
|
+
if (existing_summary !== undefined || incoming_summary !== undefined) {
|
|
1298
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1299
|
+
// not equal
|
|
1300
|
+
if (existing_summary === undefined || incoming_summary === undefined) {
|
|
1301
|
+
return false;
|
|
1302
|
+
}
|
|
1303
|
+
if (!(existing_summary === incoming_summary)) {
|
|
1304
|
+
return false;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1229
1307
|
return true;
|
|
1230
1308
|
}
|
|
1231
1309
|
|
package/dist/es/es2018/types/src/generated/types/LightningKnowledgeArticleVersionRepresentation.d.ts
CHANGED
|
@@ -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 = "1579429bf94d94aa9fe7ba4906607811";
|
|
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: LightningKnowledgeArticleVersionRepresentation, existing: LightningKnowledgeArticleVersionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningKnowledgeArticleVersionRepresentationNormalized;
|
|
@@ -21,7 +21,7 @@ export interface LightningKnowledgeArticleVersionRepresentationNormalized {
|
|
|
21
21
|
/** Last published date of the article. */
|
|
22
22
|
lastPublishedDate: string;
|
|
23
23
|
/** Summary of the articles contents. */
|
|
24
|
-
summary
|
|
24
|
+
summary?: string | null;
|
|
25
25
|
/** Title of the Article */
|
|
26
26
|
title: string;
|
|
27
27
|
/** URL_NAME of the Article */
|
|
@@ -37,7 +37,7 @@ export interface LightningKnowledgeArticleVersionRepresentation {
|
|
|
37
37
|
id: string;
|
|
38
38
|
knowledgeArticleId: string;
|
|
39
39
|
lastPublishedDate: string;
|
|
40
|
-
summary
|
|
40
|
+
summary?: string | null;
|
|
41
41
|
title: string;
|
|
42
42
|
urlName: string;
|
|
43
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "cddad6e33054c6b9860f0ea60265869e";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -27,6 +27,8 @@ export interface NetworkDataCategoryRepresentationNormalized {
|
|
|
27
27
|
categoryGroupName?: string | null;
|
|
28
28
|
/** Network Data Category Name */
|
|
29
29
|
categoryName: string | null;
|
|
30
|
+
/** Label of the Data Category or Data Category Group */
|
|
31
|
+
categoryOrGroupLabel?: string | null;
|
|
30
32
|
/** Children of Network Data Category */
|
|
31
33
|
childCategories: Array<unknown>;
|
|
32
34
|
/** Network Data Category Description */
|
|
@@ -49,6 +51,7 @@ export interface NetworkDataCategoryRepresentationNormalized {
|
|
|
49
51
|
export interface NetworkDataCategoryRepresentation {
|
|
50
52
|
categoryGroupName?: string | null;
|
|
51
53
|
categoryName: string | null;
|
|
54
|
+
categoryOrGroupLabel?: string | null;
|
|
52
55
|
childCategories: Array<unknown>;
|
|
53
56
|
description?: string | null;
|
|
54
57
|
id: string;
|
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.263.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.263.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
49
|
-
"@salesforce/lds-karma": "^1.
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.263.0",
|
|
49
|
+
"@salesforce/lds-karma": "^1.263.0"
|
|
50
50
|
},
|
|
51
51
|
"nx": {
|
|
52
52
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -103,7 +103,7 @@ function createLink(ref) {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
const VERSION$8 = "
|
|
106
|
+
const VERSION$8 = "1579429bf94d94aa9fe7ba4906607811";
|
|
107
107
|
function validate$9(obj, path = 'LightningKnowledgeArticleVersionRepresentation') {
|
|
108
108
|
const v_error = (() => {
|
|
109
109
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -124,10 +124,33 @@ function validate$9(obj, path = 'LightningKnowledgeArticleVersionRepresentation'
|
|
|
124
124
|
if (typeof obj_lastPublishedDate !== 'string') {
|
|
125
125
|
return new TypeError('Expected "string" but received "' + typeof obj_lastPublishedDate + '" (at "' + path_lastPublishedDate + '")');
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
if (obj.summary !== undefined) {
|
|
128
|
+
const obj_summary = obj.summary;
|
|
129
|
+
const path_summary = path + '.summary';
|
|
130
|
+
let obj_summary_union0 = null;
|
|
131
|
+
const obj_summary_union0_error = (() => {
|
|
132
|
+
if (typeof obj_summary !== 'string') {
|
|
133
|
+
return new TypeError('Expected "string" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
|
|
134
|
+
}
|
|
135
|
+
})();
|
|
136
|
+
if (obj_summary_union0_error != null) {
|
|
137
|
+
obj_summary_union0 = obj_summary_union0_error.message;
|
|
138
|
+
}
|
|
139
|
+
let obj_summary_union1 = null;
|
|
140
|
+
const obj_summary_union1_error = (() => {
|
|
141
|
+
if (obj_summary !== null) {
|
|
142
|
+
return new TypeError('Expected "null" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
|
|
143
|
+
}
|
|
144
|
+
})();
|
|
145
|
+
if (obj_summary_union1_error != null) {
|
|
146
|
+
obj_summary_union1 = obj_summary_union1_error.message;
|
|
147
|
+
}
|
|
148
|
+
if (obj_summary_union0 && obj_summary_union1) {
|
|
149
|
+
let message = 'Object doesn\'t match union (at "' + path_summary + '")';
|
|
150
|
+
message += '\n' + obj_summary_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
151
|
+
message += '\n' + obj_summary_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
152
|
+
return new TypeError(message);
|
|
153
|
+
}
|
|
131
154
|
}
|
|
132
155
|
const obj_title = obj.title;
|
|
133
156
|
const path_title = path + '.title';
|
|
@@ -162,7 +185,8 @@ const select$g = function LightningKnowledgeArticleVersionRepresentationSelect()
|
|
|
162
185
|
},
|
|
163
186
|
{
|
|
164
187
|
name: 'summary',
|
|
165
|
-
kind: 'Scalar'
|
|
188
|
+
kind: 'Scalar',
|
|
189
|
+
required: false
|
|
166
190
|
},
|
|
167
191
|
{
|
|
168
192
|
name: 'title',
|
|
@@ -191,11 +215,6 @@ function equals$8(existing, incoming) {
|
|
|
191
215
|
if (!(existing_lastPublishedDate === incoming_lastPublishedDate)) {
|
|
192
216
|
return false;
|
|
193
217
|
}
|
|
194
|
-
const existing_summary = existing.summary;
|
|
195
|
-
const incoming_summary = incoming.summary;
|
|
196
|
-
if (!(existing_summary === incoming_summary)) {
|
|
197
|
-
return false;
|
|
198
|
-
}
|
|
199
218
|
const existing_title = existing.title;
|
|
200
219
|
const incoming_title = incoming.title;
|
|
201
220
|
if (!(existing_title === incoming_title)) {
|
|
@@ -206,6 +225,19 @@ function equals$8(existing, incoming) {
|
|
|
206
225
|
if (!(existing_urlName === incoming_urlName)) {
|
|
207
226
|
return false;
|
|
208
227
|
}
|
|
228
|
+
const existing_summary = existing.summary;
|
|
229
|
+
const incoming_summary = incoming.summary;
|
|
230
|
+
// if at least one of these optionals is defined
|
|
231
|
+
if (existing_summary !== undefined || incoming_summary !== undefined) {
|
|
232
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
233
|
+
// not equal
|
|
234
|
+
if (existing_summary === undefined || incoming_summary === undefined) {
|
|
235
|
+
return false;
|
|
236
|
+
}
|
|
237
|
+
if (!(existing_summary === incoming_summary)) {
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
209
241
|
return true;
|
|
210
242
|
}
|
|
211
243
|
|
|
@@ -472,7 +504,7 @@ const getArticlesForCategoryAdapterFactory = (luvio) => function NetworkDataCate
|
|
|
472
504
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
473
505
|
};
|
|
474
506
|
|
|
475
|
-
const VERSION$6 = "
|
|
507
|
+
const VERSION$6 = "cddad6e33054c6b9860f0ea60265869e";
|
|
476
508
|
function validate$7(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
477
509
|
const v_error = (() => {
|
|
478
510
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -532,6 +564,34 @@ function validate$7(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
|
532
564
|
message += '\n' + obj_categoryName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
533
565
|
return new TypeError(message);
|
|
534
566
|
}
|
|
567
|
+
if (obj.categoryOrGroupLabel !== undefined) {
|
|
568
|
+
const obj_categoryOrGroupLabel = obj.categoryOrGroupLabel;
|
|
569
|
+
const path_categoryOrGroupLabel = path + '.categoryOrGroupLabel';
|
|
570
|
+
let obj_categoryOrGroupLabel_union0 = null;
|
|
571
|
+
const obj_categoryOrGroupLabel_union0_error = (() => {
|
|
572
|
+
if (typeof obj_categoryOrGroupLabel !== 'string') {
|
|
573
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categoryOrGroupLabel + '" (at "' + path_categoryOrGroupLabel + '")');
|
|
574
|
+
}
|
|
575
|
+
})();
|
|
576
|
+
if (obj_categoryOrGroupLabel_union0_error != null) {
|
|
577
|
+
obj_categoryOrGroupLabel_union0 = obj_categoryOrGroupLabel_union0_error.message;
|
|
578
|
+
}
|
|
579
|
+
let obj_categoryOrGroupLabel_union1 = null;
|
|
580
|
+
const obj_categoryOrGroupLabel_union1_error = (() => {
|
|
581
|
+
if (obj_categoryOrGroupLabel !== null) {
|
|
582
|
+
return new TypeError('Expected "null" but received "' + typeof obj_categoryOrGroupLabel + '" (at "' + path_categoryOrGroupLabel + '")');
|
|
583
|
+
}
|
|
584
|
+
})();
|
|
585
|
+
if (obj_categoryOrGroupLabel_union1_error != null) {
|
|
586
|
+
obj_categoryOrGroupLabel_union1 = obj_categoryOrGroupLabel_union1_error.message;
|
|
587
|
+
}
|
|
588
|
+
if (obj_categoryOrGroupLabel_union0 && obj_categoryOrGroupLabel_union1) {
|
|
589
|
+
let message = 'Object doesn\'t match union (at "' + path_categoryOrGroupLabel + '")';
|
|
590
|
+
message += '\n' + obj_categoryOrGroupLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
591
|
+
message += '\n' + obj_categoryOrGroupLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
592
|
+
return new TypeError(message);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
535
595
|
const obj_childCategories = obj.childCategories;
|
|
536
596
|
const path_childCategories = path + '.childCategories';
|
|
537
597
|
if (!ArrayIsArray(obj_childCategories)) {
|
|
@@ -692,6 +752,11 @@ const select$d = function NetworkDataCategoryRepresentationSelect() {
|
|
|
692
752
|
name: 'categoryName',
|
|
693
753
|
kind: 'Scalar'
|
|
694
754
|
},
|
|
755
|
+
{
|
|
756
|
+
name: 'categoryOrGroupLabel',
|
|
757
|
+
kind: 'Scalar',
|
|
758
|
+
required: false
|
|
759
|
+
},
|
|
695
760
|
{
|
|
696
761
|
name: 'childCategories',
|
|
697
762
|
kind: 'Object',
|
|
@@ -748,6 +813,19 @@ function equals$6(existing, incoming) {
|
|
|
748
813
|
if (!(existing_categoryName === incoming_categoryName)) {
|
|
749
814
|
return false;
|
|
750
815
|
}
|
|
816
|
+
const existing_categoryOrGroupLabel = existing.categoryOrGroupLabel;
|
|
817
|
+
const incoming_categoryOrGroupLabel = incoming.categoryOrGroupLabel;
|
|
818
|
+
// if at least one of these optionals is defined
|
|
819
|
+
if (existing_categoryOrGroupLabel !== undefined || incoming_categoryOrGroupLabel !== undefined) {
|
|
820
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
821
|
+
// not equal
|
|
822
|
+
if (existing_categoryOrGroupLabel === undefined || incoming_categoryOrGroupLabel === undefined) {
|
|
823
|
+
return false;
|
|
824
|
+
}
|
|
825
|
+
if (!(existing_categoryOrGroupLabel === incoming_categoryOrGroupLabel)) {
|
|
826
|
+
return false;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
751
829
|
const existing_childCategories = existing.childCategories;
|
|
752
830
|
const incoming_childCategories = incoming.childCategories;
|
|
753
831
|
const equals_childCategories_items = equalsArray(existing_childCategories, incoming_childCategories, (existing_childCategories_item, incoming_childCategories_item) => {
|
|
@@ -2591,4 +2669,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2591
2669
|
});
|
|
2592
2670
|
|
|
2593
2671
|
export { getArticlesForCategory, getArticlesForCategory_imperative, getChildCategories, getChildCategories_imperative, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getNetworkDataCategories_imperative, getParentNetworkDataCategoryPath, getParentNetworkDataCategoryPath_imperative, getServiceCatalogItems, getServiceCatalogItemsForCommunity, getServiceCatalogItemsForCommunity_imperative, getServiceCatalogItems_imperative, notifyNetworkDataCategoryRepresentationUpdateAvailable, notifyNetworkDataCategoryTreeRepresentationUpdateAvailable, updateNetworkDataCategories, updateNetworkDataCategory };
|
|
2594
|
-
// version: 1.
|
|
2672
|
+
// version: 1.263.0-378177d88
|
package/src/raml/api.raml
CHANGED
|
@@ -64,6 +64,10 @@ types:
|
|
|
64
64
|
description: Image Url of Network Data Category
|
|
65
65
|
type: string | nil
|
|
66
66
|
required: false
|
|
67
|
+
categoryOrGroupLabel:
|
|
68
|
+
description: Label of the Data Category or Data Category Group
|
|
69
|
+
type: string | nil
|
|
70
|
+
required: false
|
|
67
71
|
label:
|
|
68
72
|
description: Network Data Category Label
|
|
69
73
|
type: string | nil
|
|
@@ -143,7 +147,8 @@ types:
|
|
|
143
147
|
type: string
|
|
144
148
|
summary:
|
|
145
149
|
description: Summary of the articles contents.
|
|
146
|
-
type: string
|
|
150
|
+
type: string | nil
|
|
151
|
+
required: false
|
|
147
152
|
title:
|
|
148
153
|
description: Title of the Article
|
|
149
154
|
type: string
|