@salesforce/lds-adapters-industries-audit-trail-export 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-audit-trail-export.js +43 -118
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/createAuditTrailFileExport.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/deleteAuditTrailFileExport.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getAuditTrailFileExport.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getAuditTrailFileExports.d.ts +3 -2
- package/package.json +1 -1
- package/sfdc/index.js +45 -120
|
@@ -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, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, StoreKeyMap, 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 = 'audit-trail-export';
|
|
52
70
|
|
|
53
71
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -138,26 +156,8 @@ const ingest$2 = function AuditTrailExportOutputRepresentationIngest(input, path
|
|
|
138
156
|
}
|
|
139
157
|
}
|
|
140
158
|
const key = keyBuilderFromType(luvio, input);
|
|
141
|
-
const existingRecord = store.readEntry(key);
|
|
142
159
|
const ttlToUse = TTL$2;
|
|
143
|
-
|
|
144
|
-
fullPath: key,
|
|
145
|
-
parent: path.parent,
|
|
146
|
-
propertyName: path.propertyName,
|
|
147
|
-
ttl: ttlToUse
|
|
148
|
-
});
|
|
149
|
-
if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
|
|
150
|
-
luvio.storePublish(key, incomingRecord);
|
|
151
|
-
}
|
|
152
|
-
{
|
|
153
|
-
const storeMetadataParams = {
|
|
154
|
-
ttl: ttlToUse,
|
|
155
|
-
namespace: "audit-trail-export",
|
|
156
|
-
version: VERSION$2,
|
|
157
|
-
representationName: RepresentationType$2,
|
|
158
|
-
};
|
|
159
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
160
|
-
}
|
|
160
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "audit-trail-export", VERSION$2, RepresentationType$2, equals$2);
|
|
161
161
|
return createLink(key);
|
|
162
162
|
};
|
|
163
163
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -221,26 +221,8 @@ const ingest$1 = function AuditTrailExportListOutputRepresentationIngest(input,
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
const key = path.fullPath;
|
|
224
|
-
const existingRecord = store.readEntry(key);
|
|
225
224
|
const ttlToUse = TTL$1;
|
|
226
|
-
|
|
227
|
-
fullPath: key,
|
|
228
|
-
parent: path.parent,
|
|
229
|
-
propertyName: path.propertyName,
|
|
230
|
-
ttl: ttlToUse
|
|
231
|
-
});
|
|
232
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
233
|
-
luvio.storePublish(key, incomingRecord);
|
|
234
|
-
}
|
|
235
|
-
{
|
|
236
|
-
const storeMetadataParams = {
|
|
237
|
-
ttl: ttlToUse,
|
|
238
|
-
namespace: "audit-trail-export",
|
|
239
|
-
version: VERSION$1,
|
|
240
|
-
representationName: RepresentationType$1,
|
|
241
|
-
};
|
|
242
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
243
|
-
}
|
|
225
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "audit-trail-export", VERSION$1, RepresentationType$1, equals$1);
|
|
244
226
|
return createLink(key);
|
|
245
227
|
};
|
|
246
228
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -305,13 +287,9 @@ function createResourceRequest$3(config) {
|
|
|
305
287
|
};
|
|
306
288
|
}
|
|
307
289
|
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
required: [],
|
|
312
|
-
optional: []
|
|
313
|
-
}
|
|
314
|
-
};
|
|
290
|
+
const adapterName$3 = 'getAuditTrailFileExports';
|
|
291
|
+
const getAuditTrailFileExports_ConfigPropertyMetadata = [];
|
|
292
|
+
const getAuditTrailFileExports_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getAuditTrailFileExports_ConfigPropertyMetadata);
|
|
315
293
|
function createResourceParams$3(config) {
|
|
316
294
|
const resourceParams = {};
|
|
317
295
|
return resourceParams;
|
|
@@ -368,21 +346,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
368
346
|
});
|
|
369
347
|
}
|
|
370
348
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
371
|
-
|
|
372
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
373
|
-
const dispatchOptions = {
|
|
374
|
-
resourceRequestContext: {
|
|
375
|
-
requestCorrelator,
|
|
376
|
-
luvioRequestMethod: undefined,
|
|
377
|
-
},
|
|
378
|
-
eventObservers
|
|
379
|
-
};
|
|
380
|
-
if (networkPriority !== 'normal') {
|
|
381
|
-
dispatchOptions.overrides = {
|
|
382
|
-
priority: networkPriority
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
|
|
349
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
386
350
|
}
|
|
387
351
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
388
352
|
const { luvio, config } = context;
|
|
@@ -483,13 +447,11 @@ function createResourceRequest$2(config) {
|
|
|
483
447
|
};
|
|
484
448
|
}
|
|
485
449
|
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
};
|
|
450
|
+
const adapterName$2 = 'createAuditTrailFileExport';
|
|
451
|
+
const createAuditTrailFileExport_ConfigPropertyMetadata = [
|
|
452
|
+
generateParamConfigMetadata('auditTrailExportInput', true),
|
|
453
|
+
];
|
|
454
|
+
const createAuditTrailFileExport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createAuditTrailFileExport_ConfigPropertyMetadata);
|
|
493
455
|
function createResourceParams$2(config) {
|
|
494
456
|
const resourceParams = {
|
|
495
457
|
body: {
|
|
@@ -580,14 +542,11 @@ function createResourceRequest$1(config) {
|
|
|
580
542
|
};
|
|
581
543
|
}
|
|
582
544
|
|
|
583
|
-
const adapterName = 'deleteAuditTrailFileExport';
|
|
584
|
-
const
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
optional: []
|
|
589
|
-
}
|
|
590
|
-
};
|
|
545
|
+
const adapterName$1 = 'deleteAuditTrailFileExport';
|
|
546
|
+
const deleteAuditTrailFileExport_ConfigPropertyMetadata = [
|
|
547
|
+
generateParamConfigMetadata('requestIdentifier', true),
|
|
548
|
+
];
|
|
549
|
+
const deleteAuditTrailFileExport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, deleteAuditTrailFileExport_ConfigPropertyMetadata);
|
|
591
550
|
function createResourceParams$1(config) {
|
|
592
551
|
const resourceParams = {
|
|
593
552
|
urlParams: {
|
|
@@ -639,7 +598,7 @@ const deleteAuditTrailFileExportAdapterFactory = (luvio) => {
|
|
|
639
598
|
const config = validateAdapterConfig$1(untrustedConfig, deleteAuditTrailFileExport_ConfigPropertyNames);
|
|
640
599
|
// Invalid or incomplete config
|
|
641
600
|
if (config === null) {
|
|
642
|
-
throw new Error(`Invalid config for "${adapterName}"`);
|
|
601
|
+
throw new Error(`Invalid config for "${adapterName$1}"`);
|
|
643
602
|
}
|
|
644
603
|
return buildNetworkSnapshot$1(luvio, config);
|
|
645
604
|
};
|
|
@@ -745,26 +704,8 @@ const ingest = function AuditTrailFileDownloadOutputRepresentationIngest(input,
|
|
|
745
704
|
}
|
|
746
705
|
}
|
|
747
706
|
const key = path.fullPath;
|
|
748
|
-
const existingRecord = store.readEntry(key);
|
|
749
707
|
const ttlToUse = TTL;
|
|
750
|
-
|
|
751
|
-
fullPath: key,
|
|
752
|
-
parent: path.parent,
|
|
753
|
-
propertyName: path.propertyName,
|
|
754
|
-
ttl: ttlToUse
|
|
755
|
-
});
|
|
756
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
757
|
-
luvio.storePublish(key, incomingRecord);
|
|
758
|
-
}
|
|
759
|
-
{
|
|
760
|
-
const storeMetadataParams = {
|
|
761
|
-
ttl: ttlToUse,
|
|
762
|
-
namespace: "audit-trail-export",
|
|
763
|
-
version: VERSION,
|
|
764
|
-
representationName: RepresentationType,
|
|
765
|
-
};
|
|
766
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
767
|
-
}
|
|
708
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "audit-trail-export", VERSION, RepresentationType, equals);
|
|
768
709
|
return createLink(key);
|
|
769
710
|
};
|
|
770
711
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -829,13 +770,11 @@ function createResourceRequest(config) {
|
|
|
829
770
|
};
|
|
830
771
|
}
|
|
831
772
|
|
|
832
|
-
const
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
}
|
|
838
|
-
};
|
|
773
|
+
const adapterName = 'getAuditTrailFileExport';
|
|
774
|
+
const getAuditTrailFileExport_ConfigPropertyMetadata = [
|
|
775
|
+
generateParamConfigMetadata('requestIdentifier', true),
|
|
776
|
+
];
|
|
777
|
+
const getAuditTrailFileExport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAuditTrailFileExport_ConfigPropertyMetadata);
|
|
839
778
|
function createResourceParams(config) {
|
|
840
779
|
const resourceParams = {
|
|
841
780
|
urlParams: {
|
|
@@ -901,21 +840,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
901
840
|
});
|
|
902
841
|
}
|
|
903
842
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
904
|
-
|
|
905
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
906
|
-
const dispatchOptions = {
|
|
907
|
-
resourceRequestContext: {
|
|
908
|
-
requestCorrelator,
|
|
909
|
-
luvioRequestMethod: undefined,
|
|
910
|
-
},
|
|
911
|
-
eventObservers
|
|
912
|
-
};
|
|
913
|
-
if (networkPriority !== 'normal') {
|
|
914
|
-
dispatchOptions.overrides = {
|
|
915
|
-
priority: networkPriority
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
843
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
919
844
|
}
|
|
920
845
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
921
846
|
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 = "audit-trail-export";
|
|
@@ -1,9 +1,10 @@
|
|
|
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 { AuditTrailExportInputRepresentation as types_AuditTrailExportInputRepresentation_AuditTrailExportInputRepresentation } from '../types/AuditTrailExportInputRepresentation';
|
|
3
4
|
import { ResourceRequestConfig as resources_postConnectServiceExcellenceAuditTrailExports_ResourceRequestConfig } from '../resources/postConnectServiceExcellenceAuditTrailExports';
|
|
4
|
-
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
5
5
|
import { AuditTrailExportOutputRepresentation as types_AuditTrailExportOutputRepresentation_AuditTrailExportOutputRepresentation } from '../types/AuditTrailExportOutputRepresentation';
|
|
6
6
|
export declare const adapterName = "createAuditTrailFileExport";
|
|
7
|
+
export declare const createAuditTrailFileExport_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
8
|
export declare const createAuditTrailFileExport_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
9
|
export interface CreateAuditTrailFileExportConfig {
|
|
9
10
|
auditTrailExportInput: types_AuditTrailExportInputRepresentation_AuditTrailExportInputRepresentation;
|
|
@@ -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_deleteConnectServiceExcellenceAuditTrailExportsByRequestIdentifier_ResourceRequestConfig } from '../resources/deleteConnectServiceExcellenceAuditTrailExportsByRequestIdentifier';
|
|
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 = "deleteAuditTrailFileExport";
|
|
5
|
+
export declare const deleteAuditTrailFileExport_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
5
6
|
export declare const deleteAuditTrailFileExport_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
6
7
|
export interface DeleteAuditTrailFileExportConfig {
|
|
7
8
|
requestIdentifier: 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_getConnectServiceExcellenceAuditTrailExportsDownloadByRequestIdentifier_ResourceRequestConfig } from '../resources/getConnectServiceExcellenceAuditTrailExportsDownloadByRequestIdentifier';
|
|
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 { AuditTrailFileDownloadOutputRepresentation as types_AuditTrailFileDownloadOutputRepresentation_AuditTrailFileDownloadOutputRepresentation } from '../types/AuditTrailFileDownloadOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "getAuditTrailFileExport";
|
|
6
|
+
export declare const getAuditTrailFileExport_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getAuditTrailFileExport_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetAuditTrailFileExportConfig {
|
|
8
9
|
requestIdentifier: 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_getConnectServiceExcellenceAuditTrailExports_ResourceRequestConfig } from '../resources/getConnectServiceExcellenceAuditTrailExports';
|
|
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 { AuditTrailExportListOutputRepresentation as types_AuditTrailExportListOutputRepresentation_AuditTrailExportListOutputRepresentation } from '../types/AuditTrailExportListOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "getAuditTrailFileExports";
|
|
6
|
+
export declare const getAuditTrailFileExports_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getAuditTrailFileExports_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetAuditTrailFileExportsConfig {
|
|
8
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-audit-trail-export",
|
|
3
|
-
"version": "1.213.
|
|
3
|
+
"version": "1.213.2",
|
|
4
4
|
"description": "contains end points for audit trail file export",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/umd/es2018/industries-audit-trail-export.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, typeCheckScalars, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2 } 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 = 'audit-trail-export';
|
|
62
80
|
|
|
63
81
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -187,26 +205,8 @@ const ingest$2 = function AuditTrailExportOutputRepresentationIngest(input, path
|
|
|
187
205
|
}
|
|
188
206
|
}
|
|
189
207
|
const key = keyBuilderFromType(luvio, input);
|
|
190
|
-
const existingRecord = store.readEntry(key);
|
|
191
208
|
const ttlToUse = TTL$2;
|
|
192
|
-
|
|
193
|
-
fullPath: key,
|
|
194
|
-
parent: path.parent,
|
|
195
|
-
propertyName: path.propertyName,
|
|
196
|
-
ttl: ttlToUse
|
|
197
|
-
});
|
|
198
|
-
if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
|
|
199
|
-
luvio.storePublish(key, incomingRecord);
|
|
200
|
-
}
|
|
201
|
-
{
|
|
202
|
-
const storeMetadataParams = {
|
|
203
|
-
ttl: ttlToUse,
|
|
204
|
-
namespace: "audit-trail-export",
|
|
205
|
-
version: VERSION$2,
|
|
206
|
-
representationName: RepresentationType$2,
|
|
207
|
-
};
|
|
208
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
209
|
-
}
|
|
209
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "audit-trail-export", VERSION$2, RepresentationType$2, equals$2);
|
|
210
210
|
return createLink(key);
|
|
211
211
|
};
|
|
212
212
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -256,13 +256,11 @@ function createResourceRequest$3(config) {
|
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
};
|
|
259
|
+
const adapterName$3 = 'createAuditTrailFileExport';
|
|
260
|
+
const createAuditTrailFileExport_ConfigPropertyMetadata = [
|
|
261
|
+
generateParamConfigMetadata('auditTrailExportInput', true),
|
|
262
|
+
];
|
|
263
|
+
const createAuditTrailFileExport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createAuditTrailFileExport_ConfigPropertyMetadata);
|
|
266
264
|
function createResourceParams$3(config) {
|
|
267
265
|
const resourceParams = {
|
|
268
266
|
body: {
|
|
@@ -353,14 +351,11 @@ function createResourceRequest$2(config) {
|
|
|
353
351
|
};
|
|
354
352
|
}
|
|
355
353
|
|
|
356
|
-
const adapterName = 'deleteAuditTrailFileExport';
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
optional: []
|
|
362
|
-
}
|
|
363
|
-
};
|
|
354
|
+
const adapterName$2 = 'deleteAuditTrailFileExport';
|
|
355
|
+
const deleteAuditTrailFileExport_ConfigPropertyMetadata = [
|
|
356
|
+
generateParamConfigMetadata('requestIdentifier', true),
|
|
357
|
+
];
|
|
358
|
+
const deleteAuditTrailFileExport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteAuditTrailFileExport_ConfigPropertyMetadata);
|
|
364
359
|
function createResourceParams$2(config) {
|
|
365
360
|
const resourceParams = {
|
|
366
361
|
urlParams: {
|
|
@@ -412,7 +407,7 @@ const deleteAuditTrailFileExportAdapterFactory = (luvio) => {
|
|
|
412
407
|
const config = validateAdapterConfig$2(untrustedConfig, deleteAuditTrailFileExport_ConfigPropertyNames);
|
|
413
408
|
// Invalid or incomplete config
|
|
414
409
|
if (config === null) {
|
|
415
|
-
throw new Error(`Invalid config for "${adapterName}"`);
|
|
410
|
+
throw new Error(`Invalid config for "${adapterName$2}"`);
|
|
416
411
|
}
|
|
417
412
|
return buildNetworkSnapshot$2(luvio, config);
|
|
418
413
|
};
|
|
@@ -518,26 +513,8 @@ const ingest$1 = function AuditTrailFileDownloadOutputRepresentationIngest(input
|
|
|
518
513
|
}
|
|
519
514
|
}
|
|
520
515
|
const key = path.fullPath;
|
|
521
|
-
const existingRecord = store.readEntry(key);
|
|
522
516
|
const ttlToUse = TTL$1;
|
|
523
|
-
|
|
524
|
-
fullPath: key,
|
|
525
|
-
parent: path.parent,
|
|
526
|
-
propertyName: path.propertyName,
|
|
527
|
-
ttl: ttlToUse
|
|
528
|
-
});
|
|
529
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
530
|
-
luvio.storePublish(key, incomingRecord);
|
|
531
|
-
}
|
|
532
|
-
{
|
|
533
|
-
const storeMetadataParams = {
|
|
534
|
-
ttl: ttlToUse,
|
|
535
|
-
namespace: "audit-trail-export",
|
|
536
|
-
version: VERSION$1,
|
|
537
|
-
representationName: RepresentationType$1,
|
|
538
|
-
};
|
|
539
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
540
|
-
}
|
|
517
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "audit-trail-export", VERSION$1, RepresentationType$1, equals$1);
|
|
541
518
|
return createLink(key);
|
|
542
519
|
};
|
|
543
520
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -602,13 +579,11 @@ function createResourceRequest$1(config) {
|
|
|
602
579
|
};
|
|
603
580
|
}
|
|
604
581
|
|
|
605
|
-
const
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}
|
|
611
|
-
};
|
|
582
|
+
const adapterName$1 = 'getAuditTrailFileExport';
|
|
583
|
+
const getAuditTrailFileExport_ConfigPropertyMetadata = [
|
|
584
|
+
generateParamConfigMetadata('requestIdentifier', true),
|
|
585
|
+
];
|
|
586
|
+
const getAuditTrailFileExport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAuditTrailFileExport_ConfigPropertyMetadata);
|
|
612
587
|
function createResourceParams$1(config) {
|
|
613
588
|
const resourceParams = {
|
|
614
589
|
urlParams: {
|
|
@@ -674,21 +649,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
674
649
|
});
|
|
675
650
|
}
|
|
676
651
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
677
|
-
|
|
678
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
679
|
-
const dispatchOptions = {
|
|
680
|
-
resourceRequestContext: {
|
|
681
|
-
requestCorrelator,
|
|
682
|
-
luvioRequestMethod: undefined,
|
|
683
|
-
},
|
|
684
|
-
eventObservers
|
|
685
|
-
};
|
|
686
|
-
if (networkPriority !== 'normal') {
|
|
687
|
-
dispatchOptions.overrides = {
|
|
688
|
-
priority: networkPriority
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
652
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
692
653
|
}
|
|
693
654
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
694
655
|
const { luvio, config } = context;
|
|
@@ -764,26 +725,8 @@ const ingest = function AuditTrailExportListOutputRepresentationIngest(input, pa
|
|
|
764
725
|
}
|
|
765
726
|
}
|
|
766
727
|
const key = path.fullPath;
|
|
767
|
-
const existingRecord = store.readEntry(key);
|
|
768
728
|
const ttlToUse = TTL;
|
|
769
|
-
|
|
770
|
-
fullPath: key,
|
|
771
|
-
parent: path.parent,
|
|
772
|
-
propertyName: path.propertyName,
|
|
773
|
-
ttl: ttlToUse
|
|
774
|
-
});
|
|
775
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
776
|
-
luvio.storePublish(key, incomingRecord);
|
|
777
|
-
}
|
|
778
|
-
{
|
|
779
|
-
const storeMetadataParams = {
|
|
780
|
-
ttl: ttlToUse,
|
|
781
|
-
namespace: "audit-trail-export",
|
|
782
|
-
version: VERSION,
|
|
783
|
-
representationName: RepresentationType,
|
|
784
|
-
};
|
|
785
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
786
|
-
}
|
|
729
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "audit-trail-export", VERSION, RepresentationType, equals);
|
|
787
730
|
return createLink(key);
|
|
788
731
|
};
|
|
789
732
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -848,13 +791,9 @@ function createResourceRequest(config) {
|
|
|
848
791
|
};
|
|
849
792
|
}
|
|
850
793
|
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
required: [],
|
|
855
|
-
optional: []
|
|
856
|
-
}
|
|
857
|
-
};
|
|
794
|
+
const adapterName = 'getAuditTrailFileExports';
|
|
795
|
+
const getAuditTrailFileExports_ConfigPropertyMetadata = [];
|
|
796
|
+
const getAuditTrailFileExports_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAuditTrailFileExports_ConfigPropertyMetadata);
|
|
858
797
|
function createResourceParams(config) {
|
|
859
798
|
const resourceParams = {};
|
|
860
799
|
return resourceParams;
|
|
@@ -911,21 +850,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
911
850
|
});
|
|
912
851
|
}
|
|
913
852
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
914
|
-
|
|
915
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
916
|
-
const dispatchOptions = {
|
|
917
|
-
resourceRequestContext: {
|
|
918
|
-
requestCorrelator,
|
|
919
|
-
luvioRequestMethod: undefined,
|
|
920
|
-
},
|
|
921
|
-
eventObservers
|
|
922
|
-
};
|
|
923
|
-
if (networkPriority !== 'normal') {
|
|
924
|
-
dispatchOptions.overrides = {
|
|
925
|
-
priority: networkPriority
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
853
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
929
854
|
}
|
|
930
855
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
931
856
|
const { luvio, config } = context;
|
|
@@ -969,7 +894,7 @@ function bindExportsTo(luvio) {
|
|
|
969
894
|
}
|
|
970
895
|
return {
|
|
971
896
|
createAuditTrailFileExport: unwrapSnapshotData(createAuditTrailFileExportAdapterFactory),
|
|
972
|
-
deleteAuditTrailFileExport: createLDSAdapter(luvio, adapterName, deleteAuditTrailFileExportAdapterFactory),
|
|
897
|
+
deleteAuditTrailFileExport: createLDSAdapter(luvio, adapterName$2, deleteAuditTrailFileExportAdapterFactory),
|
|
973
898
|
getAuditTrailFileExport: createWireAdapterConstructor(luvio, getAuditTrailFileExport_ldsAdapter, getAuditTrailFileExportMetadata),
|
|
974
899
|
getAuditTrailFileExports: createWireAdapterConstructor(luvio, getAuditTrailFileExports_ldsAdapter, getAuditTrailFileExportsMetadata),
|
|
975
900
|
// Imperative GET Adapters
|
|
@@ -989,4 +914,4 @@ withDefaultLuvio((luvio) => {
|
|
|
989
914
|
});
|
|
990
915
|
|
|
991
916
|
export { createAuditTrailFileExport, deleteAuditTrailFileExport, getAuditTrailFileExport, getAuditTrailFileExport_imperative, getAuditTrailFileExports, getAuditTrailFileExports_imperative };
|
|
992
|
-
// version: 1.213.
|
|
917
|
+
// version: 1.213.2-1eb996209
|