@salesforce/lds-worker-api 1.125.0 → 1.127.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.
Files changed (64) hide show
  1. package/dist/sfdc/es/draftQueueImplementation.d.ts +2 -2
  2. package/dist/sfdc/es/executeAdapter.d.ts +83 -83
  3. package/dist/sfdc/es/language.d.ts +13 -13
  4. package/dist/sfdc/es/ldsWorkerApi.js +692 -682
  5. package/dist/sfdc/es/lightningAdapterApi.d.ts +11 -11
  6. package/dist/sfdc/es/main.d.ts +8 -8
  7. package/dist/sfdc/es/nimbusDraftQueue.d.ts +6 -6
  8. package/dist/sfdc/es/primingApi.d.ts +23 -23
  9. package/dist/sfdc/es/responses.d.ts +44 -44
  10. package/dist/sfdc/es/standalone-stubs/instrumentation.d.ts +21 -21
  11. package/dist/sfdc/es/standalone-stubs/o11y.d.ts +18 -18
  12. package/dist/sfdc/es/standalone-stubs/unwrap.d.ts +1 -1
  13. package/dist/sfdc/es/standalone.d.ts +1 -1
  14. package/dist/sfdc/es/ttl.d.ts +2 -2
  15. package/dist/standalone/es/draftQueueImplementation.d.ts +2 -2
  16. package/dist/standalone/es/executeAdapter.d.ts +83 -83
  17. package/dist/standalone/es/language.d.ts +13 -13
  18. package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/currency.d.ts +2 -2
  19. package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortDateFormat.d.ts +2 -2
  20. package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortDateTimeFormat.d.ts +2 -2
  21. package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortTimeFormat.d.ts +2 -2
  22. package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/locale.d.ts +2 -2
  23. package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/timeZone.d.ts +2 -2
  24. package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/user/Id.d.ts +2 -2
  25. package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/lightning/i18nCldrOptions.d.ts +2 -2
  26. package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/lightning/i18nService.d.ts +10 -10
  27. package/dist/standalone/es/lds-worker-api/src/standalone-stubs/unwrap.d.ts +1 -1
  28. package/dist/standalone/es/lds-worker-api.js +730 -717
  29. package/dist/standalone/es/lightningAdapterApi.d.ts +11 -11
  30. package/dist/standalone/es/main.d.ts +8 -8
  31. package/dist/standalone/es/nimbusDraftQueue.d.ts +6 -6
  32. package/dist/standalone/es/primingApi.d.ts +23 -23
  33. package/dist/standalone/es/responses.d.ts +44 -44
  34. package/dist/standalone/es/standalone-stubs/instrumentation.d.ts +21 -21
  35. package/dist/standalone/es/standalone-stubs/o11y.d.ts +18 -18
  36. package/dist/standalone/es/standalone.d.ts +1 -1
  37. package/dist/standalone/es/ttl.d.ts +2 -2
  38. package/dist/standalone/umd/draftQueueImplementation.d.ts +2 -2
  39. package/dist/standalone/umd/executeAdapter.d.ts +83 -83
  40. package/dist/standalone/umd/language.d.ts +13 -13
  41. package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/currency.d.ts +2 -2
  42. package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortDateFormat.d.ts +2 -2
  43. package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortDateTimeFormat.d.ts +2 -2
  44. package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortTimeFormat.d.ts +2 -2
  45. package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/locale.d.ts +2 -2
  46. package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/timeZone.d.ts +2 -2
  47. package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/user/Id.d.ts +2 -2
  48. package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/lightning/i18nCldrOptions.d.ts +2 -2
  49. package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/lightning/i18nService.d.ts +10 -10
  50. package/dist/standalone/umd/lds-worker-api/src/standalone-stubs/unwrap.d.ts +1 -1
  51. package/dist/standalone/umd/lds-worker-api.js +730 -717
  52. package/dist/standalone/umd/lightningAdapterApi.d.ts +11 -11
  53. package/dist/standalone/umd/main.d.ts +8 -8
  54. package/dist/standalone/umd/nimbusDraftQueue.d.ts +6 -6
  55. package/dist/standalone/umd/primingApi.d.ts +23 -23
  56. package/dist/standalone/umd/responses.d.ts +44 -44
  57. package/dist/standalone/umd/standalone-stubs/instrumentation.d.ts +21 -21
  58. package/dist/standalone/umd/standalone-stubs/o11y.d.ts +18 -18
  59. package/dist/standalone/umd/standalone.d.ts +1 -1
  60. package/dist/standalone/umd/ttl.d.ts +2 -2
  61. package/package.json +1 -1
  62. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/date-predicate.adapter-testcase.json +23 -0
  63. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/date-predicate.server-response.network-mock.json +56 -0
  64. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/date-predicate.adapter-snapshot.result.json +18 -0
