@salesforce/lds-adapters-platform-i18n 1.169.0 → 1.170.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-i18n.js +9 -7
- package/dist/es/es2018/types/src/generated/resources/getConnectI18nTimezonesByLocale.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/AddressCountry.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/AddressState.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/StateCountryInputRequest.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/StateCountryOutputRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/StateCountryTranslations.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/TimezoneOutputRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/TimezoneRepresentation.d.ts +2 -2
- package/package.json +1 -1
- package/sfdc/index.js +10 -8
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey,
|
|
7
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -154,8 +154,7 @@ const ingest = function TimezoneOutputRepresentationIngest(input, path, luvio, s
|
|
|
154
154
|
}
|
|
155
155
|
return createLink(key);
|
|
156
156
|
};
|
|
157
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
158
|
-
const rootKeySet = new StoreKeyMap();
|
|
157
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
159
158
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
160
159
|
const rootKey = fullPathFactory();
|
|
161
160
|
rootKeySet.set(rootKey, {
|
|
@@ -163,7 +162,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
163
162
|
representationName: RepresentationType,
|
|
164
163
|
mergeable: false
|
|
165
164
|
});
|
|
166
|
-
return rootKeySet;
|
|
167
165
|
}
|
|
168
166
|
|
|
169
167
|
function select(luvio, params) {
|
|
@@ -172,8 +170,8 @@ function select(luvio, params) {
|
|
|
172
170
|
function keyBuilder$1(luvio, params) {
|
|
173
171
|
return keyPrefix + '::TimezoneOutputRepresentation:(' + 'locale:' + params.urlParams.locale + ')';
|
|
174
172
|
}
|
|
175
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
176
|
-
|
|
173
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
174
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
177
175
|
}
|
|
178
176
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
179
177
|
const { body } = response;
|
|
@@ -275,7 +273,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
275
273
|
const request = createResourceRequest(resourceParams);
|
|
276
274
|
return luvio.dispatchResourceRequest(request, options)
|
|
277
275
|
.then((response) => {
|
|
278
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () =>
|
|
276
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
277
|
+
const cache = new StoreKeyMap();
|
|
278
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
279
|
+
return cache;
|
|
280
|
+
});
|
|
279
281
|
}, (response) => {
|
|
280
282
|
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
281
283
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
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
2
|
import { TimezoneOutputRepresentation as types_TimezoneOutputRepresentation_TimezoneOutputRepresentation } from '../types/TimezoneOutputRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
@@ -8,7 +8,7 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
9
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
10
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TimezoneOutputRepresentation_TimezoneOutputRepresentation):
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TimezoneOutputRepresentation_TimezoneOutputRepresentation): void;
|
|
12
12
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_TimezoneOutputRepresentation_TimezoneOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_TimezoneOutputRepresentation_TimezoneOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_TimezoneOutputRepresentation_TimezoneOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_TimezoneOutputRepresentation_TimezoneOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_TimezoneOutputRepresentation_TimezoneOutputRepresentation, any>;
|
|
13
13
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_TimezoneOutputRepresentation_TimezoneOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
14
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AddressState as AddressState_AddressState } from './AddressState';
|
|
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,
|
|
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
3
|
export declare const VERSION = "210b2e8398df4843c250c0580481cfc7";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
@@ -7,7 +7,7 @@ export declare function normalize(input: AddressCountry, existing: AddressCountr
|
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: AddressCountryNormalized, incoming: AddressCountryNormalized): boolean;
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AddressCountry, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AddressCountry, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
12
|
* Output representations of Address Country object.
|
|
13
13
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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
2
|
export declare const VERSION = "337e4901f1e0787c8726b88788cf91e6";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
@@ -6,7 +6,7 @@ export declare function normalize(input: AddressState, existing: AddressStateNor
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: AddressStateNormalized, incoming: AddressStateNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AddressState, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AddressState, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Address State Representation
|
|
12
12
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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
2
|
export declare const VERSION = "53d515f4801c9d0c566d8dabb6f3fbfd";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
@@ -6,7 +6,7 @@ export declare function normalize(input: StateCountryInputRequest, existing: Sta
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: StateCountryInputRequestNormalized, incoming: StateCountryInputRequestNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: StateCountryInputRequest, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StateCountryInputRequest, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Input Representation to get locale and filter params for State and Country list API.
|
|
12
12
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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
2
|
export declare const VERSION = "6d8ba01c7f793414ae1851586d6a5b41";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
@@ -6,7 +6,7 @@ export declare function normalize(input: StateCountryOutputRepresentation, exist
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: StateCountryOutputRepresentationNormalized, incoming: StateCountryOutputRepresentationNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: StateCountryOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StateCountryOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Representation for StateAndCountryTranslations
|
|
12
12
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AddressCountry as AddressCountry_AddressCountry } from './AddressCountry';
|
|
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,
|
|
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
3
|
export declare const VERSION = "0db6faae5abb89caea1827510cb103f4";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
@@ -7,7 +7,7 @@ export declare function normalize(input: StateCountryTranslations, existing: Sta
|
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: StateCountryTranslationsNormalized, incoming: StateCountryTranslationsNormalized): boolean;
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: StateCountryTranslations, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StateCountryTranslations, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
12
|
* Output representations of State and Country translations APIs response.
|
|
13
13
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TimezoneRepresentation as TimezoneRepresentation_TimezoneRepresentation } from './TimezoneRepresentation';
|
|
2
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest,
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
3
|
export declare const VERSION = "e0cab40b3591377c632eb866ff79268c";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
@@ -7,7 +7,7 @@ export declare function normalize(input: TimezoneOutputRepresentation, existing:
|
|
|
7
7
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
8
|
export declare function equals(existing: TimezoneOutputRepresentationNormalized, incoming: TimezoneOutputRepresentationNormalized): boolean;
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TimezoneOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: TimezoneOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
12
|
* Representation of Timezone localized list.
|
|
13
13
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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
2
|
export declare const VERSION = "eb44fdaeb6edec41fe1bd509f0b9bced";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
@@ -6,7 +6,7 @@ export declare function normalize(input: TimezoneRepresentation, existing: Timez
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: TimezoneRepresentationNormalized, incoming: TimezoneRepresentationNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TimezoneRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: TimezoneRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Representation of Timezone
|
|
12
12
|
*
|
package/package.json
CHANGED
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,
|
|
17
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -164,8 +164,7 @@ const ingest = function TimezoneOutputRepresentationIngest(input, path, luvio, s
|
|
|
164
164
|
}
|
|
165
165
|
return createLink(key);
|
|
166
166
|
};
|
|
167
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
168
|
-
const rootKeySet = new StoreKeyMap();
|
|
167
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
169
168
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
170
169
|
const rootKey = fullPathFactory();
|
|
171
170
|
rootKeySet.set(rootKey, {
|
|
@@ -173,7 +172,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
173
172
|
representationName: RepresentationType,
|
|
174
173
|
mergeable: false
|
|
175
174
|
});
|
|
176
|
-
return rootKeySet;
|
|
177
175
|
}
|
|
178
176
|
|
|
179
177
|
function select(luvio, params) {
|
|
@@ -182,8 +180,8 @@ function select(luvio, params) {
|
|
|
182
180
|
function keyBuilder$1(luvio, params) {
|
|
183
181
|
return keyPrefix + '::TimezoneOutputRepresentation:(' + 'locale:' + params.urlParams.locale + ')';
|
|
184
182
|
}
|
|
185
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
186
|
-
|
|
183
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
184
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
187
185
|
}
|
|
188
186
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
189
187
|
const { body } = response;
|
|
@@ -285,7 +283,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
285
283
|
const request = createResourceRequest(resourceParams);
|
|
286
284
|
return luvio.dispatchResourceRequest(request, options)
|
|
287
285
|
.then((response) => {
|
|
288
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () =>
|
|
286
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
287
|
+
const cache = new StoreKeyMap();
|
|
288
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
289
|
+
return cache;
|
|
290
|
+
});
|
|
289
291
|
}, (response) => {
|
|
290
292
|
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
291
293
|
});
|
|
@@ -352,4 +354,4 @@ withDefaultLuvio((luvio) => {
|
|
|
352
354
|
});
|
|
353
355
|
|
|
354
356
|
export { getTimezonesByLocale, getTimezonesByLocale_imperative };
|
|
355
|
-
// version: 1.
|
|
357
|
+
// version: 1.170.1-5fb216cf1
|