@salesforce/lds-adapters-platform-sharing 1.279.0 → 1.281.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-sharing.js +459 -147
- package/dist/es/es2018/types/src/generated/adapters/getAllSobjects.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getSharingSobjects.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/SobjectOutputSharingRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SobjectsOutputSharingRepresentation.d.ts +33 -0
- package/package.json +3 -3
- package/sfdc/index.js +329 -9
- package/src/raml/api.raml +51 -0
- package/src/raml/luvio.raml +17 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getSharingSobjects_ResourceRequestConfig } from '../resources/getSharingSobjects';
|
|
4
|
+
import { SobjectsOutputSharingRepresentation as types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation } from '../types/SobjectsOutputSharingRepresentation';
|
|
5
|
+
export declare const adapterName = "getAllSobjects";
|
|
6
|
+
export declare const getAllSobjects_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getAllSobjects_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetAllSobjectsConfig {
|
|
9
|
+
limit?: number;
|
|
10
|
+
offset?: number;
|
|
11
|
+
searchText?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const createResourceParams: (config: GetAllSobjectsConfig) => resources_getSharingSobjects_ResourceRequestConfig;
|
|
14
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig): string;
|
|
15
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetAllSobjectsConfig>): adapter$45$utils_Untrusted<GetAllSobjectsConfig>;
|
|
17
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetAllSobjectsConfig | null;
|
|
18
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig): $64$luvio_engine_Fragment;
|
|
19
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig): $64$luvio_engine_Snapshot<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation, any>;
|
|
20
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig, resourceParams: resources_getSharingSobjects_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation, any>>;
|
|
21
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig, resourceParams: resources_getSharingSobjects_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
22
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetAllSobjectsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation, any>>;
|
|
23
|
+
export type BuildSnapshotContext = {
|
|
24
|
+
luvio: $64$luvio_engine_Luvio;
|
|
25
|
+
config: GetAllSobjectsConfig;
|
|
26
|
+
};
|
|
27
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation, any>>;
|
|
28
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation>): $64$luvio_engine_Snapshot<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation, any>;
|
|
29
|
+
export declare const getAllSobjectsAdapterFactory: $64$luvio_engine_AdapterFactory<GetAllSobjectsConfig, types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
declare let getAllSobjects: any;
|
|
1
2
|
declare let getGroupsForUser: any;
|
|
2
3
|
declare let getPublicGroupShareData: any;
|
|
4
|
+
declare let getAllSobjects_imperative: any;
|
|
3
5
|
declare let getGroupsForUser_imperative: any;
|
|
4
6
|
declare let getPublicGroupShareData_imperative: any;
|
|
5
|
-
export { getGroupsForUser, getPublicGroupShareData, getGroupsForUser_imperative, getPublicGroupShareData_imperative, };
|
|
7
|
+
export { getAllSobjects, getGroupsForUser, getPublicGroupShareData, getAllSobjects_imperative, getGroupsForUser_imperative, getPublicGroupShareData_imperative, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { SobjectsOutputSharingRepresentation as types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation } from '../types/SobjectsOutputSharingRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
limit?: number;
|
|
6
|
+
offset?: number;
|
|
7
|
+
searchText?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation): void;
|
|
14
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation, any>;
|
|
15
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SobjectsOutputSharingRepresentation_SobjectsOutputSharingRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
16
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
17
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 = "8f1b312aa04c8869624b95b9e3f3cd4e";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SobjectOutputSharingRepresentation, existing: SobjectOutputSharingRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SobjectOutputSharingRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SobjectOutputSharingRepresentationNormalized, incoming: SobjectOutputSharingRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SobjectOutputSharingRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Output representation of sobject to be used for Selection
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SobjectOutputSharingRepresentationNormalized {
|
|
17
|
+
/** apiName of Sobject */
|
|
18
|
+
apiName: string;
|
|
19
|
+
/** Key prefix of sobject */
|
|
20
|
+
keyPrefix: string;
|
|
21
|
+
/** Label of sobject */
|
|
22
|
+
label: string;
|
|
23
|
+
/** Label Plural of sobject */
|
|
24
|
+
labelPlural: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Output representation of sobject to be used for Selection
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface SobjectOutputSharingRepresentation {
|
|
33
|
+
apiName: string;
|
|
34
|
+
keyPrefix: string;
|
|
35
|
+
label: string;
|
|
36
|
+
labelPlural: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SobjectOutputSharingRepresentation as SobjectOutputSharingRepresentation_SobjectOutputSharingRepresentation } from './SobjectOutputSharingRepresentation';
|
|
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 TTL = 900000;
|
|
4
|
+
export declare const VERSION = "891459dfe3e992adddad156c898d3aef";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: SobjectsOutputSharingRepresentation, existing: SobjectsOutputSharingRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SobjectsOutputSharingRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: SobjectsOutputSharingRepresentationNormalized, incoming: SobjectsOutputSharingRepresentationNormalized): boolean;
|
|
10
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SobjectsOutputSharingRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Output representation of sobject to be shared on UI
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface SobjectsOutputSharingRepresentationNormalized {
|
|
19
|
+
/** Number of sobjects */
|
|
20
|
+
size: number;
|
|
21
|
+
/** List of sobjects */
|
|
22
|
+
sobjects: Array<SobjectOutputSharingRepresentation_SobjectOutputSharingRepresentation>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Output representation of sobject to be shared on UI
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface SobjectsOutputSharingRepresentation {
|
|
31
|
+
size: number;
|
|
32
|
+
sobjects: Array<SobjectOutputSharingRepresentation_SobjectOutputSharingRepresentation>;
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-sharing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.281.0",
|
|
4
4
|
"description": "Sharing",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/platform-sharing.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.281.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.281.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -101,6 +101,318 @@ function createLink(ref) {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
const VERSION$a = "8f1b312aa04c8869624b95b9e3f3cd4e";
|
|
105
|
+
function validate$a(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
106
|
+
const v_error = (() => {
|
|
107
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
109
|
+
}
|
|
110
|
+
const obj_apiName = obj.apiName;
|
|
111
|
+
const path_apiName = path + '.apiName';
|
|
112
|
+
if (typeof obj_apiName !== 'string') {
|
|
113
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
114
|
+
}
|
|
115
|
+
const obj_keyPrefix = obj.keyPrefix;
|
|
116
|
+
const path_keyPrefix = path + '.keyPrefix';
|
|
117
|
+
if (typeof obj_keyPrefix !== 'string') {
|
|
118
|
+
return new TypeError('Expected "string" but received "' + typeof obj_keyPrefix + '" (at "' + path_keyPrefix + '")');
|
|
119
|
+
}
|
|
120
|
+
const obj_label = obj.label;
|
|
121
|
+
const path_label = path + '.label';
|
|
122
|
+
if (typeof obj_label !== 'string') {
|
|
123
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
124
|
+
}
|
|
125
|
+
const obj_labelPlural = obj.labelPlural;
|
|
126
|
+
const path_labelPlural = path + '.labelPlural';
|
|
127
|
+
if (typeof obj_labelPlural !== 'string') {
|
|
128
|
+
return new TypeError('Expected "string" but received "' + typeof obj_labelPlural + '" (at "' + path_labelPlural + '")');
|
|
129
|
+
}
|
|
130
|
+
})();
|
|
131
|
+
return v_error === undefined ? null : v_error;
|
|
132
|
+
}
|
|
133
|
+
const select$d = function SobjectOutputSharingRepresentationSelect() {
|
|
134
|
+
return {
|
|
135
|
+
kind: 'Fragment',
|
|
136
|
+
version: VERSION$a,
|
|
137
|
+
private: [],
|
|
138
|
+
selections: [
|
|
139
|
+
{
|
|
140
|
+
name: 'apiName',
|
|
141
|
+
kind: 'Scalar'
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'keyPrefix',
|
|
145
|
+
kind: 'Scalar'
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'label',
|
|
149
|
+
kind: 'Scalar'
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'labelPlural',
|
|
153
|
+
kind: 'Scalar'
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
function equals$a(existing, incoming) {
|
|
159
|
+
const existing_apiName = existing.apiName;
|
|
160
|
+
const incoming_apiName = incoming.apiName;
|
|
161
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
const existing_keyPrefix = existing.keyPrefix;
|
|
165
|
+
const incoming_keyPrefix = incoming.keyPrefix;
|
|
166
|
+
if (!(existing_keyPrefix === incoming_keyPrefix)) {
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
const existing_label = existing.label;
|
|
170
|
+
const incoming_label = incoming.label;
|
|
171
|
+
if (!(existing_label === incoming_label)) {
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
const existing_labelPlural = existing.labelPlural;
|
|
175
|
+
const incoming_labelPlural = incoming.labelPlural;
|
|
176
|
+
if (!(existing_labelPlural === incoming_labelPlural)) {
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
return true;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const TTL$2 = 900000;
|
|
183
|
+
const VERSION$9 = "891459dfe3e992adddad156c898d3aef";
|
|
184
|
+
function validate$9(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
185
|
+
const v_error = (() => {
|
|
186
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
187
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
188
|
+
}
|
|
189
|
+
const obj_size = obj.size;
|
|
190
|
+
const path_size = path + '.size';
|
|
191
|
+
if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
|
|
192
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
193
|
+
}
|
|
194
|
+
const obj_sobjects = obj.sobjects;
|
|
195
|
+
const path_sobjects = path + '.sobjects';
|
|
196
|
+
if (!ArrayIsArray(obj_sobjects)) {
|
|
197
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sobjects + '" (at "' + path_sobjects + '")');
|
|
198
|
+
}
|
|
199
|
+
for (let i = 0; i < obj_sobjects.length; i++) {
|
|
200
|
+
const obj_sobjects_item = obj_sobjects[i];
|
|
201
|
+
const path_sobjects_item = path_sobjects + '[' + i + ']';
|
|
202
|
+
const referencepath_sobjects_itemValidationError = validate$a(obj_sobjects_item, path_sobjects_item);
|
|
203
|
+
if (referencepath_sobjects_itemValidationError !== null) {
|
|
204
|
+
let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
|
|
205
|
+
message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
206
|
+
return new TypeError(message);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
})();
|
|
210
|
+
return v_error === undefined ? null : v_error;
|
|
211
|
+
}
|
|
212
|
+
const RepresentationType$2 = 'SobjectsOutputSharingRepresentation';
|
|
213
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
214
|
+
return input;
|
|
215
|
+
}
|
|
216
|
+
const select$c = function SobjectsOutputSharingRepresentationSelect() {
|
|
217
|
+
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$d();
|
|
218
|
+
return {
|
|
219
|
+
kind: 'Fragment',
|
|
220
|
+
version: VERSION$9,
|
|
221
|
+
private: [],
|
|
222
|
+
selections: [
|
|
223
|
+
{
|
|
224
|
+
name: 'size',
|
|
225
|
+
kind: 'Scalar'
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: 'sobjects',
|
|
229
|
+
kind: 'Object',
|
|
230
|
+
plural: true,
|
|
231
|
+
selections: SobjectOutputSharingRepresentation__selections
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
function equals$9(existing, incoming) {
|
|
237
|
+
const existing_size = existing.size;
|
|
238
|
+
const incoming_size = incoming.size;
|
|
239
|
+
if (!(existing_size === incoming_size)) {
|
|
240
|
+
return false;
|
|
241
|
+
}
|
|
242
|
+
const existing_sobjects = existing.sobjects;
|
|
243
|
+
const incoming_sobjects = incoming.sobjects;
|
|
244
|
+
const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
|
|
245
|
+
if (!(equals$a(existing_sobjects_item, incoming_sobjects_item))) {
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
if (equals_sobjects_items === false) {
|
|
250
|
+
return false;
|
|
251
|
+
}
|
|
252
|
+
return true;
|
|
253
|
+
}
|
|
254
|
+
const ingest$2 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
255
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
256
|
+
const validateError = validate$9(input);
|
|
257
|
+
if (validateError !== null) {
|
|
258
|
+
throw validateError;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
const key = path.fullPath;
|
|
262
|
+
const ttlToUse = TTL$2;
|
|
263
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$9, RepresentationType$2, equals$9);
|
|
264
|
+
return createLink(key);
|
|
265
|
+
};
|
|
266
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
267
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
268
|
+
const rootKey = fullPathFactory();
|
|
269
|
+
rootKeySet.set(rootKey, {
|
|
270
|
+
namespace: keyPrefix,
|
|
271
|
+
representationName: RepresentationType$2,
|
|
272
|
+
mergeable: false
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function select$b(luvio, params) {
|
|
277
|
+
return select$c();
|
|
278
|
+
}
|
|
279
|
+
function keyBuilder$5(luvio, params) {
|
|
280
|
+
return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
|
|
281
|
+
}
|
|
282
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
283
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
284
|
+
}
|
|
285
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
286
|
+
const { body } = response;
|
|
287
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
288
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
289
|
+
const snapshot = luvio.storeLookup({
|
|
290
|
+
recordId: key,
|
|
291
|
+
node: select$b(),
|
|
292
|
+
variables: {},
|
|
293
|
+
}, snapshotRefresh);
|
|
294
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
295
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
296
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
deepFreeze(snapshot.data);
|
|
300
|
+
return snapshot;
|
|
301
|
+
}
|
|
302
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
303
|
+
const key = keyBuilder$5(luvio, params);
|
|
304
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
305
|
+
const storeMetadataParams = {
|
|
306
|
+
ttl: TTL$2,
|
|
307
|
+
namespace: keyPrefix,
|
|
308
|
+
version: VERSION$9,
|
|
309
|
+
representationName: RepresentationType$2
|
|
310
|
+
};
|
|
311
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
312
|
+
return errorSnapshot;
|
|
313
|
+
}
|
|
314
|
+
function createResourceRequest$2(config) {
|
|
315
|
+
const headers = {};
|
|
316
|
+
return {
|
|
317
|
+
baseUri: '/services/data/v61.0',
|
|
318
|
+
basePath: '/sharing/sobjects',
|
|
319
|
+
method: 'get',
|
|
320
|
+
body: null,
|
|
321
|
+
urlParams: {},
|
|
322
|
+
queryParams: config.queryParams,
|
|
323
|
+
headers,
|
|
324
|
+
priority: 'normal',
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
const adapterName$2 = 'getAllSobjects';
|
|
329
|
+
const getAllSobjects_ConfigPropertyMetadata = [
|
|
330
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
331
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
332
|
+
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
333
|
+
];
|
|
334
|
+
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getAllSobjects_ConfigPropertyMetadata);
|
|
335
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getAllSobjects_ConfigPropertyMetadata);
|
|
336
|
+
function keyBuilder$4(luvio, config) {
|
|
337
|
+
const resourceParams = createResourceParams$2(config);
|
|
338
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
339
|
+
}
|
|
340
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
341
|
+
const config = {};
|
|
342
|
+
typeCheckConfig$3(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
|
|
343
|
+
return config;
|
|
344
|
+
}
|
|
345
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
346
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
347
|
+
return null;
|
|
348
|
+
}
|
|
349
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
350
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
351
|
+
}
|
|
352
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
353
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
354
|
+
return null;
|
|
355
|
+
}
|
|
356
|
+
return config;
|
|
357
|
+
}
|
|
358
|
+
function adapterFragment$2(luvio, config) {
|
|
359
|
+
createResourceParams$2(config);
|
|
360
|
+
return select$b();
|
|
361
|
+
}
|
|
362
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
363
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
364
|
+
config,
|
|
365
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
366
|
+
});
|
|
367
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
368
|
+
}
|
|
369
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
370
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
371
|
+
config,
|
|
372
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
373
|
+
});
|
|
374
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
375
|
+
}
|
|
376
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
377
|
+
const resourceParams = createResourceParams$2(config);
|
|
378
|
+
const request = createResourceRequest$2(resourceParams);
|
|
379
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
380
|
+
.then((response) => {
|
|
381
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
382
|
+
const cache = new StoreKeyMap();
|
|
383
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
384
|
+
return cache;
|
|
385
|
+
});
|
|
386
|
+
}, (response) => {
|
|
387
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
391
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
392
|
+
}
|
|
393
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
394
|
+
const { luvio, config } = context;
|
|
395
|
+
const selector = {
|
|
396
|
+
recordId: keyBuilder$4(luvio, config),
|
|
397
|
+
node: adapterFragment$2(luvio, config),
|
|
398
|
+
variables: {},
|
|
399
|
+
};
|
|
400
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
401
|
+
config,
|
|
402
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
403
|
+
});
|
|
404
|
+
return cacheSnapshot;
|
|
405
|
+
}
|
|
406
|
+
const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
|
|
407
|
+
const config = validateAdapterConfig$2(untrustedConfig, getAllSobjects_ConfigPropertyNames);
|
|
408
|
+
// Invalid or incomplete config
|
|
409
|
+
if (config === null) {
|
|
410
|
+
return null;
|
|
411
|
+
}
|
|
412
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
413
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
414
|
+
};
|
|
415
|
+
|
|
104
416
|
const VERSION$8 = "252bb771341222662b0b76c855414e1f";
|
|
105
417
|
function validate$8(obj, path = 'PublicGroupRepresentation') {
|
|
106
418
|
const v_error = (() => {
|
|
@@ -387,14 +699,14 @@ const getGroupsForUser_ConfigPropertyMetadata = [
|
|
|
387
699
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
388
700
|
];
|
|
389
701
|
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getGroupsForUser_ConfigPropertyMetadata);
|
|
390
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
702
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getGroupsForUser_ConfigPropertyMetadata);
|
|
391
703
|
function keyBuilder$2(luvio, config) {
|
|
392
704
|
const resourceParams = createResourceParams$1(config);
|
|
393
705
|
return keyBuilder$3(luvio, resourceParams);
|
|
394
706
|
}
|
|
395
707
|
function typeCheckConfig$1(untrustedConfig) {
|
|
396
708
|
const config = {};
|
|
397
|
-
typeCheckConfig$
|
|
709
|
+
typeCheckConfig$3(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
|
|
398
710
|
return config;
|
|
399
711
|
}
|
|
400
712
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -443,7 +755,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
443
755
|
});
|
|
444
756
|
}
|
|
445
757
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
446
|
-
return buildNetworkSnapshotCachePolicy$
|
|
758
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
447
759
|
}
|
|
448
760
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
449
761
|
const { luvio, config } = context;
|
|
@@ -1141,14 +1453,14 @@ const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
|
1141
1453
|
generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
|
|
1142
1454
|
];
|
|
1143
1455
|
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1144
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1456
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1145
1457
|
function keyBuilder(luvio, config) {
|
|
1146
1458
|
const resourceParams = createResourceParams(config);
|
|
1147
1459
|
return keyBuilder$1(luvio, resourceParams);
|
|
1148
1460
|
}
|
|
1149
1461
|
function typeCheckConfig(untrustedConfig) {
|
|
1150
1462
|
const config = {};
|
|
1151
|
-
typeCheckConfig$
|
|
1463
|
+
typeCheckConfig$3(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1152
1464
|
return config;
|
|
1153
1465
|
}
|
|
1154
1466
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1197,7 +1509,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1197
1509
|
});
|
|
1198
1510
|
}
|
|
1199
1511
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1200
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1512
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
|
|
1201
1513
|
}
|
|
1202
1514
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1203
1515
|
const { luvio, config } = context;
|
|
@@ -1222,12 +1534,15 @@ const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPu
|
|
|
1222
1534
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1223
1535
|
};
|
|
1224
1536
|
|
|
1537
|
+
let getAllSobjects;
|
|
1225
1538
|
let getGroupsForUser;
|
|
1226
1539
|
let getPublicGroupShareData;
|
|
1227
1540
|
// Imperative GET Adapters
|
|
1541
|
+
let getAllSobjects_imperative;
|
|
1228
1542
|
let getGroupsForUser_imperative;
|
|
1229
1543
|
let getPublicGroupShareData_imperative;
|
|
1230
1544
|
// Adapter Metadata
|
|
1545
|
+
const getAllSobjectsMetadata = { apiFamily: 'sharing', name: 'getAllSobjects', ttl: 900000 };
|
|
1231
1546
|
const getGroupsForUserMetadata = { apiFamily: 'sharing', name: 'getGroupsForUser', ttl: 300 };
|
|
1232
1547
|
const getPublicGroupShareDataMetadata = {
|
|
1233
1548
|
apiFamily: 'sharing',
|
|
@@ -1237,12 +1552,15 @@ const getPublicGroupShareDataMetadata = {
|
|
|
1237
1552
|
// Notify Update Available
|
|
1238
1553
|
function bindExportsTo(luvio) {
|
|
1239
1554
|
// LDS Adapters
|
|
1555
|
+
const getAllSobjects_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllSobjects', getAllSobjectsAdapterFactory), getAllSobjectsMetadata);
|
|
1240
1556
|
const getGroupsForUser_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGroupsForUser', getGroupsForUserAdapterFactory), getGroupsForUserMetadata);
|
|
1241
1557
|
const getPublicGroupShareData_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPublicGroupShareData', getPublicGroupShareDataAdapterFactory), getPublicGroupShareDataMetadata);
|
|
1242
1558
|
return {
|
|
1559
|
+
getAllSobjects: createWireAdapterConstructor(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
|
|
1243
1560
|
getGroupsForUser: createWireAdapterConstructor(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
|
|
1244
1561
|
getPublicGroupShareData: createWireAdapterConstructor(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
|
|
1245
1562
|
// Imperative GET Adapters
|
|
1563
|
+
getAllSobjects_imperative: createImperativeAdapter(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
|
|
1246
1564
|
getGroupsForUser_imperative: createImperativeAdapter(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
|
|
1247
1565
|
getPublicGroupShareData_imperative: createImperativeAdapter(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
|
|
1248
1566
|
// Notify Update Availables
|
|
@@ -1250,12 +1568,14 @@ function bindExportsTo(luvio) {
|
|
|
1250
1568
|
}
|
|
1251
1569
|
withDefaultLuvio((luvio) => {
|
|
1252
1570
|
({
|
|
1571
|
+
getAllSobjects,
|
|
1253
1572
|
getGroupsForUser,
|
|
1254
1573
|
getPublicGroupShareData,
|
|
1574
|
+
getAllSobjects_imperative,
|
|
1255
1575
|
getGroupsForUser_imperative,
|
|
1256
1576
|
getPublicGroupShareData_imperative,
|
|
1257
1577
|
} = bindExportsTo(luvio));
|
|
1258
1578
|
});
|
|
1259
1579
|
|
|
1260
|
-
export { getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative };
|
|
1261
|
-
// version: 1.
|
|
1580
|
+
export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative };
|
|
1581
|
+
// version: 1.281.0-bcef40769
|
package/src/raml/api.raml
CHANGED
|
@@ -405,6 +405,34 @@ types:
|
|
|
405
405
|
sharedFrom:
|
|
406
406
|
description: Owner Sharing Rule shared from group.
|
|
407
407
|
type: string
|
|
408
|
+
SobjectOutputSharingRepresentation:
|
|
409
|
+
description: Output representation of sobject to be used for Selection
|
|
410
|
+
type: object
|
|
411
|
+
properties:
|
|
412
|
+
apiName:
|
|
413
|
+
description: apiName of Sobject
|
|
414
|
+
type: string
|
|
415
|
+
keyPrefix:
|
|
416
|
+
description: Key prefix of sobject
|
|
417
|
+
type: string
|
|
418
|
+
label:
|
|
419
|
+
description: Label of sobject
|
|
420
|
+
type: string
|
|
421
|
+
labelPlural:
|
|
422
|
+
description: Label Plural of sobject
|
|
423
|
+
type: string
|
|
424
|
+
SobjectsOutputSharingRepresentation:
|
|
425
|
+
description: Output representation of sobject to be shared on UI
|
|
426
|
+
type: object
|
|
427
|
+
properties:
|
|
428
|
+
size:
|
|
429
|
+
description: Number of sobjects
|
|
430
|
+
type: integer
|
|
431
|
+
sobjects:
|
|
432
|
+
description: List of sobjects
|
|
433
|
+
type: array
|
|
434
|
+
items:
|
|
435
|
+
type: SobjectOutputSharingRepresentation
|
|
408
436
|
SupportedObjectListRepresentation:
|
|
409
437
|
description: Representation of a list of supported objects
|
|
410
438
|
type: object
|
|
@@ -510,6 +538,9 @@ types:
|
|
|
510
538
|
groupType:
|
|
511
539
|
type: string
|
|
512
540
|
required: true
|
|
541
|
+
enum:
|
|
542
|
+
- PublicGroup
|
|
543
|
+
- Queue
|
|
513
544
|
userId:
|
|
514
545
|
type: string
|
|
515
546
|
required: true
|
|
@@ -597,6 +628,26 @@ types:
|
|
|
597
628
|
objectApiName:
|
|
598
629
|
type: string
|
|
599
630
|
required: true
|
|
631
|
+
/sobjects:
|
|
632
|
+
get:
|
|
633
|
+
displayName: getSobjects
|
|
634
|
+
description: Api to fetch all sobjects
|
|
635
|
+
responses:
|
|
636
|
+
'200':
|
|
637
|
+
description: Success
|
|
638
|
+
body:
|
|
639
|
+
application/json:
|
|
640
|
+
type: SobjectsOutputSharingRepresentation
|
|
641
|
+
queryParameters:
|
|
642
|
+
limit:
|
|
643
|
+
type: integer
|
|
644
|
+
required: false
|
|
645
|
+
offset:
|
|
646
|
+
type: integer
|
|
647
|
+
required: false
|
|
648
|
+
searchText:
|
|
649
|
+
type: string
|
|
650
|
+
required: false
|
|
600
651
|
/user-or-group-types:
|
|
601
652
|
get:
|
|
602
653
|
displayName: getUserOrGroupTypesCollection
|