@salesforce/lds-adapters-industries-interesttagging 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-interesttagging.js +69 -172
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/createInterestTagEntityAssignment.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getInterestTagEntityAssignments.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getTagCategoriesByTagId.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getTagsByCategoryId.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getTagsByRecordId.d.ts +3 -2
- package/package.json +1 -1
- package/sfdc/index.js +70 -173
|
@@ -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, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckScalars } 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 = 'interesttagging';
|
|
52
70
|
|
|
53
71
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -140,26 +158,8 @@ const ingest$3 = function InterestTagAssignmentOutputRepresentationIngest(input,
|
|
|
140
158
|
}
|
|
141
159
|
}
|
|
142
160
|
const key = keyBuilderFromType(luvio, input);
|
|
143
|
-
const existingRecord = store.readEntry(key);
|
|
144
161
|
const ttlToUse = TTL$1;
|
|
145
|
-
|
|
146
|
-
fullPath: key,
|
|
147
|
-
parent: path.parent,
|
|
148
|
-
propertyName: path.propertyName,
|
|
149
|
-
ttl: ttlToUse
|
|
150
|
-
});
|
|
151
|
-
if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
|
|
152
|
-
luvio.storePublish(key, incomingRecord);
|
|
153
|
-
}
|
|
154
|
-
{
|
|
155
|
-
const storeMetadataParams = {
|
|
156
|
-
ttl: ttlToUse,
|
|
157
|
-
namespace: "interesttagging",
|
|
158
|
-
version: VERSION$5,
|
|
159
|
-
representationName: RepresentationType$3,
|
|
160
|
-
};
|
|
161
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
162
|
-
}
|
|
162
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "interesttagging", VERSION$5, RepresentationType$3, equals$5);
|
|
163
163
|
return createLink(key);
|
|
164
164
|
};
|
|
165
165
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -209,13 +209,12 @@ function createResourceRequest$4(config) {
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
};
|
|
212
|
+
const adapterName$4 = 'createInterestTagEntityAssignment';
|
|
213
|
+
const createInterestTagEntityAssignment_ConfigPropertyMetadata = [
|
|
214
|
+
generateParamConfigMetadata('recordsForTag', true),
|
|
215
|
+
generateParamConfigMetadata('tagsForRecord', true),
|
|
216
|
+
];
|
|
217
|
+
const createInterestTagEntityAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createInterestTagEntityAssignment_ConfigPropertyMetadata);
|
|
219
218
|
function createResourceParams$4(config) {
|
|
220
219
|
const resourceParams = {
|
|
221
220
|
body: {
|
|
@@ -428,26 +427,8 @@ const ingest$2 = function InterestTagListRepresentationIngest(input, path, luvio
|
|
|
428
427
|
}
|
|
429
428
|
}
|
|
430
429
|
const key = path.fullPath;
|
|
431
|
-
const existingRecord = store.readEntry(key);
|
|
432
430
|
const ttlToUse = TTL;
|
|
433
|
-
|
|
434
|
-
fullPath: key,
|
|
435
|
-
parent: path.parent,
|
|
436
|
-
propertyName: path.propertyName,
|
|
437
|
-
ttl: ttlToUse
|
|
438
|
-
});
|
|
439
|
-
if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
|
|
440
|
-
luvio.storePublish(key, incomingRecord);
|
|
441
|
-
}
|
|
442
|
-
{
|
|
443
|
-
const storeMetadataParams = {
|
|
444
|
-
ttl: ttlToUse,
|
|
445
|
-
namespace: "interesttagging",
|
|
446
|
-
version: VERSION$4,
|
|
447
|
-
representationName: RepresentationType$2,
|
|
448
|
-
};
|
|
449
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
450
|
-
}
|
|
431
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "interesttagging", VERSION$4, RepresentationType$2, equals$4);
|
|
451
432
|
return createLink(key);
|
|
452
433
|
};
|
|
453
434
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -512,13 +493,15 @@ function createResourceRequest$3(config) {
|
|
|
512
493
|
};
|
|
513
494
|
}
|
|
514
495
|
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
496
|
+
const adapterName$3 = 'getTagsByRecordId';
|
|
497
|
+
const getTagsByRecordId_ConfigPropertyMetadata = [
|
|
498
|
+
generateParamConfigMetadata('recordId', true),
|
|
499
|
+
generateParamConfigMetadata('limit', false),
|
|
500
|
+
generateParamConfigMetadata('offset', false),
|
|
501
|
+
generateParamConfigMetadata('orderBy', false),
|
|
502
|
+
generateParamConfigMetadata('sort', false),
|
|
503
|
+
];
|
|
504
|
+
const getTagsByRecordId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getTagsByRecordId_ConfigPropertyMetadata);
|
|
522
505
|
function createResourceParams$3(config) {
|
|
523
506
|
const resourceParams = {
|
|
524
507
|
urlParams: {
|
|
@@ -591,21 +574,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
591
574
|
});
|
|
592
575
|
}
|
|
593
576
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
594
|
-
|
|
595
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
596
|
-
const dispatchOptions = {
|
|
597
|
-
resourceRequestContext: {
|
|
598
|
-
requestCorrelator,
|
|
599
|
-
luvioRequestMethod: undefined,
|
|
600
|
-
},
|
|
601
|
-
eventObservers
|
|
602
|
-
};
|
|
603
|
-
if (networkPriority !== 'normal') {
|
|
604
|
-
dispatchOptions.overrides = {
|
|
605
|
-
priority: networkPriority
|
|
606
|
-
};
|
|
607
|
-
}
|
|
608
|
-
return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
|
|
577
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
609
578
|
}
|
|
610
579
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
611
580
|
const { luvio, config } = context;
|
|
@@ -773,26 +742,8 @@ const ingest$1 = function TagRecordAssignmentCollectionRepresentationIngest(inpu
|
|
|
773
742
|
}
|
|
774
743
|
}
|
|
775
744
|
const key = path.fullPath;
|
|
776
|
-
const existingRecord = store.readEntry(key);
|
|
777
745
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
778
|
-
|
|
779
|
-
fullPath: key,
|
|
780
|
-
parent: path.parent,
|
|
781
|
-
propertyName: path.propertyName,
|
|
782
|
-
ttl: ttlToUse
|
|
783
|
-
});
|
|
784
|
-
if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
|
|
785
|
-
luvio.storePublish(key, incomingRecord);
|
|
786
|
-
}
|
|
787
|
-
if (ttlToUse !== undefined) {
|
|
788
|
-
const storeMetadataParams = {
|
|
789
|
-
ttl: ttlToUse,
|
|
790
|
-
namespace: "interesttagging",
|
|
791
|
-
version: VERSION$2,
|
|
792
|
-
representationName: RepresentationType$1,
|
|
793
|
-
};
|
|
794
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
795
|
-
}
|
|
746
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "interesttagging", VERSION$2, RepresentationType$1, equals$2);
|
|
796
747
|
return createLink(key);
|
|
797
748
|
};
|
|
798
749
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -851,13 +802,15 @@ function createResourceRequest$2(config) {
|
|
|
851
802
|
};
|
|
852
803
|
}
|
|
853
804
|
|
|
854
|
-
const
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
805
|
+
const adapterName$2 = 'getInterestTagEntityAssignments';
|
|
806
|
+
const getInterestTagEntityAssignments_ConfigPropertyMetadata = [
|
|
807
|
+
generateParamConfigMetadata('tagId', true),
|
|
808
|
+
generateParamConfigMetadata('limit', false),
|
|
809
|
+
generateParamConfigMetadata('offset', false),
|
|
810
|
+
generateParamConfigMetadata('orderBy', false),
|
|
811
|
+
generateParamConfigMetadata('sort', false),
|
|
812
|
+
];
|
|
813
|
+
const getInterestTagEntityAssignments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getInterestTagEntityAssignments_ConfigPropertyMetadata);
|
|
861
814
|
function createResourceParams$2(config) {
|
|
862
815
|
const resourceParams = {
|
|
863
816
|
urlParams: {
|
|
@@ -930,21 +883,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
930
883
|
});
|
|
931
884
|
}
|
|
932
885
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
933
|
-
|
|
934
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
935
|
-
const dispatchOptions = {
|
|
936
|
-
resourceRequestContext: {
|
|
937
|
-
requestCorrelator,
|
|
938
|
-
luvioRequestMethod: undefined,
|
|
939
|
-
},
|
|
940
|
-
eventObservers
|
|
941
|
-
};
|
|
942
|
-
if (networkPriority !== 'normal') {
|
|
943
|
-
dispatchOptions.overrides = {
|
|
944
|
-
priority: networkPriority
|
|
945
|
-
};
|
|
946
|
-
}
|
|
947
|
-
return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
|
|
886
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
948
887
|
}
|
|
949
888
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
950
889
|
const { luvio, config } = context;
|
|
@@ -1140,26 +1079,8 @@ const ingest = function TagCategoryListRepresentationIngest(input, path, luvio,
|
|
|
1140
1079
|
}
|
|
1141
1080
|
}
|
|
1142
1081
|
const key = path.fullPath;
|
|
1143
|
-
const existingRecord = store.readEntry(key);
|
|
1144
1082
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
1145
|
-
|
|
1146
|
-
fullPath: key,
|
|
1147
|
-
parent: path.parent,
|
|
1148
|
-
propertyName: path.propertyName,
|
|
1149
|
-
ttl: ttlToUse
|
|
1150
|
-
});
|
|
1151
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
1152
|
-
luvio.storePublish(key, incomingRecord);
|
|
1153
|
-
}
|
|
1154
|
-
if (ttlToUse !== undefined) {
|
|
1155
|
-
const storeMetadataParams = {
|
|
1156
|
-
ttl: ttlToUse,
|
|
1157
|
-
namespace: "interesttagging",
|
|
1158
|
-
version: VERSION,
|
|
1159
|
-
representationName: RepresentationType,
|
|
1160
|
-
};
|
|
1161
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1162
|
-
}
|
|
1083
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "interesttagging", VERSION, RepresentationType, equals);
|
|
1163
1084
|
return createLink(key);
|
|
1164
1085
|
};
|
|
1165
1086
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1218,13 +1139,15 @@ function createResourceRequest$1(config) {
|
|
|
1218
1139
|
};
|
|
1219
1140
|
}
|
|
1220
1141
|
|
|
1221
|
-
const
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1142
|
+
const adapterName$1 = 'getTagCategoriesByTagId';
|
|
1143
|
+
const getTagCategoriesByTagId_ConfigPropertyMetadata = [
|
|
1144
|
+
generateParamConfigMetadata('limit', false),
|
|
1145
|
+
generateParamConfigMetadata('offset', false),
|
|
1146
|
+
generateParamConfigMetadata('orderBy', false),
|
|
1147
|
+
generateParamConfigMetadata('sort', false),
|
|
1148
|
+
generateParamConfigMetadata('tagId', false),
|
|
1149
|
+
];
|
|
1150
|
+
const getTagCategoriesByTagId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTagCategoriesByTagId_ConfigPropertyMetadata);
|
|
1228
1151
|
function createResourceParams$1(config) {
|
|
1229
1152
|
const resourceParams = {
|
|
1230
1153
|
queryParams: {
|
|
@@ -1294,21 +1217,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1294
1217
|
});
|
|
1295
1218
|
}
|
|
1296
1219
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1297
|
-
|
|
1298
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1299
|
-
const dispatchOptions = {
|
|
1300
|
-
resourceRequestContext: {
|
|
1301
|
-
requestCorrelator,
|
|
1302
|
-
luvioRequestMethod: undefined,
|
|
1303
|
-
},
|
|
1304
|
-
eventObservers
|
|
1305
|
-
};
|
|
1306
|
-
if (networkPriority !== 'normal') {
|
|
1307
|
-
dispatchOptions.overrides = {
|
|
1308
|
-
priority: networkPriority
|
|
1309
|
-
};
|
|
1310
|
-
}
|
|
1311
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
1220
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1312
1221
|
}
|
|
1313
1222
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1314
1223
|
const { luvio, config } = context;
|
|
@@ -1385,13 +1294,15 @@ function createResourceRequest(config) {
|
|
|
1385
1294
|
};
|
|
1386
1295
|
}
|
|
1387
1296
|
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1297
|
+
const adapterName = 'getTagsByCategoryId';
|
|
1298
|
+
const getTagsByCategoryId_ConfigPropertyMetadata = [
|
|
1299
|
+
generateParamConfigMetadata('categoryId', false),
|
|
1300
|
+
generateParamConfigMetadata('limit', false),
|
|
1301
|
+
generateParamConfigMetadata('offset', false),
|
|
1302
|
+
generateParamConfigMetadata('orderBy', false),
|
|
1303
|
+
generateParamConfigMetadata('sort', false),
|
|
1304
|
+
];
|
|
1305
|
+
const getTagsByCategoryId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTagsByCategoryId_ConfigPropertyMetadata);
|
|
1395
1306
|
function createResourceParams(config) {
|
|
1396
1307
|
const resourceParams = {
|
|
1397
1308
|
queryParams: {
|
|
@@ -1461,21 +1372,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1461
1372
|
});
|
|
1462
1373
|
}
|
|
1463
1374
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1464
|
-
|
|
1465
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1466
|
-
const dispatchOptions = {
|
|
1467
|
-
resourceRequestContext: {
|
|
1468
|
-
requestCorrelator,
|
|
1469
|
-
luvioRequestMethod: undefined,
|
|
1470
|
-
},
|
|
1471
|
-
eventObservers
|
|
1472
|
-
};
|
|
1473
|
-
if (networkPriority !== 'normal') {
|
|
1474
|
-
dispatchOptions.overrides = {
|
|
1475
|
-
priority: networkPriority
|
|
1476
|
-
};
|
|
1477
|
-
}
|
|
1478
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
1375
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1479
1376
|
}
|
|
1480
1377
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1481
1378
|
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 = "interesttagging";
|
|
@@ -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_postConnectInterestTagsAssignments_ResourceRequestConfig } from '../resources/postConnectInterestTagsAssignments';
|
|
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 { InterestTagAssignmentOutputRepresentation as types_InterestTagAssignmentOutputRepresentation_InterestTagAssignmentOutputRepresentation } from '../types/InterestTagAssignmentOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "createInterestTagEntityAssignment";
|
|
6
|
+
export declare const createInterestTagEntityAssignment_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const createInterestTagEntityAssignment_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface CreateInterestTagEntityAssignmentConfig {
|
|
8
9
|
recordsForTag: {
|
|
@@ -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_getConnectInterestTagsAssignmentsTagByTagId_ResourceRequestConfig } from '../resources/getConnectInterestTagsAssignmentsTagByTagId';
|
|
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 { TagRecordAssignmentCollectionRepresentation as types_TagRecordAssignmentCollectionRepresentation_TagRecordAssignmentCollectionRepresentation } from '../types/TagRecordAssignmentCollectionRepresentation';
|
|
5
5
|
export declare const adapterName = "getInterestTagEntityAssignments";
|
|
6
|
+
export declare const getInterestTagEntityAssignments_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getInterestTagEntityAssignments_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetInterestTagEntityAssignmentsConfig {
|
|
8
9
|
tagId: 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_getConnectInterestTagsCategories_ResourceRequestConfig } from '../resources/getConnectInterestTagsCategories';
|
|
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 { TagCategoryListRepresentation as types_TagCategoryListRepresentation_TagCategoryListRepresentation } from '../types/TagCategoryListRepresentation';
|
|
5
5
|
export declare const adapterName = "getTagCategoriesByTagId";
|
|
6
|
+
export declare const getTagCategoriesByTagId_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getTagCategoriesByTagId_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetTagCategoriesByTagIdConfig {
|
|
8
9
|
limit?: number;
|
|
@@ -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_getConnectInterestTagsTags_ResourceRequestConfig } from '../resources/getConnectInterestTagsTags';
|
|
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 { InterestTagListRepresentation as types_InterestTagListRepresentation_InterestTagListRepresentation } from '../types/InterestTagListRepresentation';
|
|
5
5
|
export declare const adapterName = "getTagsByCategoryId";
|
|
6
|
+
export declare const getTagsByCategoryId_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getTagsByCategoryId_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetTagsByCategoryIdConfig {
|
|
8
9
|
categoryId?: 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_getConnectInterestTagsAssignmentsEntityByRecordId_ResourceRequestConfig } from '../resources/getConnectInterestTagsAssignmentsEntityByRecordId';
|
|
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 { InterestTagListRepresentation as types_InterestTagListRepresentation_InterestTagListRepresentation } from '../types/InterestTagListRepresentation';
|
|
5
5
|
export declare const adapterName = "getTagsByRecordId";
|
|
6
|
+
export declare const getTagsByRecordId_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getTagsByRecordId_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetTagsByRecordIdConfig {
|
|
8
9
|
recordId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-interesttagging",
|
|
3
|
-
"version": "1.213.
|
|
3
|
+
"version": "1.213.2",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Connect family for interest tags APIs",
|
|
6
6
|
"main": "dist/es/es2018/industries-interesttagging.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, StoreKeyMap, typeCheckScalars } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckScalars } 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 = 'interesttagging';
|
|
62
80
|
|
|
63
81
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -150,26 +168,8 @@ const ingest$3 = function InterestTagAssignmentOutputRepresentationIngest(input,
|
|
|
150
168
|
}
|
|
151
169
|
}
|
|
152
170
|
const key = keyBuilderFromType(luvio, input);
|
|
153
|
-
const existingRecord = store.readEntry(key);
|
|
154
171
|
const ttlToUse = TTL$1;
|
|
155
|
-
|
|
156
|
-
fullPath: key,
|
|
157
|
-
parent: path.parent,
|
|
158
|
-
propertyName: path.propertyName,
|
|
159
|
-
ttl: ttlToUse
|
|
160
|
-
});
|
|
161
|
-
if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
|
|
162
|
-
luvio.storePublish(key, incomingRecord);
|
|
163
|
-
}
|
|
164
|
-
{
|
|
165
|
-
const storeMetadataParams = {
|
|
166
|
-
ttl: ttlToUse,
|
|
167
|
-
namespace: "interesttagging",
|
|
168
|
-
version: VERSION$5,
|
|
169
|
-
representationName: RepresentationType$3,
|
|
170
|
-
};
|
|
171
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
172
|
-
}
|
|
172
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "interesttagging", VERSION$5, RepresentationType$3, equals$5);
|
|
173
173
|
return createLink(key);
|
|
174
174
|
};
|
|
175
175
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -219,13 +219,12 @@ function createResourceRequest$4(config) {
|
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
};
|
|
222
|
+
const adapterName$4 = 'createInterestTagEntityAssignment';
|
|
223
|
+
const createInterestTagEntityAssignment_ConfigPropertyMetadata = [
|
|
224
|
+
generateParamConfigMetadata('recordsForTag', true),
|
|
225
|
+
generateParamConfigMetadata('tagsForRecord', true),
|
|
226
|
+
];
|
|
227
|
+
const createInterestTagEntityAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createInterestTagEntityAssignment_ConfigPropertyMetadata);
|
|
229
228
|
function createResourceParams$4(config) {
|
|
230
229
|
const resourceParams = {
|
|
231
230
|
body: {
|
|
@@ -467,26 +466,8 @@ const ingest$2 = function TagRecordAssignmentCollectionRepresentationIngest(inpu
|
|
|
467
466
|
}
|
|
468
467
|
}
|
|
469
468
|
const key = path.fullPath;
|
|
470
|
-
const existingRecord = store.readEntry(key);
|
|
471
469
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
472
|
-
|
|
473
|
-
fullPath: key,
|
|
474
|
-
parent: path.parent,
|
|
475
|
-
propertyName: path.propertyName,
|
|
476
|
-
ttl: ttlToUse
|
|
477
|
-
});
|
|
478
|
-
if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
|
|
479
|
-
luvio.storePublish(key, incomingRecord);
|
|
480
|
-
}
|
|
481
|
-
if (ttlToUse !== undefined) {
|
|
482
|
-
const storeMetadataParams = {
|
|
483
|
-
ttl: ttlToUse,
|
|
484
|
-
namespace: "interesttagging",
|
|
485
|
-
version: VERSION$3,
|
|
486
|
-
representationName: RepresentationType$2,
|
|
487
|
-
};
|
|
488
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
489
|
-
}
|
|
470
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "interesttagging", VERSION$3, RepresentationType$2, equals$3);
|
|
490
471
|
return createLink(key);
|
|
491
472
|
};
|
|
492
473
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -545,13 +526,15 @@ function createResourceRequest$3(config) {
|
|
|
545
526
|
};
|
|
546
527
|
}
|
|
547
528
|
|
|
548
|
-
const
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
529
|
+
const adapterName$3 = 'getInterestTagEntityAssignments';
|
|
530
|
+
const getInterestTagEntityAssignments_ConfigPropertyMetadata = [
|
|
531
|
+
generateParamConfigMetadata('tagId', true),
|
|
532
|
+
generateParamConfigMetadata('limit', false),
|
|
533
|
+
generateParamConfigMetadata('offset', false),
|
|
534
|
+
generateParamConfigMetadata('orderBy', false),
|
|
535
|
+
generateParamConfigMetadata('sort', false),
|
|
536
|
+
];
|
|
537
|
+
const getInterestTagEntityAssignments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getInterestTagEntityAssignments_ConfigPropertyMetadata);
|
|
555
538
|
function createResourceParams$3(config) {
|
|
556
539
|
const resourceParams = {
|
|
557
540
|
urlParams: {
|
|
@@ -624,21 +607,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
624
607
|
});
|
|
625
608
|
}
|
|
626
609
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
627
|
-
|
|
628
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
629
|
-
const dispatchOptions = {
|
|
630
|
-
resourceRequestContext: {
|
|
631
|
-
requestCorrelator,
|
|
632
|
-
luvioRequestMethod: undefined,
|
|
633
|
-
},
|
|
634
|
-
eventObservers
|
|
635
|
-
};
|
|
636
|
-
if (networkPriority !== 'normal') {
|
|
637
|
-
dispatchOptions.overrides = {
|
|
638
|
-
priority: networkPriority
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
|
|
610
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
642
611
|
}
|
|
643
612
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
644
613
|
const { luvio, config } = context;
|
|
@@ -834,26 +803,8 @@ const ingest$1 = function TagCategoryListRepresentationIngest(input, path, luvio
|
|
|
834
803
|
}
|
|
835
804
|
}
|
|
836
805
|
const key = path.fullPath;
|
|
837
|
-
const existingRecord = store.readEntry(key);
|
|
838
806
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
839
|
-
|
|
840
|
-
fullPath: key,
|
|
841
|
-
parent: path.parent,
|
|
842
|
-
propertyName: path.propertyName,
|
|
843
|
-
ttl: ttlToUse
|
|
844
|
-
});
|
|
845
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
846
|
-
luvio.storePublish(key, incomingRecord);
|
|
847
|
-
}
|
|
848
|
-
if (ttlToUse !== undefined) {
|
|
849
|
-
const storeMetadataParams = {
|
|
850
|
-
ttl: ttlToUse,
|
|
851
|
-
namespace: "interesttagging",
|
|
852
|
-
version: VERSION$1,
|
|
853
|
-
representationName: RepresentationType$1,
|
|
854
|
-
};
|
|
855
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
856
|
-
}
|
|
807
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "interesttagging", VERSION$1, RepresentationType$1, equals$1);
|
|
857
808
|
return createLink(key);
|
|
858
809
|
};
|
|
859
810
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -912,13 +863,15 @@ function createResourceRequest$2(config) {
|
|
|
912
863
|
};
|
|
913
864
|
}
|
|
914
865
|
|
|
915
|
-
const
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
866
|
+
const adapterName$2 = 'getTagCategoriesByTagId';
|
|
867
|
+
const getTagCategoriesByTagId_ConfigPropertyMetadata = [
|
|
868
|
+
generateParamConfigMetadata('limit', false),
|
|
869
|
+
generateParamConfigMetadata('offset', false),
|
|
870
|
+
generateParamConfigMetadata('orderBy', false),
|
|
871
|
+
generateParamConfigMetadata('sort', false),
|
|
872
|
+
generateParamConfigMetadata('tagId', false),
|
|
873
|
+
];
|
|
874
|
+
const getTagCategoriesByTagId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTagCategoriesByTagId_ConfigPropertyMetadata);
|
|
922
875
|
function createResourceParams$2(config) {
|
|
923
876
|
const resourceParams = {
|
|
924
877
|
queryParams: {
|
|
@@ -988,21 +941,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
988
941
|
});
|
|
989
942
|
}
|
|
990
943
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
991
|
-
|
|
992
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
993
|
-
const dispatchOptions = {
|
|
994
|
-
resourceRequestContext: {
|
|
995
|
-
requestCorrelator,
|
|
996
|
-
luvioRequestMethod: undefined,
|
|
997
|
-
},
|
|
998
|
-
eventObservers
|
|
999
|
-
};
|
|
1000
|
-
if (networkPriority !== 'normal') {
|
|
1001
|
-
dispatchOptions.overrides = {
|
|
1002
|
-
priority: networkPriority
|
|
1003
|
-
};
|
|
1004
|
-
}
|
|
1005
|
-
return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
|
|
944
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
1006
945
|
}
|
|
1007
946
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1008
947
|
const { luvio, config } = context;
|
|
@@ -1141,26 +1080,8 @@ const ingest = function InterestTagListRepresentationIngest(input, path, luvio,
|
|
|
1141
1080
|
}
|
|
1142
1081
|
}
|
|
1143
1082
|
const key = path.fullPath;
|
|
1144
|
-
const existingRecord = store.readEntry(key);
|
|
1145
1083
|
const ttlToUse = TTL;
|
|
1146
|
-
|
|
1147
|
-
fullPath: key,
|
|
1148
|
-
parent: path.parent,
|
|
1149
|
-
propertyName: path.propertyName,
|
|
1150
|
-
ttl: ttlToUse
|
|
1151
|
-
});
|
|
1152
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
1153
|
-
luvio.storePublish(key, incomingRecord);
|
|
1154
|
-
}
|
|
1155
|
-
{
|
|
1156
|
-
const storeMetadataParams = {
|
|
1157
|
-
ttl: ttlToUse,
|
|
1158
|
-
namespace: "interesttagging",
|
|
1159
|
-
version: VERSION,
|
|
1160
|
-
representationName: RepresentationType,
|
|
1161
|
-
};
|
|
1162
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1163
|
-
}
|
|
1084
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "interesttagging", VERSION, RepresentationType, equals);
|
|
1164
1085
|
return createLink(key);
|
|
1165
1086
|
};
|
|
1166
1087
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1225,13 +1146,15 @@ function createResourceRequest$1(config) {
|
|
|
1225
1146
|
};
|
|
1226
1147
|
}
|
|
1227
1148
|
|
|
1228
|
-
const
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1149
|
+
const adapterName$1 = 'getTagsByCategoryId';
|
|
1150
|
+
const getTagsByCategoryId_ConfigPropertyMetadata = [
|
|
1151
|
+
generateParamConfigMetadata('categoryId', false),
|
|
1152
|
+
generateParamConfigMetadata('limit', false),
|
|
1153
|
+
generateParamConfigMetadata('offset', false),
|
|
1154
|
+
generateParamConfigMetadata('orderBy', false),
|
|
1155
|
+
generateParamConfigMetadata('sort', false),
|
|
1156
|
+
];
|
|
1157
|
+
const getTagsByCategoryId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTagsByCategoryId_ConfigPropertyMetadata);
|
|
1235
1158
|
function createResourceParams$1(config) {
|
|
1236
1159
|
const resourceParams = {
|
|
1237
1160
|
queryParams: {
|
|
@@ -1301,21 +1224,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1301
1224
|
});
|
|
1302
1225
|
}
|
|
1303
1226
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1304
|
-
|
|
1305
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1306
|
-
const dispatchOptions = {
|
|
1307
|
-
resourceRequestContext: {
|
|
1308
|
-
requestCorrelator,
|
|
1309
|
-
luvioRequestMethod: undefined,
|
|
1310
|
-
},
|
|
1311
|
-
eventObservers
|
|
1312
|
-
};
|
|
1313
|
-
if (networkPriority !== 'normal') {
|
|
1314
|
-
dispatchOptions.overrides = {
|
|
1315
|
-
priority: networkPriority
|
|
1316
|
-
};
|
|
1317
|
-
}
|
|
1318
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
1227
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1319
1228
|
}
|
|
1320
1229
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1321
1230
|
const { luvio, config } = context;
|
|
@@ -1392,13 +1301,15 @@ function createResourceRequest(config) {
|
|
|
1392
1301
|
};
|
|
1393
1302
|
}
|
|
1394
1303
|
|
|
1395
|
-
const
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1304
|
+
const adapterName = 'getTagsByRecordId';
|
|
1305
|
+
const getTagsByRecordId_ConfigPropertyMetadata = [
|
|
1306
|
+
generateParamConfigMetadata('recordId', true),
|
|
1307
|
+
generateParamConfigMetadata('limit', false),
|
|
1308
|
+
generateParamConfigMetadata('offset', false),
|
|
1309
|
+
generateParamConfigMetadata('orderBy', false),
|
|
1310
|
+
generateParamConfigMetadata('sort', false),
|
|
1311
|
+
];
|
|
1312
|
+
const getTagsByRecordId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTagsByRecordId_ConfigPropertyMetadata);
|
|
1402
1313
|
function createResourceParams(config) {
|
|
1403
1314
|
const resourceParams = {
|
|
1404
1315
|
urlParams: {
|
|
@@ -1471,21 +1382,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1471
1382
|
});
|
|
1472
1383
|
}
|
|
1473
1384
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1474
|
-
|
|
1475
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1476
|
-
const dispatchOptions = {
|
|
1477
|
-
resourceRequestContext: {
|
|
1478
|
-
requestCorrelator,
|
|
1479
|
-
luvioRequestMethod: undefined,
|
|
1480
|
-
},
|
|
1481
|
-
eventObservers
|
|
1482
|
-
};
|
|
1483
|
-
if (networkPriority !== 'normal') {
|
|
1484
|
-
dispatchOptions.overrides = {
|
|
1485
|
-
priority: networkPriority
|
|
1486
|
-
};
|
|
1487
|
-
}
|
|
1488
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
1385
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1489
1386
|
}
|
|
1490
1387
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1491
1388
|
const { luvio, config } = context;
|
|
@@ -1562,4 +1459,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1562
1459
|
});
|
|
1563
1460
|
|
|
1564
1461
|
export { createInterestTagEntityAssignment, getInterestTagEntityAssignments, getInterestTagEntityAssignments_imperative, getTagCategoriesByTagId, getTagCategoriesByTagId_imperative, getTagsByCategoryId, getTagsByCategoryId_imperative, getTagsByRecordId, getTagsByRecordId_imperative };
|
|
1565
|
-
// version: 1.213.
|
|
1462
|
+
// version: 1.213.2-1eb996209
|