@salesforce/lds-runtime-mobile 1.207.0 → 1.208.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/main.js CHANGED
@@ -16310,4 +16310,4 @@ register({
16310
16310
  });
16311
16311
 
16312
16312
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
16313
- // version: 1.207.0-d3cedc6aa
16313
+ // version: 1.208.0-75bd0667c
@@ -0,0 +1,14 @@
1
+ import type { Adapter } from '@luvio/engine';
2
+ import type { BatchRepresentation, GetRecordsConfig } from '@salesforce/lds-adapters-uiapi';
3
+ import type { LdsRecordRefresher } from '@salesforce/lds-priming';
4
+ export declare class LdsPrimingRecordRefresher implements LdsRecordRefresher {
5
+ private getRecordsAdapter;
6
+ constructor(getRecordsAdapter: Adapter<GetRecordsConfig, BatchRepresentation>);
7
+ loadRecords(records: Map<string, {
8
+ ids: string[];
9
+ fields: string[];
10
+ }>): Promise<{
11
+ loaded: string[];
12
+ errored: string[];
13
+ }>;
14
+ }
@@ -11,3 +11,17 @@
11
11
  */
12
12
  export declare function stableJSONStringify(node: any): string | undefined;
13
13
  export declare function isPromise<D>(value: D | Promise<D> | null): value is Promise<D>;
14
+ type PromiseResult<T> = {
15
+ status: 'fulfilled';
16
+ value: T;
17
+ } | {
18
+ status: 'rejected';
19
+ reason: any;
20
+ };
21
+ /**
22
+ * A polyfill for Promise.allSettled
23
+ * @param promises An array of promises
24
+ * @returns the result of all the promises when they either fulfill or reject
25
+ */
26
+ export declare function allSettled<T>(promises: Promise<T>[]): Promise<PromiseResult<T>[]>;
27
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.207.0",
3
+ "version": "1.208.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
package/sfdc/main.js CHANGED
@@ -16310,4 +16310,4 @@ register({
16310
16310
  });
16311
16311
 
16312
16312
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
16313
- // version: 1.207.0-d3cedc6aa
16313
+ // version: 1.208.0-75bd0667c
@@ -0,0 +1,14 @@
1
+ import type { Adapter } from '@luvio/engine';
2
+ import type { BatchRepresentation, GetRecordsConfig } from '@salesforce/lds-adapters-uiapi';
3
+ import type { LdsRecordRefresher } from '@salesforce/lds-priming';
4
+ export declare class LdsPrimingRecordRefresher implements LdsRecordRefresher {
5
+ private getRecordsAdapter;
6
+ constructor(getRecordsAdapter: Adapter<GetRecordsConfig, BatchRepresentation>);
7
+ loadRecords(records: Map<string, {
8
+ ids: string[];
9
+ fields: string[];
10
+ }>): Promise<{
11
+ loaded: string[];
12
+ errored: string[];
13
+ }>;
14
+ }
@@ -11,3 +11,17 @@
11
11
  */
12
12
  export declare function stableJSONStringify(node: any): string | undefined;
13
13
  export declare function isPromise<D>(value: D | Promise<D> | null): value is Promise<D>;
14
+ type PromiseResult<T> = {
15
+ status: 'fulfilled';
16
+ value: T;
17
+ } | {
18
+ status: 'rejected';
19
+ reason: any;
20
+ };
21
+ /**
22
+ * A polyfill for Promise.allSettled
23
+ * @param promises An array of promises
24
+ * @returns the result of all the promises when they either fulfill or reject
25
+ */
26
+ export declare function allSettled<T>(promises: Promise<T>[]): Promise<PromiseResult<T>[]>;
27
+ export {};