@@ -1,11 +1,11 @@
1
- import type { ImperativeAdapter } from '@salesforce/lds-bindings';
2
- import type { Adapter } from '@luvio/engine';
3
- import * as gqlApi from 'force/ldsAdaptersGraphql';
4
- export declare const IMPERATIVE_ADAPTER_SUFFIX = "_imperative";
5
- export declare const UNSTABLE_ADAPTER_PREFIX = "unstable_";
6
- type AdapterMapValue = Adapter<unknown, unknown> | ImperativeAdapter<unknown, unknown> | undefined;
7
- type ImperativeAdapterMapValue = ImperativeAdapter<unknown, unknown> | undefined;
8
- declare function getDMLAdapterFromName(name: string): AdapterMapValue;
9
- declare function getImperativeAdapterFromName(name: string): ImperativeAdapterMapValue;
10
- declare function getImperativeAdapterNames(): string[];
11
- export { getImperativeAdapterFromName, getDMLAdapterFromName, getImperativeAdapterNames, gqlApi };
1
+ import type { ImperativeAdapter } from '@salesforce/lds-bindings';
2
+ import type { Adapter } from '@luvio/engine';
3
+ import * as gqlApi from 'force/ldsAdaptersGraphql';
4
+ export declare const IMPERATIVE_ADAPTER_SUFFIX = "_imperative";
5
+ export declare const UNSTABLE_ADAPTER_PREFIX = "unstable_";
6
+ type AdapterMapValue = Adapter<unknown, unknown> | ImperativeAdapter<unknown, unknown> | undefined;
7
+ type ImperativeAdapterMapValue = ImperativeAdapter<unknown, unknown> | undefined;
8
+ declare function getDMLAdapterFromName(name: string): AdapterMapValue;
9
+ declare function getImperativeAdapterFromName(name: string): ImperativeAdapterMapValue;
10
+ declare function getImperativeAdapterNames(): string[];
11
+ export { getImperativeAdapterFromName, getDMLAdapterFromName, getImperativeAdapterNames, gqlApi };
@@ -1,8 +1,8 @@
1
- import { subscribeToAdapter, invokeAdapter, invokeAdapterWithMetadata, invokeAdapterWithDraftToReplace, executeAdapter, executeMutatingAdapter } from './executeAdapter';
2
- import { getImperativeAdapterNames } from './lightningAdapterApi';
3
- import { nimbusDraftQueue } from './nimbusDraftQueue';
4
- import { draftQueue, draftManager } from './draftQueueImplementation';
5
- import { setUiApiRecordTTL, setMetadataTTL } from './ttl';
6
- import { registerReportObserver } from '@salesforce/lds-runtime-mobile';
7
- import { createPrimingSession } from './primingApi';
8
- export { subscribeToAdapter, invokeAdapter, invokeAdapterWithMetadata, invokeAdapterWithDraftToReplace, executeAdapter, executeMutatingAdapter, nimbusDraftQueue, draftQueue, draftManager, setUiApiRecordTTL, setMetadataTTL, registerReportObserver, getImperativeAdapterNames, createPrimingSession, };
1
+ import { subscribeToAdapter, invokeAdapter, invokeAdapterWithMetadata, invokeAdapterWithDraftToReplace, executeAdapter, executeMutatingAdapter } from './executeAdapter';
2
+ import { getImperativeAdapterNames } from './lightningAdapterApi';
3
+ import { nimbusDraftQueue } from './nimbusDraftQueue';
4
+ import { draftQueue, draftManager } from './draftQueueImplementation';
5
+ import { setUiApiRecordTTL, setMetadataTTL } from './ttl';
6
+ import { registerReportObserver } from '@salesforce/lds-runtime-mobile';
7
+ import { createPrimingSession } from './primingApi';
8
+ export { subscribeToAdapter, invokeAdapter, invokeAdapterWithMetadata, invokeAdapterWithDraftToReplace, executeAdapter, executeMutatingAdapter, nimbusDraftQueue, draftQueue, draftManager, setUiApiRecordTTL, setMetadataTTL, registerReportObserver, getImperativeAdapterNames, createPrimingSession, };
@@ -1,6 +1,6 @@
1
- import type { DraftQueue as NimbusDraftQueue } from '@salesforce/nimbus-plugin-lds';
2
- /**
3
- * Implements the DraftQueue interface from nimbus-plugin-lds by passing requests
4
- * to the instance of the lds-drafts' DraftQueue implementation
5
- */
6
- export declare const nimbusDraftQueue: NimbusDraftQueue;
1
+ import type { DraftQueue as NimbusDraftQueue } from '@salesforce/nimbus-plugin-lds';
2
+ /**
3
+ * Implements the DraftQueue interface from nimbus-plugin-lds by passing requests
4
+ * to the instance of the lds-drafts' DraftQueue implementation
5
+ */
6
+ export declare const nimbusDraftQueue: NimbusDraftQueue;
@@ -1,23 +1,23 @@
1
- interface PrimingError {
2
- ids: string[];
3
- code: ErrorCode;
4
- message: string;
5
- }
6
- type ErrorCode = 'precondition-error' | 'not-found' | 'service-unavailable' | 'canceled' | 'unknown';
7
- interface PrimingEventHandler {
8
- onError?: (error: PrimingError) => void;
9
- onPrimed?: (ids: string[]) => void;
10
- }
11
- export interface PrimingSessionConfig {
12
- primingEventHandler?: PrimingEventHandler;
13
- concurrency?: number;
14
- batchSize?: number;
15
- }
16
- export declare function createPrimingSession(config: PrimingSessionConfig): {
17
- enqueue: (work: PrimingWork) => Promise<void>;
18
- cancel: () => void;
19
- on: <K extends keyof import("@salesforce/lds-priming").PrimingEvents>(eventName: K, callback: (payload: import("@salesforce/lds-priming").PrimingEvents[K]) => void) => import("@salesforce/lds-priming").PrimingSession;
20
- once: <K_1 extends keyof import("@salesforce/lds-priming").PrimingEvents>(eventName: K_1, callback: (payload: import("@salesforce/lds-priming").PrimingEvents[K_1]) => void) => import("@salesforce/lds-priming").PrimingSession;
21
- off: <K_2 extends keyof import("@salesforce/lds-priming").PrimingEvents>(eventName: K_2, callback: (payload: import("@salesforce/lds-priming").PrimingEvents[K_2]) => void) => import("@salesforce/lds-priming").PrimingSession;
22
- };
23
- export {};
1
+ interface PrimingError {
2
+ ids: string[];
3
+ code: ErrorCode;
4
+ message: string;
5
+ }
6
+ type ErrorCode = 'precondition-error' | 'not-found' | 'service-unavailable' | 'canceled' | 'unknown';
7
+ interface PrimingEventHandler {
8
+ onError?: (error: PrimingError) => void;
9
+ onPrimed?: (ids: string[]) => void;
10
+ }
11
+ export interface PrimingSessionConfig {
12
+ primingEventHandler?: PrimingEventHandler;
13
+ concurrency?: number;
14
+ batchSize?: number;
15
+ }
16
+ export declare function createPrimingSession(config: PrimingSessionConfig): {
17
+ enqueue: (work: PrimingWork) => Promise<void>;
18
+ cancel: () => void;
19
+ on: <K extends keyof import("@salesforce/lds-priming").PrimingEvents>(eventName: K, callback: (payload: import("@salesforce/lds-priming").PrimingEvents[K]) => void) => import("@salesforce/lds-priming").PrimingSession;
20
+ once: <K_1 extends keyof import("@salesforce/lds-priming").PrimingEvents>(eventName: K_1, callback: (payload: import("@salesforce/lds-priming").PrimingEvents[K_1]) => void) => import("@salesforce/lds-priming").PrimingSession;
21
+ off: <K_2 extends keyof import("@salesforce/lds-priming").PrimingEvents>(eventName: K_2, callback: (payload: import("@salesforce/lds-priming").PrimingEvents[K_2]) => void) => import("@salesforce/lds-priming").PrimingSession;
22
+ };
23
+ export {};
@@ -1,44 +1,44 @@
1
- import type { FetchResponse, FetchErrorResponse, Headers, AdapterErrorResponse, NetworkAdapterErrorResponse } from '@luvio/engine';
2
- import { HttpStatusCode } from '@luvio/engine';
3
- export declare const NATIVE_ERROR_CODE = "NATIVE_ERROR";
4
- export declare const NON_MUTATING_ADAPTER_MESSAGE = "adapterId must be a mutating adapter";
5
- export declare const NO_DRAFT_CREATED_MESSAGE = "the adapter did not generate a draft";
6
- export declare const DRAFT_DOESNT_EXIST_MESSAGE = "the specified draft does not exist";
7
- /**
8
- * Error objects don't serialize well over the js-native wire, so our class turns
9
- * an Error into an object that serializes real nice
10
- */
11
- export declare class NativeNetworkAdapterErrorResponse implements NetworkAdapterErrorResponse {
12
- message: string;
13
- name: string;
14
- errorType: NetworkAdapterErrorResponse['errorType'];
15
- constructor(error: NetworkAdapterErrorResponse);
16
- }
17
- export declare class NativeAdapterErrorResponse implements AdapterErrorResponse {
18
- errorType: AdapterErrorResponse['errorType'];
19
- error: unknown;
20
- constructor(error: AdapterErrorResponse);
21
- }
22
- /**
23
- * NativeErrorResponse is the native version of Luvio's ErrorResponse type.
24
- *
25
- * It is either a non-ok http response or an Error. It has a discriminator property
26
- * "errorType" to distinguish between the two types of errors.
27
- */
28
- export type NativeErrorResponse = NativeFetchErrorResponse | NativeNetworkAdapterErrorResponse | NativeAdapterErrorResponse;
29
- export declare class NativeFetchResponse<T> implements FetchResponse<T> {
30
- status: HttpStatusCode;
31
- body: T;
32
- headers: Headers;
33
- constructor(status: HttpStatusCode, body: T);
34
- get statusText(): string;
35
- get ok(): boolean;
36
- }
37
- export declare class NativeFetchErrorResponse extends NativeFetchResponse<unknown> implements FetchErrorResponse {
38
- errorType: FetchErrorResponse['errorType'];
39
- }
40
- export declare function createNativeFetchErrorResponse(message: string): NativeFetchErrorResponse;
41
- /**
42
- * This function takes an unknown error and normalizes it to an Error object
43
- */
44
- export declare function normalizeError(error: unknown): Error;
1
+ import type { FetchResponse, FetchErrorResponse, Headers, AdapterErrorResponse, NetworkAdapterErrorResponse } from '@luvio/engine';
2
+ import { HttpStatusCode } from '@luvio/engine';
3
+ export declare const NATIVE_ERROR_CODE = "NATIVE_ERROR";
4
+ export declare const NON_MUTATING_ADAPTER_MESSAGE = "adapterId must be a mutating adapter";
5
+ export declare const NO_DRAFT_CREATED_MESSAGE = "the adapter did not generate a draft";
6
+ export declare const DRAFT_DOESNT_EXIST_MESSAGE = "the specified draft does not exist";
7
+ /**
8
+ * Error objects don't serialize well over the js-native wire, so our class turns
9
+ * an Error into an object that serializes real nice
10
+ */
11
+ export declare class NativeNetworkAdapterErrorResponse implements NetworkAdapterErrorResponse {
12
+ message: string;
13
+ name: string;
14
+ errorType: NetworkAdapterErrorResponse['errorType'];
15
+ constructor(error: NetworkAdapterErrorResponse);
16
+ }
17
+ export declare class NativeAdapterErrorResponse implements AdapterErrorResponse {
18
+ errorType: AdapterErrorResponse['errorType'];
19
+ error: unknown;
20
+ constructor(error: AdapterErrorResponse);
21
+ }
22
+ /**
23
+ * NativeErrorResponse is the native version of Luvio's ErrorResponse type.
24
+ *
25
+ * It is either a non-ok http response or an Error. It has a discriminator property
26
+ * "errorType" to distinguish between the two types of errors.
27
+ */
28
+ export type NativeErrorResponse = NativeFetchErrorResponse | NativeNetworkAdapterErrorResponse | NativeAdapterErrorResponse;
29
+ export declare class NativeFetchResponse<T> implements FetchResponse<T> {
30
+ status: HttpStatusCode;
31
+ body: T;
32
+ headers: Headers;
33
+ constructor(status: HttpStatusCode, body: T);
34
+ get statusText(): string;
35
+ get ok(): boolean;
36
+ }
37
+ export declare class NativeFetchErrorResponse extends NativeFetchResponse<unknown> implements FetchErrorResponse {
38
+ errorType: FetchErrorResponse['errorType'];
39
+ }
40
+ export declare function createNativeFetchErrorResponse(message: string): NativeFetchErrorResponse;
41
+ /**
42
+ * This function takes an unknown error and normalizes it to an Error object
43
+ */
44
+ export declare function normalizeError(error: unknown): Error;
@@ -1,21 +1,21 @@
1
- export declare const instrumentation: {
2
- instrumentAdapter(createFunction: Function, _metadata: any): Function;
3
- };
4
- export declare function instrumentAdapter(createFunction: Function, _metadata: any): Function;
5
- export declare function incrementGetRecordNotifyChangeAllowCount(): void;
6
- export declare function incrementGetRecordNotifyChangeDropCount(): void;
7
- export declare function incrementNotifyRecordUpdateAvailableAllowCount(): void;
8
- export declare function incrementNotifyRecordUpdateAvailableDropCount(): void;
9
- export declare function refreshApiEvent(): void;
10
- export declare function instrumentGraphqlAdapter(createFunction: Function, _metadata: any): Function;
11
- export declare function setLdsAdaptersUiapiInstrumentation(_uiapiRegistration: any): void;
12
- export declare function setLdsNetworkAdapterInstrumentation(_networkAdapterRegistration: any): void;
13
- export declare function setupInstrumentation(_luvio: any, _store: any): void;
14
- export declare function instrumentLuvio(_context: unknown): void;
15
- export declare const REFRESH_UIAPI_KEY = "refreshUiApi";
16
- export declare const METRIC_KEYS: {};
17
- export declare const O11Y_NAMESPACE_LDS_MOBILE = "lds-mobile";
18
- export declare const withInstrumentation: () => undefined;
19
- export declare class MetricsReporter {
20
- reportGraphqlQueryParseError(): void;
21
- }
1
+ export declare const instrumentation: {
2
+ instrumentAdapter(createFunction: Function, _metadata: any): Function;
3
+ };
4
+ export declare function instrumentAdapter(createFunction: Function, _metadata: any): Function;
5
+ export declare function incrementGetRecordNotifyChangeAllowCount(): void;
6
+ export declare function incrementGetRecordNotifyChangeDropCount(): void;
7
+ export declare function incrementNotifyRecordUpdateAvailableAllowCount(): void;
8
+ export declare function incrementNotifyRecordUpdateAvailableDropCount(): void;
9
+ export declare function refreshApiEvent(): void;
10
+ export declare function instrumentGraphqlAdapter(createFunction: Function, _metadata: any): Function;
11
+ export declare function setLdsAdaptersUiapiInstrumentation(_uiapiRegistration: any): void;
12
+ export declare function setLdsNetworkAdapterInstrumentation(_networkAdapterRegistration: any): void;
13
+ export declare function setupInstrumentation(_luvio: any, _store: any): void;
14
+ export declare function instrumentLuvio(_context: unknown): void;
15
+ export declare const REFRESH_UIAPI_KEY = "refreshUiApi";
16
+ export declare const METRIC_KEYS: {};
17
+ export declare const O11Y_NAMESPACE_LDS_MOBILE = "lds-mobile";
18
+ export declare const withInstrumentation: () => undefined;
19
+ export declare class MetricsReporter {
20
+ reportGraphqlQueryParseError(): void;
21
+ }
@@ -1,18 +1,18 @@
1
- import type { IdleDetector, Activity } from 'o11y/dist/modules/o11y/client/interfaces';
2
- export declare const idleDetector: IdleDetector;
3
- export declare const activity: Partial<Activity>;
4
- type MetricsTags = Record<string, number | string | boolean>;
5
- declare function startActivity(_name: string): Activity;
6
- export declare const mockInstrumentation: {
7
- startActivity: typeof startActivity;
8
- error: () => void;
9
- trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
10
- incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
11
- };
12
- export declare const getInstrumentation: () => {
13
- startActivity: typeof startActivity;
14
- error: () => void;
15
- trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
16
- incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
17
- };
18
- export {};
1
+ import type { IdleDetector, Activity } from 'o11y/dist/modules/o11y/client/interfaces';
2
+ export declare const idleDetector: IdleDetector;
3
+ export declare const activity: Partial<Activity>;
4
+ type MetricsTags = Record<string, number | string | boolean>;
5
+ declare function startActivity(_name: string): Activity;
6
+ export declare const mockInstrumentation: {
7
+ startActivity: typeof startActivity;
8
+ error: () => void;
9
+ trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
10
+ incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
11
+ };
12
+ export declare const getInstrumentation: () => {
13
+ startActivity: typeof startActivity;
14
+ error: () => void;
15
+ trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
16
+ incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
17
+ };
18
+ export {};
@@ -1 +1 @@
1
- export * from './main';
1
+ export * from './main';
@@ -1,2 +1,2 @@
1
- export declare function setUiApiRecordTTL(ttl: number): Promise<void>;
2
- export declare function setMetadataTTL(ttl: number): Promise<void>;
1
+ export declare function setUiApiRecordTTL(ttl: number): Promise<void>;
2
+ export declare function setMetadataTTL(ttl: number): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.125.0",
3
+ "version": "1.127.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -0,0 +1,23 @@
1
+ {
2
+ "testCaseName": "DateTime predicate returns result without specifing fractional seconds",
3
+ "adapters": [
4
+ {
5
+ "name": "getObjectInfo",
6
+ "config": { "objectApiName": "Account" }
7
+ },
8
+ {
9
+ "name": "graphql",
10
+ "config": {
11
+ "query": "{ uiapi { query { Account(first: 1, where: { LastModifiedDate: {eq: {value: \"2016-03-06T02:29:47Z\"}}}) @category(name: \"recordQuery\") { edges { node { Id }} } }}}",
12
+ "variables": {}
13
+ },
14
+ "expectedToSucceed": true,
15
+ "expectedResult": "./adapter-testcases/graphQL/snapshotdata/date-predicate.adapter-snapshot.result.json"
16
+ }
17
+ ],
18
+ "networkMocks": [
19
+ "./adapter-testcases/graphQL/objectInfos/Account.network-mock.json",
20
+ "./adapter-testcases/graphQL/serverresponse/date-predicate.server-response.network-mock.json"
21
+ ],
22
+ "freezeTime": true
23
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "status": 200,
3
+ "body": {
4
+ "data": {
5
+ "uiapi": {
6
+ "query": {
7
+ "Account": {
8
+ "edges": [
9
+ {
10
+ "node": {
11
+ "Id": "001x0000004cKZHAA2",
12
+ "__typename": "Account",
13
+ "DisplayValue": "A001_2_10001",
14
+ "ApiName": "Account",
15
+ "WeakEtag": 1457231388000,
16
+ "LastModifiedById": {
17
+ "__typename": "IDValue",
18
+ "value": "005x0000000xNhqAAE",
19
+ "displayValue": null
20
+ },
21
+ "LastModifiedDate": {
22
+ "__typename": "DateTimeValue",
23
+ "value": "2016-03-06T02:29:47.000Z",
24
+ "displayValue": "3/5/2016, 6:29 PM"
25
+ },
26
+ "SystemModstamp": {
27
+ "__typename": "DateTimeValue",
28
+ "value": "2016-03-06T02:29:48.000Z",
29
+ "displayValue": "3/5/2016, 6:29 PM"
30
+ },
31
+ "ldsRecordTypeId": {
32
+ "__typename": "IDValue",
33
+ "value": "012000000000000AAA",
34
+ "displayValue": null
35
+ }
36
+ },
37
+ "cursor": "djE6MA==",
38
+ "__typename": "AccountEdge"
39
+ }
40
+ ],
41
+ "__typename": "AccountConnection",
42
+ "pageInfo": {
43
+ "hasNextPage": true,
44
+ "endCursor": "djE6MA==",
45
+ "startCursor": "djE6MA==",
46
+ "__typename": "PageInfo"
47
+ }
48
+ },
49
+ "__typename": "RecordQuery"
50
+ },
51
+ "__typename": "UIAPI"
52
+ }
53
+ },
54
+ "errors": []
55
+ }
56
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "data": {
3
+ "uiapi": {
4
+ "query": {
5
+ "Account": {
6
+ "edges": [
7
+ {
8
+ "node": {
9
+ "Id": "001x0000004cKZHAA2",
10
+ "_drafts": null
11
+ }
12
+ }
13
+ ]
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }