@salesforce/lds-adapters-service-network-data-category 1.259.0 → 1.261.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.
@@ -249,12 +249,40 @@ function equals$8(existing, incoming) {
249
249
  return true;
250
250
  }
251
251
 
252
- const VERSION$7 = "b91519c31db3334a2902f3847c66f5df";
252
+ const VERSION$7 = "0ba0c3678e2715c0af38eb8d501269ae";
253
253
  function validate$8(obj, path = 'ServiceCatalogItemCollectionRepresentation') {
254
254
  const v_error = (() => {
255
255
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
256
256
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
257
257
  }
258
+ if (obj.baseUrl !== undefined) {
259
+ const obj_baseUrl = obj.baseUrl;
260
+ const path_baseUrl = path + '.baseUrl';
261
+ let obj_baseUrl_union0 = null;
262
+ const obj_baseUrl_union0_error = (() => {
263
+ if (typeof obj_baseUrl !== 'string') {
264
+ return new TypeError('Expected "string" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
265
+ }
266
+ })();
267
+ if (obj_baseUrl_union0_error != null) {
268
+ obj_baseUrl_union0 = obj_baseUrl_union0_error.message;
269
+ }
270
+ let obj_baseUrl_union1 = null;
271
+ const obj_baseUrl_union1_error = (() => {
272
+ if (obj_baseUrl !== null) {
273
+ return new TypeError('Expected "null" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
274
+ }
275
+ })();
276
+ if (obj_baseUrl_union1_error != null) {
277
+ obj_baseUrl_union1 = obj_baseUrl_union1_error.message;
278
+ }
279
+ if (obj_baseUrl_union0 && obj_baseUrl_union1) {
280
+ let message = 'Object doesn\'t match union (at "' + path_baseUrl + '")';
281
+ message += '\n' + obj_baseUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
282
+ message += '\n' + obj_baseUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
283
+ return new TypeError(message);
284
+ }
285
+ }
258
286
  const obj_items = obj.items;
259
287
  const path_items = path + '.items';
260
288
  if (!ArrayIsArray(obj_items)) {
@@ -284,6 +312,11 @@ const select$f = function ServiceCatalogItemCollectionRepresentationSelect() {
284
312
  version: VERSION$7,
285
313
  private: [],
286
314
  selections: [
315
+ {
316
+ name: 'baseUrl',
317
+ kind: 'Scalar',
318
+ required: false
319
+ },
287
320
  {
288
321
  name: 'items',
289
322
  kind: 'Object',
@@ -294,6 +327,19 @@ const select$f = function ServiceCatalogItemCollectionRepresentationSelect() {
294
327
  };
295
328
  };
296
329
  function equals$7(existing, incoming) {
330
+ const existing_baseUrl = existing.baseUrl;
331
+ const incoming_baseUrl = incoming.baseUrl;
332
+ // if at least one of these optionals is defined
333
+ if (existing_baseUrl !== undefined || incoming_baseUrl !== undefined) {
334
+ // if one of these is not defined we know the other is defined and therefore
335
+ // not equal
336
+ if (existing_baseUrl === undefined || incoming_baseUrl === undefined) {
337
+ return false;
338
+ }
339
+ if (!(existing_baseUrl === incoming_baseUrl)) {
340
+ return false;
341
+ }
342
+ }
297
343
  const existing_items = existing.items;
298
344
  const incoming_items = incoming.items;
299
345
  const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
@@ -1183,12 +1229,40 @@ function equals$5(existing, incoming) {
1183
1229
  return true;
1184
1230
  }
1185
1231
 
1186
- const VERSION$4 = "89a6fdc1ed7c0b0e7bd5980d6fdecf09";
1232
+ const VERSION$4 = "6e0f7ad284b0bacd2260182b92f0e398";
1187
1233
  function validate$5(obj, path = 'LightningKnowledgeArticleVersionCollectionRepresentation') {
1188
1234
  const v_error = (() => {
1189
1235
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1190
1236
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1191
1237
  }
1238
+ if (obj.baseUrl !== undefined) {
1239
+ const obj_baseUrl = obj.baseUrl;
1240
+ const path_baseUrl = path + '.baseUrl';
1241
+ let obj_baseUrl_union0 = null;
1242
+ const obj_baseUrl_union0_error = (() => {
1243
+ if (typeof obj_baseUrl !== 'string') {
1244
+ return new TypeError('Expected "string" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
1245
+ }
1246
+ })();
1247
+ if (obj_baseUrl_union0_error != null) {
1248
+ obj_baseUrl_union0 = obj_baseUrl_union0_error.message;
1249
+ }
1250
+ let obj_baseUrl_union1 = null;
1251
+ const obj_baseUrl_union1_error = (() => {
1252
+ if (obj_baseUrl !== null) {
1253
+ return new TypeError('Expected "null" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
1254
+ }
1255
+ })();
1256
+ if (obj_baseUrl_union1_error != null) {
1257
+ obj_baseUrl_union1 = obj_baseUrl_union1_error.message;
1258
+ }
1259
+ if (obj_baseUrl_union0 && obj_baseUrl_union1) {
1260
+ let message = 'Object doesn\'t match union (at "' + path_baseUrl + '")';
1261
+ message += '\n' + obj_baseUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1262
+ message += '\n' + obj_baseUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1263
+ return new TypeError(message);
1264
+ }
1265
+ }
1192
1266
  const obj_items = obj.items;
1193
1267
  const path_items = path + '.items';
1194
1268
  if (!ArrayIsArray(obj_items)) {
@@ -1218,6 +1292,11 @@ const select$9 = function LightningKnowledgeArticleVersionCollectionRepresentati
1218
1292
  version: VERSION$4,
1219
1293
  private: [],
1220
1294
  selections: [
1295
+ {
1296
+ name: 'baseUrl',
1297
+ kind: 'Scalar',
1298
+ required: false
1299
+ },
1221
1300
  {
1222
1301
  name: 'items',
1223
1302
  kind: 'Object',
@@ -1228,6 +1307,19 @@ const select$9 = function LightningKnowledgeArticleVersionCollectionRepresentati
1228
1307
  };
1229
1308
  };
1230
1309
  function equals$4(existing, incoming) {
1310
+ const existing_baseUrl = existing.baseUrl;
1311
+ const incoming_baseUrl = incoming.baseUrl;
1312
+ // if at least one of these optionals is defined
1313
+ if (existing_baseUrl !== undefined || incoming_baseUrl !== undefined) {
1314
+ // if one of these is not defined we know the other is defined and therefore
1315
+ // not equal
1316
+ if (existing_baseUrl === undefined || incoming_baseUrl === undefined) {
1317
+ return false;
1318
+ }
1319
+ if (!(existing_baseUrl === incoming_baseUrl)) {
1320
+ return false;
1321
+ }
1322
+ }
1231
1323
  const existing_items = existing.items;
1232
1324
  const incoming_items = incoming.items;
1233
1325
  const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
@@ -1400,12 +1492,40 @@ const getArticlesForCategoryAdapterFactory = (luvio) => function NetworkDataCate
1400
1492
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1401
1493
  };
1402
1494
 
1403
- const VERSION$3 = "a632e4b22d40a2cfc312f36451d5319a";
1495
+ const VERSION$3 = "55e759666b11e19f41045930d9ac0dd6";
1404
1496
  function validate$4(obj, path = 'NetworkDataCategoryCollectionRepresentation') {
1405
1497
  const v_error = (() => {
1406
1498
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1407
1499
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1408
1500
  }
1501
+ if (obj.baseUrl !== undefined) {
1502
+ const obj_baseUrl = obj.baseUrl;
1503
+ const path_baseUrl = path + '.baseUrl';
1504
+ let obj_baseUrl_union0 = null;
1505
+ const obj_baseUrl_union0_error = (() => {
1506
+ if (typeof obj_baseUrl !== 'string') {
1507
+ return new TypeError('Expected "string" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
1508
+ }
1509
+ })();
1510
+ if (obj_baseUrl_union0_error != null) {
1511
+ obj_baseUrl_union0 = obj_baseUrl_union0_error.message;
1512
+ }
1513
+ let obj_baseUrl_union1 = null;
1514
+ const obj_baseUrl_union1_error = (() => {
1515
+ if (obj_baseUrl !== null) {
1516
+ return new TypeError('Expected "null" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
1517
+ }
1518
+ })();
1519
+ if (obj_baseUrl_union1_error != null) {
1520
+ obj_baseUrl_union1 = obj_baseUrl_union1_error.message;
1521
+ }
1522
+ if (obj_baseUrl_union0 && obj_baseUrl_union1) {
1523
+ let message = 'Object doesn\'t match union (at "' + path_baseUrl + '")';
1524
+ message += '\n' + obj_baseUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1525
+ message += '\n' + obj_baseUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1526
+ return new TypeError(message);
1527
+ }
1528
+ }
1409
1529
  const obj_networkDataCategories = obj.networkDataCategories;
1410
1530
  const path_networkDataCategories = path + '.networkDataCategories';
1411
1531
  if (!ArrayIsArray(obj_networkDataCategories)) {
@@ -1447,6 +1567,11 @@ const select$7 = function NetworkDataCategoryCollectionRepresentationSelect() {
1447
1567
  version: VERSION$3,
1448
1568
  private: [],
1449
1569
  selections: [
1570
+ {
1571
+ name: 'baseUrl',
1572
+ kind: 'Scalar',
1573
+ required: false
1574
+ },
1450
1575
  {
1451
1576
  name: 'networkDataCategories',
1452
1577
  kind: 'Link',
@@ -1457,6 +1582,19 @@ const select$7 = function NetworkDataCategoryCollectionRepresentationSelect() {
1457
1582
  };
1458
1583
  };
1459
1584
  function equals$3(existing, incoming) {
1585
+ const existing_baseUrl = existing.baseUrl;
1586
+ const incoming_baseUrl = incoming.baseUrl;
1587
+ // if at least one of these optionals is defined
1588
+ if (existing_baseUrl !== undefined || incoming_baseUrl !== undefined) {
1589
+ // if one of these is not defined we know the other is defined and therefore
1590
+ // not equal
1591
+ if (existing_baseUrl === undefined || incoming_baseUrl === undefined) {
1592
+ return false;
1593
+ }
1594
+ if (!(existing_baseUrl === incoming_baseUrl)) {
1595
+ return false;
1596
+ }
1597
+ }
1460
1598
  const existing_networkDataCategories = existing.networkDataCategories;
1461
1599
  const incoming_networkDataCategories = incoming.networkDataCategories;
1462
1600
  const equals_networkDataCategories_items = equalsArray(existing_networkDataCategories, incoming_networkDataCategories, (existing_networkDataCategories_item, incoming_networkDataCategories_item) => {
@@ -2309,4 +2447,4 @@ const updateNetworkDataCategoriesAdapterFactory = (luvio) => {
2309
2447
  };
2310
2448
  };
2311
2449
 
2312
- export { getArticlesForCategoryAdapterFactory, getChildCategoriesAdapterFactory, getNetworkDataCategoriesAdapterFactory, getParentNetworkDataCategoryPathAdapterFactory, getServiceCatalogItemsAdapterFactory, getServiceCatalogItemsForCommunityAdapterFactory, updateNetworkDataCategoriesAdapterFactory, updateNetworkDataCategoryAdapterFactory };
2450
+ export { getArticlesForCategoryAdapterFactory, getChildCategoriesAdapterFactory, getNetworkDataCategoriesAdapterFactory, getParentNetworkDataCategoryPathAdapterFactory, getServiceCatalogItemsAdapterFactory, getServiceCatalogItemsForCommunityAdapterFactory, notifyUpdateAvailableFactory$1 as notifyNetworkDataCategoryRepresentationUpdateAvailableFactory, notifyUpdateAvailableFactory as notifyNetworkDataCategoryTreeRepresentationUpdateAvailableFactory, updateNetworkDataCategoriesAdapterFactory, updateNetworkDataCategoryAdapterFactory };
@@ -6,3 +6,5 @@ export { getParentNetworkDataCategoryPathAdapterFactory } from '../adapters/getP
6
6
  export { getChildCategoriesAdapterFactory } from '../adapters/getChildCategories';
7
7
  export { getNetworkDataCategoriesAdapterFactory } from '../adapters/getNetworkDataCategories';
8
8
  export { updateNetworkDataCategoriesAdapterFactory } from '../adapters/updateNetworkDataCategories';
9
+ export { notifyUpdateAvailableFactory as notifyNetworkDataCategoryRepresentationUpdateAvailableFactory } from '../types/NetworkDataCategoryRepresentation';
10
+ export { notifyUpdateAvailableFactory as notifyNetworkDataCategoryTreeRepresentationUpdateAvailableFactory } from '../types/NetworkDataCategoryTreeRepresentation';
@@ -13,4 +13,7 @@ declare let getNetworkDataCategories_imperative: any;
13
13
  declare let getParentNetworkDataCategoryPath_imperative: any;
14
14
  declare let getServiceCatalogItems_imperative: any;
15
15
  declare let getServiceCatalogItemsForCommunity_imperative: any;
16
- export { getArticlesForCategory, getChildCategories, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getParentNetworkDataCategoryPath, getServiceCatalogItems, getServiceCatalogItemsForCommunity, updateNetworkDataCategories, updateNetworkDataCategory, getArticlesForCategory_imperative, getChildCategories_imperative, getNetworkDataCategories_imperative, getParentNetworkDataCategoryPath_imperative, getServiceCatalogItems_imperative, getServiceCatalogItemsForCommunity_imperative };
16
+ declare let notifyNetworkDataCategoryRepresentationUpdateAvailable: any;
17
+ declare let notifyNetworkDataCategoryTreeRepresentationUpdateAvailable: any;
18
+ export { getArticlesForCategory, getChildCategories, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getParentNetworkDataCategoryPath, getServiceCatalogItems, getServiceCatalogItemsForCommunity, updateNetworkDataCategories, updateNetworkDataCategory, getArticlesForCategory_imperative, getChildCategories_imperative, getNetworkDataCategories_imperative, getParentNetworkDataCategoryPath_imperative, getServiceCatalogItems_imperative, getServiceCatalogItemsForCommunity_imperative, };
19
+ export { notifyNetworkDataCategoryRepresentationUpdateAvailable, notifyNetworkDataCategoryTreeRepresentationUpdateAvailable, };
@@ -1,6 +1,6 @@
1
1
  import { LightningKnowledgeArticleVersionRepresentation as LightningKnowledgeArticleVersionRepresentation_LightningKnowledgeArticleVersionRepresentation } from './LightningKnowledgeArticleVersionRepresentation';
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 = "89a6fdc1ed7c0b0e7bd5980d6fdecf09";
3
+ export declare const VERSION = "6e0f7ad284b0bacd2260182b92f0e398";
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: LightningKnowledgeArticleVersionCollectionRepresentation, existing: LightningKnowledgeArticleVersionCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningKnowledgeArticleVersionCollectionRepresentationNormalized;
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  * (none)
16
16
  */
17
17
  export interface LightningKnowledgeArticleVersionCollectionRepresentationNormalized {
18
+ /** LWR Base URL for Knowledge Article Detail page */
19
+ baseUrl?: string | null;
18
20
  /** A collection of knowledge articles. */
19
21
  items: Array<LightningKnowledgeArticleVersionRepresentation_LightningKnowledgeArticleVersionRepresentation>;
20
22
  }
@@ -25,5 +27,6 @@ export interface LightningKnowledgeArticleVersionCollectionRepresentationNormali
25
27
  * (none)
26
28
  */
27
29
  export interface LightningKnowledgeArticleVersionCollectionRepresentation {
30
+ baseUrl?: string | null;
28
31
  items: Array<LightningKnowledgeArticleVersionRepresentation_LightningKnowledgeArticleVersionRepresentation>;
29
32
  }
@@ -1,6 +1,6 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  import { NetworkDataCategoryRepresentation as NetworkDataCategoryRepresentation_NetworkDataCategoryRepresentation } from './NetworkDataCategoryRepresentation';
3
- export declare const VERSION = "a632e4b22d40a2cfc312f36451d5319a";
3
+ export declare const VERSION = "55e759666b11e19f41045930d9ac0dd6";
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: NetworkDataCategoryCollectionRepresentation, existing: NetworkDataCategoryCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NetworkDataCategoryCollectionRepresentationNormalized;
@@ -24,6 +24,8 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
24
24
  * (none)
25
25
  */
26
26
  export interface NetworkDataCategoryCollectionRepresentationNormalized {
27
+ /** LWR Base URL for Network Data Category Detail page */
28
+ baseUrl?: string | null;
27
29
  /** A collection of network data categories */
28
30
  networkDataCategories: Array<$64$luvio_engine_StoreLink>;
29
31
  }
@@ -34,5 +36,6 @@ export interface NetworkDataCategoryCollectionRepresentationNormalized {
34
36
  * (none)
35
37
  */
36
38
  export interface NetworkDataCategoryCollectionRepresentation {
39
+ baseUrl?: string | null;
37
40
  networkDataCategories: Array<NetworkDataCategoryRepresentation_NetworkDataCategoryRepresentation>;
38
41
  }
@@ -1,6 +1,6 @@
1
1
  import { ServiceCatalogItemRepresentation as ServiceCatalogItemRepresentation_ServiceCatalogItemRepresentation } from './ServiceCatalogItemRepresentation';
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 = "b91519c31db3334a2902f3847c66f5df";
3
+ export declare const VERSION = "0ba0c3678e2715c0af38eb8d501269ae";
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: ServiceCatalogItemCollectionRepresentation, existing: ServiceCatalogItemCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceCatalogItemCollectionRepresentationNormalized;
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  * (none)
16
16
  */
17
17
  export interface ServiceCatalogItemCollectionRepresentationNormalized {
18
+ /** LWR Base URL for Service Catalog Item Definition Detail page */
19
+ baseUrl?: string | null;
18
20
  /** A collection of service catalog items. */
19
21
  items: Array<ServiceCatalogItemRepresentation_ServiceCatalogItemRepresentation>;
20
22
  }
@@ -25,5 +27,6 @@ export interface ServiceCatalogItemCollectionRepresentationNormalized {
25
27
  * (none)
26
28
  */
27
29
  export interface ServiceCatalogItemCollectionRepresentation {
30
+ baseUrl?: string | null;
28
31
  items: Array<ServiceCatalogItemRepresentation_ServiceCatalogItemRepresentation>;
29
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-network-data-category",
3
- "version": "1.259.0",
3
+ "version": "1.261.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.259.0"
46
+ "@salesforce/lds-bindings": "^1.261.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@salesforce/lds-compiler-plugins": "^1.259.0",
50
- "@salesforce/lds-karma": "^1.259.0"
49
+ "@salesforce/lds-compiler-plugins": "^1.261.0",
50
+ "@salesforce/lds-karma": "^1.261.0"
51
51
  },
52
52
  "nx": {
53
53
  "targets": {
package/sfdc/index.js CHANGED
@@ -209,12 +209,40 @@ function equals$8(existing, incoming) {
209
209
  return true;
210
210
  }
211
211
 
212
- const VERSION$7 = "89a6fdc1ed7c0b0e7bd5980d6fdecf09";
212
+ const VERSION$7 = "6e0f7ad284b0bacd2260182b92f0e398";
213
213
  function validate$8(obj, path = 'LightningKnowledgeArticleVersionCollectionRepresentation') {
214
214
  const v_error = (() => {
215
215
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
216
216
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
217
217
  }
218
+ if (obj.baseUrl !== undefined) {
219
+ const obj_baseUrl = obj.baseUrl;
220
+ const path_baseUrl = path + '.baseUrl';
221
+ let obj_baseUrl_union0 = null;
222
+ const obj_baseUrl_union0_error = (() => {
223
+ if (typeof obj_baseUrl !== 'string') {
224
+ return new TypeError('Expected "string" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
225
+ }
226
+ })();
227
+ if (obj_baseUrl_union0_error != null) {
228
+ obj_baseUrl_union0 = obj_baseUrl_union0_error.message;
229
+ }
230
+ let obj_baseUrl_union1 = null;
231
+ const obj_baseUrl_union1_error = (() => {
232
+ if (obj_baseUrl !== null) {
233
+ return new TypeError('Expected "null" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
234
+ }
235
+ })();
236
+ if (obj_baseUrl_union1_error != null) {
237
+ obj_baseUrl_union1 = obj_baseUrl_union1_error.message;
238
+ }
239
+ if (obj_baseUrl_union0 && obj_baseUrl_union1) {
240
+ let message = 'Object doesn\'t match union (at "' + path_baseUrl + '")';
241
+ message += '\n' + obj_baseUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
242
+ message += '\n' + obj_baseUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
243
+ return new TypeError(message);
244
+ }
245
+ }
218
246
  const obj_items = obj.items;
219
247
  const path_items = path + '.items';
220
248
  if (!ArrayIsArray(obj_items)) {
@@ -244,6 +272,11 @@ const select$f = function LightningKnowledgeArticleVersionCollectionRepresentati
244
272
  version: VERSION$7,
245
273
  private: [],
246
274
  selections: [
275
+ {
276
+ name: 'baseUrl',
277
+ kind: 'Scalar',
278
+ required: false
279
+ },
247
280
  {
248
281
  name: 'items',
249
282
  kind: 'Object',
@@ -254,6 +287,19 @@ const select$f = function LightningKnowledgeArticleVersionCollectionRepresentati
254
287
  };
255
288
  };
256
289
  function equals$7(existing, incoming) {
290
+ const existing_baseUrl = existing.baseUrl;
291
+ const incoming_baseUrl = incoming.baseUrl;
292
+ // if at least one of these optionals is defined
293
+ if (existing_baseUrl !== undefined || incoming_baseUrl !== undefined) {
294
+ // if one of these is not defined we know the other is defined and therefore
295
+ // not equal
296
+ if (existing_baseUrl === undefined || incoming_baseUrl === undefined) {
297
+ return false;
298
+ }
299
+ if (!(existing_baseUrl === incoming_baseUrl)) {
300
+ return false;
301
+ }
302
+ }
257
303
  const existing_items = existing.items;
258
304
  const incoming_items = incoming.items;
259
305
  const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
@@ -802,12 +848,40 @@ const notifyUpdateAvailableFactory$1 = (luvio) => {
802
848
  };
803
849
  };
804
850
 
805
- const VERSION$5 = "a632e4b22d40a2cfc312f36451d5319a";
851
+ const VERSION$5 = "55e759666b11e19f41045930d9ac0dd6";
806
852
  function validate$6(obj, path = 'NetworkDataCategoryCollectionRepresentation') {
807
853
  const v_error = (() => {
808
854
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
809
855
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
810
856
  }
857
+ if (obj.baseUrl !== undefined) {
858
+ const obj_baseUrl = obj.baseUrl;
859
+ const path_baseUrl = path + '.baseUrl';
860
+ let obj_baseUrl_union0 = null;
861
+ const obj_baseUrl_union0_error = (() => {
862
+ if (typeof obj_baseUrl !== 'string') {
863
+ return new TypeError('Expected "string" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
864
+ }
865
+ })();
866
+ if (obj_baseUrl_union0_error != null) {
867
+ obj_baseUrl_union0 = obj_baseUrl_union0_error.message;
868
+ }
869
+ let obj_baseUrl_union1 = null;
870
+ const obj_baseUrl_union1_error = (() => {
871
+ if (obj_baseUrl !== null) {
872
+ return new TypeError('Expected "null" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
873
+ }
874
+ })();
875
+ if (obj_baseUrl_union1_error != null) {
876
+ obj_baseUrl_union1 = obj_baseUrl_union1_error.message;
877
+ }
878
+ if (obj_baseUrl_union0 && obj_baseUrl_union1) {
879
+ let message = 'Object doesn\'t match union (at "' + path_baseUrl + '")';
880
+ message += '\n' + obj_baseUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
881
+ message += '\n' + obj_baseUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
882
+ return new TypeError(message);
883
+ }
884
+ }
811
885
  const obj_networkDataCategories = obj.networkDataCategories;
812
886
  const path_networkDataCategories = path + '.networkDataCategories';
813
887
  if (!ArrayIsArray(obj_networkDataCategories)) {
@@ -849,6 +923,11 @@ const select$c = function NetworkDataCategoryCollectionRepresentationSelect() {
849
923
  version: VERSION$5,
850
924
  private: [],
851
925
  selections: [
926
+ {
927
+ name: 'baseUrl',
928
+ kind: 'Scalar',
929
+ required: false
930
+ },
852
931
  {
853
932
  name: 'networkDataCategories',
854
933
  kind: 'Link',
@@ -859,6 +938,19 @@ const select$c = function NetworkDataCategoryCollectionRepresentationSelect() {
859
938
  };
860
939
  };
861
940
  function equals$5(existing, incoming) {
941
+ const existing_baseUrl = existing.baseUrl;
942
+ const incoming_baseUrl = incoming.baseUrl;
943
+ // if at least one of these optionals is defined
944
+ if (existing_baseUrl !== undefined || incoming_baseUrl !== undefined) {
945
+ // if one of these is not defined we know the other is defined and therefore
946
+ // not equal
947
+ if (existing_baseUrl === undefined || incoming_baseUrl === undefined) {
948
+ return false;
949
+ }
950
+ if (!(existing_baseUrl === incoming_baseUrl)) {
951
+ return false;
952
+ }
953
+ }
862
954
  const existing_networkDataCategories = existing.networkDataCategories;
863
955
  const incoming_networkDataCategories = incoming.networkDataCategories;
864
956
  const equals_networkDataCategories_items = equalsArray(existing_networkDataCategories, incoming_networkDataCategories, (existing_networkDataCategories_item, incoming_networkDataCategories_item) => {
@@ -1716,12 +1808,40 @@ function equals$2(existing, incoming) {
1716
1808
  return true;
1717
1809
  }
1718
1810
 
1719
- const VERSION$1 = "b91519c31db3334a2902f3847c66f5df";
1811
+ const VERSION$1 = "0ba0c3678e2715c0af38eb8d501269ae";
1720
1812
  function validate$2(obj, path = 'ServiceCatalogItemCollectionRepresentation') {
1721
1813
  const v_error = (() => {
1722
1814
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1723
1815
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1724
1816
  }
1817
+ if (obj.baseUrl !== undefined) {
1818
+ const obj_baseUrl = obj.baseUrl;
1819
+ const path_baseUrl = path + '.baseUrl';
1820
+ let obj_baseUrl_union0 = null;
1821
+ const obj_baseUrl_union0_error = (() => {
1822
+ if (typeof obj_baseUrl !== 'string') {
1823
+ return new TypeError('Expected "string" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
1824
+ }
1825
+ })();
1826
+ if (obj_baseUrl_union0_error != null) {
1827
+ obj_baseUrl_union0 = obj_baseUrl_union0_error.message;
1828
+ }
1829
+ let obj_baseUrl_union1 = null;
1830
+ const obj_baseUrl_union1_error = (() => {
1831
+ if (obj_baseUrl !== null) {
1832
+ return new TypeError('Expected "null" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
1833
+ }
1834
+ })();
1835
+ if (obj_baseUrl_union1_error != null) {
1836
+ obj_baseUrl_union1 = obj_baseUrl_union1_error.message;
1837
+ }
1838
+ if (obj_baseUrl_union0 && obj_baseUrl_union1) {
1839
+ let message = 'Object doesn\'t match union (at "' + path_baseUrl + '")';
1840
+ message += '\n' + obj_baseUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1841
+ message += '\n' + obj_baseUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1842
+ return new TypeError(message);
1843
+ }
1844
+ }
1725
1845
  const obj_items = obj.items;
1726
1846
  const path_items = path + '.items';
1727
1847
  if (!ArrayIsArray(obj_items)) {
@@ -1751,6 +1871,11 @@ const select$5 = function ServiceCatalogItemCollectionRepresentationSelect() {
1751
1871
  version: VERSION$1,
1752
1872
  private: [],
1753
1873
  selections: [
1874
+ {
1875
+ name: 'baseUrl',
1876
+ kind: 'Scalar',
1877
+ required: false
1878
+ },
1754
1879
  {
1755
1880
  name: 'items',
1756
1881
  kind: 'Object',
@@ -1761,6 +1886,19 @@ const select$5 = function ServiceCatalogItemCollectionRepresentationSelect() {
1761
1886
  };
1762
1887
  };
1763
1888
  function equals$1(existing, incoming) {
1889
+ const existing_baseUrl = existing.baseUrl;
1890
+ const incoming_baseUrl = incoming.baseUrl;
1891
+ // if at least one of these optionals is defined
1892
+ if (existing_baseUrl !== undefined || incoming_baseUrl !== undefined) {
1893
+ // if one of these is not defined we know the other is defined and therefore
1894
+ // not equal
1895
+ if (existing_baseUrl === undefined || incoming_baseUrl === undefined) {
1896
+ return false;
1897
+ }
1898
+ if (!(existing_baseUrl === incoming_baseUrl)) {
1899
+ return false;
1900
+ }
1901
+ }
1764
1902
  const existing_items = existing.items;
1765
1903
  const incoming_items = incoming.items;
1766
1904
  const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
@@ -2372,12 +2510,30 @@ let getParentNetworkDataCategoryPath_imperative;
2372
2510
  let getServiceCatalogItems_imperative;
2373
2511
  let getServiceCatalogItemsForCommunity_imperative;
2374
2512
  // Adapter Metadata
2375
- const getArticlesForCategoryMetadata = { apiFamily: 'NetworkDataCategory', name: 'getArticlesForCategory' };
2513
+ const getArticlesForCategoryMetadata = {
2514
+ apiFamily: 'NetworkDataCategory',
2515
+ name: 'getArticlesForCategory',
2516
+ };
2376
2517
  const getChildCategoriesMetadata = { apiFamily: 'NetworkDataCategory', name: 'getChildCategories' };
2377
- const getNetworkDataCategoriesMetadata = { apiFamily: 'NetworkDataCategory', name: 'getNetworkDataCategories' };
2378
- const getParentNetworkDataCategoryPathMetadata = { apiFamily: 'NetworkDataCategory', name: 'getParentNetworkDataCategoryPath' };
2379
- const getServiceCatalogItemsMetadata = { apiFamily: 'NetworkDataCategory', name: 'getServiceCatalogItems' };
2380
- const getServiceCatalogItemsForCommunityMetadata = { apiFamily: 'NetworkDataCategory', name: 'getServiceCatalogItemsForCommunity' };
2518
+ const getNetworkDataCategoriesMetadata = {
2519
+ apiFamily: 'NetworkDataCategory',
2520
+ name: 'getNetworkDataCategories',
2521
+ };
2522
+ const getParentNetworkDataCategoryPathMetadata = {
2523
+ apiFamily: 'NetworkDataCategory',
2524
+ name: 'getParentNetworkDataCategoryPath',
2525
+ };
2526
+ const getServiceCatalogItemsMetadata = {
2527
+ apiFamily: 'NetworkDataCategory',
2528
+ name: 'getServiceCatalogItems',
2529
+ };
2530
+ const getServiceCatalogItemsForCommunityMetadata = {
2531
+ apiFamily: 'NetworkDataCategory',
2532
+ name: 'getServiceCatalogItemsForCommunity',
2533
+ };
2534
+ // Notify Update Available
2535
+ let notifyNetworkDataCategoryRepresentationUpdateAvailable;
2536
+ let notifyNetworkDataCategoryTreeRepresentationUpdateAvailable;
2381
2537
  function bindExportsTo(luvio) {
2382
2538
  // LDS Adapters
2383
2539
  const getArticlesForCategory_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getArticlesForCategory', getArticlesForCategoryAdapterFactory), getArticlesForCategoryMetadata);
@@ -2388,7 +2544,7 @@ function bindExportsTo(luvio) {
2388
2544
  const getServiceCatalogItemsForCommunity_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getServiceCatalogItemsForCommunity', getServiceCatalogItemsForCommunityAdapterFactory), getServiceCatalogItemsForCommunityMetadata);
2389
2545
  function unwrapSnapshotData(factory) {
2390
2546
  const adapter = factory(luvio);
2391
- return (config) => adapter(config).then(snapshot => snapshot.data);
2547
+ return (config) => adapter(config).then((snapshot) => snapshot.data);
2392
2548
  }
2393
2549
  return {
2394
2550
  getArticlesForCategory: createWireAdapterConstructor(luvio, getArticlesForCategory_ldsAdapter, getArticlesForCategoryMetadata),
@@ -2406,7 +2562,10 @@ function bindExportsTo(luvio) {
2406
2562
  getNetworkDataCategories_imperative: createImperativeAdapter(luvio, getNetworkDataCategories_ldsAdapter, getNetworkDataCategoriesMetadata),
2407
2563
  getParentNetworkDataCategoryPath_imperative: createImperativeAdapter(luvio, getParentNetworkDataCategoryPath_ldsAdapter, getParentNetworkDataCategoryPathMetadata),
2408
2564
  getServiceCatalogItems_imperative: createImperativeAdapter(luvio, getServiceCatalogItems_ldsAdapter, getServiceCatalogItemsMetadata),
2409
- getServiceCatalogItemsForCommunity_imperative: createImperativeAdapter(luvio, getServiceCatalogItemsForCommunity_ldsAdapter, getServiceCatalogItemsForCommunityMetadata)
2565
+ getServiceCatalogItemsForCommunity_imperative: createImperativeAdapter(luvio, getServiceCatalogItemsForCommunity_ldsAdapter, getServiceCatalogItemsForCommunityMetadata),
2566
+ // Notify Update Availables
2567
+ notifyNetworkDataCategoryRepresentationUpdateAvailable: createLDSAdapter(luvio, 'notifyNetworkDataCategoryRepresentationUpdateAvailable', notifyUpdateAvailableFactory$1),
2568
+ notifyNetworkDataCategoryTreeRepresentationUpdateAvailable: createLDSAdapter(luvio, 'notifyNetworkDataCategoryTreeRepresentationUpdateAvailable', notifyUpdateAvailableFactory),
2410
2569
  };
2411
2570
  }
2412
2571
  withDefaultLuvio((luvio) => {
@@ -2425,9 +2584,11 @@ withDefaultLuvio((luvio) => {
2425
2584
  getNetworkDataCategories_imperative,
2426
2585
  getParentNetworkDataCategoryPath_imperative,
2427
2586
  getServiceCatalogItems_imperative,
2428
- getServiceCatalogItemsForCommunity_imperative
2587
+ getServiceCatalogItemsForCommunity_imperative,
2588
+ notifyNetworkDataCategoryRepresentationUpdateAvailable,
2589
+ notifyNetworkDataCategoryTreeRepresentationUpdateAvailable,
2429
2590
  } = bindExportsTo(luvio));
2430
2591
  });
2431
2592
 
2432
- export { getArticlesForCategory, getArticlesForCategory_imperative, getChildCategories, getChildCategories_imperative, getNetworkDataCategories, getNetworkDataCategoriesNotifyChange, getNetworkDataCategories_imperative, getParentNetworkDataCategoryPath, getParentNetworkDataCategoryPath_imperative, getServiceCatalogItems, getServiceCatalogItemsForCommunity, getServiceCatalogItemsForCommunity_imperative, getServiceCatalogItems_imperative, updateNetworkDataCategories, updateNetworkDataCategory };
2433
- // version: 1.259.0-54a7811b5
2593
+ 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.261.0-10ee630e7
package/src/raml/api.raml CHANGED
@@ -80,6 +80,10 @@ types:
80
80
  description: Represents a list of Network Data Categories.
81
81
  type: object
82
82
  properties:
83
+ baseUrl:
84
+ description: LWR Base URL for Network Data Category Detail page
85
+ type: string | nil
86
+ required: false
83
87
  networkDataCategories:
84
88
  description: A collection of network data categories
85
89
  type: array
@@ -115,6 +119,10 @@ types:
115
119
  description: Represents a list of Knowledge Articles in Lightning.
116
120
  type: object
117
121
  properties:
122
+ baseUrl:
123
+ description: LWR Base URL for Knowledge Article Detail page
124
+ type: string | nil
125
+ required: false
118
126
  items:
119
127
  description: A collection of knowledge articles.
120
128
  type: array
@@ -146,6 +154,10 @@ types:
146
154
  description: Represents a list of ServiceCatalogItemRepresentations
147
155
  type: object
148
156
  properties:
157
+ baseUrl:
158
+ description: LWR Base URL for Service Catalog Item Definition Detail page
159
+ type: string | nil
160
+ required: false
149
161
  items:
150
162
  description: A collection of service catalog items.
151
163
  type: array