@salesforce/lds-adapters-industries-dataloading 1.213.0 → 1.213.2
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/industries-dataloading.js +36 -83
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/getCsvDataTemplate.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getObjectsForFeature.d.ts +3 -2
- package/package.json +1 -1
- package/sfdc/index.js +37 -84
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, deepFreeze, typeCheckScalars, StoreKeyMap } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckScalars, StoreKeyMap } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -48,6 +48,24 @@ const snapshotRefreshOptions = {
|
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
+
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
52
|
+
return {
|
|
53
|
+
name,
|
|
54
|
+
required,
|
|
55
|
+
coerceFn,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
59
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
60
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
61
|
+
return {
|
|
62
|
+
displayName,
|
|
63
|
+
parameters: {
|
|
64
|
+
required,
|
|
65
|
+
optional,
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
51
69
|
const keyPrefix = 'dataloading';
|
|
52
70
|
|
|
53
71
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -109,26 +127,8 @@ const ingest$1 = function ObjectCsvDataTemplateRepresentationIngest(input, path,
|
|
|
109
127
|
}
|
|
110
128
|
}
|
|
111
129
|
const key = path.fullPath;
|
|
112
|
-
const existingRecord = store.readEntry(key);
|
|
113
130
|
const ttlToUse = TTL$1;
|
|
114
|
-
|
|
115
|
-
fullPath: key,
|
|
116
|
-
parent: path.parent,
|
|
117
|
-
propertyName: path.propertyName,
|
|
118
|
-
ttl: ttlToUse
|
|
119
|
-
});
|
|
120
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
121
|
-
luvio.storePublish(key, incomingRecord);
|
|
122
|
-
}
|
|
123
|
-
{
|
|
124
|
-
const storeMetadataParams = {
|
|
125
|
-
ttl: ttlToUse,
|
|
126
|
-
namespace: "dataloading",
|
|
127
|
-
version: VERSION$1,
|
|
128
|
-
representationName: RepresentationType$1,
|
|
129
|
-
};
|
|
130
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
131
|
-
}
|
|
131
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "dataloading", VERSION$1, RepresentationType$1, equals$1);
|
|
132
132
|
return createLink(key);
|
|
133
133
|
};
|
|
134
134
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -193,13 +193,11 @@ function createResourceRequest$1(config) {
|
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
};
|
|
196
|
+
const adapterName$1 = 'getCsvDataTemplate';
|
|
197
|
+
const getCsvDataTemplate_ConfigPropertyMetadata = [
|
|
198
|
+
generateParamConfigMetadata('objectApiName', true),
|
|
199
|
+
];
|
|
200
|
+
const getCsvDataTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCsvDataTemplate_ConfigPropertyMetadata);
|
|
203
201
|
function createResourceParams$1(config) {
|
|
204
202
|
const resourceParams = {
|
|
205
203
|
urlParams: {
|
|
@@ -265,21 +263,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
265
263
|
});
|
|
266
264
|
}
|
|
267
265
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
268
|
-
|
|
269
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
270
|
-
const dispatchOptions = {
|
|
271
|
-
resourceRequestContext: {
|
|
272
|
-
requestCorrelator,
|
|
273
|
-
luvioRequestMethod: undefined,
|
|
274
|
-
},
|
|
275
|
-
eventObservers
|
|
276
|
-
};
|
|
277
|
-
if (networkPriority !== 'normal') {
|
|
278
|
-
dispatchOptions.overrides = {
|
|
279
|
-
priority: networkPriority
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
266
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
283
267
|
}
|
|
284
268
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
285
269
|
const { luvio, config } = context;
|
|
@@ -399,26 +383,8 @@ const ingest = function FeatureObjectsResultRepresentationIngest(input, path, lu
|
|
|
399
383
|
}
|
|
400
384
|
}
|
|
401
385
|
const key = path.fullPath;
|
|
402
|
-
const existingRecord = store.readEntry(key);
|
|
403
386
|
const ttlToUse = TTL;
|
|
404
|
-
|
|
405
|
-
fullPath: key,
|
|
406
|
-
parent: path.parent,
|
|
407
|
-
propertyName: path.propertyName,
|
|
408
|
-
ttl: ttlToUse
|
|
409
|
-
});
|
|
410
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
411
|
-
luvio.storePublish(key, incomingRecord);
|
|
412
|
-
}
|
|
413
|
-
{
|
|
414
|
-
const storeMetadataParams = {
|
|
415
|
-
ttl: ttlToUse,
|
|
416
|
-
namespace: "dataloading",
|
|
417
|
-
version: VERSION,
|
|
418
|
-
representationName: RepresentationType,
|
|
419
|
-
};
|
|
420
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
421
|
-
}
|
|
387
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "dataloading", VERSION, RepresentationType, equals);
|
|
422
388
|
return createLink(key);
|
|
423
389
|
};
|
|
424
390
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -483,13 +449,14 @@ function createResourceRequest(config) {
|
|
|
483
449
|
};
|
|
484
450
|
}
|
|
485
451
|
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
452
|
+
const adapterName = 'getObjectsForFeature';
|
|
453
|
+
const getObjectsForFeature_ConfigPropertyMetadata = [
|
|
454
|
+
generateParamConfigMetadata('featureName', true),
|
|
455
|
+
generateParamConfigMetadata('limit', false),
|
|
456
|
+
generateParamConfigMetadata('offset', false),
|
|
457
|
+
generateParamConfigMetadata('entityType', true),
|
|
458
|
+
];
|
|
459
|
+
const getObjectsForFeature_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getObjectsForFeature_ConfigPropertyMetadata);
|
|
493
460
|
function createResourceParams(config) {
|
|
494
461
|
const resourceParams = {
|
|
495
462
|
urlParams: {
|
|
@@ -561,21 +528,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
561
528
|
});
|
|
562
529
|
}
|
|
563
530
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
564
|
-
|
|
565
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
566
|
-
const dispatchOptions = {
|
|
567
|
-
resourceRequestContext: {
|
|
568
|
-
requestCorrelator,
|
|
569
|
-
luvioRequestMethod: undefined,
|
|
570
|
-
},
|
|
571
|
-
eventObservers
|
|
572
|
-
};
|
|
573
|
-
if (networkPriority !== 'normal') {
|
|
574
|
-
dispatchOptions.overrides = {
|
|
575
|
-
priority: networkPriority
|
|
576
|
-
};
|
|
577
|
-
}
|
|
578
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
531
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
579
532
|
}
|
|
580
533
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
581
534
|
const { luvio, config } = context;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
3
|
declare const ObjectKeys: {
|
|
4
4
|
(o: object): string[];
|
|
@@ -57,4 +57,6 @@ export declare const snapshotRefreshOptions: {
|
|
|
57
57
|
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
58
|
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
59
|
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
60
62
|
export declare const keyPrefix = "dataloading";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
2
3
|
import { ResourceRequestConfig as resources_getConnectIndustriesCsvDataTemplateByObjectApiName_ResourceRequestConfig } from '../resources/getConnectIndustriesCsvDataTemplateByObjectApiName';
|
|
3
|
-
import { 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';
|
|
4
4
|
import { ObjectCsvDataTemplateRepresentation as types_ObjectCsvDataTemplateRepresentation_ObjectCsvDataTemplateRepresentation } from '../types/ObjectCsvDataTemplateRepresentation';
|
|
5
5
|
export declare const adapterName = "getCsvDataTemplate";
|
|
6
|
+
export declare const getCsvDataTemplate_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getCsvDataTemplate_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetCsvDataTemplateConfig {
|
|
8
9
|
objectApiName: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
2
3
|
import { ResourceRequestConfig as resources_getConnectIndustriesObjectsByFeatureName_ResourceRequestConfig } from '../resources/getConnectIndustriesObjectsByFeatureName';
|
|
3
|
-
import { 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';
|
|
4
4
|
import { FeatureObjectsResultRepresentation as types_FeatureObjectsResultRepresentation_FeatureObjectsResultRepresentation } from '../types/FeatureObjectsResultRepresentation';
|
|
5
5
|
export declare const adapterName = "getObjectsForFeature";
|
|
6
|
+
export declare const getObjectsForFeature_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getObjectsForFeature_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetObjectsForFeatureConfig {
|
|
8
9
|
featureName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-dataloading",
|
|
3
|
-
"version": "1.213.
|
|
3
|
+
"version": "1.213.2",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "API Family to support data loading for objects",
|
|
6
6
|
"main": "dist/es/es2018/industries-dataloading.js",
|
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, deepFreeze, typeCheckScalars, StoreKeyMap } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckScalars, StoreKeyMap } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -58,6 +58,24 @@ const snapshotRefreshOptions = {
|
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
+
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
62
|
+
return {
|
|
63
|
+
name,
|
|
64
|
+
required,
|
|
65
|
+
coerceFn,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
69
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
70
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
71
|
+
return {
|
|
72
|
+
displayName,
|
|
73
|
+
parameters: {
|
|
74
|
+
required,
|
|
75
|
+
optional,
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
61
79
|
const keyPrefix = 'dataloading';
|
|
62
80
|
|
|
63
81
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -119,26 +137,8 @@ const ingest$1 = function ObjectCsvDataTemplateRepresentationIngest(input, path,
|
|
|
119
137
|
}
|
|
120
138
|
}
|
|
121
139
|
const key = path.fullPath;
|
|
122
|
-
const existingRecord = store.readEntry(key);
|
|
123
140
|
const ttlToUse = TTL$1;
|
|
124
|
-
|
|
125
|
-
fullPath: key,
|
|
126
|
-
parent: path.parent,
|
|
127
|
-
propertyName: path.propertyName,
|
|
128
|
-
ttl: ttlToUse
|
|
129
|
-
});
|
|
130
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
131
|
-
luvio.storePublish(key, incomingRecord);
|
|
132
|
-
}
|
|
133
|
-
{
|
|
134
|
-
const storeMetadataParams = {
|
|
135
|
-
ttl: ttlToUse,
|
|
136
|
-
namespace: "dataloading",
|
|
137
|
-
version: VERSION$1,
|
|
138
|
-
representationName: RepresentationType$1,
|
|
139
|
-
};
|
|
140
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
141
|
-
}
|
|
141
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "dataloading", VERSION$1, RepresentationType$1, equals$1);
|
|
142
142
|
return createLink(key);
|
|
143
143
|
};
|
|
144
144
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -203,13 +203,11 @@ function createResourceRequest$1(config) {
|
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
};
|
|
206
|
+
const adapterName$1 = 'getCsvDataTemplate';
|
|
207
|
+
const getCsvDataTemplate_ConfigPropertyMetadata = [
|
|
208
|
+
generateParamConfigMetadata('objectApiName', true),
|
|
209
|
+
];
|
|
210
|
+
const getCsvDataTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCsvDataTemplate_ConfigPropertyMetadata);
|
|
213
211
|
function createResourceParams$1(config) {
|
|
214
212
|
const resourceParams = {
|
|
215
213
|
urlParams: {
|
|
@@ -275,21 +273,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
275
273
|
});
|
|
276
274
|
}
|
|
277
275
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
278
|
-
|
|
279
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
280
|
-
const dispatchOptions = {
|
|
281
|
-
resourceRequestContext: {
|
|
282
|
-
requestCorrelator,
|
|
283
|
-
luvioRequestMethod: undefined,
|
|
284
|
-
},
|
|
285
|
-
eventObservers
|
|
286
|
-
};
|
|
287
|
-
if (networkPriority !== 'normal') {
|
|
288
|
-
dispatchOptions.overrides = {
|
|
289
|
-
priority: networkPriority
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
276
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
293
277
|
}
|
|
294
278
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
295
279
|
const { luvio, config } = context;
|
|
@@ -409,26 +393,8 @@ const ingest = function FeatureObjectsResultRepresentationIngest(input, path, lu
|
|
|
409
393
|
}
|
|
410
394
|
}
|
|
411
395
|
const key = path.fullPath;
|
|
412
|
-
const existingRecord = store.readEntry(key);
|
|
413
396
|
const ttlToUse = TTL;
|
|
414
|
-
|
|
415
|
-
fullPath: key,
|
|
416
|
-
parent: path.parent,
|
|
417
|
-
propertyName: path.propertyName,
|
|
418
|
-
ttl: ttlToUse
|
|
419
|
-
});
|
|
420
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
421
|
-
luvio.storePublish(key, incomingRecord);
|
|
422
|
-
}
|
|
423
|
-
{
|
|
424
|
-
const storeMetadataParams = {
|
|
425
|
-
ttl: ttlToUse,
|
|
426
|
-
namespace: "dataloading",
|
|
427
|
-
version: VERSION,
|
|
428
|
-
representationName: RepresentationType,
|
|
429
|
-
};
|
|
430
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
431
|
-
}
|
|
397
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "dataloading", VERSION, RepresentationType, equals);
|
|
432
398
|
return createLink(key);
|
|
433
399
|
};
|
|
434
400
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -493,13 +459,14 @@ function createResourceRequest(config) {
|
|
|
493
459
|
};
|
|
494
460
|
}
|
|
495
461
|
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
462
|
+
const adapterName = 'getObjectsForFeature';
|
|
463
|
+
const getObjectsForFeature_ConfigPropertyMetadata = [
|
|
464
|
+
generateParamConfigMetadata('featureName', true),
|
|
465
|
+
generateParamConfigMetadata('limit', false),
|
|
466
|
+
generateParamConfigMetadata('offset', false),
|
|
467
|
+
generateParamConfigMetadata('entityType', true),
|
|
468
|
+
];
|
|
469
|
+
const getObjectsForFeature_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getObjectsForFeature_ConfigPropertyMetadata);
|
|
503
470
|
function createResourceParams(config) {
|
|
504
471
|
const resourceParams = {
|
|
505
472
|
urlParams: {
|
|
@@ -571,21 +538,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
571
538
|
});
|
|
572
539
|
}
|
|
573
540
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
574
|
-
|
|
575
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
576
|
-
const dispatchOptions = {
|
|
577
|
-
resourceRequestContext: {
|
|
578
|
-
requestCorrelator,
|
|
579
|
-
luvioRequestMethod: undefined,
|
|
580
|
-
},
|
|
581
|
-
eventObservers
|
|
582
|
-
};
|
|
583
|
-
if (networkPriority !== 'normal') {
|
|
584
|
-
dispatchOptions.overrides = {
|
|
585
|
-
priority: networkPriority
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
541
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
589
542
|
}
|
|
590
543
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
591
544
|
const { luvio, config } = context;
|
|
@@ -640,4 +593,4 @@ withDefaultLuvio((luvio) => {
|
|
|
640
593
|
});
|
|
641
594
|
|
|
642
595
|
export { getCsvDataTemplate, getCsvDataTemplate_imperative, getObjectsForFeature, getObjectsForFeature_imperative };
|
|
643
|
-
// version: 1.213.
|
|
596
|
+
// version: 1.213.2-1eb996209
|