@salesforce/lds-adapters-service-network-data-category 1.249.0 → 1.250.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.
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const VERSION$8 = "
|
|
96
|
+
const VERSION$8 = "cc2167eec65221adff5b576fc069921f";
|
|
97
97
|
function validate$9(obj, path = 'ServiceCatalogItemRepresentation') {
|
|
98
98
|
const v_error = (() => {
|
|
99
99
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -137,31 +137,31 @@ function validate$9(obj, path = 'ServiceCatalogItemRepresentation') {
|
|
|
137
137
|
if (typeof obj_id !== 'string') {
|
|
138
138
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
139
139
|
}
|
|
140
|
-
if (obj.
|
|
141
|
-
const
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
const
|
|
145
|
-
if (typeof
|
|
146
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
140
|
+
if (obj.imageId !== undefined) {
|
|
141
|
+
const obj_imageId = obj.imageId;
|
|
142
|
+
const path_imageId = path + '.imageId';
|
|
143
|
+
let obj_imageId_union0 = null;
|
|
144
|
+
const obj_imageId_union0_error = (() => {
|
|
145
|
+
if (typeof obj_imageId !== 'string') {
|
|
146
|
+
return new TypeError('Expected "string" but received "' + typeof obj_imageId + '" (at "' + path_imageId + '")');
|
|
147
147
|
}
|
|
148
148
|
})();
|
|
149
|
-
if (
|
|
150
|
-
|
|
149
|
+
if (obj_imageId_union0_error != null) {
|
|
150
|
+
obj_imageId_union0 = obj_imageId_union0_error.message;
|
|
151
151
|
}
|
|
152
|
-
let
|
|
153
|
-
const
|
|
154
|
-
if (
|
|
155
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
152
|
+
let obj_imageId_union1 = null;
|
|
153
|
+
const obj_imageId_union1_error = (() => {
|
|
154
|
+
if (obj_imageId !== null) {
|
|
155
|
+
return new TypeError('Expected "null" but received "' + typeof obj_imageId + '" (at "' + path_imageId + '")');
|
|
156
156
|
}
|
|
157
157
|
})();
|
|
158
|
-
if (
|
|
159
|
-
|
|
158
|
+
if (obj_imageId_union1_error != null) {
|
|
159
|
+
obj_imageId_union1 = obj_imageId_union1_error.message;
|
|
160
160
|
}
|
|
161
|
-
if (
|
|
162
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
163
|
-
message += '\n' +
|
|
164
|
-
message += '\n' +
|
|
161
|
+
if (obj_imageId_union0 && obj_imageId_union1) {
|
|
162
|
+
let message = 'Object doesn\'t match union (at "' + path_imageId + '")';
|
|
163
|
+
message += '\n' + obj_imageId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
164
|
+
message += '\n' + obj_imageId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
165
165
|
return new TypeError(message);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -193,7 +193,7 @@ const select$f = function ServiceCatalogItemRepresentationSelect() {
|
|
|
193
193
|
kind: 'Scalar'
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
|
-
name: '
|
|
196
|
+
name: 'imageId',
|
|
197
197
|
kind: 'Scalar',
|
|
198
198
|
required: false
|
|
199
199
|
},
|
|
@@ -233,16 +233,16 @@ function equals$8(existing, incoming) {
|
|
|
233
233
|
return false;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
const
|
|
236
|
+
const existing_imageId = existing.imageId;
|
|
237
|
+
const incoming_imageId = incoming.imageId;
|
|
238
238
|
// if at least one of these optionals is defined
|
|
239
|
-
if (
|
|
239
|
+
if (existing_imageId !== undefined || incoming_imageId !== undefined) {
|
|
240
240
|
// if one of these is not defined we know the other is defined and therefore
|
|
241
241
|
// not equal
|
|
242
|
-
if (
|
|
242
|
+
if (existing_imageId === undefined || incoming_imageId === undefined) {
|
|
243
243
|
return false;
|
|
244
244
|
}
|
|
245
|
-
if (!(
|
|
245
|
+
if (!(existing_imageId === incoming_imageId)) {
|
|
246
246
|
return false;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -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 = "cc2167eec65221adff5b576fc069921f";
|
|
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;
|
|
@@ -20,8 +20,8 @@ export interface ServiceCatalogItemRepresentationNormalized {
|
|
|
20
20
|
developerName: string;
|
|
21
21
|
/** Service Catalog Item Id */
|
|
22
22
|
id: string;
|
|
23
|
-
/** Image
|
|
24
|
-
|
|
23
|
+
/** Image Id of Service Catalog Item */
|
|
24
|
+
imageId?: string | null;
|
|
25
25
|
/** Label of Service Catalog Item */
|
|
26
26
|
label: string;
|
|
27
27
|
}
|
|
@@ -35,6 +35,6 @@ export interface ServiceCatalogItemRepresentation {
|
|
|
35
35
|
description?: string | null;
|
|
36
36
|
developerName: string;
|
|
37
37
|
id: string;
|
|
38
|
-
|
|
38
|
+
imageId?: 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.
|
|
3
|
+
"version": "1.250.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",
|
package/sfdc/index.js
CHANGED
|
@@ -1461,7 +1461,7 @@ const getParentNetworkDataCategoryPathAdapterFactory = (luvio) => function Netwo
|
|
|
1461
1461
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1462
1462
|
};
|
|
1463
1463
|
|
|
1464
|
-
const VERSION$2 = "
|
|
1464
|
+
const VERSION$2 = "cc2167eec65221adff5b576fc069921f";
|
|
1465
1465
|
function validate$3(obj, path = 'ServiceCatalogItemRepresentation') {
|
|
1466
1466
|
const v_error = (() => {
|
|
1467
1467
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1505,31 +1505,31 @@ function validate$3(obj, path = 'ServiceCatalogItemRepresentation') {
|
|
|
1505
1505
|
if (typeof obj_id !== 'string') {
|
|
1506
1506
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1507
1507
|
}
|
|
1508
|
-
if (obj.
|
|
1509
|
-
const
|
|
1510
|
-
const
|
|
1511
|
-
let
|
|
1512
|
-
const
|
|
1513
|
-
if (typeof
|
|
1514
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1508
|
+
if (obj.imageId !== undefined) {
|
|
1509
|
+
const obj_imageId = obj.imageId;
|
|
1510
|
+
const path_imageId = path + '.imageId';
|
|
1511
|
+
let obj_imageId_union0 = null;
|
|
1512
|
+
const obj_imageId_union0_error = (() => {
|
|
1513
|
+
if (typeof obj_imageId !== 'string') {
|
|
1514
|
+
return new TypeError('Expected "string" but received "' + typeof obj_imageId + '" (at "' + path_imageId + '")');
|
|
1515
1515
|
}
|
|
1516
1516
|
})();
|
|
1517
|
-
if (
|
|
1518
|
-
|
|
1517
|
+
if (obj_imageId_union0_error != null) {
|
|
1518
|
+
obj_imageId_union0 = obj_imageId_union0_error.message;
|
|
1519
1519
|
}
|
|
1520
|
-
let
|
|
1521
|
-
const
|
|
1522
|
-
if (
|
|
1523
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
1520
|
+
let obj_imageId_union1 = null;
|
|
1521
|
+
const obj_imageId_union1_error = (() => {
|
|
1522
|
+
if (obj_imageId !== null) {
|
|
1523
|
+
return new TypeError('Expected "null" but received "' + typeof obj_imageId + '" (at "' + path_imageId + '")');
|
|
1524
1524
|
}
|
|
1525
1525
|
})();
|
|
1526
|
-
if (
|
|
1527
|
-
|
|
1526
|
+
if (obj_imageId_union1_error != null) {
|
|
1527
|
+
obj_imageId_union1 = obj_imageId_union1_error.message;
|
|
1528
1528
|
}
|
|
1529
|
-
if (
|
|
1530
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
1531
|
-
message += '\n' +
|
|
1532
|
-
message += '\n' +
|
|
1529
|
+
if (obj_imageId_union0 && obj_imageId_union1) {
|
|
1530
|
+
let message = 'Object doesn\'t match union (at "' + path_imageId + '")';
|
|
1531
|
+
message += '\n' + obj_imageId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1532
|
+
message += '\n' + obj_imageId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1533
1533
|
return new TypeError(message);
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
@@ -1561,7 +1561,7 @@ const select$5 = function ServiceCatalogItemRepresentationSelect() {
|
|
|
1561
1561
|
kind: 'Scalar'
|
|
1562
1562
|
},
|
|
1563
1563
|
{
|
|
1564
|
-
name: '
|
|
1564
|
+
name: 'imageId',
|
|
1565
1565
|
kind: 'Scalar',
|
|
1566
1566
|
required: false
|
|
1567
1567
|
},
|
|
@@ -1601,16 +1601,16 @@ function equals$2(existing, incoming) {
|
|
|
1601
1601
|
return false;
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
|
-
const
|
|
1605
|
-
const
|
|
1604
|
+
const existing_imageId = existing.imageId;
|
|
1605
|
+
const incoming_imageId = incoming.imageId;
|
|
1606
1606
|
// if at least one of these optionals is defined
|
|
1607
|
-
if (
|
|
1607
|
+
if (existing_imageId !== undefined || incoming_imageId !== undefined) {
|
|
1608
1608
|
// if one of these is not defined we know the other is defined and therefore
|
|
1609
1609
|
// not equal
|
|
1610
|
-
if (
|
|
1610
|
+
if (existing_imageId === undefined || incoming_imageId === undefined) {
|
|
1611
1611
|
return false;
|
|
1612
1612
|
}
|
|
1613
|
-
if (!(
|
|
1613
|
+
if (!(existing_imageId === incoming_imageId)) {
|
|
1614
1614
|
return false;
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
@@ -2228,4 +2228,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2228
2228
|
});
|
|
2229
2229
|
|
|
2230
2230
|
export { getArticlesForCategory, getArticlesForCategory_imperative, getChildCategories, getChildCategories_imperative, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getNetworkDataCategories_imperative, getParentNetworkDataCategoryPath, getParentNetworkDataCategoryPath_imperative, getServiceCatalogItems, getServiceCatalogItemsForCommunity, getServiceCatalogItemsForCommunity_imperative, getServiceCatalogItems_imperative, updateNetworkDataCategories };
|
|
2231
|
-
// version: 1.
|
|
2231
|
+
// version: 1.250.0-5e338946c
|
package/src/raml/api.raml
CHANGED
|
@@ -165,8 +165,8 @@ types:
|
|
|
165
165
|
id:
|
|
166
166
|
description: Service Catalog Item Id
|
|
167
167
|
type: string
|
|
168
|
-
|
|
169
|
-
description: Image
|
|
168
|
+
imageId:
|
|
169
|
+
description: Image Id of Service Catalog Item
|
|
170
170
|
type: string | nil
|
|
171
171
|
required: false
|
|
172
172
|
label:
|