@salesforce/lds-runtime-mobile 1.124.2 → 1.124.3

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.
Files changed (103) hide show
  1. package/dist/main.js +14469 -14469
  2. package/dist/{DraftQueueFactory.d.ts → types/DraftQueueFactory.d.ts} +3 -3
  3. package/{sfdc → dist/types}/NimbusBinaryStore.d.ts +2 -2
  4. package/{sfdc → dist/types}/NimbusDraftQueue.d.ts +28 -28
  5. package/{sfdc → dist/types}/RecordIdGenerator.d.ts +15 -15
  6. package/dist/{__mocks__ → types/__mocks__}/@salesforce/i18n/currency.d.ts +2 -2
  7. package/{sfdc → dist/types}/__mocks__/@salesforce/i18n/dateTime.shortDateFormat.d.ts +2 -2
  8. package/{sfdc → dist/types}/__mocks__/@salesforce/i18n/dateTime.shortDateTimeFormat.d.ts +2 -2
  9. package/{sfdc → dist/types}/__mocks__/@salesforce/i18n/dateTime.shortTimeFormat.d.ts +2 -2
  10. package/dist/{__mocks__ → types/__mocks__}/@salesforce/i18n/locale.d.ts +2 -2
  11. package/dist/{__mocks__ → types/__mocks__}/@salesforce/i18n/timeZone.d.ts +2 -2
  12. package/dist/{__mocks__ → types/__mocks__}/@salesforce/user/Id.d.ts +2 -2
  13. package/dist/{__mocks__ → types/__mocks__}/force/ldsGraphqlParser.d.ts +3 -3
  14. package/dist/{__mocks__ → types/__mocks__}/lightning/i18nCldrOptions.d.ts +2 -2
  15. package/dist/{__mocks__ → types/__mocks__}/lightning/i18nService.d.ts +10 -10
  16. package/dist/{__mocks__ → types/__mocks__}/o11y/activity.d.ts +2 -2
  17. package/dist/{__mocks__ → types/__mocks__}/o11y/client.d.ts +5 -5
  18. package/dist/{__mocks__ → types/__mocks__}/o11y/idleDetector.d.ts +2 -2
  19. package/dist/{__mocks__ → types/__mocks__}/o11y/instrumentation.d.ts +15 -15
  20. package/dist/{durableStore → types/durableStore}/NimbusSqliteStore/NimbusSqliteStore.d.ts +20 -20
  21. package/dist/{durableStore → types/durableStore}/NimbusSqliteStore/tables/AbstractKeyValueDataTable.d.ts +14 -14
  22. package/{sfdc → dist/types}/durableStore/NimbusSqliteStore/tables/LdsDataTable.d.ts +15 -15
  23. package/dist/{durableStore → types/durableStore}/NimbusSqliteStore/tables/LdsDataTableBase.d.ts +8 -8
  24. package/{sfdc → dist/types}/durableStore/NimbusSqliteStore/tables/LdsDraftIdMapDataTable.d.ts +5 -5
  25. package/dist/{durableStore → types/durableStore}/NimbusSqliteStore/tables/LdsDraftsDataTable.d.ts +5 -5
  26. package/dist/{durableStore → types/durableStore}/NimbusSqliteStore/tables/LdsInternalDataTable.d.ts +15 -15
  27. package/dist/{durableStore → types/durableStore}/NimbusSqliteStore/tables/index.d.ts +5 -5
  28. package/dist/{durableStore → types/durableStore}/NimbusSqliteStore/tables/utils.d.ts +2 -2
  29. package/{sfdc → dist/types}/durableStore/index.d.ts +2 -2
  30. package/dist/{durableStore → types/durableStore}/makeEnvironmentGraphqlAware.d.ts +2 -2
  31. package/dist/{environment → types/environment}/enableLazyObjectInfoCaching.d.ts +13 -13
  32. package/dist/{inspection → types/inspection}/setupInspection.d.ts +2 -2
  33. package/dist/{instrumentation → types/instrumentation}/instrumentDraftQueue.d.ts +5 -5
  34. package/dist/{instrumentation → types/instrumentation}/instrumentGraphQLEval.d.ts +2 -2
  35. package/dist/{instrumentation → types/instrumentation}/instrumentMobileAdapter.d.ts +6 -6
  36. package/dist/{instrumentation → types/instrumentation}/instrumentPrimingSession.d.ts +2 -2
  37. package/dist/{instrumentation → types/instrumentation}/instrumentationContentDocumentVersionAdapter.d.ts +2 -2
  38. package/{sfdc → dist/types}/instrumentation/instrumentationUtils.d.ts +10 -10
  39. package/dist/{instrumentation → types/instrumentation}/metrics.d.ts +16 -16
  40. package/{sfdc → dist/types}/instrumentation/withInstrumentation.d.ts +12 -12
  41. package/{sfdc → dist/types}/localization/formatDisplayValue.d.ts +6 -6
  42. package/dist/{main.d.ts → types/main.d.ts} +6 -6
  43. package/dist/{mocks.d.ts → types/mocks.d.ts} +1 -1
  44. package/{sfdc → dist/types}/priming/NimbusPrimingNetworkAdapter.d.ts +6 -6
  45. package/dist/{priming → types/priming}/SqlitePrimingStore.d.ts +10 -10
  46. package/dist/{priming → types/priming}/primingSessionFactory.d.ts +12 -12
  47. package/dist/{runtime.d.ts → types/runtime.d.ts} +17 -17
  48. package/{sfdc → dist/types}/utils/ObjectInfoService.d.ts +43 -43
  49. package/dist/{utils → types/utils}/adapters.d.ts +18 -18
  50. package/dist/{utils → types/utils}/language.d.ts +29 -29
  51. package/{sfdc → dist/types}/utils/utils.d.ts +13 -13
  52. package/package.json +4 -4
  53. package/sfdc/main.js +14469 -14469
  54. package/sfdc/{DraftQueueFactory.d.ts → types/DraftQueueFactory.d.ts} +3 -3
  55. package/{dist → sfdc/types}/NimbusBinaryStore.d.ts +2 -2
  56. package/{dist → sfdc/types}/NimbusDraftQueue.d.ts +28 -28
  57. package/{dist → sfdc/types}/RecordIdGenerator.d.ts +15 -15
  58. package/sfdc/{__mocks__ → types/__mocks__}/@salesforce/i18n/currency.d.ts +2 -2
  59. package/{dist → sfdc/types}/__mocks__/@salesforce/i18n/dateTime.shortDateFormat.d.ts +2 -2
  60. package/{dist → sfdc/types}/__mocks__/@salesforce/i18n/dateTime.shortDateTimeFormat.d.ts +2 -2
  61. package/{dist → sfdc/types}/__mocks__/@salesforce/i18n/dateTime.shortTimeFormat.d.ts +2 -2
  62. package/sfdc/{__mocks__ → types/__mocks__}/@salesforce/i18n/locale.d.ts +2 -2
  63. package/sfdc/{__mocks__ → types/__mocks__}/@salesforce/i18n/timeZone.d.ts +2 -2
  64. package/sfdc/{__mocks__ → types/__mocks__}/@salesforce/user/Id.d.ts +2 -2
  65. package/sfdc/{__mocks__ → types/__mocks__}/force/ldsGraphqlParser.d.ts +3 -3
  66. package/sfdc/{__mocks__ → types/__mocks__}/lightning/i18nCldrOptions.d.ts +2 -2
  67. package/sfdc/{__mocks__ → types/__mocks__}/lightning/i18nService.d.ts +10 -10
  68. package/sfdc/{__mocks__ → types/__mocks__}/o11y/activity.d.ts +2 -2
  69. package/sfdc/{__mocks__ → types/__mocks__}/o11y/client.d.ts +5 -5
  70. package/sfdc/{__mocks__ → types/__mocks__}/o11y/idleDetector.d.ts +2 -2
  71. package/sfdc/{__mocks__ → types/__mocks__}/o11y/instrumentation.d.ts +15 -15
  72. package/sfdc/{durableStore → types/durableStore}/NimbusSqliteStore/NimbusSqliteStore.d.ts +20 -20
  73. package/sfdc/{durableStore → types/durableStore}/NimbusSqliteStore/tables/AbstractKeyValueDataTable.d.ts +14 -14
  74. package/{dist → sfdc/types}/durableStore/NimbusSqliteStore/tables/LdsDataTable.d.ts +15 -15
  75. package/sfdc/{durableStore → types/durableStore}/NimbusSqliteStore/tables/LdsDataTableBase.d.ts +8 -8
  76. package/{dist → sfdc/types}/durableStore/NimbusSqliteStore/tables/LdsDraftIdMapDataTable.d.ts +5 -5
  77. package/sfdc/{durableStore → types/durableStore}/NimbusSqliteStore/tables/LdsDraftsDataTable.d.ts +5 -5
  78. package/sfdc/{durableStore → types/durableStore}/NimbusSqliteStore/tables/LdsInternalDataTable.d.ts +15 -15
  79. package/sfdc/{durableStore → types/durableStore}/NimbusSqliteStore/tables/index.d.ts +5 -5
  80. package/sfdc/{durableStore → types/durableStore}/NimbusSqliteStore/tables/utils.d.ts +2 -2
  81. package/{dist → sfdc/types}/durableStore/index.d.ts +2 -2
  82. package/sfdc/{durableStore → types/durableStore}/makeEnvironmentGraphqlAware.d.ts +2 -2
  83. package/sfdc/{environment → types/environment}/enableLazyObjectInfoCaching.d.ts +13 -13
  84. package/sfdc/{inspection → types/inspection}/setupInspection.d.ts +2 -2
  85. package/sfdc/{instrumentation → types/instrumentation}/instrumentDraftQueue.d.ts +5 -5
  86. package/sfdc/{instrumentation → types/instrumentation}/instrumentGraphQLEval.d.ts +2 -2
  87. package/sfdc/{instrumentation → types/instrumentation}/instrumentMobileAdapter.d.ts +6 -6
  88. package/sfdc/{instrumentation → types/instrumentation}/instrumentPrimingSession.d.ts +2 -2
  89. package/sfdc/{instrumentation → types/instrumentation}/instrumentationContentDocumentVersionAdapter.d.ts +2 -2
  90. package/{dist → sfdc/types}/instrumentation/instrumentationUtils.d.ts +10 -10
  91. package/sfdc/{instrumentation → types/instrumentation}/metrics.d.ts +16 -16
  92. package/{dist → sfdc/types}/instrumentation/withInstrumentation.d.ts +12 -12
  93. package/{dist → sfdc/types}/localization/formatDisplayValue.d.ts +6 -6
  94. package/sfdc/{main.d.ts → types/main.d.ts} +6 -6
  95. package/sfdc/{mocks.d.ts → types/mocks.d.ts} +1 -1
  96. package/{dist → sfdc/types}/priming/NimbusPrimingNetworkAdapter.d.ts +6 -6
  97. package/sfdc/{priming → types/priming}/SqlitePrimingStore.d.ts +10 -10
  98. package/sfdc/{priming → types/priming}/primingSessionFactory.d.ts +12 -12
  99. package/sfdc/{runtime.d.ts → types/runtime.d.ts} +17 -17
  100. package/{dist → sfdc/types}/utils/ObjectInfoService.d.ts +43 -43
  101. package/sfdc/{utils → types/utils}/adapters.d.ts +18 -18
  102. package/sfdc/{utils → types/utils}/language.d.ts +29 -29
  103. package/{dist → sfdc/types}/utils/utils.d.ts +13 -13
