@salesforce/lds-adapters-platform-sharing 1.280.0 → 1.282.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.
@@ -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>;
@@ -11,6 +11,8 @@ export interface GetPublicGroupShareDataConfig {
11
11
  limit: number;
12
12
  offset: number;
13
13
  operation: string;
14
+ orderBy: string;
15
+ orderType: string;
14
16
  }
15
17
  export declare const createResourceParams: (config: GetPublicGroupShareDataConfig) => resources_postSharingPublicGroupsSummary_ResourceRequestConfig;
16
18
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetPublicGroupShareDataConfig): string;
@@ -1,2 +1,3 @@
1
1
  export { getGroupsForUserAdapterFactory } from '../adapters/getGroupsForUser';
2
2
  export { getPublicGroupShareDataAdapterFactory } from '../adapters/getPublicGroupShareData';
3
+ export { getAllSobjectsAdapterFactory } from '../adapters/getAllSobjects';
@@ -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;
@@ -7,6 +7,8 @@ export interface ResourceRequestConfig {
7
7
  limit: number;
8
8
  offset: number;
9
9
  operation: string;
10
+ orderBy: string;
11
+ orderType: string;
10
12
  };
11
13
  }
12
14
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -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 = "5287661e59bf643c6db87c003c634e29";
2
+ export declare const VERSION = "626eed5a45eb2652b4374eb4844cf12b";
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: PublicGroupSummaryInputRepresentation, existing: PublicGroupSummaryInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PublicGroupSummaryInputRepresentationNormalized;
@@ -24,6 +24,10 @@ export interface PublicGroupSummaryInputRepresentationNormalized {
24
24
  offset: number;
25
25
  /** Data required for which tab */
26
26
  operation: string;
27
+ /** Sorts by given order by clause */
28
+ orderBy: string;
29
+ /** Orders the records in asc/desc */
30
+ orderType: string;
27
31
  }
28
32
  /**
29
33
  * Input representation for public group summary.
@@ -37,4 +41,6 @@ export interface PublicGroupSummaryInputRepresentation {
37
41
  limit: number;
38
42
  offset: number;
39
43
  operation: string;
44
+ orderBy: string;
45
+ orderType: string;
40
46
  }
@@ -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.280.0",
3
+ "version": "1.282.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.280.0"
43
+ "@salesforce/lds-bindings": "^1.282.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.280.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.282.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$2, typeCheckConfig as typeCheckConfig$2, StoreKeyMap, createResourceParams as createResourceParams$2 } from 'force/luvioEngine';
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$2(getGroupsForUser_ConfigPropertyMetadata);
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$2(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
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$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
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;
@@ -1084,7 +1396,7 @@ function select(luvio, params) {
1084
1396
  return select$1();
1085
1397
  }
1086
1398
  function keyBuilder$1(luvio, params) {
1087
- return keyPrefix + '::PublicGroupSummaryRepresentation:(' + 'entityKeyPrefix:' + params.body.entityKeyPrefix + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'operation:' + params.body.operation + ')';
1399
+ return keyPrefix + '::PublicGroupSummaryRepresentation:(' + 'entityKeyPrefix:' + params.body.entityKeyPrefix + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'operation:' + params.body.operation + '::' + 'orderBy:' + params.body.orderBy + '::' + 'orderType:' + params.body.orderType + ')';
1088
1400
  }
1089
1401
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1090
1402
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -1139,16 +1451,18 @@ const getPublicGroupShareData_ConfigPropertyMetadata = [
1139
1451
  generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
1140
1452
  generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
1141
1453
  generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
1454
+ generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
1455
+ generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
1142
1456
  ];
1143
1457
  const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPublicGroupShareData_ConfigPropertyMetadata);
1144
- const createResourceParams = /*#__PURE__*/ createResourceParams$2(getPublicGroupShareData_ConfigPropertyMetadata);
1458
+ const createResourceParams = /*#__PURE__*/ createResourceParams$3(getPublicGroupShareData_ConfigPropertyMetadata);
1145
1459
  function keyBuilder(luvio, config) {
1146
1460
  const resourceParams = createResourceParams(config);
1147
1461
  return keyBuilder$1(luvio, resourceParams);
1148
1462
  }
1149
1463
  function typeCheckConfig(untrustedConfig) {
1150
1464
  const config = {};
1151
- typeCheckConfig$2(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
1465
+ typeCheckConfig$3(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
1152
1466
  return config;
1153
1467
  }
1154
1468
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1197,7 +1511,7 @@ function buildNetworkSnapshot(luvio, config, options) {
1197
1511
  });
1198
1512
  }
1199
1513
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1200
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
1514
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
1201
1515
  }
1202
1516
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1203
1517
  const { luvio, config } = context;
@@ -1222,12 +1536,15 @@ const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPu
1222
1536
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1223
1537
  };
1224
1538
 
1539
+ let getAllSobjects;
1225
1540
  let getGroupsForUser;
1226
1541
  let getPublicGroupShareData;
1227
1542
  // Imperative GET Adapters
1543
+ let getAllSobjects_imperative;
1228
1544
  let getGroupsForUser_imperative;
1229
1545
  let getPublicGroupShareData_imperative;
1230
1546
  // Adapter Metadata
1547
+ const getAllSobjectsMetadata = { apiFamily: 'sharing', name: 'getAllSobjects', ttl: 900000 };
1231
1548
  const getGroupsForUserMetadata = { apiFamily: 'sharing', name: 'getGroupsForUser', ttl: 300 };
1232
1549
  const getPublicGroupShareDataMetadata = {
1233
1550
  apiFamily: 'sharing',
@@ -1237,12 +1554,15 @@ const getPublicGroupShareDataMetadata = {
1237
1554
  // Notify Update Available
1238
1555
  function bindExportsTo(luvio) {
1239
1556
  // LDS Adapters
1557
+ const getAllSobjects_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllSobjects', getAllSobjectsAdapterFactory), getAllSobjectsMetadata);
1240
1558
  const getGroupsForUser_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGroupsForUser', getGroupsForUserAdapterFactory), getGroupsForUserMetadata);
1241
1559
  const getPublicGroupShareData_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPublicGroupShareData', getPublicGroupShareDataAdapterFactory), getPublicGroupShareDataMetadata);
1242
1560
  return {
1561
+ getAllSobjects: createWireAdapterConstructor(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
1243
1562
  getGroupsForUser: createWireAdapterConstructor(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
1244
1563
  getPublicGroupShareData: createWireAdapterConstructor(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
1245
1564
  // Imperative GET Adapters
1565
+ getAllSobjects_imperative: createImperativeAdapter(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
1246
1566
  getGroupsForUser_imperative: createImperativeAdapter(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
1247
1567
  getPublicGroupShareData_imperative: createImperativeAdapter(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
1248
1568
  // Notify Update Availables
@@ -1250,12 +1570,14 @@ function bindExportsTo(luvio) {
1250
1570
  }
1251
1571
  withDefaultLuvio((luvio) => {
1252
1572
  ({
1573
+ getAllSobjects,
1253
1574
  getGroupsForUser,
1254
1575
  getPublicGroupShareData,
1576
+ getAllSobjects_imperative,
1255
1577
  getGroupsForUser_imperative,
1256
1578
  getPublicGroupShareData_imperative,
1257
1579
  } = bindExportsTo(luvio));
1258
1580
  });
1259
1581
 
1260
- export { getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative };
1261
- // version: 1.280.0-09f980816
1582
+ export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative };
1583
+ // version: 1.282.0-dd2e9831c