@salesforce/lds-adapters-industries-epc 1.264.0 → 1.266.0-dev1
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-epc.js +617 -329
- package/dist/es/es2018/types/src/generated/adapters/getConfigRuleMetadata.d.ts +29 -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/getConnectPcmConfigurationRuleConfigRuleMetadataByUsageTypeAndUsageSubType.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/types/ConfigRuleHashColumnInfoOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ConfigRuleHashColumnsInfoOutputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/ConfigRuleMetadataOutputRepresentation.d.ts +46 -0
- package/package.json +6 -5
- package/sfdc/index.js +418 -118
- package/src/raml/api.raml +73 -0
- package/src/raml/luvio.raml +7 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$7, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$7 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -102,7 +102,7 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function validate$
|
|
105
|
+
function validate$s(obj, path = 'ProductAttributeDefinitionListInputRepresentation') {
|
|
106
106
|
const v_error = (() => {
|
|
107
107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -123,7 +123,7 @@ function validate$p(obj, path = 'ProductAttributeDefinitionListInputRepresentati
|
|
|
123
123
|
return v_error === undefined ? null : v_error;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
function validate$
|
|
126
|
+
function validate$r(obj, path = 'ProductAttributeDefinitionRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -146,9 +146,9 @@ function validate$o(obj, path = 'ProductAttributeDefinitionRepresentation') {
|
|
|
146
146
|
return v_error === undefined ? null : v_error;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
const TTL$
|
|
150
|
-
const VERSION$
|
|
151
|
-
function validate$
|
|
149
|
+
const TTL$5 = 6000;
|
|
150
|
+
const VERSION$7 = "e67d3c8569b9667eac98cc1a9840041c";
|
|
151
|
+
function validate$q(obj, path = 'ProductAttributeDefinitionListRepresentation') {
|
|
152
152
|
const v_error = (() => {
|
|
153
153
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
154
154
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -161,7 +161,7 @@ function validate$n(obj, path = 'ProductAttributeDefinitionListRepresentation')
|
|
|
161
161
|
for (let i = 0; i < obj_data.length; i++) {
|
|
162
162
|
const obj_data_item = obj_data[i];
|
|
163
163
|
const path_data_item = path_data + '[' + i + ']';
|
|
164
|
-
const referencepath_data_itemValidationError = validate$
|
|
164
|
+
const referencepath_data_itemValidationError = validate$r(obj_data_item, path_data_item);
|
|
165
165
|
if (referencepath_data_itemValidationError !== null) {
|
|
166
166
|
let message = 'Object doesn\'t match ProductAttributeDefinitionRepresentation (at "' + path_data_item + '")\n';
|
|
167
167
|
message += referencepath_data_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -176,68 +176,68 @@ function validate$n(obj, path = 'ProductAttributeDefinitionListRepresentation')
|
|
|
176
176
|
})();
|
|
177
177
|
return v_error === undefined ? null : v_error;
|
|
178
178
|
}
|
|
179
|
-
const RepresentationType$
|
|
180
|
-
function keyBuilder$
|
|
181
|
-
return keyPrefix + '::' + RepresentationType$
|
|
179
|
+
const RepresentationType$6 = 'ProductAttributeDefinitionListRepresentation';
|
|
180
|
+
function keyBuilder$b(luvio, config) {
|
|
181
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.message;
|
|
182
182
|
}
|
|
183
183
|
function keyBuilderFromType$1(luvio, object) {
|
|
184
184
|
const keyParams = {
|
|
185
185
|
message: object.message
|
|
186
186
|
};
|
|
187
|
-
return keyBuilder$
|
|
187
|
+
return keyBuilder$b(luvio, keyParams);
|
|
188
188
|
}
|
|
189
|
-
function normalize$
|
|
189
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
190
190
|
return input;
|
|
191
191
|
}
|
|
192
|
-
const select$
|
|
192
|
+
const select$e = function ProductAttributeDefinitionListRepresentationSelect() {
|
|
193
193
|
return {
|
|
194
194
|
kind: 'Fragment',
|
|
195
|
-
version: VERSION$
|
|
195
|
+
version: VERSION$7,
|
|
196
196
|
private: [],
|
|
197
197
|
opaque: true
|
|
198
198
|
};
|
|
199
199
|
};
|
|
200
|
-
function equals$
|
|
200
|
+
function equals$7(existing, incoming) {
|
|
201
201
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
202
202
|
return false;
|
|
203
203
|
}
|
|
204
204
|
return true;
|
|
205
205
|
}
|
|
206
|
-
const ingest$
|
|
206
|
+
const ingest$6 = function ProductAttributeDefinitionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
207
207
|
if (process.env.NODE_ENV !== 'production') {
|
|
208
|
-
const validateError = validate$
|
|
208
|
+
const validateError = validate$q(input);
|
|
209
209
|
if (validateError !== null) {
|
|
210
210
|
throw validateError;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
const key = keyBuilderFromType$1(luvio, input);
|
|
214
|
-
const ttlToUse = TTL$
|
|
215
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
214
|
+
const ttlToUse = TTL$5;
|
|
215
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "epc", VERSION$7, RepresentationType$6, equals$7);
|
|
216
216
|
return createLink(key);
|
|
217
217
|
};
|
|
218
|
-
function getTypeCacheKeys$
|
|
218
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
219
219
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
220
220
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
221
221
|
rootKeySet.set(rootKey, {
|
|
222
222
|
namespace: keyPrefix,
|
|
223
|
-
representationName: RepresentationType$
|
|
223
|
+
representationName: RepresentationType$6,
|
|
224
224
|
mergeable: false
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
function select$
|
|
229
|
-
return select$
|
|
228
|
+
function select$d(luvio, params) {
|
|
229
|
+
return select$e();
|
|
230
230
|
}
|
|
231
|
-
function getResponseCacheKeys$
|
|
232
|
-
getTypeCacheKeys$
|
|
231
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
232
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
233
233
|
}
|
|
234
|
-
function ingestSuccess$
|
|
234
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
235
235
|
const { body } = response;
|
|
236
236
|
const key = keyBuilderFromType$1(luvio, body);
|
|
237
|
-
luvio.storeIngest(key, ingest$
|
|
237
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
238
238
|
const snapshot = luvio.storeLookup({
|
|
239
239
|
recordId: key,
|
|
240
|
-
node: select$
|
|
240
|
+
node: select$d(),
|
|
241
241
|
variables: {},
|
|
242
242
|
});
|
|
243
243
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -248,7 +248,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
248
248
|
deepFreeze(snapshot.data);
|
|
249
249
|
return snapshot;
|
|
250
250
|
}
|
|
251
|
-
function createResourceRequest$
|
|
251
|
+
function createResourceRequest$6(config) {
|
|
252
252
|
const headers = {};
|
|
253
253
|
return {
|
|
254
254
|
baseUri: '/services/data/v60.0',
|
|
@@ -262,45 +262,45 @@ function createResourceRequest$5(config) {
|
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
const adapterName$
|
|
265
|
+
const adapterName$6 = 'createProductAttributeDefinition';
|
|
266
266
|
const createProductAttributeDefinition_ConfigPropertyMetadata = [
|
|
267
267
|
generateParamConfigMetadata('productAttributeDefinitionListInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
268
268
|
];
|
|
269
|
-
const createProductAttributeDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
270
|
-
const createResourceParams$
|
|
271
|
-
function typeCheckConfig$
|
|
269
|
+
const createProductAttributeDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createProductAttributeDefinition_ConfigPropertyMetadata);
|
|
270
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createProductAttributeDefinition_ConfigPropertyMetadata);
|
|
271
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
272
272
|
const config = {};
|
|
273
273
|
const untrustedConfig_productAttributeDefinitionListInputPayload = untrustedConfig.productAttributeDefinitionListInputPayload;
|
|
274
|
-
const referenceProductAttributeDefinitionListInputRepresentationValidationError = validate$
|
|
274
|
+
const referenceProductAttributeDefinitionListInputRepresentationValidationError = validate$s(untrustedConfig_productAttributeDefinitionListInputPayload);
|
|
275
275
|
if (referenceProductAttributeDefinitionListInputRepresentationValidationError === null) {
|
|
276
276
|
config.productAttributeDefinitionListInputPayload = untrustedConfig_productAttributeDefinitionListInputPayload;
|
|
277
277
|
}
|
|
278
278
|
return config;
|
|
279
279
|
}
|
|
280
|
-
function validateAdapterConfig$
|
|
280
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
281
281
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
282
282
|
return null;
|
|
283
283
|
}
|
|
284
284
|
if (process.env.NODE_ENV !== 'production') {
|
|
285
285
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
286
286
|
}
|
|
287
|
-
const config = typeCheckConfig$
|
|
287
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
288
288
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
289
289
|
return null;
|
|
290
290
|
}
|
|
291
291
|
return config;
|
|
292
292
|
}
|
|
293
|
-
function buildNetworkSnapshot$
|
|
294
|
-
const resourceParams = createResourceParams$
|
|
295
|
-
const request = createResourceRequest$
|
|
293
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
294
|
+
const resourceParams = createResourceParams$6(config);
|
|
295
|
+
const request = createResourceRequest$6(resourceParams);
|
|
296
296
|
return luvio.dispatchResourceRequest(request, options)
|
|
297
297
|
.then((response) => {
|
|
298
298
|
return luvio.handleSuccessResponse(() => {
|
|
299
|
-
const snapshot = ingestSuccess$
|
|
299
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
300
300
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
301
301
|
}, () => {
|
|
302
302
|
const cache = new StoreKeyMap();
|
|
303
|
-
getResponseCacheKeys$
|
|
303
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
304
304
|
return cache;
|
|
305
305
|
});
|
|
306
306
|
}, (response) => {
|
|
@@ -310,16 +310,16 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
310
310
|
}
|
|
311
311
|
const createProductAttributeDefinitionAdapterFactory = (luvio) => {
|
|
312
312
|
return function createProductAttributeDefinition(untrustedConfig) {
|
|
313
|
-
const config = validateAdapterConfig$
|
|
313
|
+
const config = validateAdapterConfig$6(untrustedConfig, createProductAttributeDefinition_ConfigPropertyNames);
|
|
314
314
|
// Invalid or incomplete config
|
|
315
315
|
if (config === null) {
|
|
316
316
|
throw new Error('Invalid config for "createProductAttributeDefinition"');
|
|
317
317
|
}
|
|
318
|
-
return buildNetworkSnapshot$
|
|
318
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
319
319
|
};
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
-
function validate$
|
|
322
|
+
function validate$p(obj, path = 'DeactivateInputRepresentation') {
|
|
323
323
|
const v_error = (() => {
|
|
324
324
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
325
325
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -352,7 +352,7 @@ function validate$m(obj, path = 'DeactivateInputRepresentation') {
|
|
|
352
352
|
return v_error === undefined ? null : v_error;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
function validate$
|
|
355
|
+
function validate$o(obj, path = 'ErrorOutputRepresentation') {
|
|
356
356
|
const v_error = (() => {
|
|
357
357
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
358
358
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -383,9 +383,9 @@ function validate$l(obj, path = 'ErrorOutputRepresentation') {
|
|
|
383
383
|
return v_error === undefined ? null : v_error;
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
const TTL$
|
|
387
|
-
const VERSION$
|
|
388
|
-
function validate$
|
|
386
|
+
const TTL$4 = 6000;
|
|
387
|
+
const VERSION$6 = "67abdeaa299bae24f468fd2e78cd1e1e";
|
|
388
|
+
function validate$n(obj, path = 'RecordIdMapOutputRepresentation') {
|
|
389
389
|
const v_error = (() => {
|
|
390
390
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
391
391
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -398,7 +398,7 @@ function validate$k(obj, path = 'RecordIdMapOutputRepresentation') {
|
|
|
398
398
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
399
399
|
const obj_errors_item = obj_errors[i];
|
|
400
400
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
401
|
-
const referencepath_errors_itemValidationError = validate$
|
|
401
|
+
const referencepath_errors_itemValidationError = validate$o(obj_errors_item, path_errors_item);
|
|
402
402
|
if (referencepath_errors_itemValidationError !== null) {
|
|
403
403
|
let message = 'Object doesn\'t match ErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
404
404
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -413,68 +413,68 @@ function validate$k(obj, path = 'RecordIdMapOutputRepresentation') {
|
|
|
413
413
|
})();
|
|
414
414
|
return v_error === undefined ? null : v_error;
|
|
415
415
|
}
|
|
416
|
-
const RepresentationType$
|
|
417
|
-
function keyBuilder$
|
|
418
|
-
return keyPrefix + '::' + RepresentationType$
|
|
416
|
+
const RepresentationType$5 = 'RecordIdMapOutputRepresentation';
|
|
417
|
+
function keyBuilder$a(luvio, config) {
|
|
418
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.message;
|
|
419
419
|
}
|
|
420
420
|
function keyBuilderFromType(luvio, object) {
|
|
421
421
|
const keyParams = {
|
|
422
422
|
message: object.status
|
|
423
423
|
};
|
|
424
|
-
return keyBuilder$
|
|
424
|
+
return keyBuilder$a(luvio, keyParams);
|
|
425
425
|
}
|
|
426
|
-
function normalize$
|
|
426
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
427
427
|
return input;
|
|
428
428
|
}
|
|
429
|
-
const select$
|
|
429
|
+
const select$c = function RecordIdMapOutputRepresentationSelect() {
|
|
430
430
|
return {
|
|
431
431
|
kind: 'Fragment',
|
|
432
|
-
version: VERSION$
|
|
432
|
+
version: VERSION$6,
|
|
433
433
|
private: [],
|
|
434
434
|
opaque: true
|
|
435
435
|
};
|
|
436
436
|
};
|
|
437
|
-
function equals$
|
|
437
|
+
function equals$6(existing, incoming) {
|
|
438
438
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
439
439
|
return false;
|
|
440
440
|
}
|
|
441
441
|
return true;
|
|
442
442
|
}
|
|
443
|
-
const ingest$
|
|
443
|
+
const ingest$5 = function RecordIdMapOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
444
444
|
if (process.env.NODE_ENV !== 'production') {
|
|
445
|
-
const validateError = validate$
|
|
445
|
+
const validateError = validate$n(input);
|
|
446
446
|
if (validateError !== null) {
|
|
447
447
|
throw validateError;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
const key = keyBuilderFromType(luvio, input);
|
|
451
|
-
const ttlToUse = TTL$
|
|
452
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
451
|
+
const ttlToUse = TTL$4;
|
|
452
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "epc", VERSION$6, RepresentationType$5, equals$6);
|
|
453
453
|
return createLink(key);
|
|
454
454
|
};
|
|
455
|
-
function getTypeCacheKeys$
|
|
455
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
456
456
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
457
457
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
458
458
|
rootKeySet.set(rootKey, {
|
|
459
459
|
namespace: keyPrefix,
|
|
460
|
-
representationName: RepresentationType$
|
|
460
|
+
representationName: RepresentationType$5,
|
|
461
461
|
mergeable: false
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
function select$
|
|
466
|
-
return select$
|
|
465
|
+
function select$b(luvio, params) {
|
|
466
|
+
return select$c();
|
|
467
467
|
}
|
|
468
|
-
function getResponseCacheKeys$
|
|
469
|
-
getTypeCacheKeys$
|
|
468
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
469
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
470
470
|
}
|
|
471
|
-
function ingestSuccess$
|
|
471
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
472
472
|
const { body } = response;
|
|
473
473
|
const key = keyBuilderFromType(luvio, body);
|
|
474
|
-
luvio.storeIngest(key, ingest$
|
|
474
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
475
475
|
const snapshot = luvio.storeLookup({
|
|
476
476
|
recordId: key,
|
|
477
|
-
node: select$
|
|
477
|
+
node: select$b(),
|
|
478
478
|
variables: {},
|
|
479
479
|
});
|
|
480
480
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -485,7 +485,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
485
485
|
deepFreeze(snapshot.data);
|
|
486
486
|
return snapshot;
|
|
487
487
|
}
|
|
488
|
-
function createResourceRequest$
|
|
488
|
+
function createResourceRequest$5(config) {
|
|
489
489
|
const headers = {};
|
|
490
490
|
return {
|
|
491
491
|
baseUri: '/services/data/v60.0',
|
|
@@ -499,45 +499,45 @@ function createResourceRequest$4(config) {
|
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
const adapterName$
|
|
502
|
+
const adapterName$5 = 'deactivate';
|
|
503
503
|
const deactivate_ConfigPropertyMetadata = [
|
|
504
504
|
generateParamConfigMetadata('deactivateInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
505
505
|
];
|
|
506
|
-
const deactivate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
507
|
-
const createResourceParams$
|
|
508
|
-
function typeCheckConfig$
|
|
506
|
+
const deactivate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deactivate_ConfigPropertyMetadata);
|
|
507
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(deactivate_ConfigPropertyMetadata);
|
|
508
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
509
509
|
const config = {};
|
|
510
510
|
const untrustedConfig_deactivateInputPayload = untrustedConfig.deactivateInputPayload;
|
|
511
|
-
const referenceDeactivateInputRepresentationValidationError = validate$
|
|
511
|
+
const referenceDeactivateInputRepresentationValidationError = validate$p(untrustedConfig_deactivateInputPayload);
|
|
512
512
|
if (referenceDeactivateInputRepresentationValidationError === null) {
|
|
513
513
|
config.deactivateInputPayload = untrustedConfig_deactivateInputPayload;
|
|
514
514
|
}
|
|
515
515
|
return config;
|
|
516
516
|
}
|
|
517
|
-
function validateAdapterConfig$
|
|
517
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
518
518
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
519
519
|
return null;
|
|
520
520
|
}
|
|
521
521
|
if (process.env.NODE_ENV !== 'production') {
|
|
522
522
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
523
523
|
}
|
|
524
|
-
const config = typeCheckConfig$
|
|
524
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
525
525
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
526
526
|
return null;
|
|
527
527
|
}
|
|
528
528
|
return config;
|
|
529
529
|
}
|
|
530
|
-
function buildNetworkSnapshot$
|
|
531
|
-
const resourceParams = createResourceParams$
|
|
532
|
-
const request = createResourceRequest$
|
|
530
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
531
|
+
const resourceParams = createResourceParams$5(config);
|
|
532
|
+
const request = createResourceRequest$5(resourceParams);
|
|
533
533
|
return luvio.dispatchResourceRequest(request, options)
|
|
534
534
|
.then((response) => {
|
|
535
535
|
return luvio.handleSuccessResponse(() => {
|
|
536
|
-
const snapshot = ingestSuccess$
|
|
536
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
537
537
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
538
538
|
}, () => {
|
|
539
539
|
const cache = new StoreKeyMap();
|
|
540
|
-
getResponseCacheKeys$
|
|
540
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
541
541
|
return cache;
|
|
542
542
|
});
|
|
543
543
|
}, (response) => {
|
|
@@ -547,16 +547,63 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
547
547
|
}
|
|
548
548
|
const deactivateAdapterFactory = (luvio) => {
|
|
549
549
|
return function deactivate(untrustedConfig) {
|
|
550
|
-
const config = validateAdapterConfig$
|
|
550
|
+
const config = validateAdapterConfig$5(untrustedConfig, deactivate_ConfigPropertyNames);
|
|
551
551
|
// Invalid or incomplete config
|
|
552
552
|
if (config === null) {
|
|
553
553
|
throw new Error('Invalid config for "deactivate"');
|
|
554
554
|
}
|
|
555
|
-
return buildNetworkSnapshot$
|
|
555
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
556
556
|
};
|
|
557
557
|
};
|
|
558
558
|
|
|
559
|
-
function validate$
|
|
559
|
+
function validate$m(obj, path = 'ConfigRuleHashColumnInfoOutputRepresentation') {
|
|
560
|
+
const v_error = (() => {
|
|
561
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
562
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
563
|
+
}
|
|
564
|
+
if (obj.datatype !== undefined) {
|
|
565
|
+
const obj_datatype = obj.datatype;
|
|
566
|
+
const path_datatype = path + '.datatype';
|
|
567
|
+
if (typeof obj_datatype !== 'string') {
|
|
568
|
+
return new TypeError('Expected "string" but received "' + typeof obj_datatype + '" (at "' + path_datatype + '")');
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
if (obj.title !== undefined) {
|
|
572
|
+
const obj_title = obj.title;
|
|
573
|
+
const path_title = path + '.title';
|
|
574
|
+
if (typeof obj_title !== 'string') {
|
|
575
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
})();
|
|
579
|
+
return v_error === undefined ? null : v_error;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
function validate$l(obj, path = 'ConfigRuleHashColumnsInfoOutputRepresentation') {
|
|
583
|
+
const v_error = (() => {
|
|
584
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
585
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
586
|
+
}
|
|
587
|
+
const obj_configRuleHashColumnsInfo = obj.configRuleHashColumnsInfo;
|
|
588
|
+
const path_configRuleHashColumnsInfo = path + '.configRuleHashColumnsInfo';
|
|
589
|
+
if (!ArrayIsArray(obj_configRuleHashColumnsInfo)) {
|
|
590
|
+
return new TypeError('Expected "array" but received "' + typeof obj_configRuleHashColumnsInfo + '" (at "' + path_configRuleHashColumnsInfo + '")');
|
|
591
|
+
}
|
|
592
|
+
for (let i = 0; i < obj_configRuleHashColumnsInfo.length; i++) {
|
|
593
|
+
const obj_configRuleHashColumnsInfo_item = obj_configRuleHashColumnsInfo[i];
|
|
594
|
+
const path_configRuleHashColumnsInfo_item = path_configRuleHashColumnsInfo + '[' + i + ']';
|
|
595
|
+
const referencepath_configRuleHashColumnsInfo_itemValidationError = validate$m(obj_configRuleHashColumnsInfo_item, path_configRuleHashColumnsInfo_item);
|
|
596
|
+
if (referencepath_configRuleHashColumnsInfo_itemValidationError !== null) {
|
|
597
|
+
let message = 'Object doesn\'t match ConfigRuleHashColumnInfoOutputRepresentation (at "' + path_configRuleHashColumnsInfo_item + '")\n';
|
|
598
|
+
message += referencepath_configRuleHashColumnsInfo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
599
|
+
return new TypeError(message);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
})();
|
|
603
|
+
return v_error === undefined ? null : v_error;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
function validate$k(obj, path = 'ContextFieldInfoOutputRepresentation') {
|
|
560
607
|
const v_error = (() => {
|
|
561
608
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
562
609
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -607,7 +654,7 @@ function validate$j(obj, path = 'ContextFieldInfoOutputRepresentation') {
|
|
|
607
654
|
return v_error === undefined ? null : v_error;
|
|
608
655
|
}
|
|
609
656
|
|
|
610
|
-
function validate$
|
|
657
|
+
function validate$j(obj, path = 'ContextFieldsInfoOutputRepresentation') {
|
|
611
658
|
const v_error = (() => {
|
|
612
659
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
613
660
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -620,7 +667,7 @@ function validate$i(obj, path = 'ContextFieldsInfoOutputRepresentation') {
|
|
|
620
667
|
for (let i = 0; i < obj_contextFieldsInfo.length; i++) {
|
|
621
668
|
const obj_contextFieldsInfo_item = obj_contextFieldsInfo[i];
|
|
622
669
|
const path_contextFieldsInfo_item = path_contextFieldsInfo + '[' + i + ']';
|
|
623
|
-
const referencepath_contextFieldsInfo_itemValidationError = validate$
|
|
670
|
+
const referencepath_contextFieldsInfo_itemValidationError = validate$k(obj_contextFieldsInfo_item, path_contextFieldsInfo_item);
|
|
624
671
|
if (referencepath_contextFieldsInfo_itemValidationError !== null) {
|
|
625
672
|
let message = 'Object doesn\'t match ContextFieldInfoOutputRepresentation (at "' + path_contextFieldsInfo_item + '")\n';
|
|
626
673
|
message += referencepath_contextFieldsInfo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -631,7 +678,7 @@ function validate$i(obj, path = 'ContextFieldsInfoOutputRepresentation') {
|
|
|
631
678
|
return v_error === undefined ? null : v_error;
|
|
632
679
|
}
|
|
633
680
|
|
|
634
|
-
function validate$
|
|
681
|
+
function validate$i(obj, path = 'ContextNodeInfoOutputRepresentation') {
|
|
635
682
|
const v_error = (() => {
|
|
636
683
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
637
684
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -646,7 +693,7 @@ function validate$h(obj, path = 'ContextNodeInfoOutputRepresentation') {
|
|
|
646
693
|
if (obj.childNodes !== undefined) {
|
|
647
694
|
const obj_childNodes = obj.childNodes;
|
|
648
695
|
const path_childNodes = path + '.childNodes';
|
|
649
|
-
const referencepath_childNodesValidationError = validate$
|
|
696
|
+
const referencepath_childNodesValidationError = validate$h(obj_childNodes, path_childNodes);
|
|
650
697
|
if (referencepath_childNodesValidationError !== null) {
|
|
651
698
|
let message = 'Object doesn\'t match ContextNodesInfoOutputRepresentation (at "' + path_childNodes + '")\n';
|
|
652
699
|
message += referencepath_childNodesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -656,7 +703,7 @@ function validate$h(obj, path = 'ContextNodeInfoOutputRepresentation') {
|
|
|
656
703
|
if (obj.fields !== undefined) {
|
|
657
704
|
const obj_fields = obj.fields;
|
|
658
705
|
const path_fields = path + '.fields';
|
|
659
|
-
const referencepath_fieldsValidationError = validate$
|
|
706
|
+
const referencepath_fieldsValidationError = validate$j(obj_fields, path_fields);
|
|
660
707
|
if (referencepath_fieldsValidationError !== null) {
|
|
661
708
|
let message = 'Object doesn\'t match ContextFieldsInfoOutputRepresentation (at "' + path_fields + '")\n';
|
|
662
709
|
message += referencepath_fieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -688,7 +735,7 @@ function validate$h(obj, path = 'ContextNodeInfoOutputRepresentation') {
|
|
|
688
735
|
return v_error === undefined ? null : v_error;
|
|
689
736
|
}
|
|
690
737
|
|
|
691
|
-
function validate$
|
|
738
|
+
function validate$h(obj, path = 'ContextNodesInfoOutputRepresentation') {
|
|
692
739
|
const v_error = (() => {
|
|
693
740
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
694
741
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -701,7 +748,7 @@ function validate$g(obj, path = 'ContextNodesInfoOutputRepresentation') {
|
|
|
701
748
|
for (let i = 0; i < obj_contextNodesInfo.length; i++) {
|
|
702
749
|
const obj_contextNodesInfo_item = obj_contextNodesInfo[i];
|
|
703
750
|
const path_contextNodesInfo_item = path_contextNodesInfo + '[' + i + ']';
|
|
704
|
-
const referencepath_contextNodesInfo_itemValidationError = validate$
|
|
751
|
+
const referencepath_contextNodesInfo_itemValidationError = validate$i(obj_contextNodesInfo_item, path_contextNodesInfo_item);
|
|
705
752
|
if (referencepath_contextNodesInfo_itemValidationError !== null) {
|
|
706
753
|
let message = 'Object doesn\'t match ContextNodeInfoOutputRepresentation (at "' + path_contextNodesInfo_item + '")\n';
|
|
707
754
|
message += referencepath_contextNodesInfo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -712,8 +759,8 @@ function validate$g(obj, path = 'ContextNodesInfoOutputRepresentation') {
|
|
|
712
759
|
return v_error === undefined ? null : v_error;
|
|
713
760
|
}
|
|
714
761
|
|
|
715
|
-
const VERSION$
|
|
716
|
-
function validate$
|
|
762
|
+
const VERSION$5 = "9e839ceea7c6caa2747b4d3170bd209d";
|
|
763
|
+
function validate$g(obj, path = 'Status') {
|
|
717
764
|
const v_error = (() => {
|
|
718
765
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
719
766
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -735,10 +782,10 @@ function validate$f(obj, path = 'Status') {
|
|
|
735
782
|
})();
|
|
736
783
|
return v_error === undefined ? null : v_error;
|
|
737
784
|
}
|
|
738
|
-
const select$
|
|
785
|
+
const select$a = function StatusSelect() {
|
|
739
786
|
return {
|
|
740
787
|
kind: 'Fragment',
|
|
741
|
-
version: VERSION$
|
|
788
|
+
version: VERSION$5,
|
|
742
789
|
private: [],
|
|
743
790
|
selections: [
|
|
744
791
|
{
|
|
@@ -754,7 +801,7 @@ const select$8 = function StatusSelect() {
|
|
|
754
801
|
]
|
|
755
802
|
};
|
|
756
803
|
};
|
|
757
|
-
function equals$
|
|
804
|
+
function equals$5(existing, incoming) {
|
|
758
805
|
const existing_code = existing.code;
|
|
759
806
|
const incoming_code = incoming.code;
|
|
760
807
|
// if at least one of these optionals is defined
|
|
@@ -784,6 +831,247 @@ function equals$4(existing, incoming) {
|
|
|
784
831
|
return true;
|
|
785
832
|
}
|
|
786
833
|
|
|
834
|
+
const TTL$3 = 6000;
|
|
835
|
+
const VERSION$4 = "a6f17b790f912a982a35bff584a89eb6";
|
|
836
|
+
function validate$f(obj, path = 'ConfigRuleMetadataOutputRepresentation') {
|
|
837
|
+
const v_error = (() => {
|
|
838
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
839
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
840
|
+
}
|
|
841
|
+
if (obj.configRuleHashColumns !== undefined) {
|
|
842
|
+
const obj_configRuleHashColumns = obj.configRuleHashColumns;
|
|
843
|
+
const path_configRuleHashColumns = path + '.configRuleHashColumns';
|
|
844
|
+
const referencepath_configRuleHashColumnsValidationError = validate$l(obj_configRuleHashColumns, path_configRuleHashColumns);
|
|
845
|
+
if (referencepath_configRuleHashColumnsValidationError !== null) {
|
|
846
|
+
let message = 'Object doesn\'t match ConfigRuleHashColumnsInfoOutputRepresentation (at "' + path_configRuleHashColumns + '")\n';
|
|
847
|
+
message += referencepath_configRuleHashColumnsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
848
|
+
return new TypeError(message);
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
if (obj.contextDefinitionId !== undefined) {
|
|
852
|
+
const obj_contextDefinitionId = obj.contextDefinitionId;
|
|
853
|
+
const path_contextDefinitionId = path + '.contextDefinitionId';
|
|
854
|
+
if (typeof obj_contextDefinitionId !== 'string') {
|
|
855
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
if (obj.contextDefinitionName !== undefined) {
|
|
859
|
+
const obj_contextDefinitionName = obj.contextDefinitionName;
|
|
860
|
+
const path_contextDefinitionName = path + '.contextDefinitionName';
|
|
861
|
+
if (typeof obj_contextDefinitionName !== 'string') {
|
|
862
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionName + '" (at "' + path_contextDefinitionName + '")');
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
if (obj.contextNodes !== undefined) {
|
|
866
|
+
const obj_contextNodes = obj.contextNodes;
|
|
867
|
+
const path_contextNodes = path + '.contextNodes';
|
|
868
|
+
const referencepath_contextNodesValidationError = validate$h(obj_contextNodes, path_contextNodes);
|
|
869
|
+
if (referencepath_contextNodesValidationError !== null) {
|
|
870
|
+
let message = 'Object doesn\'t match ContextNodesInfoOutputRepresentation (at "' + path_contextNodes + '")\n';
|
|
871
|
+
message += referencepath_contextNodesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
872
|
+
return new TypeError(message);
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
if (obj.correlationId !== undefined) {
|
|
876
|
+
const obj_correlationId = obj.correlationId;
|
|
877
|
+
const path_correlationId = path + '.correlationId';
|
|
878
|
+
if (typeof obj_correlationId !== 'string') {
|
|
879
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
if (obj.status !== undefined) {
|
|
883
|
+
const obj_status = obj.status;
|
|
884
|
+
const path_status = path + '.status';
|
|
885
|
+
const referencepath_statusValidationError = validate$g(obj_status, path_status);
|
|
886
|
+
if (referencepath_statusValidationError !== null) {
|
|
887
|
+
let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
|
|
888
|
+
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
889
|
+
return new TypeError(message);
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
})();
|
|
893
|
+
return v_error === undefined ? null : v_error;
|
|
894
|
+
}
|
|
895
|
+
const RepresentationType$4 = 'ConfigRuleMetadataOutputRepresentation';
|
|
896
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
897
|
+
return input;
|
|
898
|
+
}
|
|
899
|
+
const select$9 = function ConfigRuleMetadataOutputRepresentationSelect() {
|
|
900
|
+
return {
|
|
901
|
+
kind: 'Fragment',
|
|
902
|
+
version: VERSION$4,
|
|
903
|
+
private: [],
|
|
904
|
+
opaque: true
|
|
905
|
+
};
|
|
906
|
+
};
|
|
907
|
+
function equals$4(existing, incoming) {
|
|
908
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
909
|
+
return false;
|
|
910
|
+
}
|
|
911
|
+
return true;
|
|
912
|
+
}
|
|
913
|
+
const ingest$4 = function ConfigRuleMetadataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
914
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
915
|
+
const validateError = validate$f(input);
|
|
916
|
+
if (validateError !== null) {
|
|
917
|
+
throw validateError;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
const key = path.fullPath;
|
|
921
|
+
const ttlToUse = TTL$3;
|
|
922
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "epc", VERSION$4, RepresentationType$4, equals$4);
|
|
923
|
+
return createLink(key);
|
|
924
|
+
};
|
|
925
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
926
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
927
|
+
const rootKey = fullPathFactory();
|
|
928
|
+
rootKeySet.set(rootKey, {
|
|
929
|
+
namespace: keyPrefix,
|
|
930
|
+
representationName: RepresentationType$4,
|
|
931
|
+
mergeable: false
|
|
932
|
+
});
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
function select$8(luvio, params) {
|
|
936
|
+
return select$9();
|
|
937
|
+
}
|
|
938
|
+
function keyBuilder$9(luvio, params) {
|
|
939
|
+
return keyPrefix + '::ConfigRuleMetadataOutputRepresentation:(' + 'correlationId:' + params.queryParams.correlationId + ',' + 'usageType:' + params.urlParams.usageType + ',' + 'usageSubType:' + params.urlParams.usageSubType + ')';
|
|
940
|
+
}
|
|
941
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
942
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
943
|
+
}
|
|
944
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
945
|
+
const { body } = response;
|
|
946
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
947
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
948
|
+
const snapshot = luvio.storeLookup({
|
|
949
|
+
recordId: key,
|
|
950
|
+
node: select$8(),
|
|
951
|
+
variables: {},
|
|
952
|
+
}, snapshotRefresh);
|
|
953
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
954
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
955
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
deepFreeze(snapshot.data);
|
|
959
|
+
return snapshot;
|
|
960
|
+
}
|
|
961
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
962
|
+
const key = keyBuilder$9(luvio, params);
|
|
963
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
964
|
+
const storeMetadataParams = {
|
|
965
|
+
ttl: TTL$3,
|
|
966
|
+
namespace: keyPrefix,
|
|
967
|
+
version: VERSION$4,
|
|
968
|
+
representationName: RepresentationType$4
|
|
969
|
+
};
|
|
970
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
971
|
+
return errorSnapshot;
|
|
972
|
+
}
|
|
973
|
+
function createResourceRequest$4(config) {
|
|
974
|
+
const headers = {};
|
|
975
|
+
return {
|
|
976
|
+
baseUri: '/services/data/v60.0',
|
|
977
|
+
basePath: '/connect/pcm/configurationRule/config-rule-metadata/' + config.urlParams.usageType + '/' + config.urlParams.usageSubType + '',
|
|
978
|
+
method: 'get',
|
|
979
|
+
body: null,
|
|
980
|
+
urlParams: config.urlParams,
|
|
981
|
+
queryParams: config.queryParams,
|
|
982
|
+
headers,
|
|
983
|
+
priority: 'normal',
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
const adapterName$4 = 'getConfigRuleMetadata';
|
|
988
|
+
const getConfigRuleMetadata_ConfigPropertyMetadata = [
|
|
989
|
+
generateParamConfigMetadata('usageType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
990
|
+
generateParamConfigMetadata('usageSubType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
991
|
+
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
992
|
+
];
|
|
993
|
+
const getConfigRuleMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getConfigRuleMetadata_ConfigPropertyMetadata);
|
|
994
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getConfigRuleMetadata_ConfigPropertyMetadata);
|
|
995
|
+
function keyBuilder$8(luvio, config) {
|
|
996
|
+
const resourceParams = createResourceParams$4(config);
|
|
997
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
998
|
+
}
|
|
999
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1000
|
+
const config = {};
|
|
1001
|
+
typeCheckConfig$7(untrustedConfig, config, getConfigRuleMetadata_ConfigPropertyMetadata);
|
|
1002
|
+
return config;
|
|
1003
|
+
}
|
|
1004
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1005
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1006
|
+
return null;
|
|
1007
|
+
}
|
|
1008
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1009
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1010
|
+
}
|
|
1011
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1012
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1013
|
+
return null;
|
|
1014
|
+
}
|
|
1015
|
+
return config;
|
|
1016
|
+
}
|
|
1017
|
+
function adapterFragment$4(luvio, config) {
|
|
1018
|
+
createResourceParams$4(config);
|
|
1019
|
+
return select$8();
|
|
1020
|
+
}
|
|
1021
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
1022
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
1023
|
+
config,
|
|
1024
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1025
|
+
});
|
|
1026
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1027
|
+
}
|
|
1028
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
1029
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
1030
|
+
config,
|
|
1031
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1032
|
+
});
|
|
1033
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1034
|
+
}
|
|
1035
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1036
|
+
const resourceParams = createResourceParams$4(config);
|
|
1037
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1038
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1039
|
+
.then((response) => {
|
|
1040
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
1041
|
+
const cache = new StoreKeyMap();
|
|
1042
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1043
|
+
return cache;
|
|
1044
|
+
});
|
|
1045
|
+
}, (response) => {
|
|
1046
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
1047
|
+
});
|
|
1048
|
+
}
|
|
1049
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
1050
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
1051
|
+
}
|
|
1052
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
1053
|
+
const { luvio, config } = context;
|
|
1054
|
+
const selector = {
|
|
1055
|
+
recordId: keyBuilder$8(luvio, config),
|
|
1056
|
+
node: adapterFragment$4(luvio, config),
|
|
1057
|
+
variables: {},
|
|
1058
|
+
};
|
|
1059
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1060
|
+
config,
|
|
1061
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1062
|
+
});
|
|
1063
|
+
return cacheSnapshot;
|
|
1064
|
+
}
|
|
1065
|
+
const getConfigRuleMetadataAdapterFactory = (luvio) => function epc__getConfigRuleMetadata(untrustedConfig, requestContext) {
|
|
1066
|
+
const config = validateAdapterConfig$4(untrustedConfig, getConfigRuleMetadata_ConfigPropertyNames);
|
|
1067
|
+
// Invalid or incomplete config
|
|
1068
|
+
if (config === null) {
|
|
1069
|
+
return null;
|
|
1070
|
+
}
|
|
1071
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1072
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
1073
|
+
};
|
|
1074
|
+
|
|
787
1075
|
const TTL$2 = 6000;
|
|
788
1076
|
const VERSION$3 = "0e533503a3df0b0f709f7ff83f175d06";
|
|
789
1077
|
function validate$e(obj, path = 'ContextDefinitionOutputRepresentation') {
|
|
@@ -808,7 +1096,7 @@ function validate$e(obj, path = 'ContextDefinitionOutputRepresentation') {
|
|
|
808
1096
|
if (obj.contextNodes !== undefined) {
|
|
809
1097
|
const obj_contextNodes = obj.contextNodes;
|
|
810
1098
|
const path_contextNodes = path + '.contextNodes';
|
|
811
|
-
const referencepath_contextNodesValidationError = validate$
|
|
1099
|
+
const referencepath_contextNodesValidationError = validate$h(obj_contextNodes, path_contextNodes);
|
|
812
1100
|
if (referencepath_contextNodesValidationError !== null) {
|
|
813
1101
|
let message = 'Object doesn\'t match ContextNodesInfoOutputRepresentation (at "' + path_contextNodes + '")\n';
|
|
814
1102
|
message += referencepath_contextNodesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -825,7 +1113,7 @@ function validate$e(obj, path = 'ContextDefinitionOutputRepresentation') {
|
|
|
825
1113
|
if (obj.status !== undefined) {
|
|
826
1114
|
const obj_status = obj.status;
|
|
827
1115
|
const path_status = path + '.status';
|
|
828
|
-
const referencepath_statusValidationError = validate$
|
|
1116
|
+
const referencepath_statusValidationError = validate$g(obj_status, path_status);
|
|
829
1117
|
if (referencepath_statusValidationError !== null) {
|
|
830
1118
|
let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
|
|
831
1119
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -933,14 +1221,14 @@ const getContextDefinitionInfoById_ConfigPropertyMetadata = [
|
|
|
933
1221
|
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
934
1222
|
];
|
|
935
1223
|
const getContextDefinitionInfoById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getContextDefinitionInfoById_ConfigPropertyMetadata);
|
|
936
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
1224
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getContextDefinitionInfoById_ConfigPropertyMetadata);
|
|
937
1225
|
function keyBuilder$6(luvio, config) {
|
|
938
1226
|
const resourceParams = createResourceParams$3(config);
|
|
939
1227
|
return keyBuilder$7(luvio, resourceParams);
|
|
940
1228
|
}
|
|
941
1229
|
function typeCheckConfig$3(untrustedConfig) {
|
|
942
1230
|
const config = {};
|
|
943
|
-
typeCheckConfig$
|
|
1231
|
+
typeCheckConfig$7(untrustedConfig, config, getContextDefinitionInfoById_ConfigPropertyMetadata);
|
|
944
1232
|
return config;
|
|
945
1233
|
}
|
|
946
1234
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -989,7 +1277,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
989
1277
|
});
|
|
990
1278
|
}
|
|
991
1279
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
992
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1280
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
993
1281
|
}
|
|
994
1282
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
995
1283
|
const { luvio, config } = context;
|
|
@@ -1867,14 +2155,14 @@ const getProductAttributesByProductId_ConfigPropertyMetadata = [
|
|
|
1867
2155
|
generateParamConfigMetadata('isPriceImpacting', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1868
2156
|
];
|
|
1869
2157
|
const getProductAttributesByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
1870
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
2158
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
1871
2159
|
function keyBuilder$4(luvio, config) {
|
|
1872
2160
|
const resourceParams = createResourceParams$2(config);
|
|
1873
2161
|
return keyBuilder$5(luvio, resourceParams);
|
|
1874
2162
|
}
|
|
1875
2163
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1876
2164
|
const config = {};
|
|
1877
|
-
typeCheckConfig$
|
|
2165
|
+
typeCheckConfig$7(untrustedConfig, config, getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
1878
2166
|
return config;
|
|
1879
2167
|
}
|
|
1880
2168
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1923,7 +2211,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1923
2211
|
});
|
|
1924
2212
|
}
|
|
1925
2213
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1926
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2214
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
1927
2215
|
}
|
|
1928
2216
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1929
2217
|
const { luvio, config } = context;
|
|
@@ -1985,7 +2273,7 @@ function validate$2(obj, path = 'ProductsOutputRepresentation') {
|
|
|
1985
2273
|
if (obj.status !== undefined) {
|
|
1986
2274
|
const obj_status = obj.status;
|
|
1987
2275
|
const path_status = path + '.status';
|
|
1988
|
-
const referencepath_statusValidationError = validate$
|
|
2276
|
+
const referencepath_statusValidationError = validate$g(obj_status, path_status);
|
|
1989
2277
|
if (referencepath_statusValidationError !== null) {
|
|
1990
2278
|
let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
|
|
1991
2279
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2018,7 +2306,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
2018
2306
|
return input;
|
|
2019
2307
|
}
|
|
2020
2308
|
const select$3 = function ProductsOutputRepresentationSelect() {
|
|
2021
|
-
const { selections: Status__selections, opaque: Status__opaque, } = select$
|
|
2309
|
+
const { selections: Status__selections, opaque: Status__opaque, } = select$a();
|
|
2022
2310
|
return {
|
|
2023
2311
|
kind: 'Fragment',
|
|
2024
2312
|
version: VERSION$1,
|
|
@@ -2104,7 +2392,7 @@ function equals$1(existing, incoming) {
|
|
|
2104
2392
|
if (existing_status === undefined || incoming_status === undefined) {
|
|
2105
2393
|
return false;
|
|
2106
2394
|
}
|
|
2107
|
-
if (!(equals$
|
|
2395
|
+
if (!(equals$5(existing_status, incoming_status))) {
|
|
2108
2396
|
return false;
|
|
2109
2397
|
}
|
|
2110
2398
|
}
|
|
@@ -2190,14 +2478,14 @@ const getProductById_ConfigPropertyMetadata = [
|
|
|
2190
2478
|
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2191
2479
|
];
|
|
2192
2480
|
const getProductById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getProductById_ConfigPropertyMetadata);
|
|
2193
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
2481
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(getProductById_ConfigPropertyMetadata);
|
|
2194
2482
|
function keyBuilder$2(luvio, config) {
|
|
2195
2483
|
const resourceParams = createResourceParams$1(config);
|
|
2196
2484
|
return keyBuilder$3(luvio, resourceParams);
|
|
2197
2485
|
}
|
|
2198
2486
|
function typeCheckConfig$1(untrustedConfig) {
|
|
2199
2487
|
const config = {};
|
|
2200
|
-
typeCheckConfig$
|
|
2488
|
+
typeCheckConfig$7(untrustedConfig, config, getProductById_ConfigPropertyMetadata);
|
|
2201
2489
|
return config;
|
|
2202
2490
|
}
|
|
2203
2491
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2246,7 +2534,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
2246
2534
|
});
|
|
2247
2535
|
}
|
|
2248
2536
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2249
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2537
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
2250
2538
|
}
|
|
2251
2539
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2252
2540
|
const { luvio, config } = context;
|
|
@@ -2314,7 +2602,7 @@ function validate(obj, path = 'ProductFlowOutputRepresentation') {
|
|
|
2314
2602
|
if (obj.status !== undefined) {
|
|
2315
2603
|
const obj_status = obj.status;
|
|
2316
2604
|
const path_status = path + '.status';
|
|
2317
|
-
const referencepath_statusValidationError = validate$
|
|
2605
|
+
const referencepath_statusValidationError = validate$g(obj_status, path_status);
|
|
2318
2606
|
if (referencepath_statusValidationError !== null) {
|
|
2319
2607
|
let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
|
|
2320
2608
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2422,14 +2710,14 @@ const getProductFlowByProductId_ConfigPropertyMetadata = [
|
|
|
2422
2710
|
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2423
2711
|
];
|
|
2424
2712
|
const getProductFlowByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getProductFlowByProductId_ConfigPropertyMetadata);
|
|
2425
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2713
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$7(getProductFlowByProductId_ConfigPropertyMetadata);
|
|
2426
2714
|
function keyBuilder(luvio, config) {
|
|
2427
2715
|
const resourceParams = createResourceParams(config);
|
|
2428
2716
|
return keyBuilder$1(luvio, resourceParams);
|
|
2429
2717
|
}
|
|
2430
2718
|
function typeCheckConfig(untrustedConfig) {
|
|
2431
2719
|
const config = {};
|
|
2432
|
-
typeCheckConfig$
|
|
2720
|
+
typeCheckConfig$7(untrustedConfig, config, getProductFlowByProductId_ConfigPropertyMetadata);
|
|
2433
2721
|
return config;
|
|
2434
2722
|
}
|
|
2435
2723
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2478,7 +2766,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2478
2766
|
});
|
|
2479
2767
|
}
|
|
2480
2768
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2481
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2769
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
2482
2770
|
}
|
|
2483
2771
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2484
2772
|
const { luvio, config } = context;
|
|
@@ -2505,15 +2793,22 @@ const getProductFlowByProductIdAdapterFactory = (luvio) => function epc__getProd
|
|
|
2505
2793
|
|
|
2506
2794
|
let createProductAttributeDefinition;
|
|
2507
2795
|
let deactivate;
|
|
2796
|
+
let getConfigRuleMetadata;
|
|
2508
2797
|
let getContextDefinitionInfoById;
|
|
2509
2798
|
let getProductAttributesByProductId;
|
|
2510
2799
|
let getProductById;
|
|
2511
2800
|
let getProductFlowByProductId;
|
|
2512
2801
|
// Imperative GET Adapters
|
|
2802
|
+
let getConfigRuleMetadata_imperative;
|
|
2513
2803
|
let getContextDefinitionInfoById_imperative;
|
|
2514
2804
|
let getProductAttributesByProductId_imperative;
|
|
2515
2805
|
let getProductById_imperative;
|
|
2516
2806
|
let getProductFlowByProductId_imperative;
|
|
2807
|
+
const getConfigRuleMetadataMetadata = {
|
|
2808
|
+
apiFamily: 'epc',
|
|
2809
|
+
name: 'getConfigRuleMetadata',
|
|
2810
|
+
ttl: 6000,
|
|
2811
|
+
};
|
|
2517
2812
|
const getContextDefinitionInfoByIdMetadata = {
|
|
2518
2813
|
apiFamily: 'epc',
|
|
2519
2814
|
name: 'getContextDefinitionInfoById',
|
|
@@ -2533,6 +2828,7 @@ const getProductFlowByProductIdMetadata = {
|
|
|
2533
2828
|
// Notify Update Available
|
|
2534
2829
|
function bindExportsTo(luvio) {
|
|
2535
2830
|
// LDS Adapters
|
|
2831
|
+
const getConfigRuleMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getConfigRuleMetadata', getConfigRuleMetadataAdapterFactory), getConfigRuleMetadataMetadata);
|
|
2536
2832
|
const getContextDefinitionInfoById_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getContextDefinitionInfoById', getContextDefinitionInfoByIdAdapterFactory), getContextDefinitionInfoByIdMetadata);
|
|
2537
2833
|
const getProductAttributesByProductId_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getProductAttributesByProductId', getProductAttributesByProductIdAdapterFactory), getProductAttributesByProductIdMetadata);
|
|
2538
2834
|
const getProductById_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getProductById', getProductByIdAdapterFactory), getProductByIdMetadata);
|
|
@@ -2544,11 +2840,13 @@ function bindExportsTo(luvio) {
|
|
|
2544
2840
|
return {
|
|
2545
2841
|
createProductAttributeDefinition: unwrapSnapshotData(createProductAttributeDefinitionAdapterFactory),
|
|
2546
2842
|
deactivate: unwrapSnapshotData(deactivateAdapterFactory),
|
|
2843
|
+
getConfigRuleMetadata: createWireAdapterConstructor(luvio, getConfigRuleMetadata_ldsAdapter, getConfigRuleMetadataMetadata),
|
|
2547
2844
|
getContextDefinitionInfoById: createWireAdapterConstructor(luvio, getContextDefinitionInfoById_ldsAdapter, getContextDefinitionInfoByIdMetadata),
|
|
2548
2845
|
getProductAttributesByProductId: createWireAdapterConstructor(luvio, getProductAttributesByProductId_ldsAdapter, getProductAttributesByProductIdMetadata),
|
|
2549
2846
|
getProductById: createWireAdapterConstructor(luvio, getProductById_ldsAdapter, getProductByIdMetadata),
|
|
2550
2847
|
getProductFlowByProductId: createWireAdapterConstructor(luvio, getProductFlowByProductId_ldsAdapter, getProductFlowByProductIdMetadata),
|
|
2551
2848
|
// Imperative GET Adapters
|
|
2849
|
+
getConfigRuleMetadata_imperative: createImperativeAdapter(luvio, getConfigRuleMetadata_ldsAdapter, getConfigRuleMetadataMetadata),
|
|
2552
2850
|
getContextDefinitionInfoById_imperative: createImperativeAdapter(luvio, getContextDefinitionInfoById_ldsAdapter, getContextDefinitionInfoByIdMetadata),
|
|
2553
2851
|
getProductAttributesByProductId_imperative: createImperativeAdapter(luvio, getProductAttributesByProductId_ldsAdapter, getProductAttributesByProductIdMetadata),
|
|
2554
2852
|
getProductById_imperative: createImperativeAdapter(luvio, getProductById_ldsAdapter, getProductByIdMetadata),
|
|
@@ -2560,10 +2858,12 @@ withDefaultLuvio((luvio) => {
|
|
|
2560
2858
|
({
|
|
2561
2859
|
createProductAttributeDefinition,
|
|
2562
2860
|
deactivate,
|
|
2861
|
+
getConfigRuleMetadata,
|
|
2563
2862
|
getContextDefinitionInfoById,
|
|
2564
2863
|
getProductAttributesByProductId,
|
|
2565
2864
|
getProductById,
|
|
2566
2865
|
getProductFlowByProductId,
|
|
2866
|
+
getConfigRuleMetadata_imperative,
|
|
2567
2867
|
getContextDefinitionInfoById_imperative,
|
|
2568
2868
|
getProductAttributesByProductId_imperative,
|
|
2569
2869
|
getProductById_imperative,
|
|
@@ -2571,5 +2871,5 @@ withDefaultLuvio((luvio) => {
|
|
|
2571
2871
|
} = bindExportsTo(luvio));
|
|
2572
2872
|
});
|
|
2573
2873
|
|
|
2574
|
-
export { createProductAttributeDefinition, deactivate, getContextDefinitionInfoById, getContextDefinitionInfoById_imperative, getProductAttributesByProductId, getProductAttributesByProductId_imperative, getProductById, getProductById_imperative, getProductFlowByProductId, getProductFlowByProductId_imperative };
|
|
2575
|
-
// version: 1.
|
|
2874
|
+
export { createProductAttributeDefinition, deactivate, getConfigRuleMetadata, getConfigRuleMetadata_imperative, getContextDefinitionInfoById, getContextDefinitionInfoById_imperative, getProductAttributesByProductId, getProductAttributesByProductId_imperative, getProductById, getProductById_imperative, getProductFlowByProductId, getProductFlowByProductId_imperative };
|
|
2875
|
+
// version: 1.266.0-dev1-0affa7d84
|