@salesforce/lds-adapters-marketing-cdp 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/marketing-cdp.js +49 -84
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/createAdg.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/deleteAdg.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getAdg.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/retryDataGraph.d.ts +3 -2
- package/package.json +1 -1
- package/sfdc/index.js +51 -86
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, deepFreeze, StoreKeyMap, typeCheckScalars } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, typeCheckScalars, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } 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 = 'CDP';
|
|
52
70
|
|
|
53
71
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -432,26 +450,8 @@ const ingest$1 = function CdpApplicationDataGraphOutputRepresentationIngest(inpu
|
|
|
432
450
|
}
|
|
433
451
|
}
|
|
434
452
|
const key = keyBuilderFromType$1(luvio, input);
|
|
435
|
-
const existingRecord = store.readEntry(key);
|
|
436
453
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000000;
|
|
437
|
-
|
|
438
|
-
fullPath: key,
|
|
439
|
-
parent: path.parent,
|
|
440
|
-
propertyName: path.propertyName,
|
|
441
|
-
ttl: ttlToUse
|
|
442
|
-
});
|
|
443
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
444
|
-
luvio.storePublish(key, incomingRecord);
|
|
445
|
-
}
|
|
446
|
-
if (ttlToUse !== undefined) {
|
|
447
|
-
const storeMetadataParams = {
|
|
448
|
-
ttl: ttlToUse,
|
|
449
|
-
namespace: "CDP",
|
|
450
|
-
version: VERSION$1,
|
|
451
|
-
representationName: RepresentationType$1,
|
|
452
|
-
};
|
|
453
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
454
|
-
}
|
|
454
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "CDP", VERSION$1, RepresentationType$1, equals$1);
|
|
455
455
|
return createLink(key);
|
|
456
456
|
};
|
|
457
457
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -501,13 +501,17 @@ function createResourceRequest$3(config) {
|
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
-
const
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
504
|
+
const adapterName$3 = 'createAdg';
|
|
505
|
+
const createAdg_ConfigPropertyMetadata = [
|
|
506
|
+
generateParamConfigMetadata('dataspaceName', false),
|
|
507
|
+
generateParamConfigMetadata('description', false),
|
|
508
|
+
generateParamConfigMetadata('label', false),
|
|
509
|
+
generateParamConfigMetadata('name', false),
|
|
510
|
+
generateParamConfigMetadata('primaryObjectName', true),
|
|
511
|
+
generateParamConfigMetadata('primaryObjectType', true),
|
|
512
|
+
generateParamConfigMetadata('sourceObject', true),
|
|
513
|
+
];
|
|
514
|
+
const createAdg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createAdg_ConfigPropertyMetadata);
|
|
511
515
|
function createResourceParams$3(config) {
|
|
512
516
|
const resourceParams = {
|
|
513
517
|
body: {
|
|
@@ -632,13 +636,11 @@ function createResourceRequest$2(config) {
|
|
|
632
636
|
};
|
|
633
637
|
}
|
|
634
638
|
|
|
635
|
-
const
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}
|
|
641
|
-
};
|
|
639
|
+
const adapterName$2 = 'getAdg';
|
|
640
|
+
const getAdg_ConfigPropertyMetadata = [
|
|
641
|
+
generateParamConfigMetadata('adgName', true),
|
|
642
|
+
];
|
|
643
|
+
const getAdg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getAdg_ConfigPropertyMetadata);
|
|
642
644
|
function createResourceParams$2(config) {
|
|
643
645
|
const resourceParams = {
|
|
644
646
|
urlParams: {
|
|
@@ -704,21 +706,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
704
706
|
});
|
|
705
707
|
}
|
|
706
708
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
707
|
-
|
|
708
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
709
|
-
const dispatchOptions = {
|
|
710
|
-
resourceRequestContext: {
|
|
711
|
-
requestCorrelator,
|
|
712
|
-
luvioRequestMethod: undefined,
|
|
713
|
-
},
|
|
714
|
-
eventObservers
|
|
715
|
-
};
|
|
716
|
-
if (networkPriority !== 'normal') {
|
|
717
|
-
dispatchOptions.overrides = {
|
|
718
|
-
priority: networkPriority
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
|
|
709
|
+
return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
722
710
|
}
|
|
723
711
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
724
712
|
const { luvio, config } = context;
|
|
@@ -774,14 +762,11 @@ function createResourceRequest$1(config) {
|
|
|
774
762
|
};
|
|
775
763
|
}
|
|
776
764
|
|
|
777
|
-
const adapterName = 'deleteAdg';
|
|
778
|
-
const
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
optional: []
|
|
783
|
-
}
|
|
784
|
-
};
|
|
765
|
+
const adapterName$1 = 'deleteAdg';
|
|
766
|
+
const deleteAdg_ConfigPropertyMetadata = [
|
|
767
|
+
generateParamConfigMetadata('adgName', true),
|
|
768
|
+
];
|
|
769
|
+
const deleteAdg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, deleteAdg_ConfigPropertyMetadata);
|
|
785
770
|
function createResourceParams$1(config) {
|
|
786
771
|
const resourceParams = {
|
|
787
772
|
urlParams: {
|
|
@@ -833,7 +818,7 @@ const deleteAdgAdapterFactory = (luvio) => {
|
|
|
833
818
|
const config = validateAdapterConfig$1(untrustedConfig, deleteAdg_ConfigPropertyNames);
|
|
834
819
|
// Invalid or incomplete config
|
|
835
820
|
if (config === null) {
|
|
836
|
-
throw new Error(`Invalid config for "${adapterName}"`);
|
|
821
|
+
throw new Error(`Invalid config for "${adapterName$1}"`);
|
|
837
822
|
}
|
|
838
823
|
return buildNetworkSnapshot$1(luvio, config);
|
|
839
824
|
};
|
|
@@ -898,26 +883,8 @@ const ingest = function CdpDataGraphRetryOutputRepresentationIngest(input, path,
|
|
|
898
883
|
}
|
|
899
884
|
}
|
|
900
885
|
const key = keyBuilderFromType(luvio, input);
|
|
901
|
-
const existingRecord = store.readEntry(key);
|
|
902
886
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000000;
|
|
903
|
-
|
|
904
|
-
fullPath: key,
|
|
905
|
-
parent: path.parent,
|
|
906
|
-
propertyName: path.propertyName,
|
|
907
|
-
ttl: ttlToUse
|
|
908
|
-
});
|
|
909
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
910
|
-
luvio.storePublish(key, incomingRecord);
|
|
911
|
-
}
|
|
912
|
-
if (ttlToUse !== undefined) {
|
|
913
|
-
const storeMetadataParams = {
|
|
914
|
-
ttl: ttlToUse,
|
|
915
|
-
namespace: "CDP",
|
|
916
|
-
version: VERSION,
|
|
917
|
-
representationName: RepresentationType,
|
|
918
|
-
};
|
|
919
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
920
|
-
}
|
|
887
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "CDP", VERSION, RepresentationType, equals);
|
|
921
888
|
return createLink(key);
|
|
922
889
|
};
|
|
923
890
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -967,13 +934,11 @@ function createResourceRequest(config) {
|
|
|
967
934
|
};
|
|
968
935
|
}
|
|
969
936
|
|
|
970
|
-
const
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
}
|
|
976
|
-
};
|
|
937
|
+
const adapterName = 'retryDataGraph';
|
|
938
|
+
const retryDataGraph_ConfigPropertyMetadata = [
|
|
939
|
+
generateParamConfigMetadata('dataGraphName', true),
|
|
940
|
+
];
|
|
941
|
+
const retryDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, retryDataGraph_ConfigPropertyMetadata);
|
|
977
942
|
function createResourceParams(config) {
|
|
978
943
|
const resourceParams = {
|
|
979
944
|
body: {
|
|
@@ -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 = "CDP";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, 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_postSsotApplicationDataGraphs_ResourceRequestConfig } from '../resources/postSsotApplicationDataGraphs';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { CdpApplicationDataGraphOutputRepresentation as types_CdpApplicationDataGraphOutputRepresentation_CdpApplicationDataGraphOutputRepresentation } from '../types/CdpApplicationDataGraphOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "createAdg";
|
|
6
|
+
export declare const createAdg_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const createAdg_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface CreateAdgConfig {
|
|
8
9
|
dataspaceName?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, DeleteAdapterFactory as $64$luvio_engine_DeleteAdapterFactory } 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_deleteSsotApplicationDataGraphsByAdgName_ResourceRequestConfig } from '../resources/deleteSsotApplicationDataGraphsByAdgName';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, DeleteAdapterFactory as $64$luvio_engine_DeleteAdapterFactory } from '@luvio/engine';
|
|
4
4
|
export declare const adapterName = "deleteAdg";
|
|
5
|
+
export declare const deleteAdg_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
5
6
|
export declare const deleteAdg_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
6
7
|
export interface DeleteAdgConfig {
|
|
7
8
|
adgName: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
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, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getSsotApplicationDataGraphsByAdgName_ResourceRequestConfig } from '../resources/getSsotApplicationDataGraphsByAdgName';
|
|
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 { CdpApplicationDataGraphOutputRepresentation as types_CdpApplicationDataGraphOutputRepresentation_CdpApplicationDataGraphOutputRepresentation } from '../types/CdpApplicationDataGraphOutputRepresentation';
|
|
5
5
|
import { KeyParams as types_CdpObjectBaseOutputRepresentation_KeyParams } from '../types/CdpObjectBaseOutputRepresentation';
|
|
6
6
|
export declare const adapterName = "getAdg";
|
|
7
|
+
export declare const getAdg_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
8
|
export declare const getAdg_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
9
|
export interface GetAdgConfig {
|
|
9
10
|
adgName: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, 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_putSsotApplicationDataGraphsRetry_ResourceRequestConfig } from '../resources/putSsotApplicationDataGraphsRetry';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { CdpDataGraphRetryOutputRepresentation as types_CdpDataGraphRetryOutputRepresentation_CdpDataGraphRetryOutputRepresentation } from '../types/CdpDataGraphRetryOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "retryDataGraph";
|
|
6
|
+
export declare const retryDataGraph_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const retryDataGraph_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface RetryDataGraphConfig {
|
|
8
9
|
dataGraphName: string;
|
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, deepFreeze, StoreKeyMap, typeCheckScalars } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, typeCheckScalars, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } 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 = 'CDP';
|
|
62
80
|
|
|
63
81
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -442,26 +460,8 @@ const ingest$1 = function CdpApplicationDataGraphOutputRepresentationIngest(inpu
|
|
|
442
460
|
}
|
|
443
461
|
}
|
|
444
462
|
const key = keyBuilderFromType$1(luvio, input);
|
|
445
|
-
const existingRecord = store.readEntry(key);
|
|
446
463
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000000;
|
|
447
|
-
|
|
448
|
-
fullPath: key,
|
|
449
|
-
parent: path.parent,
|
|
450
|
-
propertyName: path.propertyName,
|
|
451
|
-
ttl: ttlToUse
|
|
452
|
-
});
|
|
453
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
454
|
-
luvio.storePublish(key, incomingRecord);
|
|
455
|
-
}
|
|
456
|
-
if (ttlToUse !== undefined) {
|
|
457
|
-
const storeMetadataParams = {
|
|
458
|
-
ttl: ttlToUse,
|
|
459
|
-
namespace: "CDP",
|
|
460
|
-
version: VERSION$1,
|
|
461
|
-
representationName: RepresentationType$1,
|
|
462
|
-
};
|
|
463
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
464
|
-
}
|
|
464
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "CDP", VERSION$1, RepresentationType$1, equals$1);
|
|
465
465
|
return createLink(key);
|
|
466
466
|
};
|
|
467
467
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -511,13 +511,17 @@ function createResourceRequest$3(config) {
|
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
const
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
514
|
+
const adapterName$3 = 'createAdg';
|
|
515
|
+
const createAdg_ConfigPropertyMetadata = [
|
|
516
|
+
generateParamConfigMetadata('dataspaceName', false),
|
|
517
|
+
generateParamConfigMetadata('description', false),
|
|
518
|
+
generateParamConfigMetadata('label', false),
|
|
519
|
+
generateParamConfigMetadata('name', false),
|
|
520
|
+
generateParamConfigMetadata('primaryObjectName', true),
|
|
521
|
+
generateParamConfigMetadata('primaryObjectType', true),
|
|
522
|
+
generateParamConfigMetadata('sourceObject', true),
|
|
523
|
+
];
|
|
524
|
+
const createAdg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createAdg_ConfigPropertyMetadata);
|
|
521
525
|
function createResourceParams$3(config) {
|
|
522
526
|
const resourceParams = {
|
|
523
527
|
body: {
|
|
@@ -625,14 +629,11 @@ function createResourceRequest$2(config) {
|
|
|
625
629
|
};
|
|
626
630
|
}
|
|
627
631
|
|
|
628
|
-
const adapterName = 'deleteAdg';
|
|
629
|
-
const
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
optional: []
|
|
634
|
-
}
|
|
635
|
-
};
|
|
632
|
+
const adapterName$2 = 'deleteAdg';
|
|
633
|
+
const deleteAdg_ConfigPropertyMetadata = [
|
|
634
|
+
generateParamConfigMetadata('adgName', true),
|
|
635
|
+
];
|
|
636
|
+
const deleteAdg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteAdg_ConfigPropertyMetadata);
|
|
636
637
|
function createResourceParams$2(config) {
|
|
637
638
|
const resourceParams = {
|
|
638
639
|
urlParams: {
|
|
@@ -684,7 +685,7 @@ const deleteAdgAdapterFactory = (luvio) => {
|
|
|
684
685
|
const config = validateAdapterConfig$2(untrustedConfig, deleteAdg_ConfigPropertyNames);
|
|
685
686
|
// Invalid or incomplete config
|
|
686
687
|
if (config === null) {
|
|
687
|
-
throw new Error(`Invalid config for "${adapterName}"`);
|
|
688
|
+
throw new Error(`Invalid config for "${adapterName$2}"`);
|
|
688
689
|
}
|
|
689
690
|
return buildNetworkSnapshot$2(luvio, config);
|
|
690
691
|
};
|
|
@@ -745,13 +746,11 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
745
746
|
return createResourceRequest$1(config);
|
|
746
747
|
}
|
|
747
748
|
|
|
748
|
-
const
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
}
|
|
754
|
-
};
|
|
749
|
+
const adapterName$1 = 'getAdg';
|
|
750
|
+
const getAdg_ConfigPropertyMetadata = [
|
|
751
|
+
generateParamConfigMetadata('adgName', true),
|
|
752
|
+
];
|
|
753
|
+
const getAdg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAdg_ConfigPropertyMetadata);
|
|
755
754
|
function createResourceParams$1(config) {
|
|
756
755
|
const resourceParams = {
|
|
757
756
|
urlParams: {
|
|
@@ -817,21 +816,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
817
816
|
});
|
|
818
817
|
}
|
|
819
818
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
820
|
-
|
|
821
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
822
|
-
const dispatchOptions = {
|
|
823
|
-
resourceRequestContext: {
|
|
824
|
-
requestCorrelator,
|
|
825
|
-
luvioRequestMethod: undefined,
|
|
826
|
-
},
|
|
827
|
-
eventObservers
|
|
828
|
-
};
|
|
829
|
-
if (networkPriority !== 'normal') {
|
|
830
|
-
dispatchOptions.overrides = {
|
|
831
|
-
priority: networkPriority
|
|
832
|
-
};
|
|
833
|
-
}
|
|
834
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
819
|
+
return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
835
820
|
}
|
|
836
821
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
837
822
|
const { luvio, config } = context;
|
|
@@ -944,26 +929,8 @@ const ingest = function CdpDataGraphRetryOutputRepresentationIngest(input, path,
|
|
|
944
929
|
}
|
|
945
930
|
}
|
|
946
931
|
const key = keyBuilderFromType(luvio, input);
|
|
947
|
-
const existingRecord = store.readEntry(key);
|
|
948
932
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000000;
|
|
949
|
-
|
|
950
|
-
fullPath: key,
|
|
951
|
-
parent: path.parent,
|
|
952
|
-
propertyName: path.propertyName,
|
|
953
|
-
ttl: ttlToUse
|
|
954
|
-
});
|
|
955
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
956
|
-
luvio.storePublish(key, incomingRecord);
|
|
957
|
-
}
|
|
958
|
-
if (ttlToUse !== undefined) {
|
|
959
|
-
const storeMetadataParams = {
|
|
960
|
-
ttl: ttlToUse,
|
|
961
|
-
namespace: "CDP",
|
|
962
|
-
version: VERSION,
|
|
963
|
-
representationName: RepresentationType,
|
|
964
|
-
};
|
|
965
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
966
|
-
}
|
|
933
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "CDP", VERSION, RepresentationType, equals);
|
|
967
934
|
return createLink(key);
|
|
968
935
|
};
|
|
969
936
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1013,13 +980,11 @@ function createResourceRequest(config) {
|
|
|
1013
980
|
};
|
|
1014
981
|
}
|
|
1015
982
|
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
}
|
|
1022
|
-
};
|
|
983
|
+
const adapterName = 'retryDataGraph';
|
|
984
|
+
const retryDataGraph_ConfigPropertyMetadata = [
|
|
985
|
+
generateParamConfigMetadata('dataGraphName', true),
|
|
986
|
+
];
|
|
987
|
+
const retryDataGraph_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, retryDataGraph_ConfigPropertyMetadata);
|
|
1023
988
|
function createResourceParams(config) {
|
|
1024
989
|
const resourceParams = {
|
|
1025
990
|
body: {
|
|
@@ -1094,7 +1059,7 @@ function bindExportsTo(luvio) {
|
|
|
1094
1059
|
}
|
|
1095
1060
|
return {
|
|
1096
1061
|
createAdg: unwrapSnapshotData(createAdgAdapterFactory),
|
|
1097
|
-
deleteAdg: createLDSAdapter(luvio, adapterName, deleteAdgAdapterFactory),
|
|
1062
|
+
deleteAdg: createLDSAdapter(luvio, adapterName$2, deleteAdgAdapterFactory),
|
|
1098
1063
|
getAdg: createWireAdapterConstructor(luvio, getAdg_ldsAdapter, getAdgMetadata),
|
|
1099
1064
|
getAdgNotifyChange: createLDSAdapter(luvio, 'getAdgNotifyChange', notifyChangeFactory),
|
|
1100
1065
|
retryDataGraph: unwrapSnapshotData(retryDataGraphAdapterFactory),
|
|
@@ -1114,4 +1079,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1114
1079
|
});
|
|
1115
1080
|
|
|
1116
1081
|
export { createAdg, deleteAdg, getAdg, getAdgNotifyChange, getAdg_imperative, retryDataGraph };
|
|
1117
|
-
// version: 1.213.
|
|
1082
|
+
// version: 1.213.2-1eb996209
|