@salesforce/lds-adapters-industries-explainability 1.298.0 → 1.300.0
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-explainability.js +370 -106
- package/dist/es/es2018/types/src/generated/adapters/getExplainabilityDetailedActionLog.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectDecisionExplainerDetailedActionLog.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/types/ExplainabilityActionLogDetailRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ExplainabilityDetailedActionLogDetailRepresentation.d.ts +62 -0
- package/package.json +4 -4
- package/sfdc/index.js +310 -34
- package/src/raml/api.raml +79 -0
- package/src/raml/luvio.raml +7 -0
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, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -89,7 +89,7 @@ function createLink(ref) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
function validate$
|
|
92
|
+
function validate$4(obj, path = 'ExplainabilityActionLogDetailRepresentation') {
|
|
93
93
|
const v_error = (() => {
|
|
94
94
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
95
95
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -113,6 +113,11 @@ function validate$3(obj, path = 'ExplainabilityActionLogDetailRepresentation') {
|
|
|
113
113
|
return new TypeError('Expected "string" but received "' + typeof obj_additionalFilter + '" (at "' + path_additionalFilter + '")');
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
+
const obj_applicationLogCalenderDate = obj.applicationLogCalenderDate;
|
|
117
|
+
const path_applicationLogCalenderDate = path + '.applicationLogCalenderDate';
|
|
118
|
+
if (typeof obj_applicationLogCalenderDate !== 'string') {
|
|
119
|
+
return new TypeError('Expected "string" but received "' + typeof obj_applicationLogCalenderDate + '" (at "' + path_applicationLogCalenderDate + '")');
|
|
120
|
+
}
|
|
116
121
|
const obj_applicationLogDate = obj.applicationLogDate;
|
|
117
122
|
const path_applicationLogDate = path + '.applicationLogDate';
|
|
118
123
|
if (typeof obj_applicationLogDate !== 'string') {
|
|
@@ -171,9 +176,9 @@ function validate$3(obj, path = 'ExplainabilityActionLogDetailRepresentation') {
|
|
|
171
176
|
return v_error === undefined ? null : v_error;
|
|
172
177
|
}
|
|
173
178
|
|
|
174
|
-
const TTL$
|
|
175
|
-
const VERSION$
|
|
176
|
-
function validate$
|
|
179
|
+
const TTL$2 = 10000;
|
|
180
|
+
const VERSION$2 = "d0452c2b6e53e2a843a03bf30a275e18";
|
|
181
|
+
function validate$3(obj, path = 'ExplainabilityActionLogsRepresentation') {
|
|
177
182
|
const v_error = (() => {
|
|
178
183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
179
184
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -186,7 +191,7 @@ function validate$2(obj, path = 'ExplainabilityActionLogsRepresentation') {
|
|
|
186
191
|
for (let i = 0; i < obj_actionLogs.length; i++) {
|
|
187
192
|
const obj_actionLogs_item = obj_actionLogs[i];
|
|
188
193
|
const path_actionLogs_item = path_actionLogs + '[' + i + ']';
|
|
189
|
-
const referencepath_actionLogs_itemValidationError = validate$
|
|
194
|
+
const referencepath_actionLogs_itemValidationError = validate$4(obj_actionLogs_item, path_actionLogs_item);
|
|
190
195
|
if (referencepath_actionLogs_itemValidationError !== null) {
|
|
191
196
|
let message = 'Object doesn\'t match ExplainabilityActionLogDetailRepresentation (at "' + path_actionLogs_item + '")\n';
|
|
192
197
|
message += referencepath_actionLogs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -203,11 +208,276 @@ function validate$2(obj, path = 'ExplainabilityActionLogsRepresentation') {
|
|
|
203
208
|
})();
|
|
204
209
|
return v_error === undefined ? null : v_error;
|
|
205
210
|
}
|
|
206
|
-
const RepresentationType$
|
|
211
|
+
const RepresentationType$2 = 'ExplainabilityActionLogsRepresentation';
|
|
212
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
213
|
+
return input;
|
|
214
|
+
}
|
|
215
|
+
const select$5 = function ExplainabilityActionLogsRepresentationSelect() {
|
|
216
|
+
return {
|
|
217
|
+
kind: 'Fragment',
|
|
218
|
+
version: VERSION$2,
|
|
219
|
+
private: [],
|
|
220
|
+
opaque: true
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
function equals$2(existing, incoming) {
|
|
224
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
225
|
+
return false;
|
|
226
|
+
}
|
|
227
|
+
return true;
|
|
228
|
+
}
|
|
229
|
+
const ingest$2 = function ExplainabilityActionLogsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
230
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
231
|
+
const validateError = validate$3(input);
|
|
232
|
+
if (validateError !== null) {
|
|
233
|
+
throw validateError;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
const key = path.fullPath;
|
|
237
|
+
const ttlToUse = TTL$2;
|
|
238
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "explainability", VERSION$2, RepresentationType$2, equals$2);
|
|
239
|
+
return createLink(key);
|
|
240
|
+
};
|
|
241
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
242
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
243
|
+
const rootKey = fullPathFactory();
|
|
244
|
+
rootKeySet.set(rootKey, {
|
|
245
|
+
namespace: keyPrefix,
|
|
246
|
+
representationName: RepresentationType$2,
|
|
247
|
+
mergeable: false
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function select$4(luvio, params) {
|
|
252
|
+
return select$5();
|
|
253
|
+
}
|
|
254
|
+
function keyBuilder$4(luvio, params) {
|
|
255
|
+
return keyPrefix + '::ExplainabilityActionLogsRepresentation:(' + 'actionContextCode:' + params.queryParams.actionContextCode + ',' + 'applicationSubType:' + params.queryParams.applicationSubType + ',' + 'applicationType:' + params.queryParams.applicationType + ',' + 'createdAfter:' + params.queryParams.createdAfter + ',' + 'createdBefore:' + params.queryParams.createdBefore + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'processType:' + params.queryParams.processType + ',' + 'queryMore:' + params.queryParams.queryMore + ',' + 'primaryFilter:' + params.queryParams.primaryFilter + ',' + 'secondaryFilter:' + params.queryParams.secondaryFilter + ',' + 'additionalFilter:' + params.queryParams.additionalFilter + ',' + 'sortDirection:' + params.queryParams.sortDirection + ')';
|
|
256
|
+
}
|
|
257
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
258
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
|
|
259
|
+
}
|
|
260
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
261
|
+
const { body } = response;
|
|
262
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
263
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
264
|
+
const snapshot = luvio.storeLookup({
|
|
265
|
+
recordId: key,
|
|
266
|
+
node: select$4(),
|
|
267
|
+
variables: {},
|
|
268
|
+
}, snapshotRefresh);
|
|
269
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
270
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
271
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
deepFreeze(snapshot.data);
|
|
275
|
+
return snapshot;
|
|
276
|
+
}
|
|
277
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
278
|
+
const key = keyBuilder$4(luvio, params);
|
|
279
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
280
|
+
const storeMetadataParams = {
|
|
281
|
+
ttl: TTL$2,
|
|
282
|
+
namespace: keyPrefix,
|
|
283
|
+
version: VERSION$2,
|
|
284
|
+
representationName: RepresentationType$2
|
|
285
|
+
};
|
|
286
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
287
|
+
return errorSnapshot;
|
|
288
|
+
}
|
|
289
|
+
function createResourceRequest$2(config) {
|
|
290
|
+
const headers = {};
|
|
291
|
+
return {
|
|
292
|
+
baseUri: '/services/data/v62.0',
|
|
293
|
+
basePath: '/connect/decision-explainer/action-logs',
|
|
294
|
+
method: 'get',
|
|
295
|
+
body: null,
|
|
296
|
+
urlParams: {},
|
|
297
|
+
queryParams: config.queryParams,
|
|
298
|
+
headers,
|
|
299
|
+
priority: 'normal',
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
const adapterName$2 = 'getExplainabilityActionLogs';
|
|
304
|
+
const getExplainabilityActionLogs_ConfigPropertyMetadata = [
|
|
305
|
+
generateParamConfigMetadata('actionContextCode', false, 1 /* QueryParameter */, 0 /* String */),
|
|
306
|
+
generateParamConfigMetadata('applicationSubType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
307
|
+
generateParamConfigMetadata('applicationType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
308
|
+
generateParamConfigMetadata('createdAfter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
309
|
+
generateParamConfigMetadata('createdBefore', false, 1 /* QueryParameter */, 0 /* String */),
|
|
310
|
+
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
311
|
+
generateParamConfigMetadata('processType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
312
|
+
generateParamConfigMetadata('queryMore', false, 1 /* QueryParameter */, 0 /* String */),
|
|
313
|
+
generateParamConfigMetadata('primaryFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
314
|
+
generateParamConfigMetadata('secondaryFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
315
|
+
generateParamConfigMetadata('additionalFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
316
|
+
generateParamConfigMetadata('sortDirection', false, 1 /* QueryParameter */, 0 /* String */),
|
|
317
|
+
];
|
|
318
|
+
const getExplainabilityActionLogs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getExplainabilityActionLogs_ConfigPropertyMetadata);
|
|
319
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getExplainabilityActionLogs_ConfigPropertyMetadata);
|
|
320
|
+
function keyBuilder$3(luvio, config) {
|
|
321
|
+
const resourceParams = createResourceParams$2(config);
|
|
322
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
323
|
+
}
|
|
324
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
325
|
+
const config = {};
|
|
326
|
+
typeCheckConfig$3(untrustedConfig, config, getExplainabilityActionLogs_ConfigPropertyMetadata);
|
|
327
|
+
return config;
|
|
328
|
+
}
|
|
329
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
330
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
331
|
+
return null;
|
|
332
|
+
}
|
|
333
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
334
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
335
|
+
}
|
|
336
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
337
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
338
|
+
return null;
|
|
339
|
+
}
|
|
340
|
+
return config;
|
|
341
|
+
}
|
|
342
|
+
function adapterFragment$1(luvio, config) {
|
|
343
|
+
createResourceParams$2(config);
|
|
344
|
+
return select$4();
|
|
345
|
+
}
|
|
346
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
347
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
348
|
+
config,
|
|
349
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
350
|
+
});
|
|
351
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
352
|
+
}
|
|
353
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
354
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
355
|
+
config,
|
|
356
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
357
|
+
});
|
|
358
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
359
|
+
}
|
|
360
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
361
|
+
const resourceParams = createResourceParams$2(config);
|
|
362
|
+
const request = createResourceRequest$2(resourceParams);
|
|
363
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
364
|
+
.then((response) => {
|
|
365
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
366
|
+
const cache = new StoreKeyMap();
|
|
367
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
368
|
+
return cache;
|
|
369
|
+
});
|
|
370
|
+
}, (response) => {
|
|
371
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
375
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
376
|
+
}
|
|
377
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
378
|
+
const { luvio, config } = context;
|
|
379
|
+
const selector = {
|
|
380
|
+
recordId: keyBuilder$3(luvio, config),
|
|
381
|
+
node: adapterFragment$1(luvio, config),
|
|
382
|
+
variables: {},
|
|
383
|
+
};
|
|
384
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
385
|
+
config,
|
|
386
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
387
|
+
});
|
|
388
|
+
return cacheSnapshot;
|
|
389
|
+
}
|
|
390
|
+
const getExplainabilityActionLogsAdapterFactory = (luvio) => function explainability__getExplainabilityActionLogs(untrustedConfig, requestContext) {
|
|
391
|
+
const config = validateAdapterConfig$2(untrustedConfig, getExplainabilityActionLogs_ConfigPropertyNames);
|
|
392
|
+
// Invalid or incomplete config
|
|
393
|
+
if (config === null) {
|
|
394
|
+
return null;
|
|
395
|
+
}
|
|
396
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
397
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
const TTL$1 = 10000;
|
|
401
|
+
const VERSION$1 = "2ead56c771f0c2cc2857826a85e490c8";
|
|
402
|
+
function validate$2(obj, path = 'ExplainabilityDetailedActionLogDetailRepresentation') {
|
|
403
|
+
const v_error = (() => {
|
|
404
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
405
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
406
|
+
}
|
|
407
|
+
const obj_actionContextCode = obj.actionContextCode;
|
|
408
|
+
const path_actionContextCode = path + '.actionContextCode';
|
|
409
|
+
if (typeof obj_actionContextCode !== 'string') {
|
|
410
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionContextCode + '" (at "' + path_actionContextCode + '")');
|
|
411
|
+
}
|
|
412
|
+
const obj_actionLog = obj.actionLog;
|
|
413
|
+
const path_actionLog = path + '.actionLog';
|
|
414
|
+
if (typeof obj_actionLog !== 'string') {
|
|
415
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionLog + '" (at "' + path_actionLog + '")');
|
|
416
|
+
}
|
|
417
|
+
if (obj.additionalFilter !== undefined) {
|
|
418
|
+
const obj_additionalFilter = obj.additionalFilter;
|
|
419
|
+
const path_additionalFilter = path + '.additionalFilter';
|
|
420
|
+
if (typeof obj_additionalFilter !== 'string') {
|
|
421
|
+
return new TypeError('Expected "string" but received "' + typeof obj_additionalFilter + '" (at "' + path_additionalFilter + '")');
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
const obj_applicationLogDate = obj.applicationLogDate;
|
|
425
|
+
const path_applicationLogDate = path + '.applicationLogDate';
|
|
426
|
+
if (typeof obj_applicationLogDate !== 'string') {
|
|
427
|
+
return new TypeError('Expected "string" but received "' + typeof obj_applicationLogDate + '" (at "' + path_applicationLogDate + '")');
|
|
428
|
+
}
|
|
429
|
+
const obj_applicationSubtype = obj.applicationSubtype;
|
|
430
|
+
const path_applicationSubtype = path + '.applicationSubtype';
|
|
431
|
+
if (typeof obj_applicationSubtype !== 'string') {
|
|
432
|
+
return new TypeError('Expected "string" but received "' + typeof obj_applicationSubtype + '" (at "' + path_applicationSubtype + '")');
|
|
433
|
+
}
|
|
434
|
+
const obj_applicationType = obj.applicationType;
|
|
435
|
+
const path_applicationType = path + '.applicationType';
|
|
436
|
+
if (typeof obj_applicationType !== 'string') {
|
|
437
|
+
return new TypeError('Expected "string" but received "' + typeof obj_applicationType + '" (at "' + path_applicationType + '")');
|
|
438
|
+
}
|
|
439
|
+
const obj_explainabilitySpecName = obj.explainabilitySpecName;
|
|
440
|
+
const path_explainabilitySpecName = path + '.explainabilitySpecName';
|
|
441
|
+
if (typeof obj_explainabilitySpecName !== 'string') {
|
|
442
|
+
return new TypeError('Expected "string" but received "' + typeof obj_explainabilitySpecName + '" (at "' + path_explainabilitySpecName + '")');
|
|
443
|
+
}
|
|
444
|
+
const obj_name = obj.name;
|
|
445
|
+
const path_name = path + '.name';
|
|
446
|
+
if (typeof obj_name !== 'string') {
|
|
447
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
448
|
+
}
|
|
449
|
+
if (obj.primaryFilter !== undefined) {
|
|
450
|
+
const obj_primaryFilter = obj.primaryFilter;
|
|
451
|
+
const path_primaryFilter = path + '.primaryFilter';
|
|
452
|
+
if (typeof obj_primaryFilter !== 'string') {
|
|
453
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryFilter + '" (at "' + path_primaryFilter + '")');
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
const obj_processType = obj.processType;
|
|
457
|
+
const path_processType = path + '.processType';
|
|
458
|
+
if (typeof obj_processType !== 'string') {
|
|
459
|
+
return new TypeError('Expected "string" but received "' + typeof obj_processType + '" (at "' + path_processType + '")');
|
|
460
|
+
}
|
|
461
|
+
if (obj.secondaryFilter !== undefined) {
|
|
462
|
+
const obj_secondaryFilter = obj.secondaryFilter;
|
|
463
|
+
const path_secondaryFilter = path + '.secondaryFilter';
|
|
464
|
+
if (typeof obj_secondaryFilter !== 'string') {
|
|
465
|
+
return new TypeError('Expected "string" but received "' + typeof obj_secondaryFilter + '" (at "' + path_secondaryFilter + '")');
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
const obj_uniqueIdentifier = obj.uniqueIdentifier;
|
|
469
|
+
const path_uniqueIdentifier = path + '.uniqueIdentifier';
|
|
470
|
+
if (typeof obj_uniqueIdentifier !== 'string') {
|
|
471
|
+
return new TypeError('Expected "string" but received "' + typeof obj_uniqueIdentifier + '" (at "' + path_uniqueIdentifier + '")');
|
|
472
|
+
}
|
|
473
|
+
})();
|
|
474
|
+
return v_error === undefined ? null : v_error;
|
|
475
|
+
}
|
|
476
|
+
const RepresentationType$1 = 'ExplainabilityDetailedActionLogDetailRepresentation';
|
|
207
477
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
208
478
|
return input;
|
|
209
479
|
}
|
|
210
|
-
const select$3 = function
|
|
480
|
+
const select$3 = function ExplainabilityDetailedActionLogDetailRepresentationSelect() {
|
|
211
481
|
return {
|
|
212
482
|
kind: 'Fragment',
|
|
213
483
|
version: VERSION$1,
|
|
@@ -221,7 +491,7 @@ function equals$1(existing, incoming) {
|
|
|
221
491
|
}
|
|
222
492
|
return true;
|
|
223
493
|
}
|
|
224
|
-
const ingest$1 = function
|
|
494
|
+
const ingest$1 = function ExplainabilityDetailedActionLogDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
225
495
|
if (process.env.NODE_ENV !== 'production') {
|
|
226
496
|
const validateError = validate$2(input);
|
|
227
497
|
if (validateError !== null) {
|
|
@@ -247,7 +517,7 @@ function select$2(luvio, params) {
|
|
|
247
517
|
return select$3();
|
|
248
518
|
}
|
|
249
519
|
function keyBuilder$2(luvio, params) {
|
|
250
|
-
return keyPrefix + '::
|
|
520
|
+
return keyPrefix + '::ExplainabilityDetailedActionLogDetailRepresentation:(' + 'actionContextCode:' + params.queryParams.actionContextCode + ',' + 'applicationSubType:' + params.queryParams.applicationSubType + ',' + 'applicationType:' + params.queryParams.applicationType + ',' + 'actionLogDateTime:' + params.queryParams.actionLogDateTime + ',' + 'processType:' + params.queryParams.processType + ',' + 'uniqueIdentifier:' + params.queryParams.uniqueIdentifier + ')';
|
|
251
521
|
}
|
|
252
522
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
253
523
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
@@ -285,7 +555,7 @@ function createResourceRequest$1(config) {
|
|
|
285
555
|
const headers = {};
|
|
286
556
|
return {
|
|
287
557
|
baseUri: '/services/data/v62.0',
|
|
288
|
-
basePath: '/connect/decision-explainer/action-
|
|
558
|
+
basePath: '/connect/decision-explainer/detailed-action-log',
|
|
289
559
|
method: 'get',
|
|
290
560
|
body: null,
|
|
291
561
|
urlParams: {},
|
|
@@ -295,30 +565,24 @@ function createResourceRequest$1(config) {
|
|
|
295
565
|
};
|
|
296
566
|
}
|
|
297
567
|
|
|
298
|
-
const adapterName$1 = '
|
|
299
|
-
const
|
|
300
|
-
generateParamConfigMetadata('actionContextCode',
|
|
301
|
-
generateParamConfigMetadata('applicationSubType',
|
|
302
|
-
generateParamConfigMetadata('applicationType',
|
|
303
|
-
generateParamConfigMetadata('
|
|
304
|
-
generateParamConfigMetadata('
|
|
305
|
-
generateParamConfigMetadata('
|
|
306
|
-
generateParamConfigMetadata('processType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
307
|
-
generateParamConfigMetadata('queryMore', false, 1 /* QueryParameter */, 0 /* String */),
|
|
308
|
-
generateParamConfigMetadata('primaryFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
309
|
-
generateParamConfigMetadata('secondaryFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
310
|
-
generateParamConfigMetadata('additionalFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
311
|
-
generateParamConfigMetadata('sortDirection', false, 1 /* QueryParameter */, 0 /* String */),
|
|
568
|
+
const adapterName$1 = 'getExplainabilityDetailedActionLog';
|
|
569
|
+
const getExplainabilityDetailedActionLog_ConfigPropertyMetadata = [
|
|
570
|
+
generateParamConfigMetadata('actionContextCode', true, 1 /* QueryParameter */, 0 /* String */),
|
|
571
|
+
generateParamConfigMetadata('applicationSubType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
572
|
+
generateParamConfigMetadata('applicationType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
573
|
+
generateParamConfigMetadata('actionLogDateTime', true, 1 /* QueryParameter */, 0 /* String */),
|
|
574
|
+
generateParamConfigMetadata('processType', true, 1 /* QueryParameter */, 0 /* String */),
|
|
575
|
+
generateParamConfigMetadata('uniqueIdentifier', true, 1 /* QueryParameter */, 0 /* String */),
|
|
312
576
|
];
|
|
313
|
-
const
|
|
314
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
577
|
+
const getExplainabilityDetailedActionLog_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getExplainabilityDetailedActionLog_ConfigPropertyMetadata);
|
|
578
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getExplainabilityDetailedActionLog_ConfigPropertyMetadata);
|
|
315
579
|
function keyBuilder$1(luvio, config) {
|
|
316
580
|
const resourceParams = createResourceParams$1(config);
|
|
317
581
|
return keyBuilder$2(luvio, resourceParams);
|
|
318
582
|
}
|
|
319
583
|
function typeCheckConfig$1(untrustedConfig) {
|
|
320
584
|
const config = {};
|
|
321
|
-
typeCheckConfig$
|
|
585
|
+
typeCheckConfig$3(untrustedConfig, config, getExplainabilityDetailedActionLog_ConfigPropertyMetadata);
|
|
322
586
|
return config;
|
|
323
587
|
}
|
|
324
588
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -367,7 +631,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
367
631
|
});
|
|
368
632
|
}
|
|
369
633
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
370
|
-
return buildNetworkSnapshotCachePolicy$
|
|
634
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
371
635
|
}
|
|
372
636
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
373
637
|
const { luvio, config } = context;
|
|
@@ -382,8 +646,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
382
646
|
});
|
|
383
647
|
return cacheSnapshot;
|
|
384
648
|
}
|
|
385
|
-
const
|
|
386
|
-
const config = validateAdapterConfig$1(untrustedConfig,
|
|
649
|
+
const getExplainabilityDetailedActionLogAdapterFactory = (luvio) => function explainability__getExplainabilityDetailedActionLog(untrustedConfig, requestContext) {
|
|
650
|
+
const config = validateAdapterConfig$1(untrustedConfig, getExplainabilityDetailedActionLog_ConfigPropertyNames);
|
|
387
651
|
// Invalid or incomplete config
|
|
388
652
|
if (config === null) {
|
|
389
653
|
return null;
|
|
@@ -569,7 +833,7 @@ const storeExplainabilityActionLog_ConfigPropertyMetadata = [
|
|
|
569
833
|
generateParamConfigMetadata('explainabilityActionLogDefinition', true, 2 /* Body */, 4 /* Unsupported */),
|
|
570
834
|
];
|
|
571
835
|
const storeExplainabilityActionLog_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, storeExplainabilityActionLog_ConfigPropertyMetadata);
|
|
572
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
836
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(storeExplainabilityActionLog_ConfigPropertyMetadata);
|
|
573
837
|
function typeCheckConfig(untrustedConfig) {
|
|
574
838
|
const config = {};
|
|
575
839
|
const untrustedConfig_explainabilityActionLogDefinition = untrustedConfig.explainabilityActionLogDefinition;
|
|
@@ -622,38 +886,50 @@ const storeExplainabilityActionLogAdapterFactory = (luvio) => {
|
|
|
622
886
|
};
|
|
623
887
|
|
|
624
888
|
let getExplainabilityActionLogs;
|
|
889
|
+
let getExplainabilityDetailedActionLog;
|
|
625
890
|
let storeExplainabilityActionLog;
|
|
626
891
|
// Imperative GET Adapters
|
|
627
892
|
let getExplainabilityActionLogs_imperative;
|
|
893
|
+
let getExplainabilityDetailedActionLog_imperative;
|
|
628
894
|
// Adapter Metadata
|
|
629
895
|
const getExplainabilityActionLogsMetadata = {
|
|
630
896
|
apiFamily: 'explainability',
|
|
631
897
|
name: 'getExplainabilityActionLogs',
|
|
632
898
|
ttl: 10000,
|
|
633
899
|
};
|
|
900
|
+
const getExplainabilityDetailedActionLogMetadata = {
|
|
901
|
+
apiFamily: 'explainability',
|
|
902
|
+
name: 'getExplainabilityDetailedActionLog',
|
|
903
|
+
ttl: 10000,
|
|
904
|
+
};
|
|
634
905
|
// Notify Update Available
|
|
635
906
|
function bindExportsTo(luvio) {
|
|
636
907
|
// LDS Adapters
|
|
637
908
|
const getExplainabilityActionLogs_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getExplainabilityActionLogs', getExplainabilityActionLogsAdapterFactory), getExplainabilityActionLogsMetadata);
|
|
909
|
+
const getExplainabilityDetailedActionLog_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getExplainabilityDetailedActionLog', getExplainabilityDetailedActionLogAdapterFactory), getExplainabilityDetailedActionLogMetadata);
|
|
638
910
|
function unwrapSnapshotData(factory) {
|
|
639
911
|
const adapter = factory(luvio);
|
|
640
912
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
641
913
|
}
|
|
642
914
|
return {
|
|
643
915
|
getExplainabilityActionLogs: createWireAdapterConstructor(luvio, getExplainabilityActionLogs_ldsAdapter, getExplainabilityActionLogsMetadata),
|
|
916
|
+
getExplainabilityDetailedActionLog: createWireAdapterConstructor(luvio, getExplainabilityDetailedActionLog_ldsAdapter, getExplainabilityDetailedActionLogMetadata),
|
|
644
917
|
storeExplainabilityActionLog: unwrapSnapshotData(storeExplainabilityActionLogAdapterFactory),
|
|
645
918
|
// Imperative GET Adapters
|
|
646
919
|
getExplainabilityActionLogs_imperative: createImperativeAdapter(luvio, getExplainabilityActionLogs_ldsAdapter, getExplainabilityActionLogsMetadata),
|
|
920
|
+
getExplainabilityDetailedActionLog_imperative: createImperativeAdapter(luvio, getExplainabilityDetailedActionLog_ldsAdapter, getExplainabilityDetailedActionLogMetadata),
|
|
647
921
|
// Notify Update Availables
|
|
648
922
|
};
|
|
649
923
|
}
|
|
650
924
|
withDefaultLuvio((luvio) => {
|
|
651
925
|
({
|
|
652
926
|
getExplainabilityActionLogs,
|
|
927
|
+
getExplainabilityDetailedActionLog,
|
|
653
928
|
storeExplainabilityActionLog,
|
|
654
929
|
getExplainabilityActionLogs_imperative,
|
|
930
|
+
getExplainabilityDetailedActionLog_imperative,
|
|
655
931
|
} = bindExportsTo(luvio));
|
|
656
932
|
});
|
|
657
933
|
|
|
658
|
-
export { getExplainabilityActionLogs, getExplainabilityActionLogs_imperative, storeExplainabilityActionLog };
|
|
659
|
-
// version: 1.
|
|
934
|
+
export { getExplainabilityActionLogs, getExplainabilityActionLogs_imperative, getExplainabilityDetailedActionLog, getExplainabilityDetailedActionLog_imperative, storeExplainabilityActionLog };
|
|
935
|
+
// version: 1.300.0-96b10a8c42
|
package/src/raml/api.raml
CHANGED
|
@@ -95,6 +95,9 @@ types:
|
|
|
95
95
|
uniqueIdentifier:
|
|
96
96
|
description: A string to be used as explainability unique identifier
|
|
97
97
|
type: string
|
|
98
|
+
applicationLogCalenderDate:
|
|
99
|
+
description: The Calender date and time at which the Explainability log was generated by the application's action
|
|
100
|
+
type: string
|
|
98
101
|
|
|
99
102
|
# TODO Hand-rolled W-9723874
|
|
100
103
|
ExplainabilityActionLogInputRepresentationWrapper:
|
|
@@ -160,6 +163,59 @@ types:
|
|
|
160
163
|
batch of Explainability Action Log records
|
|
161
164
|
type: string
|
|
162
165
|
required: false
|
|
166
|
+
ExplainabilityDetailedActionLogDetailRepresentation:
|
|
167
|
+
description: Represents a Explainability Action Log details
|
|
168
|
+
type: object
|
|
169
|
+
properties:
|
|
170
|
+
name:
|
|
171
|
+
description: A name to identify the Explainability action log record to be created
|
|
172
|
+
type: string
|
|
173
|
+
actionLog:
|
|
174
|
+
description: The contents of the Explainability action log as a Json string
|
|
175
|
+
type: string
|
|
176
|
+
actionContextCode:
|
|
177
|
+
description: The record ID within the context of the associated application's
|
|
178
|
+
action that can be used to retrieve the action log
|
|
179
|
+
type: string
|
|
180
|
+
applicationType:
|
|
181
|
+
description: Specifies the name of the application for which the explainability
|
|
182
|
+
service is run. This would match one of the valid values for Explainability
|
|
183
|
+
Action Specification table's ApplicationType field
|
|
184
|
+
type: string
|
|
185
|
+
applicationSubtype:
|
|
186
|
+
description: Specifies the subtype of the associated application for which
|
|
187
|
+
the explainability log is generated. This would match one of the valid values
|
|
188
|
+
for Explainability Action Specification table's ApplicationSubtype field
|
|
189
|
+
type: string
|
|
190
|
+
processType:
|
|
191
|
+
description: Specifies the process type, such as the business process, of
|
|
192
|
+
the associated application for which the explainability action log is generated.
|
|
193
|
+
This would match one of the valid values for Explainability Action Specification
|
|
194
|
+
table's processType field
|
|
195
|
+
type: string
|
|
196
|
+
applicationLogDate:
|
|
197
|
+
description: The date and time at which the Explainability action log was
|
|
198
|
+
generated by the application's action
|
|
199
|
+
type: string
|
|
200
|
+
primaryFilter:
|
|
201
|
+
description: A string to be used as primary filter
|
|
202
|
+
type: string
|
|
203
|
+
required: false
|
|
204
|
+
secondaryFilter:
|
|
205
|
+
description: A string to be used as secondary filter
|
|
206
|
+
type: string
|
|
207
|
+
required: false
|
|
208
|
+
additionalFilter:
|
|
209
|
+
description: A string to be used as additional filter
|
|
210
|
+
type: string
|
|
211
|
+
required: false
|
|
212
|
+
uniqueIdentifier:
|
|
213
|
+
description: A string to be used as explainability unique identifier
|
|
214
|
+
type: string
|
|
215
|
+
explainabilitySpecName:
|
|
216
|
+
description: A name to identify the Explainability specification name of
|
|
217
|
+
the action log record
|
|
218
|
+
type: string
|
|
163
219
|
/connect:
|
|
164
220
|
/decision-explainer/action-logs:
|
|
165
221
|
get:
|
|
@@ -223,3 +279,26 @@ types:
|
|
|
223
279
|
type: ExplainabilityActionLogInputRepresentationWrapper
|
|
224
280
|
#required: false # TODO Hand-rolled W-9723874
|
|
225
281
|
(oas-body-name): explainabilityActionLogDefinition
|
|
282
|
+
|
|
283
|
+
/decision-explainer/detailed-action-log:
|
|
284
|
+
get:
|
|
285
|
+
description: Api to fetch a detail of Explainability Action Logs
|
|
286
|
+
responses:
|
|
287
|
+
'200':
|
|
288
|
+
description: Success
|
|
289
|
+
body:
|
|
290
|
+
application/json:
|
|
291
|
+
type: ExplainabilityDetailedActionLogDetailRepresentation
|
|
292
|
+
queryParameters:
|
|
293
|
+
actionContextCode:
|
|
294
|
+
type: string
|
|
295
|
+
applicationSubType:
|
|
296
|
+
type: string
|
|
297
|
+
applicationType:
|
|
298
|
+
type: string
|
|
299
|
+
actionLogDateTime:
|
|
300
|
+
type: string
|
|
301
|
+
processType:
|
|
302
|
+
type: string
|
|
303
|
+
uniqueIdentifier:
|
|
304
|
+
type: string
|
package/src/raml/luvio.raml
CHANGED
|
@@ -16,6 +16,9 @@ types:
|
|
|
16
16
|
(luvio.ttl): 10000
|
|
17
17
|
(luvio.key):
|
|
18
18
|
id: uniqueIdentifier
|
|
19
|
+
ExplainabilityDetailedActionLogDetailRepresentation:
|
|
20
|
+
(luvio.opaque): true
|
|
21
|
+
(luvio.ttl): 10000
|
|
19
22
|
|
|
20
23
|
/connect:
|
|
21
24
|
/decision-explainer/action-logs:
|
|
@@ -25,3 +28,7 @@ types:
|
|
|
25
28
|
post:
|
|
26
29
|
(luvio.adapter):
|
|
27
30
|
name: storeExplainabilityActionLog
|
|
31
|
+
/decision-explainer/detailed-action-log:
|
|
32
|
+
get:
|
|
33
|
+
(luvio.adapter):
|
|
34
|
+
name: getExplainabilityDetailedActionLog
|