@salesforce/lds-adapters-platform-applications 1.340.0 → 1.341.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.
@@ -84,23 +84,28 @@ function validate$1(obj, path = 'ExplorerViewItem') {
84
84
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
85
85
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
86
86
  }
87
- const obj_builderUrl = obj.builderUrl;
88
- const path_builderUrl = path + '.builderUrl';
89
- if (typeof obj_builderUrl !== 'string') {
90
- return new TypeError('Expected "string" but received "' + typeof obj_builderUrl + '" (at "' + path_builderUrl + '")');
87
+ const obj_href = obj.href;
88
+ const path_href = path + '.href';
89
+ if (typeof obj_href !== 'string') {
90
+ return new TypeError('Expected "string" but received "' + typeof obj_href + '" (at "' + path_href + '")');
91
91
  }
92
- const obj_children = obj.children;
93
- const path_children = path + '.children';
94
- if (!ArrayIsArray(obj_children)) {
95
- return new TypeError('Expected "array" but received "' + typeof obj_children + '" (at "' + path_children + '")');
92
+ const obj_isAIGenerated = obj.isAIGenerated;
93
+ const path_isAIGenerated = path + '.isAIGenerated';
94
+ if (typeof obj_isAIGenerated !== 'boolean') {
95
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isAIGenerated + '" (at "' + path_isAIGenerated + '")');
96
96
  }
97
- for (let i = 0; i < obj_children.length; i++) {
98
- const obj_children_item = obj_children[i];
99
- const path_children_item = path_children + '[' + i + ']';
100
- const referencepath_children_itemValidationError = validate$1(obj_children_item, path_children_item);
101
- if (referencepath_children_itemValidationError !== null) {
102
- let message = 'Object doesn\'t match ExplorerViewItem (at "' + path_children_item + '")\n';
103
- message += referencepath_children_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
97
+ const obj_items = obj.items;
98
+ const path_items = path + '.items';
99
+ if (!ArrayIsArray(obj_items)) {
100
+ return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
101
+ }
102
+ for (let i = 0; i < obj_items.length; i++) {
103
+ const obj_items_item = obj_items[i];
104
+ const path_items_item = path_items + '[' + i + ']';
105
+ const referencepath_items_itemValidationError = validate$1(obj_items_item, path_items_item);
106
+ if (referencepath_items_itemValidationError !== null) {
107
+ let message = 'Object doesn\'t match ExplorerViewItem (at "' + path_items_item + '")\n';
108
+ message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
104
109
  return new TypeError(message);
105
110
  }
106
111
  }
@@ -114,35 +119,30 @@ function validate$1(obj, path = 'ExplorerViewItem') {
114
119
  if (typeof obj_name !== 'string') {
115
120
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
116
121
  }
117
- const obj_showAiGeneratedIcon = obj.showAiGeneratedIcon;
118
- const path_showAiGeneratedIcon = path + '.showAiGeneratedIcon';
119
- if (typeof obj_showAiGeneratedIcon !== 'boolean') {
120
- return new TypeError('Expected "boolean" but received "' + typeof obj_showAiGeneratedIcon + '" (at "' + path_showAiGeneratedIcon + '")');
121
- }
122
122
  })();
123
123
  return v_error === undefined ? null : v_error;
124
124
  }
125
125
 
126
126
  const TTL = 100000;
127
- const VERSION = "a1c0c920d7be43bcdc3c77ec011db7a9";
127
+ const VERSION = "f7fb4db32a91c595a968707c48621271";
128
128
  function validate(obj, path = 'ExplorerViewRepresentation') {
129
129
  const v_error = (() => {
130
130
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
131
131
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
132
132
  }
133
- const obj_explorerViewItem = obj.explorerViewItem;
134
- const path_explorerViewItem = path + '.explorerViewItem';
135
- const referencepath_explorerViewItemValidationError = validate$1(obj_explorerViewItem, path_explorerViewItem);
136
- if (referencepath_explorerViewItemValidationError !== null) {
137
- let message = 'Object doesn\'t match ExplorerViewItem (at "' + path_explorerViewItem + '")\n';
138
- message += referencepath_explorerViewItemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
139
- return new TypeError(message);
140
- }
141
133
  const obj_metadataId = obj.metadataId;
142
134
  const path_metadataId = path + '.metadataId';
143
135
  if (typeof obj_metadataId !== 'string') {
144
136
  return new TypeError('Expected "string" but received "' + typeof obj_metadataId + '" (at "' + path_metadataId + '")');
145
137
  }
138
+ const obj_rootItem = obj.rootItem;
139
+ const path_rootItem = path + '.rootItem';
140
+ const referencepath_rootItemValidationError = validate$1(obj_rootItem, path_rootItem);
141
+ if (referencepath_rootItemValidationError !== null) {
142
+ let message = 'Object doesn\'t match ExplorerViewItem (at "' + path_rootItem + '")\n';
143
+ message += referencepath_rootItemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
144
+ return new TypeError(message);
145
+ }
146
146
  })();
147
147
  return v_error === undefined ? null : v_error;
148
148
  }
