@salesforce/lds-adapters-platform-flow 1.371.0 → 1.372.1
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/platform-flow.js +154 -44
- package/dist/es/es2018/types/src/adapters/invokeAction.d.ts +6 -0
- package/dist/es/es2018/types/src/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/adapters/invokeAction.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/postConnectInteractionRuntimeInvokeAction.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeInvokeActionInputRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/FlowRuntimeInvokeActionOutputRepresentation.d.ts +35 -0
- package/package.json +4 -4
- package/sfdc/index.js +162 -50
- package/src/raml/api.raml +49 -0
- package/src/raml/luvio.raml +14 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { createResourceParams as createResourceParams$
|
|
7
|
+
import { createResourceParams as createResourceParams$4, typeCheckConfig as typeCheckConfig$4, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { keys: ObjectKeys$1, create: ObjectCreate$1, assign: ObjectAssign } = Object;
|
|
10
10
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
@@ -123,24 +123,24 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
123
123
|
}
|
|
124
124
|
const keyPrefix = 'FlowRuntime';
|
|
125
125
|
|
|
126
|
-
const RepresentationType = 'FlowRuntimeResponseRepresentation';
|
|
127
|
-
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
126
|
+
const RepresentationType$1 = 'FlowRuntimeResponseRepresentation';
|
|
127
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
128
128
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
129
129
|
const rootKey = fullPathFactory();
|
|
130
130
|
rootKeySet.set(rootKey, {
|
|
131
131
|
namespace: keyPrefix,
|
|
132
|
-
representationName: RepresentationType,
|
|
132
|
+
representationName: RepresentationType$1,
|
|
133
133
|
mergeable: false
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
function keyBuilder$
|
|
137
|
+
function keyBuilder$3(luvio, params) {
|
|
138
138
|
return keyPrefix + '::FlowRuntimeResponseRepresentation:(' + 'flowDevName:' + params.body.flowDevName + '::' + (params.body.flowVersionId === undefined ? 'flowVersionId' : 'flowVersionId:' + params.body.flowVersionId) + '::' + (params.body.arguments === undefined ? 'arguments' : 'arguments:' + params.body.arguments) + '::' + (params.body.enableTrace === undefined ? 'enableTrace' : 'enableTrace:' + params.body.enableTrace) + '::' + (params.body.enableRollbackMode === undefined ? 'enableRollbackMode' : 'enableRollbackMode:' + params.body.enableRollbackMode) + '::' + (params.body.useLatestSubflow === undefined ? 'useLatestSubflow' : 'useLatestSubflow:' + params.body.useLatestSubflow) + '::' + (params.body.debugAsUserId === undefined ? 'debugAsUserId' : 'debugAsUserId:' + params.body.debugAsUserId) + '::' + (params.body.isBuilderDebug === undefined ? 'isBuilderDebug' : 'isBuilderDebug:' + params.body.isBuilderDebug) + ')';
|
|
139
139
|
}
|
|
140
|
-
function getResponseCacheKeys$
|
|
141
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$
|
|
140
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
141
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
142
142
|
}
|
|
143
|
-
function createResourceRequest$
|
|
143
|
+
function createResourceRequest$3(config) {
|
|
144
144
|
const headers = {};
|
|
145
145
|
return {
|
|
146
146
|
baseUri: '/services/data/v65.0',
|
|
@@ -154,7 +154,7 @@ function createResourceRequest$2(config) {
|
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
const adapterName$
|
|
157
|
+
const adapterName$3 = 'startFlow';
|
|
158
158
|
const startFlow_ConfigPropertyMetadata = [
|
|
159
159
|
generateParamConfigMetadata('flowDevName', true, 2 /* Body */, 0 /* String */),
|
|
160
160
|
generateParamConfigMetadata('flowVersionId', false, 2 /* Body */, 0 /* String */),
|
|
@@ -165,30 +165,30 @@ const startFlow_ConfigPropertyMetadata = [
|
|
|
165
165
|
generateParamConfigMetadata('debugAsUserId', false, 2 /* Body */, 0 /* String */),
|
|
166
166
|
generateParamConfigMetadata('isBuilderDebug', false, 2 /* Body */, 1 /* Boolean */),
|
|
167
167
|
];
|
|
168
|
-
const startFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
169
|
-
const createResourceParams$
|
|
170
|
-
function typeCheckConfig$
|
|
168
|
+
const startFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, startFlow_ConfigPropertyMetadata);
|
|
169
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(startFlow_ConfigPropertyMetadata);
|
|
170
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
171
171
|
const config = {};
|
|
172
|
-
typeCheckConfig$
|
|
172
|
+
typeCheckConfig$4(untrustedConfig, config, startFlow_ConfigPropertyMetadata);
|
|
173
173
|
return config;
|
|
174
174
|
}
|
|
175
|
-
function validateAdapterConfig$
|
|
175
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
176
176
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
177
177
|
return null;
|
|
178
178
|
}
|
|
179
179
|
if (process.env.NODE_ENV !== 'production') {
|
|
180
180
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
181
181
|
}
|
|
182
|
-
const config = typeCheckConfig$
|
|
182
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
183
183
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
184
184
|
return null;
|
|
185
185
|
}
|
|
186
186
|
return config;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
function buildNetworkSnapshot$
|
|
190
|
-
const resourceParams = createResourceParams$
|
|
191
|
-
const request = createResourceRequest$
|
|
189
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
190
|
+
const resourceParams = createResourceParams$3(config);
|
|
191
|
+
const request = createResourceRequest$3(resourceParams);
|
|
192
192
|
return luvio
|
|
193
193
|
.dispatchResourceRequest(request, options)
|
|
194
194
|
.then((response) => {
|
|
@@ -197,7 +197,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
197
197
|
return Promise.resolve(response.body);
|
|
198
198
|
}, () => {
|
|
199
199
|
const cacheKeys = new StoreKeyMap();
|
|
200
|
-
getResponseCacheKeys$
|
|
200
|
+
getResponseCacheKeys$3(cacheKeys, luvio, resourceParams, response.body);
|
|
201
201
|
return cacheKeys;
|
|
202
202
|
});
|
|
203
203
|
}, (response) => {
|
|
@@ -209,21 +209,21 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
const startFlowAdapterFactory = (luvio) => function flowRuntime__startFlow(untrustedConfig) {
|
|
212
|
-
const config = validateAdapterConfig$
|
|
212
|
+
const config = validateAdapterConfig$3(untrustedConfig, startFlow_ConfigPropertyNames);
|
|
213
213
|
// Invalid or incomplete config
|
|
214
214
|
if (config === null) {
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
|
-
return buildNetworkSnapshot$
|
|
217
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
218
218
|
};
|
|
219
219
|
|
|
220
|
-
function keyBuilder$
|
|
220
|
+
function keyBuilder$2(luvio, params) {
|
|
221
221
|
return keyPrefix + '::FlowRuntimeResponseRepresentation:(' + 'request.action:' + params.body.request.action + '::' + 'request.serializedState:' + params.body.request.serializedState + '::' + (params.body.request.fields === undefined ? undefined : ('[' + params.body.request.fields.map(element => 'request.fields.field:' + element.field + '::' + (element.isVisible === undefined ? 'request.fields.isVisible' : 'request.fields.isVisible:' + element.isVisible) + '::' + (element.value === undefined ? 'request.fields.value' : 'request.fields.value:' + element.value)).join(',') + ']')) + '::' + (params.body.request.uiElementVisited === undefined ? 'request.uiElementVisited' : 'request.uiElementVisited:' + params.body.request.uiElementVisited) + '::' + (params.body.request.enableTrace === undefined ? 'request.enableTrace' : 'request.enableTrace:' + params.body.request.enableTrace) + '::' + stableJSONStringify(params.body.request.lcErrors) + '::' + (params.body.request.isBuilderDebug === undefined ? 'request.isBuilderDebug' : 'request.isBuilderDebug:' + params.body.request.isBuilderDebug) + ')';
|
|
222
222
|
}
|
|
223
|
-
function getResponseCacheKeys$
|
|
224
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$
|
|
223
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
224
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
225
225
|
}
|
|
226
|
-
function createResourceRequest$
|
|
226
|
+
function createResourceRequest$2(config) {
|
|
227
227
|
const headers = {};
|
|
228
228
|
return {
|
|
229
229
|
baseUri: '/services/data/v65.0',
|
|
@@ -371,13 +371,13 @@ function validate(obj, path = 'FlowRuntimeNavigateFlowRepresentation') {
|
|
|
371
371
|
return v_error === undefined ? null : v_error;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
const adapterName$
|
|
374
|
+
const adapterName$2 = 'navigateFlow';
|
|
375
375
|
const navigateFlow_ConfigPropertyMetadata = [
|
|
376
376
|
generateParamConfigMetadata('request', true, 2 /* Body */, 4 /* Unsupported */),
|
|
377
377
|
];
|
|
378
|
-
const navigateFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
379
|
-
const createResourceParams$
|
|
380
|
-
function typeCheckConfig$
|
|
378
|
+
const navigateFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, navigateFlow_ConfigPropertyMetadata);
|
|
379
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(navigateFlow_ConfigPropertyMetadata);
|
|
380
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
381
381
|
const config = {};
|
|
382
382
|
const untrustedConfig_request = untrustedConfig.request;
|
|
383
383
|
const referenceFlowRuntimeNavigateFlowRepresentationValidationError = validate(untrustedConfig_request);
|
|
@@ -386,6 +386,82 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
386
386
|
}
|
|
387
387
|
return config;
|
|
388
388
|
}
|
|
389
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
390
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
391
|
+
return null;
|
|
392
|
+
}
|
|
393
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
394
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
395
|
+
}
|
|
396
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
397
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
398
|
+
return null;
|
|
399
|
+
}
|
|
400
|
+
return config;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
function buildNetworkSnapshot$2(luvio, config, context) {
|
|
404
|
+
const resourceParams = createResourceParams$2(config);
|
|
405
|
+
const request = createResourceRequest$2(resourceParams);
|
|
406
|
+
return luvio
|
|
407
|
+
.dispatchResourceRequest(request, context)
|
|
408
|
+
.then((response) => {
|
|
409
|
+
return luvio.handleSuccessResponse(() => {
|
|
410
|
+
deepFreeze(response.body);
|
|
411
|
+
return Promise.resolve(response.body);
|
|
412
|
+
}, () => {
|
|
413
|
+
const cacheKeys = new StoreKeyMap();
|
|
414
|
+
getResponseCacheKeys$2(cacheKeys, luvio, resourceParams, response.body);
|
|
415
|
+
return cacheKeys;
|
|
416
|
+
});
|
|
417
|
+
}, (response) => {
|
|
418
|
+
return luvio.handleErrorResponse(() => {
|
|
419
|
+
// We want to throw these exceptions to be caught in the runtime layer
|
|
420
|
+
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
421
|
+
throw new Error(response.body.message || response.body.error || response.body);
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
const navigateFlowAdapterFactory = (luvio) => function flowRuntime__navigateFlow(untrustedConfig) {
|
|
426
|
+
const config = validateAdapterConfig$2(untrustedConfig, navigateFlow_ConfigPropertyNames);
|
|
427
|
+
// Invalid or incomplete config
|
|
428
|
+
if (config === null) {
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
function keyBuilder$1(luvio, params) {
|
|
435
|
+
return keyPrefix + '::FlowRuntimeResponseRepresentation:(' + 'pausedInterviewId:' + params.body.pausedInterviewId + ')';
|
|
436
|
+
}
|
|
437
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
438
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
439
|
+
}
|
|
440
|
+
function createResourceRequest$1(config) {
|
|
441
|
+
const headers = {};
|
|
442
|
+
return {
|
|
443
|
+
baseUri: '/services/data/v65.0',
|
|
444
|
+
basePath: '/connect/interaction/runtime/resumeFlow',
|
|
445
|
+
method: 'post',
|
|
446
|
+
body: config.body,
|
|
447
|
+
urlParams: {},
|
|
448
|
+
queryParams: {},
|
|
449
|
+
headers,
|
|
450
|
+
priority: 'normal',
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
const adapterName$1 = 'resumeFlow';
|
|
455
|
+
const resumeFlow_ConfigPropertyMetadata = [
|
|
456
|
+
generateParamConfigMetadata('pausedInterviewId', true, 2 /* Body */, 0 /* String */),
|
|
457
|
+
];
|
|
458
|
+
const resumeFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, resumeFlow_ConfigPropertyMetadata);
|
|
459
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(resumeFlow_ConfigPropertyMetadata);
|
|
460
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
461
|
+
const config = {};
|
|
462
|
+
typeCheckConfig$4(untrustedConfig, config, resumeFlow_ConfigPropertyMetadata);
|
|
463
|
+
return config;
|
|
464
|
+
}
|
|
389
465
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
390
466
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
391
467
|
return null;
|
|
@@ -400,11 +476,11 @@ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
|
400
476
|
return config;
|
|
401
477
|
}
|
|
402
478
|
|
|
403
|
-
function buildNetworkSnapshot$1(luvio, config,
|
|
479
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
404
480
|
const resourceParams = createResourceParams$1(config);
|
|
405
481
|
const request = createResourceRequest$1(resourceParams);
|
|
406
482
|
return luvio
|
|
407
|
-
.dispatchResourceRequest(request,
|
|
483
|
+
.dispatchResourceRequest(request, options)
|
|
408
484
|
.then((response) => {
|
|
409
485
|
return luvio.handleSuccessResponse(() => {
|
|
410
486
|
deepFreeze(response.body);
|
|
@@ -422,8 +498,8 @@ function buildNetworkSnapshot$1(luvio, config, context) {
|
|
|
422
498
|
});
|
|
423
499
|
});
|
|
424
500
|
}
|
|
425
|
-
const
|
|
426
|
-
const config = validateAdapterConfig$1(untrustedConfig,
|
|
501
|
+
const resumeFlowAdapterFactory = (luvio) => function flowRuntime__resumeFlow(untrustedConfig) {
|
|
502
|
+
const config = validateAdapterConfig$1(untrustedConfig, resumeFlow_ConfigPropertyNames);
|
|
427
503
|
// Invalid or incomplete config
|
|
428
504
|
if (config === null) {
|
|
429
505
|
return null;
|
|
@@ -431,8 +507,19 @@ const navigateFlowAdapterFactory = (luvio) => function flowRuntime__navigateFlow
|
|
|
431
507
|
return buildNetworkSnapshot$1(luvio, config);
|
|
432
508
|
};
|
|
433
509
|
|
|
510
|
+
const RepresentationType = 'FlowRuntimeInvokeActionOutputRepresentation';
|
|
511
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
512
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
513
|
+
const rootKey = fullPathFactory();
|
|
514
|
+
rootKeySet.set(rootKey, {
|
|
515
|
+
namespace: keyPrefix,
|
|
516
|
+
representationName: RepresentationType,
|
|
517
|
+
mergeable: false
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
|
|
434
521
|
function keyBuilder(luvio, params) {
|
|
435
|
-
return keyPrefix + '::
|
|
522
|
+
return keyPrefix + '::FlowRuntimeInvokeActionOutputRepresentation:(' + 'actionName:' + params.body.actionName + '::' + 'actionType:' + params.body.actionType + '::' + 'flowVersionId:' + params.body.flowVersionId + '::' + stableJSONStringify(params.body.inputValues) + ')';
|
|
436
523
|
}
|
|
437
524
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
438
525
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder(luvio, resourceParams));
|
|
@@ -441,7 +528,7 @@ function createResourceRequest(config) {
|
|
|
441
528
|
const headers = {};
|
|
442
529
|
return {
|
|
443
530
|
baseUri: '/services/data/v65.0',
|
|
444
|
-
basePath: '/connect/interaction/runtime/
|
|
531
|
+
basePath: '/connect/interaction/runtime/invokeAction',
|
|
445
532
|
method: 'post',
|
|
446
533
|
body: config.body,
|
|
447
534
|
urlParams: {},
|
|
@@ -451,15 +538,38 @@ function createResourceRequest(config) {
|
|
|
451
538
|
};
|
|
452
539
|
}
|
|
453
540
|
|
|
454
|
-
const adapterName = '
|
|
455
|
-
const
|
|
456
|
-
generateParamConfigMetadata('
|
|
541
|
+
const adapterName = 'invokeAction';
|
|
542
|
+
const invokeAction_ConfigPropertyMetadata = [
|
|
543
|
+
generateParamConfigMetadata('actionName', true, 2 /* Body */, 0 /* String */),
|
|
544
|
+
generateParamConfigMetadata('actionType', true, 2 /* Body */, 0 /* String */),
|
|
545
|
+
generateParamConfigMetadata('flowVersionId', true, 2 /* Body */, 0 /* String */),
|
|
546
|
+
generateParamConfigMetadata('inputValues', true, 2 /* Body */, 4 /* Unsupported */),
|
|
457
547
|
];
|
|
458
|
-
const
|
|
459
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
548
|
+
const invokeAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, invokeAction_ConfigPropertyMetadata);
|
|
549
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$4(invokeAction_ConfigPropertyMetadata);
|
|
460
550
|
function typeCheckConfig(untrustedConfig) {
|
|
461
551
|
const config = {};
|
|
462
|
-
typeCheckConfig$
|
|
552
|
+
typeCheckConfig$4(untrustedConfig, config, invokeAction_ConfigPropertyMetadata);
|
|
553
|
+
const untrustedConfig_inputValues = untrustedConfig.inputValues;
|
|
554
|
+
if (untrustedIsObject(untrustedConfig_inputValues)) {
|
|
555
|
+
const untrustedConfig_inputValues_object = {};
|
|
556
|
+
const untrustedConfig_inputValues_keys = Object.keys(untrustedConfig_inputValues);
|
|
557
|
+
for (let i = 0, arrayLength = untrustedConfig_inputValues_keys.length; i < arrayLength; i++) {
|
|
558
|
+
const key = untrustedConfig_inputValues_keys[i];
|
|
559
|
+
const untrustedConfig_inputValues_prop = untrustedConfig_inputValues[key];
|
|
560
|
+
if (untrustedIsObject(untrustedConfig_inputValues_prop)) {
|
|
561
|
+
const untrustedConfig_inputValues_prop_object = {};
|
|
562
|
+
if (untrustedConfig_inputValues_prop_object !== undefined && Object.keys(untrustedConfig_inputValues_prop_object).length >= 0) {
|
|
563
|
+
if (untrustedConfig_inputValues_object !== undefined) {
|
|
564
|
+
untrustedConfig_inputValues_object[key] = untrustedConfig_inputValues_prop_object;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
if (untrustedConfig_inputValues_object !== undefined && Object.keys(untrustedConfig_inputValues_object).length >= 0) {
|
|
570
|
+
config.inputValues = untrustedConfig_inputValues_object;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
463
573
|
return config;
|
|
464
574
|
}
|
|
465
575
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -498,8 +608,8 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
498
608
|
});
|
|
499
609
|
});
|
|
500
610
|
}
|
|
501
|
-
const
|
|
502
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
611
|
+
const invokeActionAdapterFactory = (luvio) => function FlowRuntime__invokeAction(untrustedConfig) {
|
|
612
|
+
const config = validateAdapterConfig(untrustedConfig, invokeAction_ConfigPropertyNames);
|
|
503
613
|
// Invalid or incomplete config
|
|
504
614
|
if (config === null) {
|
|
505
615
|
return null;
|
|
@@ -507,4 +617,4 @@ const resumeFlowAdapterFactory = (luvio) => function flowRuntime__resumeFlow(unt
|
|
|
507
617
|
return buildNetworkSnapshot(luvio, config);
|
|
508
618
|
};
|
|
509
619
|
|
|
510
|
-
export { navigateFlowAdapterFactory, resumeFlowAdapterFactory, startFlowAdapterFactory };
|
|
620
|
+
export { invokeActionAdapterFactory, navigateFlowAdapterFactory, resumeFlowAdapterFactory, startFlowAdapterFactory };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext } from '@luvio/engine';
|
|
2
|
+
import type { FlowRuntimeInvokeActionOutputRepresentation as types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation } from '../generated/types/FlowRuntimeInvokeActionOutputRepresentation';
|
|
3
|
+
import type { InvokeActionConfig } from '../generated/adapters/invokeAction';
|
|
4
|
+
export { adapterName } from '../generated/adapters/invokeAction';
|
|
5
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: InvokeActionConfig, options?: DispatchResourceRequestContext): Promise<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation>;
|
|
6
|
+
export declare const invokeActionAdapterFactory: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { startFlowAdapterFactory } from '../adapters/startFlow';
|
|
2
2
|
export { navigateFlowAdapterFactory } from '../adapters/navigateFlow';
|
|
3
3
|
export { resumeFlowAdapterFactory } from '../adapters/resumeFlow';
|
|
4
|
+
export { invokeActionAdapterFactory } from '../adapters/invokeAction';
|
|
@@ -0,0 +1,32 @@
|
|
|
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';
|
|
3
|
+
import { ResourceRequestConfig as resources_postConnectInteractionRuntimeInvokeAction_ResourceRequestConfig } from '../resources/postConnectInteractionRuntimeInvokeAction';
|
|
4
|
+
import { FlowRuntimeInvokeActionOutputRepresentation as types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation } from '../types/FlowRuntimeInvokeActionOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "invokeAction";
|
|
6
|
+
export declare const invokeAction_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const invokeAction_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface InvokeActionConfig {
|
|
9
|
+
actionName: string;
|
|
10
|
+
actionType: string;
|
|
11
|
+
flowVersionId: string;
|
|
12
|
+
inputValues: {
|
|
13
|
+
[key: string]: {};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const createResourceParams: (config: InvokeActionConfig) => resources_postConnectInteractionRuntimeInvokeAction_ResourceRequestConfig;
|
|
17
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: InvokeActionConfig): string;
|
|
18
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: InvokeActionConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
19
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<InvokeActionConfig>): adapter$45$utils_Untrusted<InvokeActionConfig>;
|
|
20
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): InvokeActionConfig | null;
|
|
21
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: InvokeActionConfig): $64$luvio_engine_Fragment;
|
|
22
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: InvokeActionConfig): $64$luvio_engine_Snapshot<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation, any>;
|
|
23
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: InvokeActionConfig, resourceParams: resources_postConnectInteractionRuntimeInvokeAction_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation, any>>;
|
|
24
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: InvokeActionConfig, resourceParams: resources_postConnectInteractionRuntimeInvokeAction_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
25
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: InvokeActionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation, any>>;
|
|
26
|
+
export type BuildSnapshotContext = {
|
|
27
|
+
luvio: $64$luvio_engine_Luvio;
|
|
28
|
+
config: InvokeActionConfig;
|
|
29
|
+
};
|
|
30
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation, any>>;
|
|
31
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation>): $64$luvio_engine_Snapshot<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation, any>;
|
|
32
|
+
export declare const invokeActionAdapterFactory: $64$luvio_engine_AdapterFactory<InvokeActionConfig, types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { startFlowAdapterFactory } from '../adapters/startFlow';
|
|
2
2
|
export { navigateFlowAdapterFactory } from '../adapters/navigateFlow';
|
|
3
3
|
export { resumeFlowAdapterFactory } from '../adapters/resumeFlow';
|
|
4
|
+
export { invokeActionAdapterFactory } from '../adapters/invokeAction';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
declare let invokeAction: any;
|
|
1
2
|
declare let navigateFlow: any;
|
|
2
3
|
declare let resumeFlow: any;
|
|
3
4
|
declare let startFlow: any;
|
|
5
|
+
declare let invokeAction_imperative: any;
|
|
4
6
|
declare let navigateFlow_imperative: any;
|
|
5
7
|
declare let resumeFlow_imperative: any;
|
|
6
8
|
declare let startFlow_imperative: any;
|
|
7
|
-
export { navigateFlow, resumeFlow, startFlow, navigateFlow_imperative, resumeFlow_imperative, startFlow_imperative, };
|
|
9
|
+
export { invokeAction, navigateFlow, resumeFlow, startFlow, invokeAction_imperative, navigateFlow_imperative, resumeFlow_imperative, startFlow_imperative, };
|
package/dist/es/es2018/types/src/generated/resources/postConnectInteractionRuntimeInvokeAction.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { FlowRuntimeInvokeActionOutputRepresentation as types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation } from '../types/FlowRuntimeInvokeActionOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
actionName: string;
|
|
6
|
+
actionType: string;
|
|
7
|
+
flowVersionId: string;
|
|
8
|
+
inputValues: {
|
|
9
|
+
[key: string]: {};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
14
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
15
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation): void;
|
|
17
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation, any>;
|
|
18
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FlowRuntimeInvokeActionOutputRepresentation_FlowRuntimeInvokeActionOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
19
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
20
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/types/FlowRuntimeInvokeActionInputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const TTL = 500;
|
|
3
|
+
export declare const VERSION = "2edc07d055cd7f8b06c46bb63a92b0ed";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: FlowRuntimeInvokeActionInputRepresentation, existing: FlowRuntimeInvokeActionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FlowRuntimeInvokeActionInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: FlowRuntimeInvokeActionInputRepresentationNormalized, incoming: FlowRuntimeInvokeActionInputRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FlowRuntimeInvokeActionInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Invocable actions input values representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowRuntimeInvokeActionInputRepresentationNormalized {
|
|
18
|
+
/** ActionName */
|
|
19
|
+
actionName: string;
|
|
20
|
+
/** ActionType */
|
|
21
|
+
actionType: string;
|
|
22
|
+
/** FlowVersionId */
|
|
23
|
+
flowVersionId: string;
|
|
24
|
+
/** InputValues */
|
|
25
|
+
inputValues: {
|
|
26
|
+
[key: string]: {};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Invocable actions input values representation
|
|
31
|
+
*
|
|
32
|
+
* Keys:
|
|
33
|
+
* (none)
|
|
34
|
+
*/
|
|
35
|
+
export interface FlowRuntimeInvokeActionInputRepresentation {
|
|
36
|
+
actionName: string;
|
|
37
|
+
actionType: string;
|
|
38
|
+
flowVersionId: string;
|
|
39
|
+
inputValues: {
|
|
40
|
+
[key: string]: {};
|
|
41
|
+
};
|
|
42
|
+
}
|
package/dist/es/es2018/types/src/generated/types/FlowRuntimeInvokeActionOutputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const TTL = 500;
|
|
3
|
+
export declare const VERSION = "41d6714e6caad1711509f013815682a9";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: FlowRuntimeInvokeActionOutputRepresentation, existing: FlowRuntimeInvokeActionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FlowRuntimeInvokeActionOutputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: FlowRuntimeInvokeActionOutputRepresentationNormalized, incoming: FlowRuntimeInvokeActionOutputRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FlowRuntimeInvokeActionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Flow Runtime Invoke Action Output Representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowRuntimeInvokeActionOutputRepresentationNormalized {
|
|
18
|
+
/** Error */
|
|
19
|
+
error: {};
|
|
20
|
+
/** Error */
|
|
21
|
+
isSuccess: boolean;
|
|
22
|
+
/** Invoke Action Output Response */
|
|
23
|
+
response: {};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Flow Runtime Invoke Action Output Representation
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface FlowRuntimeInvokeActionOutputRepresentation {
|
|
32
|
+
error: {};
|
|
33
|
+
isSuccess: boolean;
|
|
34
|
+
response: {};
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-flow",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.372.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Flow Runtime APIs",
|
|
6
6
|
"main": "dist/es/es2018/platform-flow.js",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-flow"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@salesforce/lds-bindings": "^1.
|
|
40
|
+
"@salesforce/lds-bindings": "^1.372.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
44
|
-
"@salesforce/lds-karma": "^1.
|
|
43
|
+
"@salesforce/lds-compiler-plugins": "^1.372.1",
|
|
44
|
+
"@salesforce/lds-karma": "^1.372.1"
|
|
45
45
|
},
|
|
46
46
|
"nx": {
|
|
47
47
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createLDSAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { createResourceParams as createResourceParams$
|
|
17
|
+
import { createResourceParams as createResourceParams$4, deepFreeze, StoreKeyMap, typeCheckConfig as typeCheckConfig$4 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { keys: ObjectKeys$1, create: ObjectCreate$1, assign: ObjectAssign } = Object;
|
|
20
20
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
@@ -133,24 +133,24 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
133
133
|
}
|
|
134
134
|
const keyPrefix = 'FlowRuntime';
|
|
135
135
|
|
|
136
|
-
const RepresentationType = 'FlowRuntimeResponseRepresentation';
|
|
137
|
-
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
136
|
+
const RepresentationType$1 = 'FlowRuntimeResponseRepresentation';
|
|
137
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
138
138
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
139
139
|
const rootKey = fullPathFactory();
|
|
140
140
|
rootKeySet.set(rootKey, {
|
|
141
141
|
namespace: keyPrefix,
|
|
142
|
-
representationName: RepresentationType,
|
|
142
|
+
representationName: RepresentationType$1,
|
|
143
143
|
mergeable: false
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
function keyBuilder$
|
|
147
|
+
function keyBuilder$3(luvio, params) {
|
|
148
148
|
return keyPrefix + '::FlowRuntimeResponseRepresentation:(' + 'request.action:' + params.body.request.action + '::' + 'request.serializedState:' + params.body.request.serializedState + '::' + (params.body.request.fields === undefined ? undefined : ('[' + params.body.request.fields.map(element => 'request.fields.field:' + element.field + '::' + (element.isVisible === undefined ? 'request.fields.isVisible' : 'request.fields.isVisible:' + element.isVisible) + '::' + (element.value === undefined ? 'request.fields.value' : 'request.fields.value:' + element.value)).join(',') + ']')) + '::' + (params.body.request.uiElementVisited === undefined ? 'request.uiElementVisited' : 'request.uiElementVisited:' + params.body.request.uiElementVisited) + '::' + (params.body.request.enableTrace === undefined ? 'request.enableTrace' : 'request.enableTrace:' + params.body.request.enableTrace) + '::' + stableJSONStringify(params.body.request.lcErrors) + '::' + (params.body.request.isBuilderDebug === undefined ? 'request.isBuilderDebug' : 'request.isBuilderDebug:' + params.body.request.isBuilderDebug) + ')';
|
|
149
149
|
}
|
|
150
|
-
function getResponseCacheKeys$
|
|
151
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$
|
|
150
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
151
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
152
152
|
}
|
|
153
|
-
function createResourceRequest$
|
|
153
|
+
function createResourceRequest$3(config) {
|
|
154
154
|
const headers = {};
|
|
155
155
|
return {
|
|
156
156
|
baseUri: '/services/data/v65.0',
|
|
@@ -298,13 +298,13 @@ function validate(obj, path = 'FlowRuntimeNavigateFlowRepresentation') {
|
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
const adapterName$
|
|
301
|
+
const adapterName$3 = 'navigateFlow';
|
|
302
302
|
const navigateFlow_ConfigPropertyMetadata = [
|
|
303
303
|
generateParamConfigMetadata('request', true, 2 /* Body */, 4 /* Unsupported */),
|
|
304
304
|
];
|
|
305
|
-
const navigateFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
306
|
-
const createResourceParams$
|
|
307
|
-
function typeCheckConfig$
|
|
305
|
+
const navigateFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, navigateFlow_ConfigPropertyMetadata);
|
|
306
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(navigateFlow_ConfigPropertyMetadata);
|
|
307
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
308
308
|
const config = {};
|
|
309
309
|
const untrustedConfig_request = untrustedConfig.request;
|
|
310
310
|
const referenceFlowRuntimeNavigateFlowRepresentationValidationError = validate(untrustedConfig_request);
|
|
@@ -313,6 +313,82 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
313
313
|
}
|
|
314
314
|
return config;
|
|
315
315
|
}
|
|
316
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
317
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
318
|
+
return null;
|
|
319
|
+
}
|
|
320
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
321
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
322
|
+
}
|
|
323
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
324
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
325
|
+
return null;
|
|
326
|
+
}
|
|
327
|
+
return config;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
function buildNetworkSnapshot$3(luvio, config, context) {
|
|
331
|
+
const resourceParams = createResourceParams$3(config);
|
|
332
|
+
const request = createResourceRequest$3(resourceParams);
|
|
333
|
+
return luvio
|
|
334
|
+
.dispatchResourceRequest(request, context)
|
|
335
|
+
.then((response) => {
|
|
336
|
+
return luvio.handleSuccessResponse(() => {
|
|
337
|
+
deepFreeze(response.body);
|
|
338
|
+
return Promise.resolve(response.body);
|
|
339
|
+
}, () => {
|
|
340
|
+
const cacheKeys = new StoreKeyMap();
|
|
341
|
+
getResponseCacheKeys$3(cacheKeys, luvio, resourceParams, response.body);
|
|
342
|
+
return cacheKeys;
|
|
343
|
+
});
|
|
344
|
+
}, (response) => {
|
|
345
|
+
return luvio.handleErrorResponse(() => {
|
|
346
|
+
// We want to throw these exceptions to be caught in the runtime layer
|
|
347
|
+
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
348
|
+
throw new Error(response.body.message || response.body.error || response.body);
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
const navigateFlowAdapterFactory = (luvio) => function flowRuntime__navigateFlow(untrustedConfig) {
|
|
353
|
+
const config = validateAdapterConfig$3(untrustedConfig, navigateFlow_ConfigPropertyNames);
|
|
354
|
+
// Invalid or incomplete config
|
|
355
|
+
if (config === null) {
|
|
356
|
+
return null;
|
|
357
|
+
}
|
|
358
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
function keyBuilder$2(luvio, params) {
|
|
362
|
+
return keyPrefix + '::FlowRuntimeResponseRepresentation:(' + 'pausedInterviewId:' + params.body.pausedInterviewId + ')';
|
|
363
|
+
}
|
|
364
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
365
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
366
|
+
}
|
|
367
|
+
function createResourceRequest$2(config) {
|
|
368
|
+
const headers = {};
|
|
369
|
+
return {
|
|
370
|
+
baseUri: '/services/data/v65.0',
|
|
371
|
+
basePath: '/connect/interaction/runtime/resumeFlow',
|
|
372
|
+
method: 'post',
|
|
373
|
+
body: config.body,
|
|
374
|
+
urlParams: {},
|
|
375
|
+
queryParams: {},
|
|
376
|
+
headers,
|
|
377
|
+
priority: 'normal',
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
const adapterName$2 = 'resumeFlow';
|
|
382
|
+
const resumeFlow_ConfigPropertyMetadata = [
|
|
383
|
+
generateParamConfigMetadata('pausedInterviewId', true, 2 /* Body */, 0 /* String */),
|
|
384
|
+
];
|
|
385
|
+
const resumeFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, resumeFlow_ConfigPropertyMetadata);
|
|
386
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(resumeFlow_ConfigPropertyMetadata);
|
|
387
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
388
|
+
const config = {};
|
|
389
|
+
typeCheckConfig$4(untrustedConfig, config, resumeFlow_ConfigPropertyMetadata);
|
|
390
|
+
return config;
|
|
391
|
+
}
|
|
316
392
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
317
393
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
318
394
|
return null;
|
|
@@ -327,11 +403,11 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
327
403
|
return config;
|
|
328
404
|
}
|
|
329
405
|
|
|
330
|
-
function buildNetworkSnapshot$2(luvio, config,
|
|
406
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
331
407
|
const resourceParams = createResourceParams$2(config);
|
|
332
408
|
const request = createResourceRequest$2(resourceParams);
|
|
333
409
|
return luvio
|
|
334
|
-
.dispatchResourceRequest(request,
|
|
410
|
+
.dispatchResourceRequest(request, options)
|
|
335
411
|
.then((response) => {
|
|
336
412
|
return luvio.handleSuccessResponse(() => {
|
|
337
413
|
deepFreeze(response.body);
|
|
@@ -349,8 +425,8 @@ function buildNetworkSnapshot$2(luvio, config, context) {
|
|
|
349
425
|
});
|
|
350
426
|
});
|
|
351
427
|
}
|
|
352
|
-
const
|
|
353
|
-
const config = validateAdapterConfig$2(untrustedConfig,
|
|
428
|
+
const resumeFlowAdapterFactory = (luvio) => function flowRuntime__resumeFlow(untrustedConfig) {
|
|
429
|
+
const config = validateAdapterConfig$2(untrustedConfig, resumeFlow_ConfigPropertyNames);
|
|
354
430
|
// Invalid or incomplete config
|
|
355
431
|
if (config === null) {
|
|
356
432
|
return null;
|
|
@@ -359,16 +435,16 @@ const navigateFlowAdapterFactory = (luvio) => function flowRuntime__navigateFlow
|
|
|
359
435
|
};
|
|
360
436
|
|
|
361
437
|
function keyBuilder$1(luvio, params) {
|
|
362
|
-
return keyPrefix + '::FlowRuntimeResponseRepresentation:(' + '
|
|
438
|
+
return keyPrefix + '::FlowRuntimeResponseRepresentation:(' + 'flowDevName:' + params.body.flowDevName + '::' + (params.body.flowVersionId === undefined ? 'flowVersionId' : 'flowVersionId:' + params.body.flowVersionId) + '::' + (params.body.arguments === undefined ? 'arguments' : 'arguments:' + params.body.arguments) + '::' + (params.body.enableTrace === undefined ? 'enableTrace' : 'enableTrace:' + params.body.enableTrace) + '::' + (params.body.enableRollbackMode === undefined ? 'enableRollbackMode' : 'enableRollbackMode:' + params.body.enableRollbackMode) + '::' + (params.body.useLatestSubflow === undefined ? 'useLatestSubflow' : 'useLatestSubflow:' + params.body.useLatestSubflow) + '::' + (params.body.debugAsUserId === undefined ? 'debugAsUserId' : 'debugAsUserId:' + params.body.debugAsUserId) + '::' + (params.body.isBuilderDebug === undefined ? 'isBuilderDebug' : 'isBuilderDebug:' + params.body.isBuilderDebug) + ')';
|
|
363
439
|
}
|
|
364
440
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
365
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
441
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
366
442
|
}
|
|
367
443
|
function createResourceRequest$1(config) {
|
|
368
444
|
const headers = {};
|
|
369
445
|
return {
|
|
370
446
|
baseUri: '/services/data/v65.0',
|
|
371
|
-
basePath: '/connect/interaction/runtime/
|
|
447
|
+
basePath: '/connect/interaction/runtime/startFlow',
|
|
372
448
|
method: 'post',
|
|
373
449
|
body: config.body,
|
|
374
450
|
urlParams: {},
|
|
@@ -378,15 +454,22 @@ function createResourceRequest$1(config) {
|
|
|
378
454
|
};
|
|
379
455
|
}
|
|
380
456
|
|
|
381
|
-
const adapterName$1 = '
|
|
382
|
-
const
|
|
383
|
-
generateParamConfigMetadata('
|
|
457
|
+
const adapterName$1 = 'startFlow';
|
|
458
|
+
const startFlow_ConfigPropertyMetadata = [
|
|
459
|
+
generateParamConfigMetadata('flowDevName', true, 2 /* Body */, 0 /* String */),
|
|
460
|
+
generateParamConfigMetadata('flowVersionId', false, 2 /* Body */, 0 /* String */),
|
|
461
|
+
generateParamConfigMetadata('arguments', false, 2 /* Body */, 0 /* String */),
|
|
462
|
+
generateParamConfigMetadata('enableTrace', false, 2 /* Body */, 1 /* Boolean */),
|
|
463
|
+
generateParamConfigMetadata('enableRollbackMode', false, 2 /* Body */, 1 /* Boolean */),
|
|
464
|
+
generateParamConfigMetadata('useLatestSubflow', false, 2 /* Body */, 1 /* Boolean */),
|
|
465
|
+
generateParamConfigMetadata('debugAsUserId', false, 2 /* Body */, 0 /* String */),
|
|
466
|
+
generateParamConfigMetadata('isBuilderDebug', false, 2 /* Body */, 1 /* Boolean */),
|
|
384
467
|
];
|
|
385
|
-
const
|
|
386
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
468
|
+
const startFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, startFlow_ConfigPropertyMetadata);
|
|
469
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(startFlow_ConfigPropertyMetadata);
|
|
387
470
|
function typeCheckConfig$1(untrustedConfig) {
|
|
388
471
|
const config = {};
|
|
389
|
-
typeCheckConfig$
|
|
472
|
+
typeCheckConfig$4(untrustedConfig, config, startFlow_ConfigPropertyMetadata);
|
|
390
473
|
return config;
|
|
391
474
|
}
|
|
392
475
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -425,8 +508,8 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
425
508
|
});
|
|
426
509
|
});
|
|
427
510
|
}
|
|
428
|
-
const
|
|
429
|
-
const config = validateAdapterConfig$1(untrustedConfig,
|
|
511
|
+
const startFlowAdapterFactory = (luvio) => function flowRuntime__startFlow(untrustedConfig) {
|
|
512
|
+
const config = validateAdapterConfig$1(untrustedConfig, startFlow_ConfigPropertyNames);
|
|
430
513
|
// Invalid or incomplete config
|
|
431
514
|
if (config === null) {
|
|
432
515
|
return null;
|
|
@@ -434,8 +517,19 @@ const resumeFlowAdapterFactory = (luvio) => function flowRuntime__resumeFlow(unt
|
|
|
434
517
|
return buildNetworkSnapshot$1(luvio, config);
|
|
435
518
|
};
|
|
436
519
|
|
|
520
|
+
const RepresentationType = 'FlowRuntimeInvokeActionOutputRepresentation';
|
|
521
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
522
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
523
|
+
const rootKey = fullPathFactory();
|
|
524
|
+
rootKeySet.set(rootKey, {
|
|
525
|
+
namespace: keyPrefix,
|
|
526
|
+
representationName: RepresentationType,
|
|
527
|
+
mergeable: false
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
|
|
437
531
|
function keyBuilder(luvio, params) {
|
|
438
|
-
return keyPrefix + '::
|
|
532
|
+
return keyPrefix + '::FlowRuntimeInvokeActionOutputRepresentation:(' + 'actionName:' + params.body.actionName + '::' + 'actionType:' + params.body.actionType + '::' + 'flowVersionId:' + params.body.flowVersionId + '::' + stableJSONStringify(params.body.inputValues) + ')';
|
|
439
533
|
}
|
|
440
534
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
441
535
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder(luvio, resourceParams));
|
|
@@ -444,7 +538,7 @@ function createResourceRequest(config) {
|
|
|
444
538
|
const headers = {};
|
|
445
539
|
return {
|
|
446
540
|
baseUri: '/services/data/v65.0',
|
|
447
|
-
basePath: '/connect/interaction/runtime/
|
|
541
|
+
basePath: '/connect/interaction/runtime/invokeAction',
|
|
448
542
|
method: 'post',
|
|
449
543
|
body: config.body,
|
|
450
544
|
urlParams: {},
|
|
@@ -454,22 +548,38 @@ function createResourceRequest(config) {
|
|
|
454
548
|
};
|
|
455
549
|
}
|
|
456
550
|
|
|
457
|
-
const adapterName = '
|
|
458
|
-
const
|
|
459
|
-
generateParamConfigMetadata('
|
|
460
|
-
generateParamConfigMetadata('
|
|
461
|
-
generateParamConfigMetadata('
|
|
462
|
-
generateParamConfigMetadata('
|
|
463
|
-
generateParamConfigMetadata('enableRollbackMode', false, 2 /* Body */, 1 /* Boolean */),
|
|
464
|
-
generateParamConfigMetadata('useLatestSubflow', false, 2 /* Body */, 1 /* Boolean */),
|
|
465
|
-
generateParamConfigMetadata('debugAsUserId', false, 2 /* Body */, 0 /* String */),
|
|
466
|
-
generateParamConfigMetadata('isBuilderDebug', false, 2 /* Body */, 1 /* Boolean */),
|
|
551
|
+
const adapterName = 'invokeAction';
|
|
552
|
+
const invokeAction_ConfigPropertyMetadata = [
|
|
553
|
+
generateParamConfigMetadata('actionName', true, 2 /* Body */, 0 /* String */),
|
|
554
|
+
generateParamConfigMetadata('actionType', true, 2 /* Body */, 0 /* String */),
|
|
555
|
+
generateParamConfigMetadata('flowVersionId', true, 2 /* Body */, 0 /* String */),
|
|
556
|
+
generateParamConfigMetadata('inputValues', true, 2 /* Body */, 4 /* Unsupported */),
|
|
467
557
|
];
|
|
468
|
-
const
|
|
469
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
558
|
+
const invokeAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, invokeAction_ConfigPropertyMetadata);
|
|
559
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$4(invokeAction_ConfigPropertyMetadata);
|
|
470
560
|
function typeCheckConfig(untrustedConfig) {
|
|
471
561
|
const config = {};
|
|
472
|
-
typeCheckConfig$
|
|
562
|
+
typeCheckConfig$4(untrustedConfig, config, invokeAction_ConfigPropertyMetadata);
|
|
563
|
+
const untrustedConfig_inputValues = untrustedConfig.inputValues;
|
|
564
|
+
if (untrustedIsObject(untrustedConfig_inputValues)) {
|
|
565
|
+
const untrustedConfig_inputValues_object = {};
|
|
566
|
+
const untrustedConfig_inputValues_keys = Object.keys(untrustedConfig_inputValues);
|
|
567
|
+
for (let i = 0, arrayLength = untrustedConfig_inputValues_keys.length; i < arrayLength; i++) {
|
|
568
|
+
const key = untrustedConfig_inputValues_keys[i];
|
|
569
|
+
const untrustedConfig_inputValues_prop = untrustedConfig_inputValues[key];
|
|
570
|
+
if (untrustedIsObject(untrustedConfig_inputValues_prop)) {
|
|
571
|
+
const untrustedConfig_inputValues_prop_object = {};
|
|
572
|
+
if (untrustedConfig_inputValues_prop_object !== undefined && Object.keys(untrustedConfig_inputValues_prop_object).length >= 0) {
|
|
573
|
+
if (untrustedConfig_inputValues_object !== undefined) {
|
|
574
|
+
untrustedConfig_inputValues_object[key] = untrustedConfig_inputValues_prop_object;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if (untrustedConfig_inputValues_object !== undefined && Object.keys(untrustedConfig_inputValues_object).length >= 0) {
|
|
580
|
+
config.inputValues = untrustedConfig_inputValues_object;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
473
583
|
return config;
|
|
474
584
|
}
|
|
475
585
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -508,8 +618,8 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
508
618
|
});
|
|
509
619
|
});
|
|
510
620
|
}
|
|
511
|
-
const
|
|
512
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
621
|
+
const invokeActionAdapterFactory = (luvio) => function FlowRuntime__invokeAction(untrustedConfig) {
|
|
622
|
+
const config = validateAdapterConfig(untrustedConfig, invokeAction_ConfigPropertyNames);
|
|
513
623
|
// Invalid or incomplete config
|
|
514
624
|
if (config === null) {
|
|
515
625
|
return null;
|
|
@@ -520,16 +630,18 @@ const startFlowAdapterFactory = (luvio) => function flowRuntime__startFlow(untru
|
|
|
520
630
|
let navigateFlow;
|
|
521
631
|
let resumeFlow;
|
|
522
632
|
let startFlow;
|
|
633
|
+
let invokeAction;
|
|
523
634
|
function bindExportsTo(luvio) {
|
|
524
635
|
return {
|
|
525
|
-
navigateFlow: createLDSAdapter(luvio, adapterName$
|
|
526
|
-
resumeFlow: createLDSAdapter(luvio, adapterName$
|
|
527
|
-
startFlow: createLDSAdapter(luvio, adapterName, startFlowAdapterFactory),
|
|
636
|
+
navigateFlow: createLDSAdapter(luvio, adapterName$3, navigateFlowAdapterFactory),
|
|
637
|
+
resumeFlow: createLDSAdapter(luvio, adapterName$2, resumeFlowAdapterFactory),
|
|
638
|
+
startFlow: createLDSAdapter(luvio, adapterName$1, startFlowAdapterFactory),
|
|
639
|
+
invokeAction: createLDSAdapter(luvio, adapterName, invokeActionAdapterFactory),
|
|
528
640
|
};
|
|
529
641
|
}
|
|
530
642
|
withDefaultLuvio((luvio) => {
|
|
531
|
-
({ navigateFlow, resumeFlow, startFlow } = bindExportsTo(luvio));
|
|
643
|
+
({ navigateFlow, resumeFlow, startFlow, invokeAction } = bindExportsTo(luvio));
|
|
532
644
|
});
|
|
533
645
|
|
|
534
|
-
export { navigateFlow, resumeFlow, startFlow };
|
|
535
|
-
// version: 1.
|
|
646
|
+
export { invokeAction, navigateFlow, resumeFlow, startFlow };
|
|
647
|
+
// version: 1.372.1-8824ae9dd4
|
package/src/raml/api.raml
CHANGED
|
@@ -130,6 +130,40 @@ types:
|
|
|
130
130
|
type: FlowRuntimeNavigationResult | nil
|
|
131
131
|
required: false
|
|
132
132
|
|
|
133
|
+
FlowRuntimeInvokeActionInputRepresentation:
|
|
134
|
+
description: Invocable actions input values representation
|
|
135
|
+
type: object
|
|
136
|
+
properties:
|
|
137
|
+
actionName:
|
|
138
|
+
description: ActionName
|
|
139
|
+
type: string
|
|
140
|
+
actionType:
|
|
141
|
+
description: ActionType
|
|
142
|
+
type: string
|
|
143
|
+
flowVersionId:
|
|
144
|
+
description: FlowVersionId
|
|
145
|
+
type: string
|
|
146
|
+
inputValues:
|
|
147
|
+
description: InputValues
|
|
148
|
+
type: object
|
|
149
|
+
properties:
|
|
150
|
+
//:
|
|
151
|
+
type: object
|
|
152
|
+
|
|
153
|
+
FlowRuntimeInvokeActionOutputRepresentation:
|
|
154
|
+
description: Flow Runtime Invoke Action Output Representation
|
|
155
|
+
type: object
|
|
156
|
+
properties:
|
|
157
|
+
error:
|
|
158
|
+
description: Error
|
|
159
|
+
type: object
|
|
160
|
+
isSuccess:
|
|
161
|
+
description: Error
|
|
162
|
+
type: boolean
|
|
163
|
+
response:
|
|
164
|
+
description: Invoke Action Output Response
|
|
165
|
+
type: object
|
|
166
|
+
|
|
133
167
|
/connect/interaction/runtime/startFlow:
|
|
134
168
|
post:
|
|
135
169
|
responses:
|
|
@@ -166,3 +200,18 @@ types:
|
|
|
166
200
|
body:
|
|
167
201
|
application/json:
|
|
168
202
|
type: FlowRuntimeResumeFlowRepresentation
|
|
203
|
+
|
|
204
|
+
/connect/interaction/runtime/invokeAction:
|
|
205
|
+
post:
|
|
206
|
+
displayName: postFlowRuntimeInvokeAction
|
|
207
|
+
description: Invokes an invocable action
|
|
208
|
+
responses:
|
|
209
|
+
'200':
|
|
210
|
+
description: Success
|
|
211
|
+
body:
|
|
212
|
+
application/json:
|
|
213
|
+
type: FlowRuntimeInvokeActionOutputRepresentation
|
|
214
|
+
body:
|
|
215
|
+
application/json:
|
|
216
|
+
type: FlowRuntimeInvokeActionInputRepresentation
|
|
217
|
+
(oas-body-name): invokeActionInput
|
package/src/raml/luvio.raml
CHANGED
|
@@ -11,6 +11,14 @@ types:
|
|
|
11
11
|
FlowRuntimeResponseRepresentation:
|
|
12
12
|
(luvio.opaque): true
|
|
13
13
|
|
|
14
|
+
FlowRuntimeInvokeActionInputRepresentation:
|
|
15
|
+
(luvio.ttl): 500
|
|
16
|
+
(luvio.opaque): true
|
|
17
|
+
|
|
18
|
+
FlowRuntimeInvokeActionOutputRepresentation:
|
|
19
|
+
(luvio.ttl): 500
|
|
20
|
+
(luvio.opaque): true
|
|
21
|
+
|
|
14
22
|
/connect/interaction/runtime/startFlow:
|
|
15
23
|
post:
|
|
16
24
|
(luvio.adapter):
|
|
@@ -28,3 +36,9 @@ types:
|
|
|
28
36
|
(luvio.adapter):
|
|
29
37
|
name: resumeFlow
|
|
30
38
|
(luvio.method): get
|
|
39
|
+
|
|
40
|
+
/connect/interaction/runtime/invokeAction:
|
|
41
|
+
post:
|
|
42
|
+
(luvio.adapter):
|
|
43
|
+
name: invokeAction
|
|
44
|
+
(luvio.method): get
|