@@ -1,3 +1,3 @@
1
- import type { DraftQueue } from '@salesforce/lds-drafts';
2
- import type { DurableStore } from '@luvio/environments';
3
- export declare function buildLdsDraftQueue(durableStore: DurableStore): DraftQueue;
1
+ import type { DraftQueue } from '@salesforce/lds-drafts';
2
+ import type { DurableStore } from '@luvio/environments';
3
+ export declare function buildLdsDraftQueue(durableStore: DurableStore): DraftQueue;
@@ -1,2 +1,2 @@
1
- import type { BinaryStore } from '@salesforce/lds-store-binary';
2
- export declare const NimbusBinaryStore: BinaryStore;
1
+ import type { BinaryStore } from '@salesforce/lds-store-binary';
2
+ export declare const NimbusBinaryStore: BinaryStore;
@@ -1,28 +1,28 @@
1
- import type { DraftAction, DraftQueue, ProcessActionResult, DraftQueueState, DraftQueueChangeListener, DraftActionMetadata, ActionHandler, CustomActionExecutor, PendingDraftAction } from '@salesforce/lds-drafts';
2
- /**
3
- * An implementation of the DraftQueue interface which serializes
4
- * requests and sends them across the Nimbus bridge and deserializes the result.
5
- *
6
- * This instance is leveraged in the LMR webview which proxies DraftQueue requests
7
- * to a concrete implementation running in jscore.
8
- */
9
- export declare class NimbusDraftQueue implements DraftQueue {
10
- enqueue<Data, Response>(handlerId: string, data: unknown): Promise<{
11
- action: PendingDraftAction<Data>;
12
- data: Response;
13
- }>;
14
- registerOnChangedListener(_listener: DraftQueueChangeListener): () => Promise<void>;
15
- processNextAction(): Promise<ProcessActionResult>;
16
- getQueueActions(): Promise<DraftAction<unknown, unknown>[]>;
17
- getDataForAction<T>(action: DraftAction<T, unknown>): Promise<T | undefined>;
18
- getQueueState(): DraftQueueState;
19
- removeDraftAction(_actionId: string): Promise<void>;
20
- startQueue(): Promise<void>;
21
- stopQueue(): Promise<void>;
22
- replaceAction(_actionId: string, _withActionId: string): Promise<DraftAction<unknown, unknown>>;
23
- mergeActions<Data, Response>(_targetActionId: string, _sourceActionId: string): Promise<DraftAction<Data, Response>>;
24
- setMetadata(_actionId: string, _metadata: DraftActionMetadata): Promise<DraftAction<unknown, unknown>>;
25
- addHandler(_handler: ActionHandler<unknown, unknown, unknown>): Promise<void>;
26
- addCustomHandler(_id: string, _executor: CustomActionExecutor): Promise<void>;
27
- removeHandler(_id: string): Promise<void>;
28
- }
1
+ import type { DraftAction, DraftQueue, ProcessActionResult, DraftQueueState, DraftQueueChangeListener, DraftActionMetadata, ActionHandler, CustomActionExecutor, PendingDraftAction } from '@salesforce/lds-drafts';
2
+ /**
3
+ * An implementation of the DraftQueue interface which serializes
4
+ * requests and sends them across the Nimbus bridge and deserializes the result.
5
+ *
6
+ * This instance is leveraged in the LMR webview which proxies DraftQueue requests
7
+ * to a concrete implementation running in jscore.
8
+ */
9
+ export declare class NimbusDraftQueue implements DraftQueue {
10
+ enqueue<Data, Response>(handlerId: string, data: unknown): Promise<{
11
+ action: PendingDraftAction<Data>;
12
+ data: Response;
13
+ }>;
14
+ registerOnChangedListener(_listener: DraftQueueChangeListener): () => Promise<void>;
15
+ processNextAction(): Promise<ProcessActionResult>;
16
+ getQueueActions(): Promise<DraftAction<unknown, unknown>[]>;
17
+ getDataForAction<T>(action: DraftAction<T, unknown>): Promise<T | undefined>;
18
+ getQueueState(): DraftQueueState;
19
+ removeDraftAction(_actionId: string): Promise<void>;
20
+ startQueue(): Promise<void>;
21
+ stopQueue(): Promise<void>;
22
+ replaceAction(_actionId: string, _withActionId: string): Promise<DraftAction<unknown, unknown>>;
23
+ mergeActions<Data, Response>(_targetActionId: string, _sourceActionId: string): Promise<DraftAction<Data, Response>>;
24
+ setMetadata(_actionId: string, _metadata: DraftActionMetadata): Promise<DraftAction<unknown, unknown>>;
25
+ addHandler(_handler: ActionHandler<unknown, unknown, unknown>): Promise<void>;
26
+ addCustomHandler(_id: string, _executor: CustomActionExecutor): Promise<void>;
27
+ removeHandler(_id: string): Promise<void>;
28
+ }
@@ -1,15 +1,15 @@
1
- export declare const recordIdGenerator: (id: string) => {
2
- /**
3
- * Returns a new record id with the provided prefix
4
- */
5
- newRecordId: (prefix: string) => string;
6
- /**
7
- * Returns true if the recordId was generated using this generator; false otherwise
8
- */
9
- isGenerated: (recordId: string) => boolean;
10
- /**
11
- * Returns a number value of when the record was generated.
12
- * Throws if the recordId passed is invalid or the recordId was not generated.
13
- */
14
- recordGenerationTime: (recordId: string) => number;
15
- };
1
+ export declare const recordIdGenerator: (id: string) => {
2
+ /**
3
+ * Returns a new record id with the provided prefix
4
+ */
5
+ newRecordId: (prefix: string) => string;
6
+ /**
7
+ * Returns true if the recordId was generated using this generator; false otherwise
8
+ */
9
+ isGenerated: (recordId: string) => boolean;
10
+ /**
11
+ * Returns a number value of when the record was generated.
12
+ * Throws if the recordId passed is invalid or the recordId was not generated.
13
+ */
14
+ recordGenerationTime: (recordId: string) => number;
15
+ };
@@ -1,2 +1,2 @@
1
- declare const _default: "USD";
2
- export default _default;
1
+ declare const _default: "USD";
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: "M/d/yyyy";
2
- export default _default;
1
+ declare const _default: "M/d/yyyy";
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: "M/d/yyyy, h:mm a";
2
- export default _default;
1
+ declare const _default: "M/d/yyyy, h:mm a";
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: "h:mm a";
2
- export default _default;
1
+ declare const _default: "h:mm a";
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: "en-US";
2
- export default _default;
1
+ declare const _default: "en-US";
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: "America/Los_Angeles";
2
- export default _default;
1
+ declare const _default: "America/Los_Angeles";
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: "005B0000000GR4OIAW";
2
- export default _default;
1
+ declare const _default: "005B0000000GR4OIAW";
2
+ export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="jest" />
2
- declare const astResolver: jest.Mock<any, any>;
3
- export { astResolver };
1
+ /// <reference types="jest" />
2
+ declare const astResolver: jest.Mock<any, any>;
3
+ export { astResolver };
@@ -1,2 +1,2 @@
1
- declare function formattingOptions(pattern: String): String;
2
- export default formattingOptions;
1
+ declare function formattingOptions(pattern: String): String;
2
+ export default formattingOptions;
@@ -1,10 +1,10 @@
1
- declare function getNumberFormat(): {
2
- format: () => string;
3
- };
4
- declare function getDateTimeFormat(): {
5
- format: (date: number) => string;
6
- };
7
- declare function getDateTimeISO8601Parser(): {
8
- parse: (input: string) => number | Date;
9
- };
10
- export { getNumberFormat, getDateTimeFormat, getDateTimeISO8601Parser };
1
+ declare function getNumberFormat(): {
2
+ format: () => string;
3
+ };
4
+ declare function getDateTimeFormat(): {
5
+ format: (date: number) => string;
6
+ };
7
+ declare function getDateTimeISO8601Parser(): {
8
+ parse: (input: string) => number | Date;
9
+ };
10
+ export { getNumberFormat, getDateTimeFormat, getDateTimeISO8601Parser };
@@ -1,2 +1,2 @@
1
- import type { Activity } from 'o11y/client';
2
- export declare const activity: Activity;
1
+ import type { Activity } from 'o11y/client';
2
+ export declare const activity: Activity;
@@ -1,5 +1,5 @@
1
- import { instrumentation } from './instrumentation';
2
- export { activity } from './activity';
3
- export { instrumentation } from './instrumentation';
4
- export { idleDetector } from './idleDetector';
5
- export declare function getInstrumentation(_name: string): typeof instrumentation;
1
+ import { instrumentation } from './instrumentation';
2
+ export { activity } from './activity';
3
+ export { instrumentation } from './instrumentation';
4
+ export { idleDetector } from './idleDetector';
5
+ export declare function getInstrumentation(_name: string): typeof instrumentation;
@@ -1,2 +1,2 @@
1
- import type { IdleDetector } from 'o11y/client';
2
- export declare const idleDetector: IdleDetector;
1
+ import type { IdleDetector } from 'o11y/client';
2
+ export declare const idleDetector: IdleDetector;
@@ -1,15 +1,15 @@
1
- import type { Activity, MetricsTags, Schema, SchematizedData } from 'o11y/client';
2
- declare function log(_schema: Schema, _data?: SchematizedData): void;
3
- declare function error(_err: Error, _userSchemaOrText?: string, _data?: SchematizedData): void;
4
- declare function startActivity(_name: string): Activity;
5
- declare function incrementCounter(_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags): void;
6
- declare function trackValue(_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags): void;
7
- export declare const instrumentation: {
8
- log: typeof log;
9
- error: typeof error;
10
- startActivity: typeof startActivity;
11
- incrementCounter: typeof incrementCounter;
12
- trackValue: typeof trackValue;
13
- };
14
- export declare const METRIC_KEYS: {};
15
- export {};
1
+ import type { Activity, MetricsTags, Schema, SchematizedData } from 'o11y/client';
2
+ declare function log(_schema: Schema, _data?: SchematizedData): void;
3
+ declare function error(_err: Error, _userSchemaOrText?: string, _data?: SchematizedData): void;
4
+ declare function startActivity(_name: string): Activity;
5
+ declare function incrementCounter(_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags): void;
6
+ declare function trackValue(_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags): void;
7
+ export declare const instrumentation: {
8
+ log: typeof log;
9
+ error: typeof error;
10
+ startActivity: typeof startActivity;
11
+ incrementCounter: typeof incrementCounter;
12
+ trackValue: typeof trackValue;
13
+ };
14
+ export declare const METRIC_KEYS: {};
15
+ export {};
@@ -1,20 +1,20 @@
1
- import type { SqliteResult, SqliteStore, SqliteType } from '@salesforce/lds-store-sql';
2
- import type { SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
3
- import type { DurableStore, DurableStoreEntries, DurableStoreOperation, OnDurableStoreChangedListener } from '@luvio/environments';
4
- export declare class NimbusSqliteStore implements SqliteStore, DurableStore {
5
- private plugin;
6
- private readonly dataTableMap;
7
- private readonly internalDataTable;
8
- constructor(plugin: SqliteStorePlugin);
9
- isEvalSupported(): boolean;
10
- query(sql: string, params: SqliteType[]): Promise<SqliteResult>;
11
- getEntries<T>(entryIds: string[], segment: string): Promise<DurableStoreEntries<T> | undefined>;
12
- getAllEntries<T>(segment: string): Promise<DurableStoreEntries<T> | undefined>;
13
- setEntries<T>(entries: DurableStoreEntries<T>, segment: string): Promise<void>;
14
- batchOperations<T>(operations: DurableStoreOperation<T>[]): Promise<void>;
15
- evictEntries(entryIds: string[], segment: string): Promise<void>;
16
- registerOnChangedListener(listener: OnDurableStoreChangedListener): () => Promise<void>;
17
- private getTable;
18
- private idsToDeleteOperation;
19
- private batchOperationAsPromise;
20
- }
1
+ import type { SqliteResult, SqliteStore, SqliteType } from '@salesforce/lds-store-sql';
2
+ import type { SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
3
+ import type { DurableStore, DurableStoreEntries, DurableStoreOperation, OnDurableStoreChangedListener } from '@luvio/environments';
4
+ export declare class NimbusSqliteStore implements SqliteStore, DurableStore {
5
+ private plugin;
6
+ private readonly dataTableMap;
7
+ private readonly internalDataTable;
8
+ constructor(plugin: SqliteStorePlugin);
9
+ isEvalSupported(): boolean;
10
+ query(sql: string, params: SqliteType[]): Promise<SqliteResult>;
11
+ getEntries<T>(entryIds: string[], segment: string): Promise<DurableStoreEntries<T> | undefined>;
12
+ getAllEntries<T>(segment: string): Promise<DurableStoreEntries<T> | undefined>;
13
+ setEntries<T>(entries: DurableStoreEntries<T>, segment: string): Promise<void>;
14
+ batchOperations<T>(operations: DurableStoreOperation<T>[]): Promise<void>;
15
+ evictEntries(entryIds: string[], segment: string): Promise<void>;
16
+ registerOnChangedListener(listener: OnDurableStoreChangedListener): () => Promise<void>;
17
+ private getTable;
18
+ private idsToDeleteOperation;
19
+ private batchOperationAsPromise;
20
+ }
@@ -1,14 +1,14 @@
1
- import type { SqliteOperation, SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
2
- import type { DurableStoreEntries } from '@luvio/environments';
3
- import type { LdsDataTableBase } from '../tables';
4
- export declare abstract class AbstractKeyValueDataTable implements LdsDataTableBase {
5
- readonly tableName: SqliteOperation['table'];
6
- readonly plugin: SqliteStorePlugin;
7
- private columnNames;
8
- private conflictColumnNames;
9
- constructor(plugin: SqliteStorePlugin, tableName: SqliteOperation['table']);
10
- getByKeys<T>(keys: string[]): Promise<DurableStoreEntries<T>>;
11
- getAll<T>(): Promise<DurableStoreEntries<T>>;
12
- entriesToUpsertOperations<T>(entries: DurableStoreEntries<T>, segment: string): SqliteOperation;
13
- private mapToDurableEntries;
14
- }
1
+ import type { SqliteOperation, SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
2
+ import type { DurableStoreEntries } from '@luvio/environments';
3
+ import type { LdsDataTableBase } from '../tables';
4
+ export declare abstract class AbstractKeyValueDataTable implements LdsDataTableBase {
5
+ readonly tableName: SqliteOperation['table'];
6
+ readonly plugin: SqliteStorePlugin;
7
+ private columnNames;
8
+ private conflictColumnNames;
9
+ constructor(plugin: SqliteStorePlugin, tableName: SqliteOperation['table']);
10
+ getByKeys<T>(keys: string[]): Promise<DurableStoreEntries<T>>;
11
+ getAll<T>(): Promise<DurableStoreEntries<T>>;
12
+ entriesToUpsertOperations<T>(entries: DurableStoreEntries<T>, segment: string): SqliteOperation;
13
+ private mapToDurableEntries;
14
+ }
@@ -1,15 +1,15 @@
1
- import type { SqliteOperation, SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
2
- import type { DurableStoreEntries } from '@luvio/environments';
3
- import type { LdsDataTableBase } from '../tables/LdsDataTableBase';
4
- export declare class LdsDataTable implements LdsDataTableBase {
5
- readonly tableName = "lds_data";
6
- readonly plugin: SqliteStorePlugin;
7
- private columnNames;
8
- private conflictColumnNames;
9
- private getAllQuery;
10
- constructor(plugin: SqliteStorePlugin);
11
- getByKeys<T>(keys: string[]): Promise<DurableStoreEntries<T>>;
12
- getAll<T>(): Promise<DurableStoreEntries<T>>;
13
- entriesToUpsertOperations<T>(entries: DurableStoreEntries<T>, segment: string): SqliteOperation;
14
- private mapToDurableEntries;
15
- }
1
+ import type { SqliteOperation, SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
2
+ import type { DurableStoreEntries } from '@luvio/environments';
3
+ import type { LdsDataTableBase } from '../tables/LdsDataTableBase';
4
+ export declare class LdsDataTable implements LdsDataTableBase {
5
+ readonly tableName = "lds_data";
6
+ readonly plugin: SqliteStorePlugin;
7
+ private columnNames;
8
+ private conflictColumnNames;
9
+ private getAllQuery;
10
+ constructor(plugin: SqliteStorePlugin);
11
+ getByKeys<T>(keys: string[]): Promise<DurableStoreEntries<T>>;
12
+ getAll<T>(): Promise<DurableStoreEntries<T>>;
13
+ entriesToUpsertOperations<T>(entries: DurableStoreEntries<T>, segment: string): SqliteOperation;
14
+ private mapToDurableEntries;
15
+ }
@@ -1,8 +1,8 @@
1
- import type { DurableStoreEntries } from '@luvio/environments';
2
- import type { SqliteOperation } from '@salesforce/nimbus-plugin-lds';
3
- export interface LdsDataTableBase {
4
- tableName: SqliteOperation['table'];
5
- getByKeys<T>(keys: string[], segment?: string): Promise<DurableStoreEntries<T>>;
6
- getAll<T>(segment?: string): Promise<DurableStoreEntries<T>>;
7
- entriesToUpsertOperations<T>(entries: DurableStoreEntries<T>, segment: string): SqliteOperation;
8
- }
1
+ import type { DurableStoreEntries } from '@luvio/environments';
2
+ import type { SqliteOperation } from '@salesforce/nimbus-plugin-lds';
3
+ export interface LdsDataTableBase {
4
+ tableName: SqliteOperation['table'];
5
+ getByKeys<T>(keys: string[], segment?: string): Promise<DurableStoreEntries<T>>;
6
+ getAll<T>(segment?: string): Promise<DurableStoreEntries<T>>;
7
+ entriesToUpsertOperations<T>(entries: DurableStoreEntries<T>, segment: string): SqliteOperation;
8
+ }
@@ -1,5 +1,5 @@
1
- import type { SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
2
- import { AbstractKeyValueDataTable } from './AbstractKeyValueDataTable';
3
- export declare class LdsDraftIdMapDataTable extends AbstractKeyValueDataTable {
4
- constructor(plugin: SqliteStorePlugin);
5
- }
1
+ import type { SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
2
+ import { AbstractKeyValueDataTable } from './AbstractKeyValueDataTable';
3
+ export declare class LdsDraftIdMapDataTable extends AbstractKeyValueDataTable {
4
+ constructor(plugin: SqliteStorePlugin);
5
+ }
@@ -1,5 +1,5 @@
1
- import type { SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
2
- import { AbstractKeyValueDataTable } from './AbstractKeyValueDataTable';
3
- export declare class LdsDraftsDataTable extends AbstractKeyValueDataTable {
4
- constructor(plugin: SqliteStorePlugin);
5
- }
1
+ import type { SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
2
+ import { AbstractKeyValueDataTable } from './AbstractKeyValueDataTable';
3
+ export declare class LdsDraftsDataTable extends AbstractKeyValueDataTable {
4
+ constructor(plugin: SqliteStorePlugin);
5
+ }
@@ -1,15 +1,15 @@
1
- import type { SqliteOperation, SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
2
- import type { DurableStoreEntries } from '@luvio/environments';
3
- import type { LdsDataTableBase } from '../tables';
4
- export declare class LdsInternalDataTable implements LdsDataTableBase {
5
- readonly tableName = "lds_internal";
6
- readonly plugin: SqliteStorePlugin;
7
- private columnNames;
8
- private conflictColumnNames;
9
- private getAllQuery;
10
- constructor(plugin: SqliteStorePlugin);
11
- getByKeys<T>(keys: string[], namespace: string): Promise<DurableStoreEntries<T>>;
12
- getAll<T>(namespace: string): Promise<DurableStoreEntries<T>>;
13
- entriesToUpsertOperations<T>(entries: DurableStoreEntries<T>, segment: string): SqliteOperation;
14
- private mapToDurableEntries;
15
- }
1
+ import type { SqliteOperation, SqliteStorePlugin } from '@salesforce/nimbus-plugin-lds';
2
+ import type { DurableStoreEntries } from '@luvio/environments';
3
+ import type { LdsDataTableBase } from '../tables';
4
+ export declare class LdsInternalDataTable implements LdsDataTableBase {
5
+ readonly tableName = "lds_internal";
6
+ readonly plugin: SqliteStorePlugin;
7
+ private columnNames;
8
+ private conflictColumnNames;
9
+ private getAllQuery;
10
+ constructor(plugin: SqliteStorePlugin);
11
+ getByKeys<T>(keys: string[], namespace: string): Promise<DurableStoreEntries<T>>;
12
+ getAll<T>(namespace: string): Promise<DurableStoreEntries<T>>;
13
+ entriesToUpsertOperations<T>(entries: DurableStoreEntries<T>, segment: string): SqliteOperation;
14
+ private mapToDurableEntries;
15
+ }
@@ -1,5 +1,5 @@
1
- export { LdsDataTable } from './LdsDataTable';
2
- export { LdsDraftsDataTable } from './LdsDraftsDataTable';
3
- export { LdsDraftIdMapDataTable } from './LdsDraftIdMapDataTable';
4
- export { LdsInternalDataTable } from './LdsInternalDataTable';
5
- export { LdsDataTableBase } from './LdsDataTableBase';
1
+ export { LdsDataTable } from './LdsDataTable';
2
+ export { LdsDraftsDataTable } from './LdsDraftsDataTable';
3
+ export { LdsDraftIdMapDataTable } from './LdsDraftIdMapDataTable';
4
+ export { LdsInternalDataTable } from './LdsInternalDataTable';
5
+ export { LdsDataTableBase } from './LdsDataTableBase';
@@ -1,2 +1,2 @@
1
- export declare function selectColumnsFromTableWhereKeyIn(columnNames: string[], table: string, keyColumnName: string, whereIn: string[]): string;
2
- export declare function selectColumnsFromTableWhereKeyInNamespaced(columnNames: string[], table: string, keyColumnName: string, whereIn: string[], namespaceColumnName: string): string;
1
+ export declare function selectColumnsFromTableWhereKeyIn(columnNames: string[], table: string, keyColumnName: string, whereIn: string[]): string;
2
+ export declare function selectColumnsFromTableWhereKeyInNamespaced(columnNames: string[], table: string, keyColumnName: string, whereIn: string[], namespaceColumnName: string): string;
@@ -1,2 +1,2 @@
1
- import type { DurableStore } from '@luvio/environments';
2
- export declare function getNimbusDurableStore(): DurableStore;
1
+ import type { DurableStore } from '@luvio/environments';
2
+ export declare function getNimbusDurableStore(): DurableStore;
@@ -1,2 +1,2 @@
1
- import type { Environment } from '@luvio/engine';
2
- export declare function makeEnvironmentGraphqlAware(environment: Environment): Environment;
1
+ import type { Environment } from '@luvio/engine';
2
+ export declare function makeEnvironmentGraphqlAware(environment: Environment): Environment;
@@ -1,13 +1,13 @@
1
- import type { Environment } from '@luvio/engine';
2
- import type { ObjectInfoRepresentation } from '@salesforce/lds-adapters-uiapi';
3
- export type EnsureCachedObjectInfoFunction = (apiName: string, objectInfo?: ObjectInfoRepresentation) => Promise<void>;
4
- /**
5
- * This environment observes incoming data for records and object info representations
6
- * If the incoming data is a record or object info it extracts the apiName
7
- * and calls a provided function which will ensure the associated object info is cached
8
- *
9
- * @param env base environment
10
- * @param ensureObjectInfoCached function to cache the object info if not already cached
11
- * @returns configured environment
12
- */
13
- export declare function enableObjectInfoCaching(env: Environment, ensureObjectInfoCached: EnsureCachedObjectInfoFunction): Environment;
1
+ import type { Environment } from '@luvio/engine';
2
+ import type { ObjectInfoRepresentation } from '@salesforce/lds-adapters-uiapi';
3
+ export type EnsureCachedObjectInfoFunction = (apiName: string, objectInfo?: ObjectInfoRepresentation) => Promise<void>;
4
+ /**
5
+ * This environment observes incoming data for records and object info representations
6
+ * If the incoming data is a record or object info it extracts the apiName
7
+ * and calls a provided function which will ensure the associated object info is cached
8
+ *
9
+ * @param env base environment
10
+ * @param ensureObjectInfoCached function to cache the object info if not already cached
11
+ * @returns configured environment
12
+ */
13
+ export declare function enableObjectInfoCaching(env: Environment, ensureObjectInfoCached: EnsureCachedObjectInfoFunction): Environment;
@@ -1,2 +1,2 @@
1
- import type { Luvio } from '@luvio/engine';
2
- export declare function setupInspection(luvio: Luvio): void;
1
+ import type { Luvio } from '@luvio/engine';
2
+ export declare function setupInspection(luvio: Luvio): void;
@@ -1,5 +1,5 @@
1
- import type { DraftQueue } from '@salesforce/lds-drafts';
2
- /**
3
- * A HOF that returns an instrumented DraftQueue
4
- */
5
- export declare function instrumentDraftQueue(queue: DraftQueue): DraftQueue;
1
+ import type { DraftQueue } from '@salesforce/lds-drafts';
2
+ /**
3
+ * A HOF that returns an instrumented DraftQueue
4
+ */
5
+ export declare function instrumentDraftQueue(queue: DraftQueue): DraftQueue;
@@ -1,2 +1,2 @@
1
- import type { Adapter } from '@luvio/engine';
2
- export declare function instrumentGraphQLEval<C, D>(adapter: Adapter<C, D>): Adapter<C, D>;
1
+ import type { Adapter } from '@luvio/engine';
2
+ export declare function instrumentGraphQLEval<C, D>(adapter: Adapter<C, D>): Adapter<C, D>;
@@ -1,6 +1,6 @@
1
- import type { ReportObserver } from '@salesforce/lds-instrumentation';
2
- import type { Luvio, InMemoryStore } from '@luvio/engine';
3
- type Unsubscribe = () => void;
4
- export declare function setupMobileInstrumentation(luvio: Luvio, store: InMemoryStore): void;
5
- export declare function registerReportObserver(reportObserver: ReportObserver): Unsubscribe;
6
- export {};
1
+ import type { ReportObserver } from '@salesforce/lds-instrumentation';
2
+ import type { Luvio, InMemoryStore } from '@luvio/engine';
3
+ type Unsubscribe = () => void;
4
+ export declare function setupMobileInstrumentation(luvio: Luvio, store: InMemoryStore): void;
5
+ export declare function registerReportObserver(reportObserver: ReportObserver): Unsubscribe;
6
+ export {};
@@ -1,2 +1,2 @@
1
- import type { PrimingSession } from '@salesforce/lds-priming';
2
- export declare function instrumentPrimingSession(session: PrimingSession): PrimingSession;
1
+ import type { PrimingSession } from '@salesforce/lds-priming';
2
+ export declare function instrumentPrimingSession(session: PrimingSession): PrimingSession;
@@ -1,2 +1,2 @@
1
- import type { Adapter } from '@luvio/engine';
2
- export declare function instrumentContentDocumentVersionAdapter<C, D>(adapter: Adapter<C, D>): Adapter<C, D>;
1
+ import type { Adapter } from '@luvio/engine';
2
+ export declare function instrumentContentDocumentVersionAdapter<C, D>(adapter: Adapter<C, D>): Adapter<C, D>;
@@ -1,10 +1,10 @@
1
- import type { AdapterRequestContext, LuvioAdapterEventObserver } from '@luvio/engine';
2
- export declare function attachObserversToAdapterRequestContext(observers: LuvioAdapterEventObserver[], adapterRequestContext?: AdapterRequestContext): AdapterRequestContext;
3
- /**
4
- * Use this method to sanitize the unknown error object when
5
- * we are unsure of the type of the error thrown
6
- *
7
- * @param err Unknown object to sanitize
8
- * @returns an instance of error
9
- */
10
- export declare function normalizeError(err: unknown): Error;
1
+ import type { AdapterRequestContext, LuvioAdapterEventObserver } from '@luvio/engine';
2
+ export declare function attachObserversToAdapterRequestContext(observers: LuvioAdapterEventObserver[], adapterRequestContext?: AdapterRequestContext): AdapterRequestContext;
3
+ /**
4
+ * Use this method to sanitize the unknown error object when
5
+ * we are unsure of the type of the error thrown
6
+ *
7
+ * @param err Unknown object to sanitize
8
+ * @returns an instance of error
9
+ */
10
+ export declare function normalizeError(err: unknown): Error;
@@ -1,16 +1,16 @@
1
- export declare const O11Y_NAMESPACE_LDS_MOBILE = "lds-mobile";
2
- export declare const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = "draft-queue-total-mergeActions-calls";
3
- export declare const ldsMobileInstrumentation: import("o11y/dist/modules/o11y/client/interfaces").Instrumentation;
4
- export declare function reportGraphqlQueryParseError(err: unknown): void;
5
- export declare function reportGraphqlSqlEvalPreconditionError(err: unknown): void;
6
- export declare function reportGraphqlCreateSnapshotError(err: unknown): void;
7
- export declare function reportGraphQlEvalDbReadDuration(duration: number): void;
8
- export declare function reportGraphqlAdapterError(errorCode: string): void;
9
- export declare function reportDraftActionEvent(state: 'added' | 'completed' | 'deleted' | 'updated' | 'failed'): void;
10
- export declare function reportDraftQueueState(state: 'started' | 'error' | 'waiting' | 'stopped'): void;
11
- export declare function reportDraftAwareContentDocumentVersionSynthesizeError(err: unknown): void;
12
- export declare function reportDraftAwareContentVersionSynthesizeCalls(mimeType: string): void;
13
- /** Priming */
14
- export declare function reportPrimingSessionCreated(): void;
15
- export declare function reportPrimingError(errorType: string, recordCount: number): void;
16
- export declare function reportPrimingSuccess(recordCount: number): void;
1
+ export declare const O11Y_NAMESPACE_LDS_MOBILE = "lds-mobile";
2
+ export declare const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = "draft-queue-total-mergeActions-calls";
3
+ export declare const ldsMobileInstrumentation: import("o11y/dist/modules/o11y/client/interfaces").Instrumentation;
4
+ export declare function reportGraphqlQueryParseError(err: unknown): void;
5
+ export declare function reportGraphqlSqlEvalPreconditionError(err: unknown): void;
6
+ export declare function reportGraphqlCreateSnapshotError(err: unknown): void;
7
+ export declare function reportGraphQlEvalDbReadDuration(duration: number): void;
8
+ export declare function reportGraphqlAdapterError(errorCode: string): void;
9
+ export declare function reportDraftActionEvent(state: 'added' | 'completed' | 'deleted' | 'updated' | 'failed'): void;
10
+ export declare function reportDraftQueueState(state: 'started' | 'error' | 'waiting' | 'stopped'): void;
11
+ export declare function reportDraftAwareContentDocumentVersionSynthesizeError(err: unknown): void;
12
+ export declare function reportDraftAwareContentVersionSynthesizeCalls(mimeType: string): void;
13
+ /** Priming */
14
+ export declare function reportPrimingSessionCreated(): void;
15
+ export declare function reportPrimingError(errorType: string, recordCount: number): void;
16
+ export declare function reportPrimingSuccess(recordCount: number): void;