@salesforce/lds-adapters-industries-dfo 1.395.0 → 1.397.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-dfo.js +216 -8
- package/dist/es/es2018/types/src/generated/adapters/getDroOrchestration.d.ts +28 -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/getConnectDroOrchestrationByTransactionIdAndTypeOfData.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/DroOrchestrationGetOutputRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/DroOrchestrationInputRepresentation.d.ts +32 -0
- package/package.json +3 -3
- package/sfdc/index.js +259 -43
- package/src/raml/api.raml +41 -1
- package/src/raml/luvio.raml +7 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -80,6 +80,214 @@ function createLink(ref) {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
const TTL$3 = 1000;
|
|
84
|
+
const VERSION$3 = "b3d5c519b37d4ac361efe2da46c6c17a";
|
|
85
|
+
function validate$3(obj, path = 'DroOrchestrationGetOutputRepresentation') {
|
|
86
|
+
const v_error = (() => {
|
|
87
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
88
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
89
|
+
}
|
|
90
|
+
const obj_statusMessage = obj.statusMessage;
|
|
91
|
+
const path_statusMessage = path + '.statusMessage';
|
|
92
|
+
if (typeof obj_statusMessage !== 'string') {
|
|
93
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusMessage + '" (at "' + path_statusMessage + '")');
|
|
94
|
+
}
|
|
95
|
+
const obj_values = obj.values;
|
|
96
|
+
const path_values = path + '.values';
|
|
97
|
+
if (typeof obj_values !== 'object' || ArrayIsArray(obj_values) || obj_values === null) {
|
|
98
|
+
return new TypeError('Expected "object" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
99
|
+
}
|
|
100
|
+
const obj_values_keys = ObjectKeys(obj_values);
|
|
101
|
+
for (let i = 0; i < obj_values_keys.length; i++) {
|
|
102
|
+
const key = obj_values_keys[i];
|
|
103
|
+
const obj_values_prop = obj_values[key];
|
|
104
|
+
const path_values_prop = path_values + '["' + key + '"]';
|
|
105
|
+
if (obj_values_prop === undefined) {
|
|
106
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_values_prop + '" (at "' + path_values_prop + '")');
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
})();
|
|
110
|
+
return v_error === undefined ? null : v_error;
|
|
111
|
+
}
|
|
112
|
+
const RepresentationType$3 = 'DroOrchestrationGetOutputRepresentation';
|
|
113
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
114
|
+
return input;
|
|
115
|
+
}
|
|
116
|
+
const select$7 = function DroOrchestrationGetOutputRepresentationSelect() {
|
|
117
|
+
return {
|
|
118
|
+
kind: 'Fragment',
|
|
119
|
+
version: VERSION$3,
|
|
120
|
+
private: [],
|
|
121
|
+
opaque: true
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
function equals$3(existing, incoming) {
|
|
125
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
const ingest$3 = function DroOrchestrationGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
131
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
132
|
+
const validateError = validate$3(input);
|
|
133
|
+
if (validateError !== null) {
|
|
134
|
+
throw validateError;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
const key = path.fullPath;
|
|
138
|
+
const ttlToUse = TTL$3;
|
|
139
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "dfo", VERSION$3, RepresentationType$3, equals$3);
|
|
140
|
+
return createLink(key);
|
|
141
|
+
};
|
|
142
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
143
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
144
|
+
const rootKey = fullPathFactory();
|
|
145
|
+
rootKeySet.set(rootKey, {
|
|
146
|
+
namespace: keyPrefix,
|
|
147
|
+
representationName: RepresentationType$3,
|
|
148
|
+
mergeable: false
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function select$6(luvio, params) {
|
|
153
|
+
return select$7();
|
|
154
|
+
}
|
|
155
|
+
function keyBuilder$6(luvio, params) {
|
|
156
|
+
return keyPrefix + '::DroOrchestrationGetOutputRepresentation:(' + 'transactionId:' + params.urlParams.transactionId + ',' + 'typeOfData:' + params.urlParams.typeOfData + ')';
|
|
157
|
+
}
|
|
158
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
159
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
160
|
+
}
|
|
161
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
162
|
+
const { body } = response;
|
|
163
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
164
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
165
|
+
const snapshot = luvio.storeLookup({
|
|
166
|
+
recordId: key,
|
|
167
|
+
node: select$6(),
|
|
168
|
+
variables: {},
|
|
169
|
+
}, snapshotRefresh);
|
|
170
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
171
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
172
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
deepFreeze(snapshot.data);
|
|
176
|
+
return snapshot;
|
|
177
|
+
}
|
|
178
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
179
|
+
const key = keyBuilder$6(luvio, params);
|
|
180
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
181
|
+
const storeMetadataParams = {
|
|
182
|
+
ttl: TTL$3,
|
|
183
|
+
namespace: keyPrefix,
|
|
184
|
+
version: VERSION$3,
|
|
185
|
+
representationName: RepresentationType$3
|
|
186
|
+
};
|
|
187
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
188
|
+
return errorSnapshot;
|
|
189
|
+
}
|
|
190
|
+
function createResourceRequest$3(config) {
|
|
191
|
+
const headers = {};
|
|
192
|
+
return {
|
|
193
|
+
baseUri: '/services/data/v66.0',
|
|
194
|
+
basePath: '/connect/dro/orchestration/' + config.urlParams.transactionId + '/' + config.urlParams.typeOfData + '',
|
|
195
|
+
method: 'get',
|
|
196
|
+
body: null,
|
|
197
|
+
urlParams: config.urlParams,
|
|
198
|
+
queryParams: {},
|
|
199
|
+
headers,
|
|
200
|
+
priority: 'normal',
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const adapterName$3 = 'getDroOrchestration';
|
|
205
|
+
const getDroOrchestration_ConfigPropertyMetadata = [
|
|
206
|
+
generateParamConfigMetadata('transactionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
207
|
+
generateParamConfigMetadata('typeOfData', true, 0 /* UrlParameter */, 0 /* String */),
|
|
208
|
+
];
|
|
209
|
+
const getDroOrchestration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDroOrchestration_ConfigPropertyMetadata);
|
|
210
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getDroOrchestration_ConfigPropertyMetadata);
|
|
211
|
+
function keyBuilder$5(luvio, config) {
|
|
212
|
+
const resourceParams = createResourceParams$3(config);
|
|
213
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
214
|
+
}
|
|
215
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
216
|
+
const config = {};
|
|
217
|
+
typeCheckConfig$4(untrustedConfig, config, getDroOrchestration_ConfigPropertyMetadata);
|
|
218
|
+
return config;
|
|
219
|
+
}
|
|
220
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
221
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
222
|
+
return null;
|
|
223
|
+
}
|
|
224
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
225
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
226
|
+
}
|
|
227
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
228
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
return config;
|
|
232
|
+
}
|
|
233
|
+
function adapterFragment$2(luvio, config) {
|
|
234
|
+
createResourceParams$3(config);
|
|
235
|
+
return select$6();
|
|
236
|
+
}
|
|
237
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
238
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
239
|
+
config,
|
|
240
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
241
|
+
});
|
|
242
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
243
|
+
}
|
|
244
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
245
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
246
|
+
config,
|
|
247
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
248
|
+
});
|
|
249
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
250
|
+
}
|
|
251
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
252
|
+
const resourceParams = createResourceParams$3(config);
|
|
253
|
+
const request = createResourceRequest$3(resourceParams);
|
|
254
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
255
|
+
.then((response) => {
|
|
256
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
257
|
+
const cache = new StoreKeyMap();
|
|
258
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
259
|
+
return cache;
|
|
260
|
+
});
|
|
261
|
+
}, (response) => {
|
|
262
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
266
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
267
|
+
}
|
|
268
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
269
|
+
const { luvio, config } = context;
|
|
270
|
+
const selector = {
|
|
271
|
+
recordId: keyBuilder$5(luvio, config),
|
|
272
|
+
node: adapterFragment$2(luvio, config),
|
|
273
|
+
variables: {},
|
|
274
|
+
};
|
|
275
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
276
|
+
config,
|
|
277
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
278
|
+
});
|
|
279
|
+
return cacheSnapshot;
|
|
280
|
+
}
|
|
281
|
+
const getDroOrchestrationAdapterFactory = (luvio) => function dfo__getDroOrchestration(untrustedConfig, requestContext) {
|
|
282
|
+
const config = validateAdapterConfig$3(untrustedConfig, getDroOrchestration_ConfigPropertyNames);
|
|
283
|
+
// Invalid or incomplete config
|
|
284
|
+
if (config === null) {
|
|
285
|
+
return null;
|
|
286
|
+
}
|
|
287
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
288
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
289
|
+
};
|
|
290
|
+
|
|
83
291
|
const TTL$2 = 1000;
|
|
84
292
|
const VERSION$2 = "6276c05f3d390d7a92e532aadaf4abd2";
|
|
85
293
|
function validate$2(obj, path = 'DroDecompositionViewerGetOutputRepresentation') {
|
|
@@ -207,14 +415,14 @@ const getDroDecompositionViewer_ConfigPropertyMetadata = [
|
|
|
207
415
|
generateParamConfigMetadata('typeOfData', true, 0 /* UrlParameter */, 0 /* String */),
|
|
208
416
|
];
|
|
209
417
|
const getDroDecompositionViewer_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDroDecompositionViewer_ConfigPropertyMetadata);
|
|
210
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
418
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getDroDecompositionViewer_ConfigPropertyMetadata);
|
|
211
419
|
function keyBuilder$3(luvio, config) {
|
|
212
420
|
const resourceParams = createResourceParams$2(config);
|
|
213
421
|
return keyBuilder$4(luvio, resourceParams);
|
|
214
422
|
}
|
|
215
423
|
function typeCheckConfig$2(untrustedConfig) {
|
|
216
424
|
const config = {};
|
|
217
|
-
typeCheckConfig$
|
|
425
|
+
typeCheckConfig$4(untrustedConfig, config, getDroDecompositionViewer_ConfigPropertyMetadata);
|
|
218
426
|
return config;
|
|
219
427
|
}
|
|
220
428
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -263,7 +471,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
263
471
|
});
|
|
264
472
|
}
|
|
265
473
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
266
|
-
return buildNetworkSnapshotCachePolicy$
|
|
474
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
267
475
|
}
|
|
268
476
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
269
477
|
const { luvio, config } = context;
|
|
@@ -407,7 +615,7 @@ function createResourceRequest$1(config) {
|
|
|
407
615
|
const adapterName$1 = 'getDfoConfigInfo';
|
|
408
616
|
const getDfoConfigInfo_ConfigPropertyMetadata = [];
|
|
409
617
|
const getDfoConfigInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDfoConfigInfo_ConfigPropertyMetadata);
|
|
410
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
618
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getDfoConfigInfo_ConfigPropertyMetadata);
|
|
411
619
|
function keyBuilder$1(luvio, config) {
|
|
412
620
|
createResourceParams$1(config);
|
|
413
621
|
return keyBuilder$2();
|
|
@@ -462,7 +670,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
462
670
|
});
|
|
463
671
|
}
|
|
464
672
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
465
|
-
return buildNetworkSnapshotCachePolicy$
|
|
673
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
466
674
|
}
|
|
467
675
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
468
676
|
const { luvio, config } = context;
|
|
@@ -593,7 +801,7 @@ const putDfoConfigInfo_ConfigPropertyMetadata = [
|
|
|
593
801
|
generateParamConfigMetadata('values', true, 2 /* Body */, 4 /* Unsupported */),
|
|
594
802
|
];
|
|
595
803
|
const putDfoConfigInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, putDfoConfigInfo_ConfigPropertyMetadata);
|
|
596
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
804
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$4(putDfoConfigInfo_ConfigPropertyMetadata);
|
|
597
805
|
function typeCheckConfig(untrustedConfig) {
|
|
598
806
|
const config = {};
|
|
599
807
|
const untrustedConfig_values = untrustedConfig.values;
|
|
@@ -657,4 +865,4 @@ const putDfoConfigInfoAdapterFactory = (luvio) => {
|
|
|
657
865
|
};
|
|
658
866
|
};
|
|
659
867
|
|
|
660
|
-
export { getDfoConfigInfoAdapterFactory, getDroDecompositionViewerAdapterFactory, putDfoConfigInfoAdapterFactory };
|
|
868
|
+
export { getDfoConfigInfoAdapterFactory, getDroDecompositionViewerAdapterFactory, getDroOrchestrationAdapterFactory, putDfoConfigInfoAdapterFactory };
|
|
@@ -0,0 +1,28 @@
|
|
|
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_getConnectDroOrchestrationByTransactionIdAndTypeOfData_ResourceRequestConfig } from '../resources/getConnectDroOrchestrationByTransactionIdAndTypeOfData';
|
|
4
|
+
import { DroOrchestrationGetOutputRepresentation as types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation } from '../types/DroOrchestrationGetOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getDroOrchestration";
|
|
6
|
+
export declare const getDroOrchestration_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getDroOrchestration_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetDroOrchestrationConfig {
|
|
9
|
+
transactionId: string;
|
|
10
|
+
typeOfData: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: GetDroOrchestrationConfig) => resources_getConnectDroOrchestrationByTransactionIdAndTypeOfData_ResourceRequestConfig;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetDroOrchestrationConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetDroOrchestrationConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetDroOrchestrationConfig>): adapter$45$utils_Untrusted<GetDroOrchestrationConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetDroOrchestrationConfig | null;
|
|
17
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetDroOrchestrationConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDroOrchestrationConfig): $64$luvio_engine_Snapshot<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation, any>;
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetDroOrchestrationConfig, resourceParams: resources_getConnectDroOrchestrationByTransactionIdAndTypeOfData_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetDroOrchestrationConfig, resourceParams: resources_getConnectDroOrchestrationByTransactionIdAndTypeOfData_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDroOrchestrationConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation, any>>;
|
|
22
|
+
export type BuildSnapshotContext = {
|
|
23
|
+
luvio: $64$luvio_engine_Luvio;
|
|
24
|
+
config: GetDroOrchestrationConfig;
|
|
25
|
+
};
|
|
26
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation, any>>;
|
|
27
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation>): $64$luvio_engine_Snapshot<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation, any>;
|
|
28
|
+
export declare const getDroOrchestrationAdapterFactory: $64$luvio_engine_AdapterFactory<GetDroOrchestrationConfig, types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { getDroOrchestrationAdapterFactory } from '../adapters/getDroOrchestration';
|
|
1
2
|
export { getDroDecompositionViewerAdapterFactory } from '../adapters/getDroDecompositionViewer';
|
|
2
3
|
export { getDfoConfigInfoAdapterFactory } from '../adapters/getDfoConfigInfo';
|
|
3
4
|
export { putDfoConfigInfoAdapterFactory } from '../adapters/putDfoConfigInfo';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare let getDfoConfigInfo: any;
|
|
2
2
|
declare let getDroDecompositionViewer: any;
|
|
3
|
+
declare let getDroOrchestration: any;
|
|
3
4
|
declare let putDfoConfigInfo: any;
|
|
4
5
|
declare let getDfoConfigInfo_imperative: any;
|
|
5
6
|
declare let getDroDecompositionViewer_imperative: any;
|
|
6
|
-
|
|
7
|
+
declare let getDroOrchestration_imperative: any;
|
|
8
|
+
export { getDfoConfigInfo, getDroDecompositionViewer, getDroOrchestration, putDfoConfigInfo, getDfoConfigInfo_imperative, getDroDecompositionViewer_imperative, getDroOrchestration_imperative, };
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { DroOrchestrationGetOutputRepresentation as types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation } from '../types/DroOrchestrationGetOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
transactionId: string;
|
|
6
|
+
typeOfData: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation, any>;
|
|
14
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DroOrchestrationGetOutputRepresentation_DroOrchestrationGetOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 = 1000;
|
|
3
|
+
export declare const VERSION = "b3d5c519b37d4ac361efe2da46c6c17a";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: DroOrchestrationGetOutputRepresentation, existing: DroOrchestrationGetOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DroOrchestrationGetOutputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: DroOrchestrationGetOutputRepresentationNormalized, incoming: DroOrchestrationGetOutputRepresentationNormalized): 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: DroOrchestrationGetOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* DRO get Orchestration Output Representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface DroOrchestrationGetOutputRepresentationNormalized {
|
|
18
|
+
/** Orchestration Response Status Message */
|
|
19
|
+
statusMessage: string;
|
|
20
|
+
/** Orchestration Response */
|
|
21
|
+
values: {
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* DRO get Orchestration Output Representation
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface DroOrchestrationGetOutputRepresentation {
|
|
32
|
+
statusMessage: string;
|
|
33
|
+
values: {
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, 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 VERSION = "5edd0d4fadd4d6d1701c79177f5e0db9";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: DroOrchestrationInputRepresentation, existing: DroOrchestrationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DroOrchestrationInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: DroOrchestrationInputRepresentationNormalized, incoming: DroOrchestrationInputRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: DroOrchestrationInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* DRO Orchestration Api Input Representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface DroOrchestrationInputRepresentationNormalized {
|
|
17
|
+
/** orchestration related data */
|
|
18
|
+
input: {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* DRO Orchestration Api Input Representation
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface DroOrchestrationInputRepresentation {
|
|
29
|
+
input: {
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-dfo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.397.0",
|
|
4
4
|
"description": "Dynamic Fulfillment Orchestrator APIs",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/industries-dfo.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.397.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.397.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
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$3, StoreKeyMap, createResourceParams as createResourceParams$4, typeCheckConfig as typeCheckConfig$4 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -90,9 +90,9 @@ function createLink(ref) {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
const TTL$
|
|
94
|
-
const VERSION$
|
|
95
|
-
function validate$
|
|
93
|
+
const TTL$3 = 1000;
|
|
94
|
+
const VERSION$3 = "dd6647099b059db657ec754c75dfccc4";
|
|
95
|
+
function validate$3(obj, path = 'DfoConfigInfoGetOutputRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -114,11 +114,215 @@ function validate$2(obj, path = 'DfoConfigInfoGetOutputRepresentation') {
|
|
|
114
114
|
})();
|
|
115
115
|
return v_error === undefined ? null : v_error;
|
|
116
116
|
}
|
|
117
|
-
const RepresentationType$
|
|
117
|
+
const RepresentationType$3 = 'DfoConfigInfoGetOutputRepresentation';
|
|
118
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
119
|
+
return input;
|
|
120
|
+
}
|
|
121
|
+
const select$7 = function DfoConfigInfoGetOutputRepresentationSelect() {
|
|
122
|
+
return {
|
|
123
|
+
kind: 'Fragment',
|
|
124
|
+
version: VERSION$3,
|
|
125
|
+
private: [],
|
|
126
|
+
opaque: true
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
function equals$3(existing, incoming) {
|
|
130
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
const ingest$3 = function DfoConfigInfoGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
136
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
137
|
+
const validateError = validate$3(input);
|
|
138
|
+
if (validateError !== null) {
|
|
139
|
+
throw validateError;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const key = path.fullPath;
|
|
143
|
+
const ttlToUse = TTL$3;
|
|
144
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "dfo", VERSION$3, RepresentationType$3, equals$3);
|
|
145
|
+
return createLink(key);
|
|
146
|
+
};
|
|
147
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
148
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
149
|
+
const rootKey = fullPathFactory();
|
|
150
|
+
rootKeySet.set(rootKey, {
|
|
151
|
+
namespace: keyPrefix,
|
|
152
|
+
representationName: RepresentationType$3,
|
|
153
|
+
mergeable: false
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function select$6(luvio, params) {
|
|
158
|
+
return select$7();
|
|
159
|
+
}
|
|
160
|
+
function keyBuilder$6(luvio, params) {
|
|
161
|
+
return keyPrefix + '::DfoConfigInfoGetOutputRepresentation:(' + ')';
|
|
162
|
+
}
|
|
163
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
164
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6());
|
|
165
|
+
}
|
|
166
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
167
|
+
const { body } = response;
|
|
168
|
+
const key = keyBuilder$6();
|
|
169
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
170
|
+
const snapshot = luvio.storeLookup({
|
|
171
|
+
recordId: key,
|
|
172
|
+
node: select$6(),
|
|
173
|
+
variables: {},
|
|
174
|
+
}, snapshotRefresh);
|
|
175
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
176
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
177
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
deepFreeze(snapshot.data);
|
|
181
|
+
return snapshot;
|
|
182
|
+
}
|
|
183
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
184
|
+
const key = keyBuilder$6();
|
|
185
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
186
|
+
const storeMetadataParams = {
|
|
187
|
+
ttl: TTL$3,
|
|
188
|
+
namespace: keyPrefix,
|
|
189
|
+
version: VERSION$3,
|
|
190
|
+
representationName: RepresentationType$3
|
|
191
|
+
};
|
|
192
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
193
|
+
return errorSnapshot;
|
|
194
|
+
}
|
|
195
|
+
function createResourceRequest$3(config) {
|
|
196
|
+
const headers = {};
|
|
197
|
+
return {
|
|
198
|
+
baseUri: '/services/data/v66.0',
|
|
199
|
+
basePath: '/connect/revenue/dro/configurations',
|
|
200
|
+
method: 'get',
|
|
201
|
+
body: null,
|
|
202
|
+
urlParams: {},
|
|
203
|
+
queryParams: {},
|
|
204
|
+
headers,
|
|
205
|
+
priority: 'normal',
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
const adapterName$3 = 'getDfoConfigInfo';
|
|
210
|
+
const getDfoConfigInfo_ConfigPropertyMetadata = [];
|
|
211
|
+
const getDfoConfigInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDfoConfigInfo_ConfigPropertyMetadata);
|
|
212
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getDfoConfigInfo_ConfigPropertyMetadata);
|
|
213
|
+
function keyBuilder$5(luvio, config) {
|
|
214
|
+
createResourceParams$3(config);
|
|
215
|
+
return keyBuilder$6();
|
|
216
|
+
}
|
|
217
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
218
|
+
const config = {};
|
|
219
|
+
return config;
|
|
220
|
+
}
|
|
221
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
222
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
223
|
+
return null;
|
|
224
|
+
}
|
|
225
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
226
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
227
|
+
}
|
|
228
|
+
const config = typeCheckConfig$3();
|
|
229
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
230
|
+
return null;
|
|
231
|
+
}
|
|
232
|
+
return config;
|
|
233
|
+
}
|
|
234
|
+
function adapterFragment$2(luvio, config) {
|
|
235
|
+
createResourceParams$3(config);
|
|
236
|
+
return select$6();
|
|
237
|
+
}
|
|
238
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
239
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
240
|
+
config,
|
|
241
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
242
|
+
});
|
|
243
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
244
|
+
}
|
|
245
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
246
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
247
|
+
config,
|
|
248
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
249
|
+
});
|
|
250
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
251
|
+
}
|
|
252
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
253
|
+
const resourceParams = createResourceParams$3(config);
|
|
254
|
+
const request = createResourceRequest$3();
|
|
255
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
256
|
+
.then((response) => {
|
|
257
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
258
|
+
const cache = new StoreKeyMap();
|
|
259
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
260
|
+
return cache;
|
|
261
|
+
});
|
|
262
|
+
}, (response) => {
|
|
263
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
267
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
268
|
+
}
|
|
269
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
270
|
+
const { luvio, config } = context;
|
|
271
|
+
const selector = {
|
|
272
|
+
recordId: keyBuilder$5(luvio, config),
|
|
273
|
+
node: adapterFragment$2(luvio, config),
|
|
274
|
+
variables: {},
|
|
275
|
+
};
|
|
276
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
277
|
+
config,
|
|
278
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
279
|
+
});
|
|
280
|
+
return cacheSnapshot;
|
|
281
|
+
}
|
|
282
|
+
const getDfoConfigInfoAdapterFactory = (luvio) => function dfo__getDfoConfigInfo(untrustedConfig, requestContext) {
|
|
283
|
+
const config = validateAdapterConfig$3(untrustedConfig, getDfoConfigInfo_ConfigPropertyNames);
|
|
284
|
+
// Invalid or incomplete config
|
|
285
|
+
if (config === null) {
|
|
286
|
+
return null;
|
|
287
|
+
}
|
|
288
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
289
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
const TTL$2 = 1000;
|
|
293
|
+
const VERSION$2 = "6276c05f3d390d7a92e532aadaf4abd2";
|
|
294
|
+
function validate$2(obj, path = 'DroDecompositionViewerGetOutputRepresentation') {
|
|
295
|
+
const v_error = (() => {
|
|
296
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
297
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
298
|
+
}
|
|
299
|
+
const obj_statusMessage = obj.statusMessage;
|
|
300
|
+
const path_statusMessage = path + '.statusMessage';
|
|
301
|
+
if (typeof obj_statusMessage !== 'string') {
|
|
302
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusMessage + '" (at "' + path_statusMessage + '")');
|
|
303
|
+
}
|
|
304
|
+
const obj_values = obj.values;
|
|
305
|
+
const path_values = path + '.values';
|
|
306
|
+
if (typeof obj_values !== 'object' || ArrayIsArray(obj_values) || obj_values === null) {
|
|
307
|
+
return new TypeError('Expected "object" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
308
|
+
}
|
|
309
|
+
const obj_values_keys = ObjectKeys(obj_values);
|
|
310
|
+
for (let i = 0; i < obj_values_keys.length; i++) {
|
|
311
|
+
const key = obj_values_keys[i];
|
|
312
|
+
const obj_values_prop = obj_values[key];
|
|
313
|
+
const path_values_prop = path_values + '["' + key + '"]';
|
|
314
|
+
if (obj_values_prop === undefined) {
|
|
315
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_values_prop + '" (at "' + path_values_prop + '")');
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
})();
|
|
319
|
+
return v_error === undefined ? null : v_error;
|
|
320
|
+
}
|
|
321
|
+
const RepresentationType$2 = 'DroDecompositionViewerGetOutputRepresentation';
|
|
118
322
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
119
323
|
return input;
|
|
120
324
|
}
|
|
121
|
-
const select$5 = function
|
|
325
|
+
const select$5 = function DroDecompositionViewerGetOutputRepresentationSelect() {
|
|
122
326
|
return {
|
|
123
327
|
kind: 'Fragment',
|
|
124
328
|
version: VERSION$2,
|
|
@@ -132,7 +336,7 @@ function equals$2(existing, incoming) {
|
|
|
132
336
|
}
|
|
133
337
|
return true;
|
|
134
338
|
}
|
|
135
|
-
const ingest$2 = function
|
|
339
|
+
const ingest$2 = function DroDecompositionViewerGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
136
340
|
if (process.env.NODE_ENV !== 'production') {
|
|
137
341
|
const validateError = validate$2(input);
|
|
138
342
|
if (validateError !== null) {
|
|
@@ -158,14 +362,14 @@ function select$4(luvio, params) {
|
|
|
158
362
|
return select$5();
|
|
159
363
|
}
|
|
160
364
|
function keyBuilder$4(luvio, params) {
|
|
161
|
-
return keyPrefix + '::
|
|
365
|
+
return keyPrefix + '::DroDecompositionViewerGetOutputRepresentation:(' + 'salesTransactionId:' + params.urlParams.salesTransactionId + ',' + 'typeOfData:' + params.urlParams.typeOfData + ')';
|
|
162
366
|
}
|
|
163
367
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
164
|
-
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4());
|
|
368
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
|
|
165
369
|
}
|
|
166
370
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
167
371
|
const { body } = response;
|
|
168
|
-
const key = keyBuilder$4();
|
|
372
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
169
373
|
luvio.storeIngest(key, ingest$2, body);
|
|
170
374
|
const snapshot = luvio.storeLookup({
|
|
171
375
|
recordId: key,
|
|
@@ -181,7 +385,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
181
385
|
return snapshot;
|
|
182
386
|
}
|
|
183
387
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
184
|
-
const key = keyBuilder$4();
|
|
388
|
+
const key = keyBuilder$4(luvio, params);
|
|
185
389
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
186
390
|
const storeMetadataParams = {
|
|
187
391
|
ttl: TTL$2,
|
|
@@ -196,26 +400,30 @@ function createResourceRequest$2(config) {
|
|
|
196
400
|
const headers = {};
|
|
197
401
|
return {
|
|
198
402
|
baseUri: '/services/data/v66.0',
|
|
199
|
-
basePath: '/connect/
|
|
403
|
+
basePath: '/connect/dro/' + config.urlParams.salesTransactionId + '/' + config.urlParams.typeOfData + '',
|
|
200
404
|
method: 'get',
|
|
201
405
|
body: null,
|
|
202
|
-
urlParams:
|
|
406
|
+
urlParams: config.urlParams,
|
|
203
407
|
queryParams: {},
|
|
204
408
|
headers,
|
|
205
409
|
priority: 'normal',
|
|
206
410
|
};
|
|
207
411
|
}
|
|
208
412
|
|
|
209
|
-
const adapterName$2 = '
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
|
|
413
|
+
const adapterName$2 = 'getDroDecompositionViewer';
|
|
414
|
+
const getDroDecompositionViewer_ConfigPropertyMetadata = [
|
|
415
|
+
generateParamConfigMetadata('salesTransactionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
416
|
+
generateParamConfigMetadata('typeOfData', true, 0 /* UrlParameter */, 0 /* String */),
|
|
417
|
+
];
|
|
418
|
+
const getDroDecompositionViewer_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDroDecompositionViewer_ConfigPropertyMetadata);
|
|
419
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getDroDecompositionViewer_ConfigPropertyMetadata);
|
|
213
420
|
function keyBuilder$3(luvio, config) {
|
|
214
|
-
createResourceParams$2(config);
|
|
215
|
-
return keyBuilder$4();
|
|
421
|
+
const resourceParams = createResourceParams$2(config);
|
|
422
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
216
423
|
}
|
|
217
424
|
function typeCheckConfig$2(untrustedConfig) {
|
|
218
425
|
const config = {};
|
|
426
|
+
typeCheckConfig$4(untrustedConfig, config, getDroDecompositionViewer_ConfigPropertyMetadata);
|
|
219
427
|
return config;
|
|
220
428
|
}
|
|
221
429
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -225,7 +433,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
225
433
|
if (process.env.NODE_ENV !== 'production') {
|
|
226
434
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
227
435
|
}
|
|
228
|
-
const config = typeCheckConfig$2();
|
|
436
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
229
437
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
230
438
|
return null;
|
|
231
439
|
}
|
|
@@ -251,7 +459,7 @@ function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
|
251
459
|
}
|
|
252
460
|
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
253
461
|
const resourceParams = createResourceParams$2(config);
|
|
254
|
-
const request = createResourceRequest$2();
|
|
462
|
+
const request = createResourceRequest$2(resourceParams);
|
|
255
463
|
return luvio.dispatchResourceRequest(request, options)
|
|
256
464
|
.then((response) => {
|
|
257
465
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
@@ -264,7 +472,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
264
472
|
});
|
|
265
473
|
}
|
|
266
474
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
267
|
-
return buildNetworkSnapshotCachePolicy$
|
|
475
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
268
476
|
}
|
|
269
477
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
270
478
|
const { luvio, config } = context;
|
|
@@ -279,8 +487,8 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
279
487
|
});
|
|
280
488
|
return cacheSnapshot;
|
|
281
489
|
}
|
|
282
|
-
const
|
|
283
|
-
const config = validateAdapterConfig$2(untrustedConfig,
|
|
490
|
+
const getDroDecompositionViewerAdapterFactory = (luvio) => function dfo__getDroDecompositionViewer(untrustedConfig, requestContext) {
|
|
491
|
+
const config = validateAdapterConfig$2(untrustedConfig, getDroDecompositionViewer_ConfigPropertyNames);
|
|
284
492
|
// Invalid or incomplete config
|
|
285
493
|
if (config === null) {
|
|
286
494
|
return null;
|
|
@@ -290,8 +498,8 @@ const getDfoConfigInfoAdapterFactory = (luvio) => function dfo__getDfoConfigInfo
|
|
|
290
498
|
};
|
|
291
499
|
|
|
292
500
|
const TTL$1 = 1000;
|
|
293
|
-
const VERSION$1 = "
|
|
294
|
-
function validate$1(obj, path = '
|
|
501
|
+
const VERSION$1 = "b3d5c519b37d4ac361efe2da46c6c17a";
|
|
502
|
+
function validate$1(obj, path = 'DroOrchestrationGetOutputRepresentation') {
|
|
295
503
|
const v_error = (() => {
|
|
296
504
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
297
505
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -318,11 +526,11 @@ function validate$1(obj, path = 'DroDecompositionViewerGetOutputRepresentation')
|
|
|
318
526
|
})();
|
|
319
527
|
return v_error === undefined ? null : v_error;
|
|
320
528
|
}
|
|
321
|
-
const RepresentationType$1 = '
|
|
529
|
+
const RepresentationType$1 = 'DroOrchestrationGetOutputRepresentation';
|
|
322
530
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
323
531
|
return input;
|
|
324
532
|
}
|
|
325
|
-
const select$3 = function
|
|
533
|
+
const select$3 = function DroOrchestrationGetOutputRepresentationSelect() {
|
|
326
534
|
return {
|
|
327
535
|
kind: 'Fragment',
|
|
328
536
|
version: VERSION$1,
|
|
@@ -336,7 +544,7 @@ function equals$1(existing, incoming) {
|
|
|
336
544
|
}
|
|
337
545
|
return true;
|
|
338
546
|
}
|
|
339
|
-
const ingest$1 = function
|
|
547
|
+
const ingest$1 = function DroOrchestrationGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
340
548
|
if (process.env.NODE_ENV !== 'production') {
|
|
341
549
|
const validateError = validate$1(input);
|
|
342
550
|
if (validateError !== null) {
|
|
@@ -362,7 +570,7 @@ function select$2(luvio, params) {
|
|
|
362
570
|
return select$3();
|
|
363
571
|
}
|
|
364
572
|
function keyBuilder$2(luvio, params) {
|
|
365
|
-
return keyPrefix + '::
|
|
573
|
+
return keyPrefix + '::DroOrchestrationGetOutputRepresentation:(' + 'transactionId:' + params.urlParams.transactionId + ',' + 'typeOfData:' + params.urlParams.typeOfData + ')';
|
|
366
574
|
}
|
|
367
575
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
368
576
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
@@ -400,7 +608,7 @@ function createResourceRequest$1(config) {
|
|
|
400
608
|
const headers = {};
|
|
401
609
|
return {
|
|
402
610
|
baseUri: '/services/data/v66.0',
|
|
403
|
-
basePath: '/connect/dro/' + config.urlParams.
|
|
611
|
+
basePath: '/connect/dro/orchestration/' + config.urlParams.transactionId + '/' + config.urlParams.typeOfData + '',
|
|
404
612
|
method: 'get',
|
|
405
613
|
body: null,
|
|
406
614
|
urlParams: config.urlParams,
|
|
@@ -410,20 +618,20 @@ function createResourceRequest$1(config) {
|
|
|
410
618
|
};
|
|
411
619
|
}
|
|
412
620
|
|
|
413
|
-
const adapterName$1 = '
|
|
414
|
-
const
|
|
415
|
-
generateParamConfigMetadata('
|
|
621
|
+
const adapterName$1 = 'getDroOrchestration';
|
|
622
|
+
const getDroOrchestration_ConfigPropertyMetadata = [
|
|
623
|
+
generateParamConfigMetadata('transactionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
416
624
|
generateParamConfigMetadata('typeOfData', true, 0 /* UrlParameter */, 0 /* String */),
|
|
417
625
|
];
|
|
418
|
-
const
|
|
419
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
626
|
+
const getDroOrchestration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDroOrchestration_ConfigPropertyMetadata);
|
|
627
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getDroOrchestration_ConfigPropertyMetadata);
|
|
420
628
|
function keyBuilder$1(luvio, config) {
|
|
421
629
|
const resourceParams = createResourceParams$1(config);
|
|
422
630
|
return keyBuilder$2(luvio, resourceParams);
|
|
423
631
|
}
|
|
424
632
|
function typeCheckConfig$1(untrustedConfig) {
|
|
425
633
|
const config = {};
|
|
426
|
-
typeCheckConfig$
|
|
634
|
+
typeCheckConfig$4(untrustedConfig, config, getDroOrchestration_ConfigPropertyMetadata);
|
|
427
635
|
return config;
|
|
428
636
|
}
|
|
429
637
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -472,7 +680,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
472
680
|
});
|
|
473
681
|
}
|
|
474
682
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
475
|
-
return buildNetworkSnapshotCachePolicy$
|
|
683
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
476
684
|
}
|
|
477
685
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
478
686
|
const { luvio, config } = context;
|
|
@@ -487,8 +695,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
487
695
|
});
|
|
488
696
|
return cacheSnapshot;
|
|
489
697
|
}
|
|
490
|
-
const
|
|
491
|
-
const config = validateAdapterConfig$1(untrustedConfig,
|
|
698
|
+
const getDroOrchestrationAdapterFactory = (luvio) => function dfo__getDroOrchestration(untrustedConfig, requestContext) {
|
|
699
|
+
const config = validateAdapterConfig$1(untrustedConfig, getDroOrchestration_ConfigPropertyNames);
|
|
492
700
|
// Invalid or incomplete config
|
|
493
701
|
if (config === null) {
|
|
494
702
|
return null;
|
|
@@ -603,7 +811,7 @@ const putDfoConfigInfo_ConfigPropertyMetadata = [
|
|
|
603
811
|
generateParamConfigMetadata('values', true, 2 /* Body */, 4 /* Unsupported */),
|
|
604
812
|
];
|
|
605
813
|
const putDfoConfigInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, putDfoConfigInfo_ConfigPropertyMetadata);
|
|
606
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
814
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$4(putDfoConfigInfo_ConfigPropertyMetadata);
|
|
607
815
|
function typeCheckConfig(untrustedConfig) {
|
|
608
816
|
const config = {};
|
|
609
817
|
const untrustedConfig_values = untrustedConfig.values;
|
|
@@ -669,10 +877,12 @@ const putDfoConfigInfoAdapterFactory = (luvio) => {
|
|
|
669
877
|
|
|
670
878
|
let getDfoConfigInfo;
|
|
671
879
|
let getDroDecompositionViewer;
|
|
880
|
+
let getDroOrchestration;
|
|
672
881
|
let putDfoConfigInfo;
|
|
673
882
|
// Imperative GET Adapters
|
|
674
883
|
let getDfoConfigInfo_imperative;
|
|
675
884
|
let getDroDecompositionViewer_imperative;
|
|
885
|
+
let getDroOrchestration_imperative;
|
|
676
886
|
// Adapter Metadata
|
|
677
887
|
const getDfoConfigInfoMetadata = { apiFamily: 'dfo', name: 'getDfoConfigInfo', ttl: 1000 };
|
|
678
888
|
const getDroDecompositionViewerMetadata = {
|
|
@@ -680,11 +890,13 @@ const getDroDecompositionViewerMetadata = {
|
|
|
680
890
|
name: 'getDroDecompositionViewer',
|
|
681
891
|
ttl: 1000,
|
|
682
892
|
};
|
|
893
|
+
const getDroOrchestrationMetadata = { apiFamily: 'dfo', name: 'getDroOrchestration', ttl: 1000 };
|
|
683
894
|
// Notify Update Available
|
|
684
895
|
function bindExportsTo(luvio) {
|
|
685
896
|
// LDS Adapters
|
|
686
897
|
const getDfoConfigInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDfoConfigInfo', getDfoConfigInfoAdapterFactory), getDfoConfigInfoMetadata);
|
|
687
898
|
const getDroDecompositionViewer_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDroDecompositionViewer', getDroDecompositionViewerAdapterFactory), getDroDecompositionViewerMetadata);
|
|
899
|
+
const getDroOrchestration_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDroOrchestration', getDroOrchestrationAdapterFactory), getDroOrchestrationMetadata);
|
|
688
900
|
function unwrapSnapshotData(factory) {
|
|
689
901
|
const adapter = factory(luvio);
|
|
690
902
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
@@ -692,10 +904,12 @@ function bindExportsTo(luvio) {
|
|
|
692
904
|
return {
|
|
693
905
|
getDfoConfigInfo: createWireAdapterConstructor(luvio, getDfoConfigInfo_ldsAdapter, getDfoConfigInfoMetadata),
|
|
694
906
|
getDroDecompositionViewer: createWireAdapterConstructor(luvio, getDroDecompositionViewer_ldsAdapter, getDroDecompositionViewerMetadata),
|
|
907
|
+
getDroOrchestration: createWireAdapterConstructor(luvio, getDroOrchestration_ldsAdapter, getDroOrchestrationMetadata),
|
|
695
908
|
putDfoConfigInfo: unwrapSnapshotData(putDfoConfigInfoAdapterFactory),
|
|
696
909
|
// Imperative GET Adapters
|
|
697
910
|
getDfoConfigInfo_imperative: createImperativeAdapter(luvio, getDfoConfigInfo_ldsAdapter, getDfoConfigInfoMetadata),
|
|
698
911
|
getDroDecompositionViewer_imperative: createImperativeAdapter(luvio, getDroDecompositionViewer_ldsAdapter, getDroDecompositionViewerMetadata),
|
|
912
|
+
getDroOrchestration_imperative: createImperativeAdapter(luvio, getDroOrchestration_ldsAdapter, getDroOrchestrationMetadata),
|
|
699
913
|
// Notify Update Availables
|
|
700
914
|
};
|
|
701
915
|
}
|
|
@@ -703,11 +917,13 @@ withDefaultLuvio((luvio) => {
|
|
|
703
917
|
({
|
|
704
918
|
getDfoConfigInfo,
|
|
705
919
|
getDroDecompositionViewer,
|
|
920
|
+
getDroOrchestration,
|
|
706
921
|
putDfoConfigInfo,
|
|
707
922
|
getDfoConfigInfo_imperative,
|
|
708
923
|
getDroDecompositionViewer_imperative,
|
|
924
|
+
getDroOrchestration_imperative,
|
|
709
925
|
} = bindExportsTo(luvio));
|
|
710
926
|
});
|
|
711
927
|
|
|
712
|
-
export { getDfoConfigInfo, getDfoConfigInfo_imperative, getDroDecompositionViewer, getDroDecompositionViewer_imperative, putDfoConfigInfo };
|
|
713
|
-
// version: 1.
|
|
928
|
+
export { getDfoConfigInfo, getDfoConfigInfo_imperative, getDroDecompositionViewer, getDroDecompositionViewer_imperative, getDroOrchestration, getDroOrchestration_imperative, putDfoConfigInfo };
|
|
929
|
+
// version: 1.397.0-006831ea37
|
package/src/raml/api.raml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
securedBy:
|
|
3
3
|
- OAuth2
|
|
4
4
|
title: Salesforce Connect API
|
|
5
|
-
version: '
|
|
5
|
+
version: '66.0'
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
@@ -78,7 +78,47 @@ types:
|
|
|
78
78
|
properties:
|
|
79
79
|
//:
|
|
80
80
|
type: any
|
|
81
|
+
DroOrchestrationGetOutputRepresentation:
|
|
82
|
+
description: DRO get Orchestration Output Representation
|
|
83
|
+
type: object
|
|
84
|
+
properties:
|
|
85
|
+
statusMessage:
|
|
86
|
+
description: Orchestration Response Status Message
|
|
87
|
+
type: string
|
|
88
|
+
values:
|
|
89
|
+
description: Orchestration Response
|
|
90
|
+
type: object
|
|
91
|
+
properties:
|
|
92
|
+
//:
|
|
93
|
+
type: any
|
|
94
|
+
DroOrchestrationInputRepresentation:
|
|
95
|
+
description: DRO Orchestration Api Input Representation
|
|
96
|
+
type: object
|
|
97
|
+
properties:
|
|
98
|
+
input:
|
|
99
|
+
description: orchestration related data
|
|
100
|
+
type: object
|
|
101
|
+
properties:
|
|
102
|
+
//:
|
|
103
|
+
type: any
|
|
81
104
|
/connect:
|
|
105
|
+
/dro/orchestration/{transactionId}/{typeOfData}:
|
|
106
|
+
get:
|
|
107
|
+
displayName: getDroOrchestration
|
|
108
|
+
description: API to Get DRO Orchestration Data
|
|
109
|
+
responses:
|
|
110
|
+
'200':
|
|
111
|
+
description: Success
|
|
112
|
+
body:
|
|
113
|
+
application/json:
|
|
114
|
+
type: DroOrchestrationGetOutputRepresentation
|
|
115
|
+
uriParameters:
|
|
116
|
+
transactionId:
|
|
117
|
+
description: Transaction Id
|
|
118
|
+
type: string
|
|
119
|
+
typeOfData:
|
|
120
|
+
description: Type Of Data
|
|
121
|
+
type: string
|
|
82
122
|
/dro/{salesTransactionId}/{typeOfData}:
|
|
83
123
|
get:
|
|
84
124
|
displayName: getDroDecompositionViewer
|
package/src/raml/luvio.raml
CHANGED
|
@@ -19,6 +19,9 @@ types:
|
|
|
19
19
|
DroDecompositionViewerGetOutputRepresentation:
|
|
20
20
|
(luvio.ttl): 1000
|
|
21
21
|
(luvio.opaque): true
|
|
22
|
+
DroOrchestrationGetOutputRepresentation:
|
|
23
|
+
(luvio.ttl): 1000
|
|
24
|
+
(luvio.opaque): true
|
|
22
25
|
/connect:
|
|
23
26
|
/revenue/dro/configurations:
|
|
24
27
|
get:
|
|
@@ -31,3 +34,7 @@ types:
|
|
|
31
34
|
get:
|
|
32
35
|
(luvio.adapter):
|
|
33
36
|
name: getDroDecompositionViewer
|
|
37
|
+
/dro/orchestration/{transactionId}/{typeOfData}:
|
|
38
|
+
get:
|
|
39
|
+
(luvio.adapter):
|
|
40
|
+
name: getDroOrchestration
|