@@ -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 = "8ad0ea3accaa64b0357bddb5a1fbb1d5";
2
+ export declare const VERSION = "ef34c0bab669d2e2bbedd7d486031668";
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: ExplorerViewItem, existing: ExplorerViewItemNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExplorerViewItemNormalized;
@@ -14,16 +14,16 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
14
  * (none)
15
15
  */
16
16
  export interface ExplorerViewItemNormalized {
17
- /** Returns the builder url of the explorer view item */
18
- builderUrl: string;
17
+ /** Returns the url of the explorer view item */
18
+ href: string;
19
+ /** Returns explorer view item true if explorer view item is AI generated */
20
+ isAIGenerated: boolean;
19
21
  /** Returns the list of children associated with that explorer view item */
20
- children: Array<ExplorerViewItem>;
22
+ items: Array<ExplorerViewItem>;
21
23
  /** Returns the label of the explorer view item */
22
24
  label: string;
23
25
  /** Returns the name of the explorer view item */
24
26
  name: string;
25
- /** Returns explorer view item true if explorer view item is AI generated */
26
- showAiGeneratedIcon: boolean;
27
27
  }
28
28
  /**
29
29
  * Representation for the each tree item inside Explorer View
@@ -32,9 +32,9 @@ export interface ExplorerViewItemNormalized {
32
32
  * (none)
33
33
  */
34
34
  export interface ExplorerViewItem {
35
- builderUrl: string;
36
- children: Array<ExplorerViewItem>;
35
+ href: string;
36
+ isAIGenerated: boolean;
37
+ items: Array<ExplorerViewItem>;
37
38
  label: string;
38
39
  name: string;
39
- showAiGeneratedIcon: boolean;
40
40
  }
@@ -1,7 +1,7 @@
1
1
  import { ExplorerViewItem as ExplorerViewItem_ExplorerViewItem } from './ExplorerViewItem';
2
2
  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, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
3
  export declare const TTL = 100000;
4
- export declare const VERSION = "a1c0c920d7be43bcdc3c77ec011db7a9";
4
+ export declare const VERSION = "f7fb4db32a91c595a968707c48621271";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -25,10 +25,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
25
25
  * metadataId (string): metadataId
26
26
  */
27
27
  export interface ExplorerViewRepresentationNormalized {
28
- /** Returns the root node of explorer view */
29
- explorerViewItem: ExplorerViewItem_ExplorerViewItem;
30
28
  /** Returns the metadata id for which explorer view is shown */
31
29
  metadataId: string;
30
+ /** Returns the root node of explorer view */
31
+ rootItem: ExplorerViewItem_ExplorerViewItem;
32
32
  }
33
33
  /**
34
34
  * Representation for the tree like Explorer View structure
@@ -37,6 +37,6 @@ export interface ExplorerViewRepresentationNormalized {
37
37
  * metadataId (string): metadataId
38
38
  */
39
39
  export interface ExplorerViewRepresentation {
40
- explorerViewItem: ExplorerViewItem_ExplorerViewItem;
41
40
  metadataId: string;
41
+ rootItem: ExplorerViewItem_ExplorerViewItem;
42
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-applications",
3
- "version": "1.340.0",
3
+ "version": "1.341.0",
4
4
  "description": "salesforce applications",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-applications.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.340.0"
43
+ "@salesforce/lds-bindings": "^1.341.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.340.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.341.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -94,23 +94,28 @@ function validate$1(obj, path = 'ExplorerViewItem') {
94
94
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
95
95
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
96
96
  }
