@salesforce/lds-adapters-industries-featurevalidation 1.124.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.
@@ -0,0 +1,529 @@
1
+ /**
2
+ * Copyright (c) 2022, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+
7
+ (function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@luvio/engine')) :
9
+ typeof define === 'function' && define.amd ? define(['exports', '@luvio/engine'], factory) :
10
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.industriesFeaturevalidation = {}, global.engine));
11
+ })(this, (function (exports, engine) { 'use strict';
12
+
13
+ var ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty;
14
+ var ObjectKeys$1 = Object.keys;
15
+ var ArrayIsArray$1 = Array.isArray;
16
+ /**
17
+ * Validates an adapter config is well-formed.
18
+ * @param config The config to validate.
19
+ * @param adapter The adapter validation configuration.
20
+ * @param oneOf The keys the config must contain at least one of.
21
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
22
+ */
23
+ function validateConfig(config, adapter, oneOf) {
24
+ var displayName = adapter.displayName;
25
+ var _a = adapter.parameters, required = _a.required, optional = _a.optional, unsupported = _a.unsupported;
26
+ if (config === undefined ||
27
+ required.every(function (req) { return ObjectPrototypeHasOwnProperty.call(config, req); }) === false) {
28
+ throw new TypeError("adapter ".concat(displayName, " configuration must specify ").concat(required.sort().join(', ')));
29
+ }
30
+ if (oneOf && oneOf.some(function (req) { return ObjectPrototypeHasOwnProperty.call(config, req); }) === false) {
31
+ throw new TypeError("adapter ".concat(displayName, " configuration must specify one of ").concat(oneOf.sort().join(', ')));
32
+ }
33
+ if (unsupported !== undefined &&
34
+ unsupported.some(function (req) { return ObjectPrototypeHasOwnProperty.call(config, req); })) {
35
+ throw new TypeError("adapter ".concat(displayName, " does not yet support ").concat(unsupported.sort().join(', ')));
36
+ }
37
+ var supported = required.concat(optional);
38
+ if (ObjectKeys$1(config).some(function (key) { return !supported.includes(key); })) {
39
+ throw new TypeError("adapter ".concat(displayName, " configuration supports only ").concat(supported.sort().join(', ')));
40
+ }
41
+ }
42
+ function untrustedIsObject(untrusted) {
43
+ return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
44
+ }
45
+ function areRequiredParametersPresent(config, configPropertyNames) {
46
+ return configPropertyNames.parameters.required.every(function (req) { return req in config; });
47
+ }
48
+ var keyPrefix = 'featurevalidation';
49
+
50
+ var ObjectFreeze = Object.freeze, ObjectKeys = Object.keys;
51
+ var ArrayIsArray = Array.isArray;
52
+ function equalsArray(a, b, equalsItem) {
53
+ var aLength = a.length;
54
+ var bLength = b.length;
55
+ if (aLength !== bLength) {
56
+ return false;
57
+ }
58
+ for (var i = 0; i < aLength; i++) {
59
+ if (equalsItem(a[i], b[i]) === false) {
60
+ return false;
61
+ }
62
+ }
63
+ return true;
64
+ }
65
+ function deepFreeze(value) {
66
+ // No need to freeze primitives
67
+ if (typeof value !== 'object' || value === null) {
68
+ return;
69
+ }
70
+ if (ArrayIsArray(value)) {
71
+ for (var i = 0, len = value.length; i < len; i += 1) {
72
+ deepFreeze(value[i]);
73
+ }
74
+ }
75
+ else {
76
+ var keys = ObjectKeys(value);
77
+ for (var i = 0, len = keys.length; i < len; i += 1) {
78
+ deepFreeze(value[keys[i]]);
79
+ }
80
+ }
81
+ ObjectFreeze(value);
82
+ }
83
+ function createLink(ref) {
84
+ return {
85
+ __ref: engine.serializeStructuredKey(ref),
86
+ };
87
+ }
88
+
89
+ var VERSION$2 = "631aec0cb3216fffb314c3734733f29b";
90
+ function validate$2(obj, path) {
91
+ if (path === void 0) { path = 'FeatureValidationFieldValuesRepresentation'; }
92
+ var v_error = (function () {
93
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
94
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
95
+ }
96
+ var obj_fieldName = obj.fieldName;
97
+ var path_fieldName = path + '.fieldName';
98
+ if (typeof obj_fieldName !== 'string') {
99
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
100
+ }
101
+ var obj_fieldValue = obj.fieldValue;
102
+ var path_fieldValue = path + '.fieldValue';
103
+ if (typeof obj_fieldValue !== 'string') {
104
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldValue + '" (at "' + path_fieldValue + '")');
105
+ }
106
+ var obj_message = obj.message;
107
+ var path_message = path + '.message';
108
+ if (typeof obj_message !== 'string') {
109
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
110
+ }
111
+ var obj_required = obj.required;
112
+ var path_required = path + '.required';
113
+ if (typeof obj_required !== 'boolean') {
114
+ return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
115
+ }
116
+ })();
117
+ return v_error === undefined ? null : v_error;
118
+ }
119
+ var select$3 = function FeatureValidationFieldValuesRepresentationSelect() {
120
+ return {
121
+ kind: 'Fragment',
122
+ version: VERSION$2,
123
+ private: [],
124
+ selections: [
125
+ {
126
+ name: 'fieldName',
127
+ kind: 'Scalar'
128
+ },
129
+ {
130
+ name: 'fieldValue',
131
+ kind: 'Scalar'
132
+ },
133
+ {
134
+ name: 'message',
135
+ kind: 'Scalar'
136
+ },
137
+ {
138
+ name: 'required',
139
+ kind: 'Scalar'
140
+ }
141
+ ]
142
+ };
143
+ };
144
+ function equals$2(existing, incoming) {
145
+ var existing_required = existing.required;
146
+ var incoming_required = incoming.required;
147
+ if (!(existing_required === incoming_required)) {
148
+ return false;
149
+ }
150
+ var existing_fieldName = existing.fieldName;
151
+ var incoming_fieldName = incoming.fieldName;
152
+ if (!(existing_fieldName === incoming_fieldName)) {
153
+ return false;
154
+ }
155
+ var existing_fieldValue = existing.fieldValue;
156
+ var incoming_fieldValue = incoming.fieldValue;
157
+ if (!(existing_fieldValue === incoming_fieldValue)) {
158
+ return false;
159
+ }
160
+ var existing_message = existing.message;
161
+ var incoming_message = incoming.message;
162
+ if (!(existing_message === incoming_message)) {
163
+ return false;
164
+ }
165
+ return true;
166
+ }
167
+
168
+ var VERSION$1 = "b2421cf8b77991983bf69e64a9fa0236";
169
+ function validate$1(obj, path) {
170
+ if (path === void 0) { path = 'FeatureValidationOutputDetailsRepresentation'; }
171
+ var v_error = (function () {
172
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
173
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
174
+ }
175
+ var obj_bpoName = obj.bpoName;
176
+ var path_bpoName = path + '.bpoName';
177
+ if (typeof obj_bpoName !== 'string') {
178
+ return new TypeError('Expected "string" but received "' + typeof obj_bpoName + '" (at "' + path_bpoName + '")');
179
+ }
180
+ var obj_bpoRecordId = obj.bpoRecordId;
181
+ var path_bpoRecordId = path + '.bpoRecordId';
182
+ if (typeof obj_bpoRecordId !== 'string') {
183
+ return new TypeError('Expected "string" but received "' + typeof obj_bpoRecordId + '" (at "' + path_bpoRecordId + '")');
184
+ }
185
+ var obj_featureValidationFieldValues = obj.featureValidationFieldValues;
186
+ var path_featureValidationFieldValues = path + '.featureValidationFieldValues';
187
+ if (!ArrayIsArray(obj_featureValidationFieldValues)) {
188
+ return new TypeError('Expected "array" but received "' + typeof obj_featureValidationFieldValues + '" (at "' + path_featureValidationFieldValues + '")');
189
+ }
190
+ for (var i = 0; i < obj_featureValidationFieldValues.length; i++) {
191
+ var obj_featureValidationFieldValues_item = obj_featureValidationFieldValues[i];
192
+ var path_featureValidationFieldValues_item = path_featureValidationFieldValues + '[' + i + ']';
193
+ var referencepath_featureValidationFieldValues_itemValidationError = validate$2(obj_featureValidationFieldValues_item, path_featureValidationFieldValues_item);
194
+ if (referencepath_featureValidationFieldValues_itemValidationError !== null) {
195
+ var message = 'Object doesn\'t match FeatureValidationFieldValuesRepresentation (at "' + path_featureValidationFieldValues_item + '")\n';
196
+ message += referencepath_featureValidationFieldValues_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
197
+ return new TypeError(message);
198
+ }
199
+ }
200
+ var obj_message = obj.message;
201
+ var path_message = path + '.message';
202
+ if (typeof obj_message !== 'string') {
203
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
204
+ }
205
+ })();
206
+ return v_error === undefined ? null : v_error;
207
+ }
208
+ var select$2 = function FeatureValidationOutputDetailsRepresentationSelect() {
209
+ var _a = select$3(), FeatureValidationFieldValuesRepresentation__selections = _a.selections;
210
+ return {
211
+ kind: 'Fragment',
212
+ version: VERSION$1,
213
+ private: [],
214
+ selections: [
215
+ {
216
+ name: 'bpoName',
217
+ kind: 'Scalar'
218
+ },
219
+ {
220
+ name: 'bpoRecordId',
221
+ kind: 'Scalar'
222
+ },
223
+ {
224
+ name: 'featureValidationFieldValues',
225
+ kind: 'Object',
226
+ plural: true,
227
+ selections: FeatureValidationFieldValuesRepresentation__selections
228
+ },
229
+ {
230
+ name: 'message',
231
+ kind: 'Scalar'
232
+ }
233
+ ]
234
+ };
235
+ };
236
+ function equals$1(existing, incoming) {
237
+ var existing_bpoName = existing.bpoName;
238
+ var incoming_bpoName = incoming.bpoName;
239
+ if (!(existing_bpoName === incoming_bpoName)) {
240
+ return false;
241
+ }
242
+ var existing_bpoRecordId = existing.bpoRecordId;
243
+ var incoming_bpoRecordId = incoming.bpoRecordId;
244
+ if (!(existing_bpoRecordId === incoming_bpoRecordId)) {
245
+ return false;
246
+ }
247
+ var existing_message = existing.message;
248
+ var incoming_message = incoming.message;
249
+ if (!(existing_message === incoming_message)) {
250
+ return false;
251
+ }
252
+ var existing_featureValidationFieldValues = existing.featureValidationFieldValues;
253
+ var incoming_featureValidationFieldValues = incoming.featureValidationFieldValues;
254
+ var equals_featureValidationFieldValues_items = equalsArray(existing_featureValidationFieldValues, incoming_featureValidationFieldValues, function (existing_featureValidationFieldValues_item, incoming_featureValidationFieldValues_item) {
255
+ if (!(equals$2(existing_featureValidationFieldValues_item, incoming_featureValidationFieldValues_item))) {
256
+ return false;
257
+ }
258
+ });
259
+ if (equals_featureValidationFieldValues_items === false) {
260
+ return false;
261
+ }
262
+ return true;
263
+ }
264
+
265
+ var TTL = 300;
266
+ var VERSION = "cca11a8e3ab8424bcce64057aad4f46d";
267
+ function validate(obj, path) {
268
+ if (path === void 0) { path = 'FeatureValidationOutputRepresentation'; }
269
+ var v_error = (function () {
270
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
271
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
272
+ }
273
+ if (obj.errorMessage !== undefined) {
274
+ var obj_errorMessage = obj.errorMessage;
275
+ var path_errorMessage = path + '.errorMessage';
276
+ if (typeof obj_errorMessage !== 'string') {
277
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
278
+ }
279
+ }
280
+ var obj_featureValidationOutputDetails = obj.featureValidationOutputDetails;
281
+ var path_featureValidationOutputDetails = path + '.featureValidationOutputDetails';
282
+ if (!ArrayIsArray(obj_featureValidationOutputDetails)) {
283
+ return new TypeError('Expected "array" but received "' + typeof obj_featureValidationOutputDetails + '" (at "' + path_featureValidationOutputDetails + '")');
284
+ }
285
+ for (var i = 0; i < obj_featureValidationOutputDetails.length; i++) {
286
+ var obj_featureValidationOutputDetails_item = obj_featureValidationOutputDetails[i];
287
+ var path_featureValidationOutputDetails_item = path_featureValidationOutputDetails + '[' + i + ']';
288
+ var referencepath_featureValidationOutputDetails_itemValidationError = validate$1(obj_featureValidationOutputDetails_item, path_featureValidationOutputDetails_item);
289
+ if (referencepath_featureValidationOutputDetails_itemValidationError !== null) {
290
+ var message = 'Object doesn\'t match FeatureValidationOutputDetailsRepresentation (at "' + path_featureValidationOutputDetails_item + '")\n';
291
+ message += referencepath_featureValidationOutputDetails_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
292
+ return new TypeError(message);
293
+ }
294
+ }
295
+ var obj_isSuccess = obj.isSuccess;
296
+ var path_isSuccess = path + '.isSuccess';
297
+ if (typeof obj_isSuccess !== 'boolean') {
298
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
299
+ }
300
+ })();
301
+ return v_error === undefined ? null : v_error;
302
+ }
303
+ var RepresentationType = 'FeatureValidationOutputRepresentation';
304
+ function keyBuilder(luvio, config) {
305
+ return keyPrefix + '::' + RepresentationType + ':' + config.isSuccess;
306
+ }
307
+ function keyBuilderFromType(luvio, object) {
308
+ var keyParams = {
309
+ isSuccess: object.isSuccess
310
+ };
311
+ return keyBuilder(luvio, keyParams);
312
+ }
313
+ function normalize(input, existing, path, luvio, store, timestamp) {
314
+ return input;
315
+ }
316
+ var select$1 = function FeatureValidationOutputRepresentationSelect() {
317
+ var _a = select$2(), FeatureValidationOutputDetailsRepresentation__selections = _a.selections;
318
+ return {
319
+ kind: 'Fragment',
320
+ version: VERSION,
321
+ private: [],
322
+ selections: [
323
+ {
324
+ name: 'errorMessage',
325
+ kind: 'Scalar',
326
+ required: false
327
+ },
328
+ {
329
+ name: 'featureValidationOutputDetails',
330
+ kind: 'Object',
331
+ plural: true,
332
+ selections: FeatureValidationOutputDetailsRepresentation__selections
333
+ },
334
+ {
335
+ name: 'isSuccess',
336
+ kind: 'Scalar'
337
+ }
338
+ ]
339
+ };
340
+ };
341
+ function equals(existing, incoming) {
342
+ var existing_isSuccess = existing.isSuccess;
343
+ var incoming_isSuccess = incoming.isSuccess;
344
+ if (!(existing_isSuccess === incoming_isSuccess)) {
345
+ return false;
346
+ }
347
+ var existing_errorMessage = existing.errorMessage;
348
+ var incoming_errorMessage = incoming.errorMessage;
349
+ // if at least one of these optionals is defined
350
+ if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
351
+ // if one of these is not defined we know the other is defined and therefore
352
+ // not equal
353
+ if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
354
+ return false;
355
+ }
356
+ if (!(existing_errorMessage === incoming_errorMessage)) {
357
+ return false;
358
+ }
359
+ }
360
+ var existing_featureValidationOutputDetails = existing.featureValidationOutputDetails;
361
+ var incoming_featureValidationOutputDetails = incoming.featureValidationOutputDetails;
362
+ var equals_featureValidationOutputDetails_items = equalsArray(existing_featureValidationOutputDetails, incoming_featureValidationOutputDetails, function (existing_featureValidationOutputDetails_item, incoming_featureValidationOutputDetails_item) {
363
+ if (!(equals$1(existing_featureValidationOutputDetails_item, incoming_featureValidationOutputDetails_item))) {
364
+ return false;
365
+ }
366
+ });
367
+ if (equals_featureValidationOutputDetails_items === false) {
368
+ return false;
369
+ }
370
+ return true;
371
+ }
372
+ var ingest = function FeatureValidationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
373
+ if (process.env.NODE_ENV !== 'production') {
374
+ var validateError = validate(input);
375
+ if (validateError !== null) {
376
+ throw validateError;
377
+ }
378
+ }
379
+ var key = keyBuilderFromType(luvio, input);
380
+ var existingRecord = store.readEntry(key);
381
+ var ttlToUse = TTL;
382
+ var incomingRecord = normalize(input, store.readEntry(key), {
383
+ fullPath: key,
384
+ parent: path.parent,
385
+ propertyName: path.propertyName,
386
+ ttl: ttlToUse
387
+ });
388
+ if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
389
+ luvio.storePublish(key, incomingRecord);
390
+ }
391
+ {
392
+ var storeMetadataParams = {
393
+ ttl: ttlToUse,
394
+ namespace: "featurevalidation",
395
+ version: VERSION,
396
+ representationName: RepresentationType,
397
+ };
398
+ luvio.publishStoreMetadata(key, storeMetadataParams);
399
+ }
400
+ return createLink(key);
401
+ };
402
+ function getTypeCacheKeys(luvio, input, fullPathFactory) {
403
+ var rootKeySet = new engine.StoreKeyMap();
404
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
405
+ var rootKey = keyBuilderFromType(luvio, input);
406
+ rootKeySet.set(rootKey, {
407
+ namespace: keyPrefix,
408
+ representationName: RepresentationType,
409
+ mergeable: false
410
+ });
411
+ return rootKeySet;
412
+ }
413
+
414
+ function select(luvio, params) {
415
+ return select$1();
416
+ }
417
+ function getResponseCacheKeys(luvio, resourceParams, response) {
418
+ return getTypeCacheKeys(luvio, response);
419
+ }
420
+ function ingestSuccess(luvio, resourceParams, response) {
421
+ var body = response.body;
422
+ var key = keyBuilderFromType(luvio, body);
423
+ luvio.storeIngest(key, ingest, body);
424
+ var snapshot = luvio.storeLookup({
425
+ recordId: key,
426
+ node: select(),
427
+ variables: {},
428
+ });
429
+ if (process.env.NODE_ENV !== 'production') {
430
+ if (snapshot.state !== 'Fulfilled') {
431
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
432
+ }
433
+ }
434
+ return snapshot;
435
+ }
436
+ function createResourceRequest(config) {
437
+ var headers = {};
438
+ return {
439
+ baseUri: '/services/data/v58.0',
440
+ basePath: '/connect/industries/feature-validation',
441
+ method: 'post',
442
+ body: config.body,
443
+ urlParams: {},
444
+ queryParams: {},
445
+ headers: headers,
446
+ priority: 'normal',
447
+ };
448
+ }
449
+
450
+ var featureValidation_ConfigPropertyNames = {
451
+ displayName: 'featureValidation',
452
+ parameters: {
453
+ required: ['featureValidationInputDetails', 'useCase'],
454
+ optional: []
455
+ }
456
+ };
457
+ function createResourceParams(config) {
458
+ var resourceParams = {
459
+ body: {
460
+ featureValidationInputDetails: config.featureValidationInputDetails, useCase: config.useCase
461
+ }
462
+ };
463
+ return resourceParams;
464
+ }
465
+ function typeCheckConfig(untrustedConfig) {
466
+ var config = {};
467
+ var untrustedConfig_featureValidationInputDetails = untrustedConfig.featureValidationInputDetails;
468
+ if (ArrayIsArray$1(untrustedConfig_featureValidationInputDetails)) {
469
+ var untrustedConfig_featureValidationInputDetails_array = [];
470
+ for (var i = 0, arrayLength = untrustedConfig_featureValidationInputDetails.length; i < arrayLength; i++) {
471
+ var untrustedConfig_featureValidationInputDetails_item = untrustedConfig_featureValidationInputDetails[i];
472
+ if (untrustedIsObject(untrustedConfig_featureValidationInputDetails_item)) {
473
+ var untrustedConfig_featureValidationInputDetails_item_object = {};
474
+ if (untrustedConfig_featureValidationInputDetails_item_object !== undefined && Object.keys(untrustedConfig_featureValidationInputDetails_item_object).length >= 0) {
475
+ untrustedConfig_featureValidationInputDetails_array.push(untrustedConfig_featureValidationInputDetails_item_object);
476
+ }
477
+ }
478
+ }
479
+ config.featureValidationInputDetails = untrustedConfig_featureValidationInputDetails_array;
480
+ }
481
+ var untrustedConfig_useCase = untrustedConfig.useCase;
482
+ if (typeof untrustedConfig_useCase === 'string') {
483
+ config.useCase = untrustedConfig_useCase;
484
+ }
485
+ return config;
486
+ }
487
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
488
+ if (!untrustedIsObject(untrustedConfig)) {
489
+ return null;
490
+ }
491
+ if (process.env.NODE_ENV !== 'production') {
492
+ validateConfig(untrustedConfig, configPropertyNames);
493
+ }
494
+ var config = typeCheckConfig(untrustedConfig);
495
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
496
+ return null;
497
+ }
498
+ return config;
499
+ }
500
+ function buildNetworkSnapshot(luvio, config, options) {
501
+ var resourceParams = createResourceParams(config);
502
+ var request = createResourceRequest(resourceParams);
503
+ return luvio.dispatchResourceRequest(request, options)
504
+ .then(function (response) {
505
+ return luvio.handleSuccessResponse(function () {
506
+ var snapshot = ingestSuccess(luvio, resourceParams, response);
507
+ return luvio.storeBroadcast().then(function () { return snapshot; });
508
+ }, function () { return getResponseCacheKeys(luvio, resourceParams, response.body); });
509
+ }, function (response) {
510
+ deepFreeze(response);
511
+ throw response;
512
+ });
513
+ }
514
+ var featureValidationAdapterFactory = function (luvio) {
515
+ return function featureValidation(untrustedConfig) {
516
+ var config = validateAdapterConfig(untrustedConfig, featureValidation_ConfigPropertyNames);
517
+ // Invalid or incomplete config
518
+ if (config === null) {
519
+ throw new Error('Invalid config for "featureValidation"');
520
+ }
521
+ return buildNetworkSnapshot(luvio, config);
522
+ };
523
+ };
524
+
525
+ exports.featureValidationAdapterFactory = featureValidationAdapterFactory;
526
+
527
+ Object.defineProperty(exports, '__esModule', { value: true });
528
+
529
+ }));
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-industries-featurevalidation",
3
+ "version": "1.124.0",
4
+ "description": "Feature validation tool to debug setup issues.",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/umd/es2018/industries-featurevalidation.js",
7
+ "module": "dist/es/es2018/industries-featurevalidation.js",
8
+ "types": "dist/types/src/generated/artifacts/main.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "sfdc",
12
+ "src/raml/*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/es/es2018/industries-featurevalidation.js",
17
+ "require": "./dist/umd/es2018/industries-featurevalidation.js",
18
+ "types": "./dist/types/src/generated/artifacts/main.d.ts"
19
+ },
20
+ "./sfdc": {
21
+ "import": "./sfdc/index.js",
22
+ "types": "./sfdc/index.d.ts",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sdfc": {
27
+ "namespace": "lightning",
28
+ "module": "industriesFeaturevalidationApi"
29
+ },
30
+ "contributors": [
31
+ "vpatcha@salesforce.com"
32
+ ],
33
+ "scripts": {
34
+ "build": "yarn build:raml && yarn build:services && yarn build:karma",
35
+ "build:karma": "rollup --config rollup.config.karma.js",
36
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
37
+ "build:services": "rollup --config rollup.config.js",
38
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
39
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-featurevalidation",
40
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-industries-featurevalidation",
41
+ "start": "karma start",
42
+ "test": "karma start --single-run",
43
+ "test:compat": "karma start --single-run --compat"
44
+ },
45
+ "dependencies": {
46
+ "@salesforce/lds-bindings": "*"
47
+ },
48
+ "devDependencies": {
49
+ "@salesforce/lds-karma": "*",
50
+ "@salesforce/lds-compiler-plugins": "*"
51
+ },
52
+ "nx": {
53
+ "targets": {
54
+ "build": {
55
+ "outputs": [
56
+ "packages/lds-adapters-industries-featurevalidation/dist",
57
+ "packages/lds-adapters-industries-featurevalidation/karma/dist",
58
+ "packages/lds-adapters-industries-featurevalidation/sfdc",
59
+ "packages/lds-adapters-industries-featurevalidation/src/generated"
60
+ ]
61
+ }
62
+ }
63
+ },
64
+ "volta": {
65
+ "extends": "../../package.json"
66
+ }
67
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/types/src/generated/artifacts/sfdc';