@salesforce/lds-adapters-service-network-data-category 1.258.0 → 1.259.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.
|
@@ -464,7 +464,7 @@ const getServiceCatalogItemsAdapterFactory = (luvio) => function NetworkDataCate
|
|
|
464
464
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
465
465
|
};
|
|
466
466
|
|
|
467
|
-
const VERSION$6 = "
|
|
467
|
+
const VERSION$6 = "5eec70c95dc4131fe7e17046563b9235";
|
|
468
468
|
function validate$7(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
469
469
|
const v_error = (() => {
|
|
470
470
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -500,8 +500,29 @@ function validate$7(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
|
500
500
|
}
|
|
501
501
|
const obj_categoryName = obj.categoryName;
|
|
502
502
|
const path_categoryName = path + '.categoryName';
|
|
503
|
-
|
|
504
|
-
|
|
503
|
+
let obj_categoryName_union0 = null;
|
|
504
|
+
const obj_categoryName_union0_error = (() => {
|
|
505
|
+
if (typeof obj_categoryName !== 'string') {
|
|
506
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categoryName + '" (at "' + path_categoryName + '")');
|
|
507
|
+
}
|
|
508
|
+
})();
|
|
509
|
+
if (obj_categoryName_union0_error != null) {
|
|
510
|
+
obj_categoryName_union0 = obj_categoryName_union0_error.message;
|
|
511
|
+
}
|
|
512
|
+
let obj_categoryName_union1 = null;
|
|
513
|
+
const obj_categoryName_union1_error = (() => {
|
|
514
|
+
if (obj_categoryName !== null) {
|
|
515
|
+
return new TypeError('Expected "null" but received "' + typeof obj_categoryName + '" (at "' + path_categoryName + '")');
|
|
516
|
+
}
|
|
517
|
+
})();
|
|
518
|
+
if (obj_categoryName_union1_error != null) {
|
|
519
|
+
obj_categoryName_union1 = obj_categoryName_union1_error.message;
|
|
520
|
+
}
|
|
521
|
+
if (obj_categoryName_union0 && obj_categoryName_union1) {
|
|
522
|
+
let message = 'Object doesn\'t match union (at "' + path_categoryName + '")';
|
|
523
|
+
message += '\n' + obj_categoryName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
524
|
+
message += '\n' + obj_categoryName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
525
|
+
return new TypeError(message);
|
|
505
526
|
}
|
|
506
527
|
const obj_childCategories = obj.childCategories;
|
|
507
528
|
const path_childCategories = path + '.childCategories';
|
|
@@ -696,11 +717,6 @@ const select$d = function NetworkDataCategoryRepresentationSelect() {
|
|
|
696
717
|
};
|
|
697
718
|
};
|
|
698
719
|
function equals$6(existing, incoming) {
|
|
699
|
-
const existing_categoryName = existing.categoryName;
|
|
700
|
-
const incoming_categoryName = incoming.categoryName;
|
|
701
|
-
if (!(existing_categoryName === incoming_categoryName)) {
|
|
702
|
-
return false;
|
|
703
|
-
}
|
|
704
720
|
const existing_id = existing.id;
|
|
705
721
|
const incoming_id = incoming.id;
|
|
706
722
|
if (!(existing_id === incoming_id)) {
|
|
@@ -719,6 +735,11 @@ function equals$6(existing, incoming) {
|
|
|
719
735
|
return false;
|
|
720
736
|
}
|
|
721
737
|
}
|
|
738
|
+
const existing_categoryName = existing.categoryName;
|
|
739
|
+
const incoming_categoryName = incoming.categoryName;
|
|
740
|
+
if (!(existing_categoryName === incoming_categoryName)) {
|
|
741
|
+
return false;
|
|
742
|
+
}
|
|
722
743
|
const existing_childCategories = existing.childCategories;
|
|
723
744
|
const incoming_childCategories = incoming.childCategories;
|
|
724
745
|
const equals_childCategories_items = equalsArray(existing_childCategories, incoming_childCategories, (existing_childCategories_item, incoming_childCategories_item) => {
|
|
@@ -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 = "5eec70c95dc4131fe7e17046563b9235";
|
|
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 {
|
|
@@ -26,7 +26,7 @@ export interface NetworkDataCategoryRepresentationNormalized {
|
|
|
26
26
|
/** Network Data Category Group Name */
|
|
27
27
|
categoryGroupName?: string | null;
|
|
28
28
|
/** Network Data Category Name */
|
|
29
|
-
categoryName: string;
|
|
29
|
+
categoryName: string | null;
|
|
30
30
|
/** Children of Network Data Category */
|
|
31
31
|
childCategories: Array<unknown>;
|
|
32
32
|
/** Network Data Category Description */
|
|
@@ -48,7 +48,7 @@ export interface NetworkDataCategoryRepresentationNormalized {
|
|
|
48
48
|
*/
|
|
49
49
|
export interface NetworkDataCategoryRepresentation {
|
|
50
50
|
categoryGroupName?: string | null;
|
|
51
|
-
categoryName: string;
|
|
51
|
+
categoryName: string | null;
|
|
52
52
|
childCategories: Array<unknown>;
|
|
53
53
|
description?: string | null;
|
|
54
54
|
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.259.0",
|
|
4
4
|
"description": "Family that contains APIs pertaining to the NetworkDataCategory object",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-network-data-category.js",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test:compat": "nx build:karma && karma start --single-run --compat"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@salesforce/lds-bindings": "^1.
|
|
46
|
+
"@salesforce/lds-bindings": "^1.259.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
50
|
-
"@salesforce/lds-karma": "^1.
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^1.259.0",
|
|
50
|
+
"@salesforce/lds-karma": "^1.259.0"
|
|
51
51
|
},
|
|
52
52
|
"nx": {
|
|
53
53
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -426,7 +426,7 @@ const getArticlesForCategoryAdapterFactory = (luvio) => function NetworkDataCate
|
|
|
426
426
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
427
427
|
};
|
|
428
428
|
|
|
429
|
-
const VERSION$6 = "
|
|
429
|
+
const VERSION$6 = "5eec70c95dc4131fe7e17046563b9235";
|
|
430
430
|
function validate$7(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
431
431
|
const v_error = (() => {
|
|
432
432
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -462,8 +462,29 @@ function validate$7(obj, path = 'NetworkDataCategoryRepresentation') {
|
|
|
462
462
|
}
|
|
463
463
|
const obj_categoryName = obj.categoryName;
|
|
464
464
|
const path_categoryName = path + '.categoryName';
|
|
465
|
-
|
|
466
|
-
|
|
465
|
+
let obj_categoryName_union0 = null;
|
|
466
|
+
const obj_categoryName_union0_error = (() => {
|
|
467
|
+
if (typeof obj_categoryName !== 'string') {
|
|
468
|
+
return new TypeError('Expected "string" but received "' + typeof obj_categoryName + '" (at "' + path_categoryName + '")');
|
|
469
|
+
}
|
|
470
|
+
})();
|
|
471
|
+
if (obj_categoryName_union0_error != null) {
|
|
472
|
+
obj_categoryName_union0 = obj_categoryName_union0_error.message;
|
|
473
|
+
}
|
|
474
|
+
let obj_categoryName_union1 = null;
|
|
475
|
+
const obj_categoryName_union1_error = (() => {
|
|
476
|
+
if (obj_categoryName !== null) {
|
|
477
|
+
return new TypeError('Expected "null" but received "' + typeof obj_categoryName + '" (at "' + path_categoryName + '")');
|
|
478
|
+
}
|
|
479
|
+
})();
|
|
480
|
+
if (obj_categoryName_union1_error != null) {
|
|
481
|
+
obj_categoryName_union1 = obj_categoryName_union1_error.message;
|
|
482
|
+
}
|
|
483
|
+
if (obj_categoryName_union0 && obj_categoryName_union1) {
|
|
484
|
+
let message = 'Object doesn\'t match union (at "' + path_categoryName + '")';
|
|
485
|
+
message += '\n' + obj_categoryName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
486
|
+
message += '\n' + obj_categoryName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
487
|
+
return new TypeError(message);
|
|
467
488
|
}
|
|
468
489
|
const obj_childCategories = obj.childCategories;
|
|
469
490
|
const path_childCategories = path + '.childCategories';
|
|
@@ -658,11 +679,6 @@ const select$d = function NetworkDataCategoryRepresentationSelect() {
|
|
|
658
679
|
};
|
|
659
680
|
};
|
|
660
681
|
function equals$6(existing, incoming) {
|
|
661
|
-
const existing_categoryName = existing.categoryName;
|
|
662
|
-
const incoming_categoryName = incoming.categoryName;
|
|
663
|
-
if (!(existing_categoryName === incoming_categoryName)) {
|
|
664
|
-
return false;
|
|
665
|
-
}
|
|
666
682
|
const existing_id = existing.id;
|
|
667
683
|
const incoming_id = incoming.id;
|
|
668
684
|
if (!(existing_id === incoming_id)) {
|
|
@@ -681,6 +697,11 @@ function equals$6(existing, incoming) {
|
|
|
681
697
|
return false;
|
|
682
698
|
}
|
|
683
699
|
}
|
|
700
|
+
const existing_categoryName = existing.categoryName;
|
|
701
|
+
const incoming_categoryName = incoming.categoryName;
|
|
702
|
+
if (!(existing_categoryName === incoming_categoryName)) {
|
|
703
|
+
return false;
|
|
704
|
+
}
|
|
684
705
|
const existing_childCategories = existing.childCategories;
|
|
685
706
|
const incoming_childCategories = incoming.childCategories;
|
|
686
707
|
const equals_childCategories_items = equalsArray(existing_childCategories, incoming_childCategories, (existing_childCategories_item, incoming_childCategories_item) => {
|
|
@@ -2409,4 +2430,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2409
2430
|
});
|
|
2410
2431
|
|
|
2411
2432
|
export { getArticlesForCategory, getArticlesForCategory_imperative, getChildCategories, getChildCategories_imperative, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getNetworkDataCategories_imperative, getParentNetworkDataCategoryPath, getParentNetworkDataCategoryPath_imperative, getServiceCatalogItems, getServiceCatalogItemsForCommunity, getServiceCatalogItemsForCommunity_imperative, getServiceCatalogItems_imperative, updateNetworkDataCategories, updateNetworkDataCategory };
|
|
2412
|
-
// version: 1.
|
|
2433
|
+
// version: 1.259.0-54a7811b5
|