97
- const obj_builderUrl = obj.builderUrl;
98
- const path_builderUrl = path + '.builderUrl';
99
- if (typeof obj_builderUrl !== 'string') {
100
- return new TypeError('Expected "string" but received "' + typeof obj_builderUrl + '" (at "' + path_builderUrl + '")');
97
+ const obj_href = obj.href;
98
+ const path_href = path + '.href';
99
+ if (typeof obj_href !== 'string') {
100
+ return new TypeError('Expected "string" but received "' + typeof obj_href + '" (at "' + path_href + '")');
101
101
  }
102
- const obj_children = obj.children;
103
- const path_children = path + '.children';
104
- if (!ArrayIsArray(obj_children)) {
105
- return new TypeError('Expected "array" but received "' + typeof obj_children + '" (at "' + path_children + '")');
102
+ const obj_isAIGenerated = obj.isAIGenerated;
103
+ const path_isAIGenerated = path + '.isAIGenerated';
104
+ if (typeof obj_isAIGenerated !== 'boolean') {
105
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isAIGenerated + '" (at "' + path_isAIGenerated + '")');
106
106
  }
107
- for (let i = 0; i < obj_children.length; i++) {
108
- const obj_children_item = obj_children[i];
109
- const path_children_item = path_children + '[' + i + ']';
110
- const referencepath_children_itemValidationError = validate$1(obj_children_item, path_children_item);
111
- if (referencepath_children_itemValidationError !== null) {
112
- let message = 'Object doesn\'t match ExplorerViewItem (at "' + path_children_item + '")\n';
113
- message += referencepath_children_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
107
+ const obj_items = obj.items;
108
+ const path_items = path + '.items';
109
+ if (!ArrayIsArray(obj_items)) {
110
+ return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
111
+ }
112
+ for (let i = 0; i < obj_items.length; i++) {
113
+ const obj_items_item = obj_items[i];
114
+ const path_items_item = path_items + '[' + i + ']';
115
+ const referencepath_items_itemValidationError = validate$1(obj_items_item, path_items_item);
116
+ if (referencepath_items_itemValidationError !== null) {
117
+ let message = 'Object doesn\'t match ExplorerViewItem (at "' + path_items_item + '")\n';
118
+ message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
114
119
  return new TypeError(message);
115
120
  }
116
121
  }
@@ -124,35 +129,30 @@ function validate$1(obj, path = 'ExplorerViewItem') {
124
129
  if (typeof obj_name !== 'string') {
125
130
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
126
131
  }
127
- const obj_showAiGeneratedIcon = obj.showAiGeneratedIcon;
128
- const path_showAiGeneratedIcon = path + '.showAiGeneratedIcon';
129
- if (typeof obj_showAiGeneratedIcon !== 'boolean') {
130
- return new TypeError('Expected "boolean" but received "' + typeof obj_showAiGeneratedIcon + '" (at "' + path_showAiGeneratedIcon + '")');
131
- }
132
132
  })();
133
133
  return v_error === undefined ? null : v_error;
134
134
  }
135
135
 
136
136
  const TTL = 100000;
137
- const VERSION = "a1c0c920d7be43bcdc3c77ec011db7a9";
137
+ const VERSION = "f7fb4db32a91c595a968707c48621271";
138
138
  function validate(obj, path = 'ExplorerViewRepresentation') {
139
139
  const v_error = (() => {
140
140
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
141
141
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
142
142
  }
143
- const obj_explorerViewItem = obj.explorerViewItem;
144
- const path_explorerViewItem = path + '.explorerViewItem';
145
- const referencepath_explorerViewItemValidationError = validate$1(obj_explorerViewItem, path_explorerViewItem);
146
- if (referencepath_explorerViewItemValidationError !== null) {
147
- let message = 'Object doesn\'t match ExplorerViewItem (at "' + path_explorerViewItem + '")\n';
148
- message += referencepath_explorerViewItemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
149
- return new TypeError(message);
150
- }
151
143
  const obj_metadataId = obj.metadataId;
152
144
  const path_metadataId = path + '.metadataId';
153
145
  if (typeof obj_metadataId !== 'string') {
154
146
  return new TypeError('Expected "string" but received "' + typeof obj_metadataId + '" (at "' + path_metadataId + '")');
155
147
  }
148
+ const obj_rootItem = obj.rootItem;
149
+ const path_rootItem = path + '.rootItem';
150
+ const referencepath_rootItemValidationError = validate$1(obj_rootItem, path_rootItem);
151
+ if (referencepath_rootItemValidationError !== null) {
152
+ let message = 'Object doesn\'t match ExplorerViewItem (at "' + path_rootItem + '")\n';
153
+ message += referencepath_rootItemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
154
+ return new TypeError(message);
155
+ }
156
156
  })();
157
157
  return v_error === undefined ? null : v_error;
158
158
  }
@@ -410,4 +410,4 @@ withDefaultLuvio((luvio) => {
410
410
  });
411
411
 
412
412
  export { getExplorerView, getExplorerViewNotifyChange, getExplorerView_imperative };
413
- // version: 1.340.0-08235a5e1b
413
+ // version: 1.341.0-7420e11050
package/src/raml/api.raml CHANGED
@@ -29,10 +29,13 @@ types:
29
29
  description: Representation for the each tree item inside Explorer View
30
30
  type: object
31
31
  properties:
32
- builderUrl:
33
- description: Returns the builder url of the explorer view item
32
+ href:
33
+ description: Returns the url of the explorer view item
34
34
  type: string
35
- children:
35
+ isAIGenerated:
36
+ description: Returns explorer view item true if explorer view item is AI generated
37
+ type: boolean
38
+ items:
36
39
  description: Returns the list of children associated with that explorer view
37
40
  item
38
41
  type: array
@@ -44,19 +47,16 @@ types:
44
47
  name:
45
48
  description: Returns the name of the explorer view item
46
49
  type: string
47
- showAiGeneratedIcon:
48
- description: Returns explorer view item true if explorer view item is AI generated
49
- type: boolean
50
50
  ExplorerViewRepresentation:
51
51
  description: Representation for the tree like Explorer View structure
52
52
  type: object
53
53
  properties:
54
- explorerViewItem:
55
- description: Returns the root node of explorer view
56
- type: ExplorerViewItem
57
54
  metadataId:
58
55
  description: Returns the metadata id for which explorer view is shown
59
56
  type: string
57
+ rootItem:
58
+ description: Returns the root node of explorer view
59
+ type: ExplorerViewItem
60
60
 
61
61
  /connect/explorer-view/{metadataId}:
62
62
  get: