@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.
- package/dist/es/es2018/platform-applications.js +29 -29
- package/dist/es/es2018/types/src/generated/types/ExplorerViewItem.d.ts +9 -9
- package/dist/es/es2018/types/src/generated/types/ExplorerViewRepresentation.d.ts +4 -4
- package/package.json +3 -3
- package/sfdc/index.js +30 -30
- package/src/raml/api.raml +9 -9
|
@@ -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
|
|
88
|
-
const
|
|
89
|
-
if (typeof
|
|
90
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
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
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
-
return new TypeError('Expected "
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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 = "
|
|
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 = "
|
|
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
|
|
18
|
-
|
|
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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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 = "
|
|
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.
|
|
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.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.341.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
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
|
|
98
|
-
const
|
|
99
|
-
if (typeof
|
|
100
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
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
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
105
|
-
return new TypeError('Expected "
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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 = "
|
|
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.
|
|
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
|
-
|
|
33
|
-
description: Returns the
|
|
32
|
+
href:
|
|
33
|
+
description: Returns the url of the explorer view item
|
|
34
34
|
type: string
|
|
35
|
-
|
|
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:
|