@salesforce/lds-adapters-cdp-semantic-authoring 1.332.0-dev15 → 1.332.0-dev17
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/cdp-semantic-authoring.js +720 -827
- package/dist/es/es2018/types/src/generated/adapters/createSemanticGoal.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/adapters/deleteSemanticGoal.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticGoal.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/adapters/updateSemanticGoal.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/deleteSsotSemanticModelsGoalsByModelApiNameOrId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsGoalsByModelApiNameOrId.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsGoalsByModelApiNameOrId.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsGoalsByModelApiNameOrId.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/SemanticGoalDateRangeOutputRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/SemanticGoalInputRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/SemanticGoalOutputRepresentation.d.ts +12 -6
- package/package.json +3 -3
- package/sfdc/index.js +777 -876
- package/src/raml/api.raml +53 -8
- package/src/raml/luvio.raml +17 -2
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$k, typeCheckConfig as typeCheckConfig$k, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$b } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -176,79 +176,25 @@ function validate$13(obj, path = 'SemanticGoalStatusConditionInputRepresentation
|
|
|
176
176
|
return v_error === undefined ? null : v_error;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
const VERSION$A = "d8d5260b9a2483297bc9bf979347739e";
|
|
180
179
|
function validate$12(obj, path = 'SemanticGoalDateRangeOutputRepresentation') {
|
|
181
180
|
const v_error = (() => {
|
|
182
181
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
183
182
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
184
183
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
190
|
-
}
|
|
184
|
+
const obj_endDate = obj.endDate;
|
|
185
|
+
const path_endDate = path + '.endDate';
|
|
186
|
+
if (typeof obj_endDate !== 'string') {
|
|
187
|
+
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
191
188
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
197
|
-
}
|
|
189
|
+
const obj_startDate = obj.startDate;
|
|
190
|
+
const path_startDate = path + '.startDate';
|
|
191
|
+
if (typeof obj_startDate !== 'string') {
|
|
192
|
+
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
198
193
|
}
|
|
199
194
|
})();
|
|
200
195
|
return v_error === undefined ? null : v_error;
|
|
201
196
|
}
|
|
202
|
-
const select$Q = function SemanticGoalDateRangeOutputRepresentationSelect() {
|
|
203
|
-
return {
|
|
204
|
-
kind: 'Fragment',
|
|
205
|
-
version: VERSION$A,
|
|
206
|
-
private: [],
|
|
207
|
-
selections: [
|
|
208
|
-
{
|
|
209
|
-
name: 'endDate',
|
|
210
|
-
kind: 'Scalar',
|
|
211
|
-
required: false
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
name: 'startDate',
|
|
215
|
-
kind: 'Scalar',
|
|
216
|
-
required: false
|
|
217
|
-
}
|
|
218
|
-
]
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
function equals$A(existing, incoming) {
|
|
222
|
-
const existing_endDate = existing.endDate;
|
|
223
|
-
const incoming_endDate = incoming.endDate;
|
|
224
|
-
// if at least one of these optionals is defined
|
|
225
|
-
if (existing_endDate !== undefined || incoming_endDate !== undefined) {
|
|
226
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
227
|
-
// not equal
|
|
228
|
-
if (existing_endDate === undefined || incoming_endDate === undefined) {
|
|
229
|
-
return false;
|
|
230
|
-
}
|
|
231
|
-
if (!(existing_endDate === incoming_endDate)) {
|
|
232
|
-
return false;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
const existing_startDate = existing.startDate;
|
|
236
|
-
const incoming_startDate = incoming.startDate;
|
|
237
|
-
// if at least one of these optionals is defined
|
|
238
|
-
if (existing_startDate !== undefined || incoming_startDate !== undefined) {
|
|
239
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
240
|
-
// not equal
|
|
241
|
-
if (existing_startDate === undefined || incoming_startDate === undefined) {
|
|
242
|
-
return false;
|
|
243
|
-
}
|
|
244
|
-
if (!(existing_startDate === incoming_startDate)) {
|
|
245
|
-
return false;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
return true;
|
|
249
|
-
}
|
|
250
197
|
|
|
251
|
-
const VERSION$z = "77130f1cc25bfe67384d6074027e3f3c";
|
|
252
198
|
function validate$11(obj, path = 'SemanticGoalStatusConditionOutputRepresentation') {
|
|
253
199
|
const v_error = (() => {
|
|
254
200
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -289,83 +235,8 @@ function validate$11(obj, path = 'SemanticGoalStatusConditionOutputRepresentatio
|
|
|
289
235
|
})();
|
|
290
236
|
return v_error === undefined ? null : v_error;
|
|
291
237
|
}
|
|
292
|
-
const select$P = function SemanticGoalStatusConditionOutputRepresentationSelect() {
|
|
293
|
-
return {
|
|
294
|
-
kind: 'Fragment',
|
|
295
|
-
version: VERSION$z,
|
|
296
|
-
private: [],
|
|
297
|
-
selections: [
|
|
298
|
-
{
|
|
299
|
-
name: 'color',
|
|
300
|
-
kind: 'Scalar'
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
name: 'currencyIsoCode',
|
|
304
|
-
kind: 'Scalar',
|
|
305
|
-
required: false
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
name: 'operator',
|
|
309
|
-
kind: 'Scalar'
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
name: 'primary',
|
|
313
|
-
kind: 'Scalar'
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
name: 'statusName',
|
|
317
|
-
kind: 'Scalar'
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
name: 'value',
|
|
321
|
-
kind: 'Scalar'
|
|
322
|
-
}
|
|
323
|
-
]
|
|
324
|
-
};
|
|
325
|
-
};
|
|
326
|
-
function equals$z(existing, incoming) {
|
|
327
|
-
const existing_primary = existing.primary;
|
|
328
|
-
const incoming_primary = incoming.primary;
|
|
329
|
-
if (!(existing_primary === incoming_primary)) {
|
|
330
|
-
return false;
|
|
331
|
-
}
|
|
332
|
-
const existing_color = existing.color;
|
|
333
|
-
const incoming_color = incoming.color;
|
|
334
|
-
if (!(existing_color === incoming_color)) {
|
|
335
|
-
return false;
|
|
336
|
-
}
|
|
337
|
-
const existing_currencyIsoCode = existing.currencyIsoCode;
|
|
338
|
-
const incoming_currencyIsoCode = incoming.currencyIsoCode;
|
|
339
|
-
// if at least one of these optionals is defined
|
|
340
|
-
if (existing_currencyIsoCode !== undefined || incoming_currencyIsoCode !== undefined) {
|
|
341
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
342
|
-
// not equal
|
|
343
|
-
if (existing_currencyIsoCode === undefined || incoming_currencyIsoCode === undefined) {
|
|
344
|
-
return false;
|
|
345
|
-
}
|
|
346
|
-
if (!(existing_currencyIsoCode === incoming_currencyIsoCode)) {
|
|
347
|
-
return false;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
const existing_operator = existing.operator;
|
|
351
|
-
const incoming_operator = incoming.operator;
|
|
352
|
-
if (!(existing_operator === incoming_operator)) {
|
|
353
|
-
return false;
|
|
354
|
-
}
|
|
355
|
-
const existing_statusName = existing.statusName;
|
|
356
|
-
const incoming_statusName = incoming.statusName;
|
|
357
|
-
if (!(existing_statusName === incoming_statusName)) {
|
|
358
|
-
return false;
|
|
359
|
-
}
|
|
360
|
-
const existing_value = existing.value;
|
|
361
|
-
const incoming_value = incoming.value;
|
|
362
|
-
if (!(existing_value === incoming_value)) {
|
|
363
|
-
return false;
|
|
364
|
-
}
|
|
365
|
-
return true;
|
|
366
|
-
}
|
|
367
238
|
|
|
368
|
-
const VERSION$y = "
|
|
239
|
+
const VERSION$y = "a6367e92be7c02cf72fcdd9bad3cf81d";
|
|
369
240
|
function validate$10(obj, path = 'SemanticGoalOutputRepresentation') {
|
|
370
241
|
const v_error = (() => {
|
|
371
242
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -470,216 +341,30 @@ function validate$10(obj, path = 'SemanticGoalOutputRepresentation') {
|
|
|
470
341
|
return v_error === undefined ? null : v_error;
|
|
471
342
|
}
|
|
472
343
|
const RepresentationType$i = 'SemanticGoalOutputRepresentation';
|
|
473
|
-
function keyBuilder$
|
|
474
|
-
return keyPrefix + '::' + RepresentationType$i + ':' + config.
|
|
344
|
+
function keyBuilder$B(luvio, config) {
|
|
345
|
+
return keyPrefix + '::' + RepresentationType$i + ':' + config.subMetricNameOrId + ':' + config.startDate + ':' + config.endDate;
|
|
475
346
|
}
|
|
476
347
|
function keyBuilderFromType$c(luvio, object) {
|
|
477
348
|
const keyParams = {
|
|
478
|
-
|
|
349
|
+
subMetricNameOrId: object.subMetricDefinitionApiName,
|
|
350
|
+
startDate: object.dateRange.startDate,
|
|
351
|
+
endDate: object.dateRange.endDate
|
|
479
352
|
};
|
|
480
|
-
return keyBuilder$
|
|
353
|
+
return keyBuilder$B(luvio, keyParams);
|
|
481
354
|
}
|
|
482
355
|
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
483
356
|
return input;
|
|
484
357
|
}
|
|
485
|
-
const select$
|
|
486
|
-
const { selections: SemanticGoalDateRangeOutputRepresentation__selections, opaque: SemanticGoalDateRangeOutputRepresentation__opaque, } = select$Q();
|
|
487
|
-
const { selections: SemanticGoalStatusConditionOutputRepresentation__selections, opaque: SemanticGoalStatusConditionOutputRepresentation__opaque, } = select$P();
|
|
358
|
+
const select$P = function SemanticGoalOutputRepresentationSelect() {
|
|
488
359
|
return {
|
|
489
360
|
kind: 'Fragment',
|
|
490
361
|
version: VERSION$y,
|
|
491
362
|
private: [],
|
|
492
|
-
|
|
493
|
-
{
|
|
494
|
-
name: 'apiName',
|
|
495
|
-
kind: 'Scalar'
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
name: 'baseModelApiName',
|
|
499
|
-
kind: 'Scalar',
|
|
500
|
-
required: false
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
name: 'cacheKey',
|
|
504
|
-
kind: 'Scalar',
|
|
505
|
-
required: false
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
name: 'createdBy',
|
|
509
|
-
kind: 'Scalar'
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
name: 'createdDate',
|
|
513
|
-
kind: 'Scalar'
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
name: 'dateRange',
|
|
517
|
-
kind: 'Object',
|
|
518
|
-
selections: SemanticGoalDateRangeOutputRepresentation__selections
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
name: 'description',
|
|
522
|
-
kind: 'Scalar',
|
|
523
|
-
required: false
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
name: 'forecasting',
|
|
527
|
-
kind: 'Scalar'
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
name: 'id',
|
|
531
|
-
kind: 'Scalar'
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
name: 'label',
|
|
535
|
-
kind: 'Scalar',
|
|
536
|
-
required: false
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
name: 'lastModifiedBy',
|
|
540
|
-
kind: 'Scalar',
|
|
541
|
-
required: false
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
name: 'lastModifiedDate',
|
|
545
|
-
kind: 'Scalar',
|
|
546
|
-
required: false
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
name: 'statusConditions',
|
|
550
|
-
kind: 'Object',
|
|
551
|
-
plural: true,
|
|
552
|
-
selections: SemanticGoalStatusConditionOutputRepresentation__selections
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
name: 'subMetricDefinitionApiName',
|
|
556
|
-
kind: 'Scalar'
|
|
557
|
-
}
|
|
558
|
-
]
|
|
363
|
+
opaque: true
|
|
559
364
|
};
|
|
560
365
|
};
|
|
561
366
|
function equals$y(existing, incoming) {
|
|
562
|
-
|
|
563
|
-
const incoming_forecasting = incoming.forecasting;
|
|
564
|
-
if (!(existing_forecasting === incoming_forecasting)) {
|
|
565
|
-
return false;
|
|
566
|
-
}
|
|
567
|
-
const existing_apiName = existing.apiName;
|
|
568
|
-
const incoming_apiName = incoming.apiName;
|
|
569
|
-
if (!(existing_apiName === incoming_apiName)) {
|
|
570
|
-
return false;
|
|
571
|
-
}
|
|
572
|
-
const existing_baseModelApiName = existing.baseModelApiName;
|
|
573
|
-
const incoming_baseModelApiName = incoming.baseModelApiName;
|
|
574
|
-
// if at least one of these optionals is defined
|
|
575
|
-
if (existing_baseModelApiName !== undefined || incoming_baseModelApiName !== undefined) {
|
|
576
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
577
|
-
// not equal
|
|
578
|
-
if (existing_baseModelApiName === undefined || incoming_baseModelApiName === undefined) {
|
|
579
|
-
return false;
|
|
580
|
-
}
|
|
581
|
-
if (!(existing_baseModelApiName === incoming_baseModelApiName)) {
|
|
582
|
-
return false;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
const existing_cacheKey = existing.cacheKey;
|
|
586
|
-
const incoming_cacheKey = incoming.cacheKey;
|
|
587
|
-
// if at least one of these optionals is defined
|
|
588
|
-
if (existing_cacheKey !== undefined || incoming_cacheKey !== undefined) {
|
|
589
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
590
|
-
// not equal
|
|
591
|
-
if (existing_cacheKey === undefined || incoming_cacheKey === undefined) {
|
|
592
|
-
return false;
|
|
593
|
-
}
|
|
594
|
-
if (!(existing_cacheKey === incoming_cacheKey)) {
|
|
595
|
-
return false;
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
const existing_createdBy = existing.createdBy;
|
|
599
|
-
const incoming_createdBy = incoming.createdBy;
|
|
600
|
-
if (!(existing_createdBy === incoming_createdBy)) {
|
|
601
|
-
return false;
|
|
602
|
-
}
|
|
603
|
-
const existing_createdDate = existing.createdDate;
|
|
604
|
-
const incoming_createdDate = incoming.createdDate;
|
|
605
|
-
if (!(existing_createdDate === incoming_createdDate)) {
|
|
606
|
-
return false;
|
|
607
|
-
}
|
|
608
|
-
const existing_description = existing.description;
|
|
609
|
-
const incoming_description = incoming.description;
|
|
610
|
-
// if at least one of these optionals is defined
|
|
611
|
-
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
612
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
613
|
-
// not equal
|
|
614
|
-
if (existing_description === undefined || incoming_description === undefined) {
|
|
615
|
-
return false;
|
|
616
|
-
}
|
|
617
|
-
if (!(existing_description === incoming_description)) {
|
|
618
|
-
return false;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
const existing_id = existing.id;
|
|
622
|
-
const incoming_id = incoming.id;
|
|
623
|
-
if (!(existing_id === incoming_id)) {
|
|
624
|
-
return false;
|
|
625
|
-
}
|
|
626
|
-
const existing_label = existing.label;
|
|
627
|
-
const incoming_label = incoming.label;
|
|
628
|
-
// if at least one of these optionals is defined
|
|
629
|
-
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
630
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
631
|
-
// not equal
|
|
632
|
-
if (existing_label === undefined || incoming_label === undefined) {
|
|
633
|
-
return false;
|
|
634
|
-
}
|
|
635
|
-
if (!(existing_label === incoming_label)) {
|
|
636
|
-
return false;
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
const existing_lastModifiedBy = existing.lastModifiedBy;
|
|
640
|
-
const incoming_lastModifiedBy = incoming.lastModifiedBy;
|
|
641
|
-
// if at least one of these optionals is defined
|
|
642
|
-
if (existing_lastModifiedBy !== undefined || incoming_lastModifiedBy !== undefined) {
|
|
643
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
644
|
-
// not equal
|
|
645
|
-
if (existing_lastModifiedBy === undefined || incoming_lastModifiedBy === undefined) {
|
|
646
|
-
return false;
|
|
647
|
-
}
|
|
648
|
-
if (!(existing_lastModifiedBy === incoming_lastModifiedBy)) {
|
|
649
|
-
return false;
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
653
|
-
const incoming_lastModifiedDate = incoming.lastModifiedDate;
|
|
654
|
-
// if at least one of these optionals is defined
|
|
655
|
-
if (existing_lastModifiedDate !== undefined || incoming_lastModifiedDate !== undefined) {
|
|
656
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
657
|
-
// not equal
|
|
658
|
-
if (existing_lastModifiedDate === undefined || incoming_lastModifiedDate === undefined) {
|
|
659
|
-
return false;
|
|
660
|
-
}
|
|
661
|
-
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
662
|
-
return false;
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
const existing_subMetricDefinitionApiName = existing.subMetricDefinitionApiName;
|
|
666
|
-
const incoming_subMetricDefinitionApiName = incoming.subMetricDefinitionApiName;
|
|
667
|
-
if (!(existing_subMetricDefinitionApiName === incoming_subMetricDefinitionApiName)) {
|
|
668
|
-
return false;
|
|
669
|
-
}
|
|
670
|
-
const existing_dateRange = existing.dateRange;
|
|
671
|
-
const incoming_dateRange = incoming.dateRange;
|
|
672
|
-
if (!(equals$A(existing_dateRange, incoming_dateRange))) {
|
|
673
|
-
return false;
|
|
674
|
-
}
|
|
675
|
-
const existing_statusConditions = existing.statusConditions;
|
|
676
|
-
const incoming_statusConditions = incoming.statusConditions;
|
|
677
|
-
const equals_statusConditions_items = equalsArray(existing_statusConditions, incoming_statusConditions, (existing_statusConditions_item, incoming_statusConditions_item) => {
|
|
678
|
-
if (!(equals$z(existing_statusConditions_item, incoming_statusConditions_item))) {
|
|
679
|
-
return false;
|
|
680
|
-
}
|
|
681
|
-
});
|
|
682
|
-
if (equals_statusConditions_items === false) {
|
|
367
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
683
368
|
return false;
|
|
684
369
|
}
|
|
685
370
|
return true;
|
|
@@ -706,19 +391,19 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
706
391
|
});
|
|
707
392
|
}
|
|
708
393
|
|
|
709
|
-
function select$
|
|
710
|
-
return select$
|
|
394
|
+
function select$O(luvio, params) {
|
|
395
|
+
return select$P();
|
|
711
396
|
}
|
|
712
|
-
function getResponseCacheKeys$
|
|
397
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
713
398
|
getTypeCacheKeys$i(storeKeyMap, luvio, response);
|
|
714
399
|
}
|
|
715
|
-
function ingestSuccess$
|
|
400
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
716
401
|
const { body } = response;
|
|
717
402
|
const key = keyBuilderFromType$c(luvio, body);
|
|
718
403
|
luvio.storeIngest(key, ingest$i, body);
|
|
719
404
|
const snapshot = luvio.storeLookup({
|
|
720
405
|
recordId: key,
|
|
721
|
-
node: select$
|
|
406
|
+
node: select$O(),
|
|
722
407
|
variables: {},
|
|
723
408
|
});
|
|
724
409
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -729,7 +414,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
729
414
|
deepFreeze(snapshot.data);
|
|
730
415
|
return snapshot;
|
|
731
416
|
}
|
|
732
|
-
function createResourceRequest$
|
|
417
|
+
function createResourceRequest$j(config) {
|
|
733
418
|
const headers = {};
|
|
734
419
|
return {
|
|
735
420
|
baseUri: '/services/data/v63.0',
|
|
@@ -743,22 +428,22 @@ function createResourceRequest$h(config) {
|
|
|
743
428
|
};
|
|
744
429
|
}
|
|
745
430
|
|
|
746
|
-
const adapterName$
|
|
431
|
+
const adapterName$j = 'createSemanticGoal';
|
|
747
432
|
const createSemanticGoal_ConfigPropertyMetadata = [
|
|
748
433
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
749
434
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
750
435
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
751
436
|
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
752
|
-
generateParamConfigMetadata('dateRange',
|
|
437
|
+
generateParamConfigMetadata('dateRange', true, 2 /* Body */, 4 /* Unsupported */),
|
|
753
438
|
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
754
|
-
generateParamConfigMetadata('statusConditions',
|
|
755
|
-
generateParamConfigMetadata('subMetricDefinitionApiName',
|
|
439
|
+
generateParamConfigMetadata('statusConditions', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
440
|
+
generateParamConfigMetadata('subMetricDefinitionApiName', true, 2 /* Body */, 0 /* String */),
|
|
756
441
|
];
|
|
757
|
-
const createSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
758
|
-
const createResourceParams$
|
|
759
|
-
function typeCheckConfig$
|
|
442
|
+
const createSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, createSemanticGoal_ConfigPropertyMetadata);
|
|
443
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$k(createSemanticGoal_ConfigPropertyMetadata);
|
|
444
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
760
445
|
const config = {};
|
|
761
|
-
typeCheckConfig$
|
|
446
|
+
typeCheckConfig$k(untrustedConfig, config, createSemanticGoal_ConfigPropertyMetadata);
|
|
762
447
|
const untrustedConfig_dateRange = untrustedConfig.dateRange;
|
|
763
448
|
const referenceSemanticGoalDateRangeInputRepresentationValidationError = validate$14(untrustedConfig_dateRange);
|
|
764
449
|
if (referenceSemanticGoalDateRangeInputRepresentationValidationError === null) {
|
|
@@ -778,30 +463,30 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
778
463
|
}
|
|
779
464
|
return config;
|
|
780
465
|
}
|
|
781
|
-
function validateAdapterConfig$
|
|
466
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
782
467
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
783
468
|
return null;
|
|
784
469
|
}
|
|
785
470
|
if (process.env.NODE_ENV !== 'production') {
|
|
786
471
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
787
472
|
}
|
|
788
|
-
const config = typeCheckConfig$
|
|
473
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
789
474
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
790
475
|
return null;
|
|
791
476
|
}
|
|
792
477
|
return config;
|
|
793
478
|
}
|
|
794
|
-
function buildNetworkSnapshot$
|
|
795
|
-
const resourceParams = createResourceParams$
|
|
796
|
-
const request = createResourceRequest$
|
|
479
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
480
|
+
const resourceParams = createResourceParams$j(config);
|
|
481
|
+
const request = createResourceRequest$j(resourceParams);
|
|
797
482
|
return luvio.dispatchResourceRequest(request, options)
|
|
798
483
|
.then((response) => {
|
|
799
484
|
return luvio.handleSuccessResponse(() => {
|
|
800
|
-
const snapshot = ingestSuccess$
|
|
485
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
801
486
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
802
487
|
}, () => {
|
|
803
488
|
const cache = new StoreKeyMap();
|
|
804
|
-
getResponseCacheKeys$
|
|
489
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
805
490
|
return cache;
|
|
806
491
|
});
|
|
807
492
|
}, (response) => {
|
|
@@ -811,12 +496,12 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
811
496
|
}
|
|
812
497
|
const createSemanticGoalAdapterFactory = (luvio) => {
|
|
813
498
|
return function createSemanticGoal(untrustedConfig) {
|
|
814
|
-
const config = validateAdapterConfig$
|
|
499
|
+
const config = validateAdapterConfig$j(untrustedConfig, createSemanticGoal_ConfigPropertyNames);
|
|
815
500
|
// Invalid or incomplete config
|
|
816
501
|
if (config === null) {
|
|
817
502
|
throw new Error('Invalid config for "createSemanticGoal"');
|
|
818
503
|
}
|
|
819
|
-
return buildNetworkSnapshot$
|
|
504
|
+
return buildNetworkSnapshot$j(luvio, config);
|
|
820
505
|
};
|
|
821
506
|
};
|
|
822
507
|
|
|
@@ -2392,7 +2077,7 @@ function validate$D(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
2392
2077
|
})();
|
|
2393
2078
|
return v_error === undefined ? null : v_error;
|
|
2394
2079
|
}
|
|
2395
|
-
const select$
|
|
2080
|
+
const select$N = function SemanticBaseModelOutputRepresentationSelect() {
|
|
2396
2081
|
return {
|
|
2397
2082
|
kind: 'Fragment',
|
|
2398
2083
|
version: VERSION$x,
|
|
@@ -2462,7 +2147,7 @@ function validate$C(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
2462
2147
|
})();
|
|
2463
2148
|
return v_error === undefined ? null : v_error;
|
|
2464
2149
|
}
|
|
2465
|
-
const select$
|
|
2150
|
+
const select$M = function SemanticFilterOutputRepresentationSelect() {
|
|
2466
2151
|
return {
|
|
2467
2152
|
kind: 'Fragment',
|
|
2468
2153
|
version: VERSION$w,
|
|
@@ -2688,20 +2373,20 @@ function validate$B(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
2688
2373
|
return v_error === undefined ? null : v_error;
|
|
2689
2374
|
}
|
|
2690
2375
|
const RepresentationType$h = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
2691
|
-
function keyBuilder$
|
|
2376
|
+
function keyBuilder$A(luvio, config) {
|
|
2692
2377
|
return keyPrefix + '::' + RepresentationType$h + ':' + config.name;
|
|
2693
2378
|
}
|
|
2694
2379
|
function keyBuilderFromType$b(luvio, object) {
|
|
2695
2380
|
const keyParams = {
|
|
2696
2381
|
name: object.id
|
|
2697
2382
|
};
|
|
2698
|
-
return keyBuilder$
|
|
2383
|
+
return keyBuilder$A(luvio, keyParams);
|
|
2699
2384
|
}
|
|
2700
2385
|
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
2701
2386
|
return input;
|
|
2702
2387
|
}
|
|
2703
|
-
const select$
|
|
2704
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
2388
|
+
const select$L = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
2389
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$M();
|
|
2705
2390
|
return {
|
|
2706
2391
|
kind: 'Fragment',
|
|
2707
2392
|
version: VERSION$v,
|
|
@@ -3285,20 +2970,20 @@ function validate$A(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
3285
2970
|
return v_error === undefined ? null : v_error;
|
|
3286
2971
|
}
|
|
3287
2972
|
const RepresentationType$g = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
3288
|
-
function keyBuilder$
|
|
2973
|
+
function keyBuilder$z(luvio, config) {
|
|
3289
2974
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.name;
|
|
3290
2975
|
}
|
|
3291
2976
|
function keyBuilderFromType$a(luvio, object) {
|
|
3292
2977
|
const keyParams = {
|
|
3293
2978
|
name: object.id
|
|
3294
2979
|
};
|
|
3295
|
-
return keyBuilder$
|
|
2980
|
+
return keyBuilder$z(luvio, keyParams);
|
|
3296
2981
|
}
|
|
3297
2982
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
3298
2983
|
return input;
|
|
3299
2984
|
}
|
|
3300
|
-
const select$
|
|
3301
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
2985
|
+
const select$K = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
2986
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$M();
|
|
3302
2987
|
return {
|
|
3303
2988
|
kind: 'Fragment',
|
|
3304
2989
|
version: VERSION$u,
|
|
@@ -4278,19 +3963,19 @@ function validate$x(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
4278
3963
|
return v_error === undefined ? null : v_error;
|
|
4279
3964
|
}
|
|
4280
3965
|
const RepresentationType$f = 'SemanticDataObjectOutputRepresentation';
|
|
4281
|
-
function keyBuilder$
|
|
3966
|
+
function keyBuilder$y(luvio, config) {
|
|
4282
3967
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.name;
|
|
4283
3968
|
}
|
|
4284
3969
|
function keyBuilderFromType$9(luvio, object) {
|
|
4285
3970
|
const keyParams = {
|
|
4286
3971
|
name: object.id
|
|
4287
3972
|
};
|
|
4288
|
-
return keyBuilder$
|
|
3973
|
+
return keyBuilder$y(luvio, keyParams);
|
|
4289
3974
|
}
|
|
4290
3975
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
4291
3976
|
return input;
|
|
4292
3977
|
}
|
|
4293
|
-
const select$
|
|
3978
|
+
const select$J = function SemanticDataObjectOutputRepresentationSelect() {
|
|
4294
3979
|
return {
|
|
4295
3980
|
kind: 'Fragment',
|
|
4296
3981
|
version: VERSION$t,
|
|
@@ -4336,7 +4021,7 @@ function validate$w(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
4336
4021
|
})();
|
|
4337
4022
|
return v_error === undefined ? null : v_error;
|
|
4338
4023
|
}
|
|
4339
|
-
const select$
|
|
4024
|
+
const select$I = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
4340
4025
|
return {
|
|
4341
4026
|
kind: 'Fragment',
|
|
4342
4027
|
version: VERSION$s,
|
|
@@ -4386,7 +4071,7 @@ function validate$v(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
4386
4071
|
})();
|
|
4387
4072
|
return v_error === undefined ? null : v_error;
|
|
4388
4073
|
}
|
|
4389
|
-
const select$
|
|
4074
|
+
const select$H = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
4390
4075
|
return {
|
|
4391
4076
|
kind: 'Fragment',
|
|
4392
4077
|
version: VERSION$r,
|
|
@@ -4465,8 +4150,8 @@ function validate$u(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
4465
4150
|
})();
|
|
4466
4151
|
return v_error === undefined ? null : v_error;
|
|
4467
4152
|
}
|
|
4468
|
-
const select$
|
|
4469
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
4153
|
+
const select$G = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
4154
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$H();
|
|
4470
4155
|
return {
|
|
4471
4156
|
kind: 'Fragment',
|
|
4472
4157
|
version: VERSION$q,
|
|
@@ -4551,9 +4236,9 @@ function validate$t(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
4551
4236
|
})();
|
|
4552
4237
|
return v_error === undefined ? null : v_error;
|
|
4553
4238
|
}
|
|
4554
|
-
const select$
|
|
4555
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
4556
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
4239
|
+
const select$F = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
4240
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$I();
|
|
4241
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$G();
|
|
4557
4242
|
return {
|
|
4558
4243
|
kind: 'Fragment',
|
|
4559
4244
|
version: VERSION$p,
|
|
@@ -4627,7 +4312,7 @@ function validate$s(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
4627
4312
|
})();
|
|
4628
4313
|
return v_error === undefined ? null : v_error;
|
|
4629
4314
|
}
|
|
4630
|
-
const select$
|
|
4315
|
+
const select$E = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
4631
4316
|
return {
|
|
4632
4317
|
kind: 'Fragment',
|
|
4633
4318
|
version: VERSION$o,
|
|
@@ -4702,8 +4387,8 @@ function validate$r(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
4702
4387
|
})();
|
|
4703
4388
|
return v_error === undefined ? null : v_error;
|
|
4704
4389
|
}
|
|
4705
|
-
const select$
|
|
4706
|
-
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$
|
|
4390
|
+
const select$D = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
4391
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$E();
|
|
4707
4392
|
return {
|
|
4708
4393
|
kind: 'Fragment',
|
|
4709
4394
|
version: VERSION$n,
|
|
@@ -4846,21 +4531,21 @@ function validate$q(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
4846
4531
|
return v_error === undefined ? null : v_error;
|
|
4847
4532
|
}
|
|
4848
4533
|
const RepresentationType$e = 'SemanticGroupingOutputRepresentation';
|
|
4849
|
-
function keyBuilder$
|
|
4534
|
+
function keyBuilder$x(luvio, config) {
|
|
4850
4535
|
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
4851
4536
|
}
|
|
4852
4537
|
function keyBuilderFromType$8(luvio, object) {
|
|
4853
4538
|
const keyParams = {
|
|
4854
4539
|
name: object.id
|
|
4855
4540
|
};
|
|
4856
|
-
return keyBuilder$
|
|
4541
|
+
return keyBuilder$x(luvio, keyParams);
|
|
4857
4542
|
}
|
|
4858
4543
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4859
4544
|
return input;
|
|
4860
4545
|
}
|
|
4861
|
-
const select$
|
|
4862
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
4863
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
4546
|
+
const select$C = function SemanticGroupingOutputRepresentationSelect() {
|
|
4547
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$F();
|
|
4548
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$D();
|
|
4864
4549
|
return {
|
|
4865
4550
|
kind: 'Fragment',
|
|
4866
4551
|
version: VERSION$m,
|
|
@@ -5111,7 +4796,7 @@ function validate$p(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
5111
4796
|
})();
|
|
5112
4797
|
return v_error === undefined ? null : v_error;
|
|
5113
4798
|
}
|
|
5114
|
-
const select$
|
|
4799
|
+
const select$B = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
5115
4800
|
return {
|
|
5116
4801
|
kind: 'Fragment',
|
|
5117
4802
|
version: VERSION$l,
|
|
@@ -5345,20 +5030,20 @@ function validate$o(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
5345
5030
|
return v_error === undefined ? null : v_error;
|
|
5346
5031
|
}
|
|
5347
5032
|
const RepresentationType$d = 'SemanticRelationshipOutputRepresentation';
|
|
5348
|
-
function keyBuilder$
|
|
5033
|
+
function keyBuilder$w(luvio, config) {
|
|
5349
5034
|
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
5350
5035
|
}
|
|
5351
5036
|
function keyBuilderFromType$7(luvio, object) {
|
|
5352
5037
|
const keyParams = {
|
|
5353
5038
|
name: object.id
|
|
5354
5039
|
};
|
|
5355
|
-
return keyBuilder$
|
|
5040
|
+
return keyBuilder$w(luvio, keyParams);
|
|
5356
5041
|
}
|
|
5357
5042
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
5358
5043
|
return input;
|
|
5359
5044
|
}
|
|
5360
|
-
const select$
|
|
5361
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
5045
|
+
const select$A = function SemanticRelationshipOutputRepresentationSelect() {
|
|
5046
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$B();
|
|
5362
5047
|
return {
|
|
5363
5048
|
kind: 'Fragment',
|
|
5364
5049
|
version: VERSION$k,
|
|
@@ -5785,19 +5470,19 @@ function validate$n(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
5785
5470
|
return v_error === undefined ? null : v_error;
|
|
5786
5471
|
}
|
|
5787
5472
|
const RepresentationType$c = 'SemanticMappedFieldOutputRepresentation';
|
|
5788
|
-
function keyBuilder$
|
|
5473
|
+
function keyBuilder$v(luvio, config) {
|
|
5789
5474
|
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
5790
5475
|
}
|
|
5791
5476
|
function keyBuilderFromType$6(luvio, object) {
|
|
5792
5477
|
const keyParams = {
|
|
5793
5478
|
name: object.id
|
|
5794
5479
|
};
|
|
5795
|
-
return keyBuilder$
|
|
5480
|
+
return keyBuilder$v(luvio, keyParams);
|
|
5796
5481
|
}
|
|
5797
5482
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5798
5483
|
return input;
|
|
5799
5484
|
}
|
|
5800
|
-
const select$
|
|
5485
|
+
const select$z = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
5801
5486
|
return {
|
|
5802
5487
|
kind: 'Fragment',
|
|
5803
5488
|
version: VERSION$j,
|
|
@@ -5961,14 +5646,14 @@ function validate$m(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
5961
5646
|
return v_error === undefined ? null : v_error;
|
|
5962
5647
|
}
|
|
5963
5648
|
const RepresentationType$b = 'SemanticUnionOutputRepresentation';
|
|
5964
|
-
function keyBuilder$
|
|
5649
|
+
function keyBuilder$u(luvio, config) {
|
|
5965
5650
|
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
5966
5651
|
}
|
|
5967
5652
|
function keyBuilderFromType$5(luvio, object) {
|
|
5968
5653
|
const keyParams = {
|
|
5969
5654
|
name: object.id
|
|
5970
5655
|
};
|
|
5971
|
-
return keyBuilder$
|
|
5656
|
+
return keyBuilder$u(luvio, keyParams);
|
|
5972
5657
|
}
|
|
5973
5658
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5974
5659
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -6009,7 +5694,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
6009
5694
|
}
|
|
6010
5695
|
return input;
|
|
6011
5696
|
}
|
|
6012
|
-
const select$
|
|
5697
|
+
const select$y = function SemanticUnionOutputRepresentationSelect() {
|
|
6013
5698
|
return {
|
|
6014
5699
|
kind: 'Fragment',
|
|
6015
5700
|
version: VERSION$i,
|
|
@@ -6071,14 +5756,14 @@ const select$x = function SemanticUnionOutputRepresentationSelect() {
|
|
|
6071
5756
|
kind: 'Link',
|
|
6072
5757
|
plural: true,
|
|
6073
5758
|
required: false,
|
|
6074
|
-
fragment: select$
|
|
5759
|
+
fragment: select$J()
|
|
6075
5760
|
},
|
|
6076
5761
|
{
|
|
6077
5762
|
name: 'semanticMappedFields',
|
|
6078
5763
|
kind: 'Link',
|
|
6079
5764
|
plural: true,
|
|
6080
5765
|
required: false,
|
|
6081
|
-
fragment: select$
|
|
5766
|
+
fragment: select$z()
|
|
6082
5767
|
}
|
|
6083
5768
|
]
|
|
6084
5769
|
};
|
|
@@ -6419,14 +6104,14 @@ function validate$l(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
6419
6104
|
return v_error === undefined ? null : v_error;
|
|
6420
6105
|
}
|
|
6421
6106
|
const RepresentationType$a = 'SemanticLogicalViewOutputRepresentation';
|
|
6422
|
-
function keyBuilder$
|
|
6107
|
+
function keyBuilder$t(luvio, config) {
|
|
6423
6108
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
6424
6109
|
}
|
|
6425
6110
|
function keyBuilderFromType$4(luvio, object) {
|
|
6426
6111
|
const keyParams = {
|
|
6427
6112
|
name: object.id
|
|
6428
6113
|
};
|
|
6429
|
-
return keyBuilder$
|
|
6114
|
+
return keyBuilder$t(luvio, keyParams);
|
|
6430
6115
|
}
|
|
6431
6116
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
6432
6117
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -6485,8 +6170,8 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
6485
6170
|
}
|
|
6486
6171
|
return input;
|
|
6487
6172
|
}
|
|
6488
|
-
const select$
|
|
6489
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
6173
|
+
const select$x = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
6174
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$M();
|
|
6490
6175
|
return {
|
|
6491
6176
|
kind: 'Fragment',
|
|
6492
6177
|
version: VERSION$h,
|
|
@@ -6560,21 +6245,21 @@ const select$w = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
6560
6245
|
kind: 'Link',
|
|
6561
6246
|
plural: true,
|
|
6562
6247
|
required: false,
|
|
6563
|
-
fragment: select$
|
|
6248
|
+
fragment: select$J()
|
|
6564
6249
|
},
|
|
6565
6250
|
{
|
|
6566
6251
|
name: 'semanticRelationships',
|
|
6567
6252
|
kind: 'Link',
|
|
6568
6253
|
plural: true,
|
|
6569
6254
|
required: false,
|
|
6570
|
-
fragment: select$
|
|
6255
|
+
fragment: select$A()
|
|
6571
6256
|
},
|
|
6572
6257
|
{
|
|
6573
6258
|
name: 'semanticUnions',
|
|
6574
6259
|
kind: 'Link',
|
|
6575
6260
|
plural: true,
|
|
6576
6261
|
required: false,
|
|
6577
|
-
fragment: select$
|
|
6262
|
+
fragment: select$y()
|
|
6578
6263
|
},
|
|
6579
6264
|
{
|
|
6580
6265
|
name: 'semanticViewTypeEnum',
|
|
@@ -6865,8 +6550,8 @@ function validate$k(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6865
6550
|
})();
|
|
6866
6551
|
return v_error === undefined ? null : v_error;
|
|
6867
6552
|
}
|
|
6868
|
-
const select$
|
|
6869
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6553
|
+
const select$w = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
6554
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$D();
|
|
6870
6555
|
return {
|
|
6871
6556
|
kind: 'Fragment',
|
|
6872
6557
|
version: VERSION$g,
|
|
@@ -6940,7 +6625,7 @@ function validate$j(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
6940
6625
|
})();
|
|
6941
6626
|
return v_error === undefined ? null : v_error;
|
|
6942
6627
|
}
|
|
6943
|
-
const select$
|
|
6628
|
+
const select$v = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
6944
6629
|
return {
|
|
6945
6630
|
kind: 'Fragment',
|
|
6946
6631
|
version: VERSION$f,
|
|
@@ -7063,10 +6748,10 @@ function validate$i(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
7063
6748
|
})();
|
|
7064
6749
|
return v_error === undefined ? null : v_error;
|
|
7065
6750
|
}
|
|
7066
|
-
const select$
|
|
7067
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
7068
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
7069
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6751
|
+
const select$u = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
6752
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$w();
|
|
6753
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$v();
|
|
6754
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$D();
|
|
7070
6755
|
return {
|
|
7071
6756
|
kind: 'Fragment',
|
|
7072
6757
|
version: VERSION$e,
|
|
@@ -7373,22 +7058,22 @@ function validate$h(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
7373
7058
|
return v_error === undefined ? null : v_error;
|
|
7374
7059
|
}
|
|
7375
7060
|
const RepresentationType$9 = 'SemanticMetricOutputRepresentation';
|
|
7376
|
-
function keyBuilder$
|
|
7061
|
+
function keyBuilder$s(luvio, config) {
|
|
7377
7062
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
7378
7063
|
}
|
|
7379
7064
|
function keyBuilderFromType$3(luvio, object) {
|
|
7380
7065
|
const keyParams = {
|
|
7381
7066
|
name: object.id
|
|
7382
7067
|
};
|
|
7383
|
-
return keyBuilder$
|
|
7068
|
+
return keyBuilder$s(luvio, keyParams);
|
|
7384
7069
|
}
|
|
7385
7070
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
7386
7071
|
return input;
|
|
7387
7072
|
}
|
|
7388
|
-
const select$
|
|
7389
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
7390
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7391
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
7073
|
+
const select$t = function SemanticMetricOutputRepresentationSelect() {
|
|
7074
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$D();
|
|
7075
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$M();
|
|
7076
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$u();
|
|
7392
7077
|
return {
|
|
7393
7078
|
kind: 'Fragment',
|
|
7394
7079
|
version: VERSION$d,
|
|
@@ -7774,7 +7459,7 @@ function validate$g(obj, path = 'SemanticParameterListValueOutputRepresentation'
|
|
|
7774
7459
|
})();
|
|
7775
7460
|
return v_error === undefined ? null : v_error;
|
|
7776
7461
|
}
|
|
7777
|
-
const select$
|
|
7462
|
+
const select$s = function SemanticParameterListValueOutputRepresentationSelect() {
|
|
7778
7463
|
return {
|
|
7779
7464
|
kind: 'Fragment',
|
|
7780
7465
|
version: VERSION$c,
|
|
@@ -7968,20 +7653,20 @@ function validate$f(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
7968
7653
|
return v_error === undefined ? null : v_error;
|
|
7969
7654
|
}
|
|
7970
7655
|
const RepresentationType$8 = 'SemanticParameterOutputRepresentation';
|
|
7971
|
-
function keyBuilder$
|
|
7656
|
+
function keyBuilder$r(luvio, config) {
|
|
7972
7657
|
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7973
7658
|
}
|
|
7974
7659
|
function keyBuilderFromType$2(luvio, object) {
|
|
7975
7660
|
const keyParams = {
|
|
7976
7661
|
name: object.id
|
|
7977
7662
|
};
|
|
7978
|
-
return keyBuilder$
|
|
7663
|
+
return keyBuilder$r(luvio, keyParams);
|
|
7979
7664
|
}
|
|
7980
7665
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7981
7666
|
return input;
|
|
7982
7667
|
}
|
|
7983
|
-
const select$
|
|
7984
|
-
const { selections: SemanticParameterListValueOutputRepresentation__selections, opaque: SemanticParameterListValueOutputRepresentation__opaque, } = select$
|
|
7668
|
+
const select$r = function SemanticParameterOutputRepresentationSelect() {
|
|
7669
|
+
const { selections: SemanticParameterListValueOutputRepresentation__selections, opaque: SemanticParameterListValueOutputRepresentation__opaque, } = select$s();
|
|
7985
7670
|
return {
|
|
7986
7671
|
kind: 'Fragment',
|
|
7987
7672
|
version: VERSION$b,
|
|
@@ -8634,14 +8319,14 @@ function validate$e(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8634
8319
|
return v_error === undefined ? null : v_error;
|
|
8635
8320
|
}
|
|
8636
8321
|
const RepresentationType$7 = 'SemanticModelOutputRepresentation';
|
|
8637
|
-
function keyBuilder$
|
|
8322
|
+
function keyBuilder$q(luvio, config) {
|
|
8638
8323
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
8639
8324
|
}
|
|
8640
8325
|
function keyBuilderFromType$1(luvio, object) {
|
|
8641
8326
|
const keyParams = {
|
|
8642
8327
|
name: object.id
|
|
8643
8328
|
};
|
|
8644
|
-
return keyBuilder$
|
|
8329
|
+
return keyBuilder$q(luvio, keyParams);
|
|
8645
8330
|
}
|
|
8646
8331
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
8647
8332
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
@@ -8790,8 +8475,8 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
8790
8475
|
}
|
|
8791
8476
|
return input;
|
|
8792
8477
|
}
|
|
8793
|
-
const select$
|
|
8794
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
8478
|
+
const select$q = function SemanticModelOutputRepresentationSelect() {
|
|
8479
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$N();
|
|
8795
8480
|
return {
|
|
8796
8481
|
kind: 'Fragment',
|
|
8797
8482
|
version: VERSION$a,
|
|
@@ -8880,7 +8565,7 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8880
8565
|
kind: 'Link',
|
|
8881
8566
|
plural: true,
|
|
8882
8567
|
required: false,
|
|
8883
|
-
fragment: select$
|
|
8568
|
+
fragment: select$L()
|
|
8884
8569
|
},
|
|
8885
8570
|
{
|
|
8886
8571
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -8892,7 +8577,7 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8892
8577
|
kind: 'Link',
|
|
8893
8578
|
plural: true,
|
|
8894
8579
|
required: false,
|
|
8895
|
-
fragment: select$
|
|
8580
|
+
fragment: select$K()
|
|
8896
8581
|
},
|
|
8897
8582
|
{
|
|
8898
8583
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -8904,7 +8589,7 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8904
8589
|
kind: 'Link',
|
|
8905
8590
|
plural: true,
|
|
8906
8591
|
required: false,
|
|
8907
|
-
fragment: select$
|
|
8592
|
+
fragment: select$J()
|
|
8908
8593
|
},
|
|
8909
8594
|
{
|
|
8910
8595
|
name: 'semanticDataObjectsUrl',
|
|
@@ -8916,7 +8601,7 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8916
8601
|
kind: 'Link',
|
|
8917
8602
|
plural: true,
|
|
8918
8603
|
required: false,
|
|
8919
|
-
fragment: select$
|
|
8604
|
+
fragment: select$C()
|
|
8920
8605
|
},
|
|
8921
8606
|
{
|
|
8922
8607
|
name: 'semanticGroupingsUrl',
|
|
@@ -8928,21 +8613,21 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8928
8613
|
kind: 'Link',
|
|
8929
8614
|
plural: true,
|
|
8930
8615
|
required: false,
|
|
8931
|
-
fragment: select$
|
|
8616
|
+
fragment: select$x()
|
|
8932
8617
|
},
|
|
8933
8618
|
{
|
|
8934
8619
|
name: 'semanticMetrics',
|
|
8935
8620
|
kind: 'Link',
|
|
8936
8621
|
plural: true,
|
|
8937
8622
|
required: false,
|
|
8938
|
-
fragment: select$
|
|
8623
|
+
fragment: select$t()
|
|
8939
8624
|
},
|
|
8940
8625
|
{
|
|
8941
8626
|
name: 'semanticParameters',
|
|
8942
8627
|
kind: 'Link',
|
|
8943
8628
|
plural: true,
|
|
8944
8629
|
required: false,
|
|
8945
|
-
fragment: select$
|
|
8630
|
+
fragment: select$r()
|
|
8946
8631
|
},
|
|
8947
8632
|
{
|
|
8948
8633
|
name: 'semanticParametersUrl',
|
|
@@ -8954,7 +8639,7 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8954
8639
|
kind: 'Link',
|
|
8955
8640
|
plural: true,
|
|
8956
8641
|
required: false,
|
|
8957
|
-
fragment: select$
|
|
8642
|
+
fragment: select$A()
|
|
8958
8643
|
},
|
|
8959
8644
|
{
|
|
8960
8645
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9473,19 +9158,19 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9473
9158
|
}
|
|
9474
9159
|
}
|
|
9475
9160
|
|
|
9476
|
-
function select$
|
|
9477
|
-
return select$
|
|
9161
|
+
function select$p(luvio, params) {
|
|
9162
|
+
return select$q();
|
|
9478
9163
|
}
|
|
9479
|
-
function getResponseCacheKeys$
|
|
9164
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
9480
9165
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
9481
9166
|
}
|
|
9482
|
-
function ingestSuccess$
|
|
9167
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
9483
9168
|
const { body } = response;
|
|
9484
9169
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9485
9170
|
luvio.storeIngest(key, ingest$7, body);
|
|
9486
9171
|
const snapshot = luvio.storeLookup({
|
|
9487
9172
|
recordId: key,
|
|
9488
|
-
node: select$
|
|
9173
|
+
node: select$p(),
|
|
9489
9174
|
variables: {},
|
|
9490
9175
|
});
|
|
9491
9176
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9496,7 +9181,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
9496
9181
|
deepFreeze(snapshot.data);
|
|
9497
9182
|
return snapshot;
|
|
9498
9183
|
}
|
|
9499
|
-
function createResourceRequest$
|
|
9184
|
+
function createResourceRequest$i(config) {
|
|
9500
9185
|
const headers = {};
|
|
9501
9186
|
return {
|
|
9502
9187
|
baseUri: '/services/data/v63.0',
|
|
@@ -9510,7 +9195,7 @@ function createResourceRequest$g(config) {
|
|
|
9510
9195
|
};
|
|
9511
9196
|
}
|
|
9512
9197
|
|
|
9513
|
-
const adapterName$
|
|
9198
|
+
const adapterName$i = 'createSemanticModel';
|
|
9514
9199
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
9515
9200
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9516
9201
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9531,11 +9216,11 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
9531
9216
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9532
9217
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9533
9218
|
];
|
|
9534
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9535
|
-
const createResourceParams$
|
|
9536
|
-
function typeCheckConfig$
|
|
9219
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, createSemanticModel_ConfigPropertyMetadata);
|
|
9220
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$k(createSemanticModel_ConfigPropertyMetadata);
|
|
9221
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
9537
9222
|
const config = {};
|
|
9538
|
-
typeCheckConfig$
|
|
9223
|
+
typeCheckConfig$k(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
9539
9224
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9540
9225
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9541
9226
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -9646,30 +9331,30 @@ function typeCheckConfig$g(untrustedConfig) {
|
|
|
9646
9331
|
}
|
|
9647
9332
|
return config;
|
|
9648
9333
|
}
|
|
9649
|
-
function validateAdapterConfig$
|
|
9334
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
9650
9335
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9651
9336
|
return null;
|
|
9652
9337
|
}
|
|
9653
9338
|
if (process.env.NODE_ENV !== 'production') {
|
|
9654
9339
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9655
9340
|
}
|
|
9656
|
-
const config = typeCheckConfig$
|
|
9341
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
9657
9342
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9658
9343
|
return null;
|
|
9659
9344
|
}
|
|
9660
9345
|
return config;
|
|
9661
9346
|
}
|
|
9662
|
-
function buildNetworkSnapshot$
|
|
9663
|
-
const resourceParams = createResourceParams$
|
|
9664
|
-
const request = createResourceRequest$
|
|
9347
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
9348
|
+
const resourceParams = createResourceParams$i(config);
|
|
9349
|
+
const request = createResourceRequest$i(resourceParams);
|
|
9665
9350
|
return luvio.dispatchResourceRequest(request, options)
|
|
9666
9351
|
.then((response) => {
|
|
9667
9352
|
return luvio.handleSuccessResponse(() => {
|
|
9668
|
-
const snapshot = ingestSuccess$
|
|
9353
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
9669
9354
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9670
9355
|
}, () => {
|
|
9671
9356
|
const cache = new StoreKeyMap();
|
|
9672
|
-
getResponseCacheKeys$
|
|
9357
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
9673
9358
|
return cache;
|
|
9674
9359
|
});
|
|
9675
9360
|
}, (response) => {
|
|
@@ -9679,12 +9364,12 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
9679
9364
|
}
|
|
9680
9365
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
9681
9366
|
return function createSemanticModel(untrustedConfig) {
|
|
9682
|
-
const config = validateAdapterConfig$
|
|
9367
|
+
const config = validateAdapterConfig$i(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
9683
9368
|
// Invalid or incomplete config
|
|
9684
9369
|
if (config === null) {
|
|
9685
9370
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
9686
9371
|
}
|
|
9687
|
-
return buildNetworkSnapshot$
|
|
9372
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
9688
9373
|
};
|
|
9689
9374
|
};
|
|
9690
9375
|
|
|
@@ -9943,19 +9628,19 @@ function validate$9(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9943
9628
|
return v_error === undefined ? null : v_error;
|
|
9944
9629
|
}
|
|
9945
9630
|
const RepresentationType$6 = 'SemanticSubMetricOutputRepresentation';
|
|
9946
|
-
function keyBuilder$
|
|
9631
|
+
function keyBuilder$p(luvio, config) {
|
|
9947
9632
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
9948
9633
|
}
|
|
9949
9634
|
function keyBuilderFromType(luvio, object) {
|
|
9950
9635
|
const keyParams = {
|
|
9951
9636
|
name: object.id
|
|
9952
9637
|
};
|
|
9953
|
-
return keyBuilder$
|
|
9638
|
+
return keyBuilder$p(luvio, keyParams);
|
|
9954
9639
|
}
|
|
9955
9640
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
9956
9641
|
return input;
|
|
9957
9642
|
}
|
|
9958
|
-
const select$
|
|
9643
|
+
const select$o = function SemanticSubMetricOutputRepresentationSelect() {
|
|
9959
9644
|
return {
|
|
9960
9645
|
kind: 'Fragment',
|
|
9961
9646
|
version: VERSION$9,
|
|
@@ -9991,19 +9676,19 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9991
9676
|
});
|
|
9992
9677
|
}
|
|
9993
9678
|
|
|
9994
|
-
function select$
|
|
9995
|
-
return select$
|
|
9679
|
+
function select$n(luvio, params) {
|
|
9680
|
+
return select$o();
|
|
9996
9681
|
}
|
|
9997
|
-
function getResponseCacheKeys$
|
|
9682
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
9998
9683
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
9999
9684
|
}
|
|
10000
|
-
function ingestSuccess$
|
|
9685
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
10001
9686
|
const { body } = response;
|
|
10002
9687
|
const key = keyBuilderFromType(luvio, body);
|
|
10003
9688
|
luvio.storeIngest(key, ingest$6, body);
|
|
10004
9689
|
const snapshot = luvio.storeLookup({
|
|
10005
9690
|
recordId: key,
|
|
10006
|
-
node: select$
|
|
9691
|
+
node: select$n(),
|
|
10007
9692
|
variables: {},
|
|
10008
9693
|
});
|
|
10009
9694
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10014,7 +9699,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
10014
9699
|
deepFreeze(snapshot.data);
|
|
10015
9700
|
return snapshot;
|
|
10016
9701
|
}
|
|
10017
|
-
function createResourceRequest$
|
|
9702
|
+
function createResourceRequest$h(config) {
|
|
10018
9703
|
const headers = {};
|
|
10019
9704
|
return {
|
|
10020
9705
|
baseUri: '/services/data/v63.0',
|
|
@@ -10028,7 +9713,7 @@ function createResourceRequest$f(config) {
|
|
|
10028
9713
|
};
|
|
10029
9714
|
}
|
|
10030
9715
|
|
|
10031
|
-
const adapterName$
|
|
9716
|
+
const adapterName$h = 'createSemanticSubMetric';
|
|
10032
9717
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
10033
9718
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10034
9719
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -10040,11 +9725,11 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
10040
9725
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
10041
9726
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
10042
9727
|
];
|
|
10043
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10044
|
-
const createResourceParams$
|
|
10045
|
-
function typeCheckConfig$
|
|
9728
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9729
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$k(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9730
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
10046
9731
|
const config = {};
|
|
10047
|
-
typeCheckConfig$
|
|
9732
|
+
typeCheckConfig$k(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
10048
9733
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
10049
9734
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
10050
9735
|
const untrustedConfig_filters_array = [];
|
|
@@ -10069,30 +9754,30 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
10069
9754
|
}
|
|
10070
9755
|
return config;
|
|
10071
9756
|
}
|
|
10072
|
-
function validateAdapterConfig$
|
|
9757
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
10073
9758
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10074
9759
|
return null;
|
|
10075
9760
|
}
|
|
10076
9761
|
if (process.env.NODE_ENV !== 'production') {
|
|
10077
9762
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10078
9763
|
}
|
|
10079
|
-
const config = typeCheckConfig$
|
|
9764
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
10080
9765
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10081
9766
|
return null;
|
|
10082
9767
|
}
|
|
10083
9768
|
return config;
|
|
10084
9769
|
}
|
|
10085
|
-
function buildNetworkSnapshot$
|
|
10086
|
-
const resourceParams = createResourceParams$
|
|
10087
|
-
const request = createResourceRequest$
|
|
9770
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
9771
|
+
const resourceParams = createResourceParams$h(config);
|
|
9772
|
+
const request = createResourceRequest$h(resourceParams);
|
|
10088
9773
|
return luvio.dispatchResourceRequest(request, options)
|
|
10089
9774
|
.then((response) => {
|
|
10090
9775
|
return luvio.handleSuccessResponse(() => {
|
|
10091
|
-
const snapshot = ingestSuccess$
|
|
9776
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
10092
9777
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10093
9778
|
}, () => {
|
|
10094
9779
|
const cache = new StoreKeyMap();
|
|
10095
|
-
getResponseCacheKeys$
|
|
9780
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
10096
9781
|
return cache;
|
|
10097
9782
|
});
|
|
10098
9783
|
}, (response) => {
|
|
@@ -10102,33 +9787,33 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
10102
9787
|
}
|
|
10103
9788
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
10104
9789
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
10105
|
-
const config = validateAdapterConfig$
|
|
9790
|
+
const config = validateAdapterConfig$h(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
10106
9791
|
// Invalid or incomplete config
|
|
10107
9792
|
if (config === null) {
|
|
10108
9793
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
10109
9794
|
}
|
|
10110
|
-
return buildNetworkSnapshot$
|
|
9795
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
10111
9796
|
};
|
|
10112
9797
|
};
|
|
10113
9798
|
|
|
10114
|
-
function keyBuilder$
|
|
10115
|
-
return keyBuilder$
|
|
9799
|
+
function keyBuilder$o(luvio, params) {
|
|
9800
|
+
return keyBuilder$p(luvio, {
|
|
10116
9801
|
name: params.urlParams.subMetricNameOrId
|
|
10117
9802
|
});
|
|
10118
9803
|
}
|
|
10119
|
-
function getResponseCacheKeys$
|
|
10120
|
-
const key = keyBuilder$
|
|
9804
|
+
function getResponseCacheKeys$g(cacheKeyMap, luvio, resourceParams) {
|
|
9805
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
10121
9806
|
cacheKeyMap.set(key, {
|
|
10122
9807
|
namespace: keyPrefix,
|
|
10123
9808
|
representationName: RepresentationType$6,
|
|
10124
9809
|
mergeable: false
|
|
10125
9810
|
});
|
|
10126
9811
|
}
|
|
10127
|
-
function evictSuccess$
|
|
10128
|
-
const key = keyBuilder$
|
|
9812
|
+
function evictSuccess$2(luvio, resourceParams) {
|
|
9813
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
10129
9814
|
luvio.storeEvict(key);
|
|
10130
9815
|
}
|
|
10131
|
-
function createResourceRequest$
|
|
9816
|
+
function createResourceRequest$g(config) {
|
|
10132
9817
|
const headers = {};
|
|
10133
9818
|
return {
|
|
10134
9819
|
baseUri: '/services/data/v63.0',
|
|
@@ -10142,42 +9827,42 @@ function createResourceRequest$e(config) {
|
|
|
10142
9827
|
};
|
|
10143
9828
|
}
|
|
10144
9829
|
|
|
10145
|
-
const adapterName$
|
|
9830
|
+
const adapterName$g = 'deleteGoalFromSubMetric';
|
|
10146
9831
|
const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
10147
9832
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10148
9833
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10149
9834
|
];
|
|
10150
|
-
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10151
|
-
const createResourceParams$
|
|
10152
|
-
function typeCheckConfig$
|
|
9835
|
+
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9836
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$k(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9837
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
10153
9838
|
const config = {};
|
|
10154
|
-
typeCheckConfig$
|
|
9839
|
+
typeCheckConfig$k(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
10155
9840
|
return config;
|
|
10156
9841
|
}
|
|
10157
|
-
function validateAdapterConfig$
|
|
9842
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
10158
9843
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10159
9844
|
return null;
|
|
10160
9845
|
}
|
|
10161
9846
|
if (process.env.NODE_ENV !== 'production') {
|
|
10162
9847
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10163
9848
|
}
|
|
10164
|
-
const config = typeCheckConfig$
|
|
9849
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
10165
9850
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10166
9851
|
return null;
|
|
10167
9852
|
}
|
|
10168
9853
|
return config;
|
|
10169
9854
|
}
|
|
10170
|
-
function buildNetworkSnapshot$
|
|
10171
|
-
const resourceParams = createResourceParams$
|
|
10172
|
-
const request = createResourceRequest$
|
|
9855
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
9856
|
+
const resourceParams = createResourceParams$g(config);
|
|
9857
|
+
const request = createResourceRequest$g(resourceParams);
|
|
10173
9858
|
return luvio.dispatchResourceRequest(request, options)
|
|
10174
9859
|
.then(() => {
|
|
10175
9860
|
return luvio.handleSuccessResponse(() => {
|
|
10176
|
-
evictSuccess$
|
|
9861
|
+
evictSuccess$2(luvio, resourceParams);
|
|
10177
9862
|
return luvio.storeBroadcast();
|
|
10178
9863
|
}, () => {
|
|
10179
9864
|
const cache = new StoreKeyMap();
|
|
10180
|
-
getResponseCacheKeys$
|
|
9865
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams);
|
|
10181
9866
|
return cache;
|
|
10182
9867
|
});
|
|
10183
9868
|
}, (response) => {
|
|
@@ -10187,21 +9872,110 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
10187
9872
|
}
|
|
10188
9873
|
const deleteGoalFromSubMetricAdapterFactory = (luvio) => {
|
|
10189
9874
|
return function SemanticAuthoringdeleteGoalFromSubMetric(untrustedConfig) {
|
|
10190
|
-
const config = validateAdapterConfig$
|
|
9875
|
+
const config = validateAdapterConfig$g(untrustedConfig, deleteGoalFromSubMetric_ConfigPropertyNames);
|
|
10191
9876
|
// Invalid or incomplete config
|
|
10192
9877
|
if (config === null) {
|
|
10193
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
9878
|
+
throw new Error(`Invalid config for "${adapterName$g}"`);
|
|
10194
9879
|
}
|
|
10195
|
-
return buildNetworkSnapshot$
|
|
9880
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
9881
|
+
};
|
|
9882
|
+
};
|
|
9883
|
+
|
|
9884
|
+
function keyBuilder$n(luvio, params) {
|
|
9885
|
+
return keyBuilder$B(luvio, {
|
|
9886
|
+
subMetricNameOrId: params.queryParams.subMetricApiNameOrId,
|
|
9887
|
+
startDate: params.queryParams.startDate,
|
|
9888
|
+
endDate: params.queryParams.endDate
|
|
9889
|
+
});
|
|
9890
|
+
}
|
|
9891
|
+
function getResponseCacheKeys$f(cacheKeyMap, luvio, resourceParams) {
|
|
9892
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
9893
|
+
cacheKeyMap.set(key, {
|
|
9894
|
+
namespace: keyPrefix,
|
|
9895
|
+
representationName: RepresentationType$i,
|
|
9896
|
+
mergeable: false
|
|
9897
|
+
});
|
|
9898
|
+
}
|
|
9899
|
+
function evictSuccess$1(luvio, resourceParams) {
|
|
9900
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
9901
|
+
luvio.storeEvict(key);
|
|
9902
|
+
}
|
|
9903
|
+
function createResourceRequest$f(config) {
|
|
9904
|
+
const headers = {};
|
|
9905
|
+
return {
|
|
9906
|
+
baseUri: '/services/data/v63.0',
|
|
9907
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/goals',
|
|
9908
|
+
method: 'delete',
|
|
9909
|
+
body: null,
|
|
9910
|
+
urlParams: config.urlParams,
|
|
9911
|
+
queryParams: config.queryParams,
|
|
9912
|
+
headers,
|
|
9913
|
+
priority: 'normal',
|
|
9914
|
+
};
|
|
9915
|
+
}
|
|
9916
|
+
|
|
9917
|
+
const adapterName$f = 'deleteSemanticGoal';
|
|
9918
|
+
const deleteSemanticGoal_ConfigPropertyMetadata = [
|
|
9919
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9920
|
+
generateParamConfigMetadata('endDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
9921
|
+
generateParamConfigMetadata('startDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
9922
|
+
generateParamConfigMetadata('subMetricApiNameOrId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
9923
|
+
];
|
|
9924
|
+
const deleteSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, deleteSemanticGoal_ConfigPropertyMetadata);
|
|
9925
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$k(deleteSemanticGoal_ConfigPropertyMetadata);
|
|
9926
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
9927
|
+
const config = {};
|
|
9928
|
+
typeCheckConfig$k(untrustedConfig, config, deleteSemanticGoal_ConfigPropertyMetadata);
|
|
9929
|
+
return config;
|
|
9930
|
+
}
|
|
9931
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
9932
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9933
|
+
return null;
|
|
9934
|
+
}
|
|
9935
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9936
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9937
|
+
}
|
|
9938
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
9939
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9940
|
+
return null;
|
|
9941
|
+
}
|
|
9942
|
+
return config;
|
|
9943
|
+
}
|
|
9944
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
9945
|
+
const resourceParams = createResourceParams$f(config);
|
|
9946
|
+
const request = createResourceRequest$f(resourceParams);
|
|
9947
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9948
|
+
.then(() => {
|
|
9949
|
+
return luvio.handleSuccessResponse(() => {
|
|
9950
|
+
evictSuccess$1(luvio, resourceParams);
|
|
9951
|
+
return luvio.storeBroadcast();
|
|
9952
|
+
}, () => {
|
|
9953
|
+
const cache = new StoreKeyMap();
|
|
9954
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams);
|
|
9955
|
+
return cache;
|
|
9956
|
+
});
|
|
9957
|
+
}, (response) => {
|
|
9958
|
+
deepFreeze(response);
|
|
9959
|
+
throw response;
|
|
9960
|
+
});
|
|
9961
|
+
}
|
|
9962
|
+
const deleteSemanticGoalAdapterFactory = (luvio) => {
|
|
9963
|
+
return function SemanticAuthoringdeleteSemanticGoal(untrustedConfig) {
|
|
9964
|
+
const config = validateAdapterConfig$f(untrustedConfig, deleteSemanticGoal_ConfigPropertyNames);
|
|
9965
|
+
// Invalid or incomplete config
|
|
9966
|
+
if (config === null) {
|
|
9967
|
+
throw new Error(`Invalid config for "${adapterName$f}"`);
|
|
9968
|
+
}
|
|
9969
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
10196
9970
|
};
|
|
10197
9971
|
};
|
|
10198
9972
|
|
|
10199
9973
|
function keyBuilder$m(luvio, params) {
|
|
10200
|
-
return keyBuilder$
|
|
9974
|
+
return keyBuilder$p(luvio, {
|
|
10201
9975
|
name: params.urlParams.subMetricNameOrId
|
|
10202
9976
|
});
|
|
10203
9977
|
}
|
|
10204
|
-
function getResponseCacheKeys$
|
|
9978
|
+
function getResponseCacheKeys$e(cacheKeyMap, luvio, resourceParams) {
|
|
10205
9979
|
const key = keyBuilder$m(luvio, resourceParams);
|
|
10206
9980
|
cacheKeyMap.set(key, {
|
|
10207
9981
|
namespace: keyPrefix,
|
|
@@ -10213,7 +9987,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
10213
9987
|
const key = keyBuilder$m(luvio, resourceParams);
|
|
10214
9988
|
luvio.storeEvict(key);
|
|
10215
9989
|
}
|
|
10216
|
-
function createResourceRequest$
|
|
9990
|
+
function createResourceRequest$e(config) {
|
|
10217
9991
|
const headers = {};
|
|
10218
9992
|
return {
|
|
10219
9993
|
baseUri: '/services/data/v63.0',
|
|
@@ -10227,34 +10001,34 @@ function createResourceRequest$d(config) {
|
|
|
10227
10001
|
};
|
|
10228
10002
|
}
|
|
10229
10003
|
|
|
10230
|
-
const adapterName$
|
|
10004
|
+
const adapterName$e = 'deleteSemanticSubMetric';
|
|
10231
10005
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
10232
10006
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10233
10007
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10234
10008
|
];
|
|
10235
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10236
|
-
const createResourceParams$
|
|
10237
|
-
function typeCheckConfig$
|
|
10009
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
10010
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$k(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
10011
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
10238
10012
|
const config = {};
|
|
10239
|
-
typeCheckConfig$
|
|
10013
|
+
typeCheckConfig$k(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
10240
10014
|
return config;
|
|
10241
10015
|
}
|
|
10242
|
-
function validateAdapterConfig$
|
|
10016
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
10243
10017
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10244
10018
|
return null;
|
|
10245
10019
|
}
|
|
10246
10020
|
if (process.env.NODE_ENV !== 'production') {
|
|
10247
10021
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10248
10022
|
}
|
|
10249
|
-
const config = typeCheckConfig$
|
|
10023
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
10250
10024
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10251
10025
|
return null;
|
|
10252
10026
|
}
|
|
10253
10027
|
return config;
|
|
10254
10028
|
}
|
|
10255
|
-
function buildNetworkSnapshot$
|
|
10256
|
-
const resourceParams = createResourceParams$
|
|
10257
|
-
const request = createResourceRequest$
|
|
10029
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
10030
|
+
const resourceParams = createResourceParams$e(config);
|
|
10031
|
+
const request = createResourceRequest$e(resourceParams);
|
|
10258
10032
|
return luvio.dispatchResourceRequest(request, options)
|
|
10259
10033
|
.then(() => {
|
|
10260
10034
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -10262,7 +10036,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
10262
10036
|
return luvio.storeBroadcast();
|
|
10263
10037
|
}, () => {
|
|
10264
10038
|
const cache = new StoreKeyMap();
|
|
10265
|
-
getResponseCacheKeys$
|
|
10039
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams);
|
|
10266
10040
|
return cache;
|
|
10267
10041
|
});
|
|
10268
10042
|
}, (response) => {
|
|
@@ -10272,12 +10046,12 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
10272
10046
|
}
|
|
10273
10047
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
10274
10048
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
10275
|
-
const config = validateAdapterConfig$
|
|
10049
|
+
const config = validateAdapterConfig$e(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
10276
10050
|
// Invalid or incomplete config
|
|
10277
10051
|
if (config === null) {
|
|
10278
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
10052
|
+
throw new Error(`Invalid config for "${adapterName$e}"`);
|
|
10279
10053
|
}
|
|
10280
|
-
return buildNetworkSnapshot$
|
|
10054
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
10281
10055
|
};
|
|
10282
10056
|
};
|
|
10283
10057
|
|
|
@@ -10316,7 +10090,7 @@ function validate$8(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
|
10316
10090
|
})();
|
|
10317
10091
|
return v_error === undefined ? null : v_error;
|
|
10318
10092
|
}
|
|
10319
|
-
const select$
|
|
10093
|
+
const select$m = function SemanticDependencyOutputRepresentationSelect() {
|
|
10320
10094
|
return {
|
|
10321
10095
|
kind: 'Fragment',
|
|
10322
10096
|
version: VERSION$8,
|
|
@@ -10432,8 +10206,8 @@ function validate$7(obj, path = 'SemanticDependencyInnerCollectionOutputRepresen
|
|
|
10432
10206
|
})();
|
|
10433
10207
|
return v_error === undefined ? null : v_error;
|
|
10434
10208
|
}
|
|
10435
|
-
const select$
|
|
10436
|
-
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$
|
|
10209
|
+
const select$l = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
10210
|
+
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$m();
|
|
10437
10211
|
return {
|
|
10438
10212
|
kind: 'Fragment',
|
|
10439
10213
|
version: VERSION$7,
|
|
@@ -10537,8 +10311,8 @@ const RepresentationType$5 = 'SemanticDependencyCollectionOutputRepresentation';
|
|
|
10537
10311
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
10538
10312
|
return input;
|
|
10539
10313
|
}
|
|
10540
|
-
const select$
|
|
10541
|
-
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$
|
|
10314
|
+
const select$k = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
10315
|
+
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$l();
|
|
10542
10316
|
return {
|
|
10543
10317
|
kind: 'Fragment',
|
|
10544
10318
|
version: VERSION$6,
|
|
@@ -10597,22 +10371,22 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10597
10371
|
});
|
|
10598
10372
|
}
|
|
10599
10373
|
|
|
10600
|
-
function select$
|
|
10601
|
-
return select$
|
|
10374
|
+
function select$j(luvio, params) {
|
|
10375
|
+
return select$k();
|
|
10602
10376
|
}
|
|
10603
10377
|
function keyBuilder$l(luvio, params) {
|
|
10604
10378
|
return keyPrefix + '::SemanticDependencyCollectionOutputRepresentation:(' + 'types:' + params.queryParams.types + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10605
10379
|
}
|
|
10606
|
-
function getResponseCacheKeys$
|
|
10380
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
10607
10381
|
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
|
|
10608
10382
|
}
|
|
10609
|
-
function ingestSuccess$
|
|
10383
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
10610
10384
|
const { body } = response;
|
|
10611
10385
|
const key = keyBuilder$l(luvio, resourceParams);
|
|
10612
10386
|
luvio.storeIngest(key, ingest$5, body);
|
|
10613
10387
|
const snapshot = luvio.storeLookup({
|
|
10614
10388
|
recordId: key,
|
|
10615
|
-
node: select$
|
|
10389
|
+
node: select$j(),
|
|
10616
10390
|
variables: {},
|
|
10617
10391
|
}, snapshotRefresh);
|
|
10618
10392
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10629,7 +10403,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
10629
10403
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10630
10404
|
return errorSnapshot;
|
|
10631
10405
|
}
|
|
10632
|
-
function createResourceRequest$
|
|
10406
|
+
function createResourceRequest$d(config) {
|
|
10633
10407
|
const headers = {};
|
|
10634
10408
|
return {
|
|
10635
10409
|
baseUri: '/services/data/v63.0',
|
|
@@ -10643,61 +10417,61 @@ function createResourceRequest$c(config) {
|
|
|
10643
10417
|
};
|
|
10644
10418
|
}
|
|
10645
10419
|
|
|
10646
|
-
const adapterName$
|
|
10420
|
+
const adapterName$d = 'getLeafDependenciesByTypes';
|
|
10647
10421
|
const getLeafDependenciesByTypes_ConfigPropertyMetadata = [
|
|
10648
10422
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10649
10423
|
generateParamConfigMetadata('types', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
10650
10424
|
];
|
|
10651
|
-
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10652
|
-
const createResourceParams$
|
|
10425
|
+
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10426
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$k(getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10653
10427
|
function keyBuilder$k(luvio, config) {
|
|
10654
|
-
const resourceParams = createResourceParams$
|
|
10428
|
+
const resourceParams = createResourceParams$d(config);
|
|
10655
10429
|
return keyBuilder$l(luvio, resourceParams);
|
|
10656
10430
|
}
|
|
10657
|
-
function typeCheckConfig$
|
|
10431
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
10658
10432
|
const config = {};
|
|
10659
|
-
typeCheckConfig$
|
|
10433
|
+
typeCheckConfig$k(untrustedConfig, config, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10660
10434
|
return config;
|
|
10661
10435
|
}
|
|
10662
|
-
function validateAdapterConfig$
|
|
10436
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
10663
10437
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10664
10438
|
return null;
|
|
10665
10439
|
}
|
|
10666
10440
|
if (process.env.NODE_ENV !== 'production') {
|
|
10667
10441
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10668
10442
|
}
|
|
10669
|
-
const config = typeCheckConfig$
|
|
10443
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
10670
10444
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10671
10445
|
return null;
|
|
10672
10446
|
}
|
|
10673
10447
|
return config;
|
|
10674
10448
|
}
|
|
10675
10449
|
function adapterFragment$a(luvio, config) {
|
|
10676
|
-
createResourceParams$
|
|
10677
|
-
return select$
|
|
10450
|
+
createResourceParams$d(config);
|
|
10451
|
+
return select$j();
|
|
10678
10452
|
}
|
|
10679
10453
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
10680
|
-
const snapshot = ingestSuccess$
|
|
10454
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
10681
10455
|
config,
|
|
10682
|
-
resolve: () => buildNetworkSnapshot$
|
|
10456
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
10683
10457
|
});
|
|
10684
10458
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10685
10459
|
}
|
|
10686
10460
|
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
10687
10461
|
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
10688
10462
|
config,
|
|
10689
|
-
resolve: () => buildNetworkSnapshot$
|
|
10463
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
10690
10464
|
});
|
|
10691
10465
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10692
10466
|
}
|
|
10693
|
-
function buildNetworkSnapshot$
|
|
10694
|
-
const resourceParams = createResourceParams$
|
|
10695
|
-
const request = createResourceRequest$
|
|
10467
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
10468
|
+
const resourceParams = createResourceParams$d(config);
|
|
10469
|
+
const request = createResourceRequest$d(resourceParams);
|
|
10696
10470
|
return luvio.dispatchResourceRequest(request, options)
|
|
10697
10471
|
.then((response) => {
|
|
10698
10472
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
10699
10473
|
const cache = new StoreKeyMap();
|
|
10700
|
-
getResponseCacheKeys$
|
|
10474
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
10701
10475
|
return cache;
|
|
10702
10476
|
});
|
|
10703
10477
|
}, (response) => {
|
|
@@ -10705,7 +10479,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
10705
10479
|
});
|
|
10706
10480
|
}
|
|
10707
10481
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
10708
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10482
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
10709
10483
|
}
|
|
10710
10484
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
10711
10485
|
const { luvio, config } = context;
|
|
@@ -10716,12 +10490,12 @@ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
|
10716
10490
|
};
|
|
10717
10491
|
const cacheSnapshot = storeLookup(selector, {
|
|
10718
10492
|
config,
|
|
10719
|
-
resolve: () => buildNetworkSnapshot$
|
|
10493
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
10720
10494
|
});
|
|
10721
10495
|
return cacheSnapshot;
|
|
10722
10496
|
}
|
|
10723
10497
|
const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAuthoring__getLeafDependenciesByTypes(untrustedConfig, requestContext) {
|
|
10724
|
-
const config = validateAdapterConfig$
|
|
10498
|
+
const config = validateAdapterConfig$d(untrustedConfig, getLeafDependenciesByTypes_ConfigPropertyNames);
|
|
10725
10499
|
// Invalid or incomplete config
|
|
10726
10500
|
if (config === null) {
|
|
10727
10501
|
return null;
|
|
@@ -10730,24 +10504,26 @@ const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAut
|
|
|
10730
10504
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
10731
10505
|
};
|
|
10732
10506
|
|
|
10733
|
-
function select$
|
|
10734
|
-
return select$
|
|
10507
|
+
function select$i(luvio, params) {
|
|
10508
|
+
return select$P();
|
|
10735
10509
|
}
|
|
10736
10510
|
function keyBuilder$j(luvio, params) {
|
|
10737
|
-
return keyBuilder$
|
|
10738
|
-
|
|
10511
|
+
return keyBuilder$B(luvio, {
|
|
10512
|
+
subMetricNameOrId: params.queryParams.subMetricApiNameOrId,
|
|
10513
|
+
startDate: params.queryParams.startDate,
|
|
10514
|
+
endDate: params.queryParams.endDate
|
|
10739
10515
|
});
|
|
10740
10516
|
}
|
|
10741
|
-
function getResponseCacheKeys$
|
|
10517
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
10742
10518
|
getTypeCacheKeys$i(storeKeyMap, luvio, response);
|
|
10743
10519
|
}
|
|
10744
|
-
function ingestSuccess$
|
|
10520
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
10745
10521
|
const { body } = response;
|
|
10746
10522
|
const key = keyBuilder$j(luvio, resourceParams);
|
|
10747
10523
|
luvio.storeIngest(key, ingest$i, body);
|
|
10748
10524
|
const snapshot = luvio.storeLookup({
|
|
10749
10525
|
recordId: key,
|
|
10750
|
-
node: select$
|
|
10526
|
+
node: select$i(),
|
|
10751
10527
|
variables: {},
|
|
10752
10528
|
}, snapshotRefresh);
|
|
10753
10529
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10764,7 +10540,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
10764
10540
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10765
10541
|
return errorSnapshot;
|
|
10766
10542
|
}
|
|
10767
|
-
function createResourceRequest$
|
|
10543
|
+
function createResourceRequest$c(config) {
|
|
10768
10544
|
const headers = {};
|
|
10769
10545
|
return {
|
|
10770
10546
|
baseUri: '/services/data/v63.0',
|
|
@@ -10782,67 +10558,69 @@ function createResourceRequestFromRepresentation$3(representation) {
|
|
|
10782
10558
|
urlParams: {},
|
|
10783
10559
|
queryParams: {},
|
|
10784
10560
|
};
|
|
10785
|
-
config.
|
|
10786
|
-
|
|
10561
|
+
config.queryParams.subMetricApiNameOrId = representation.subMetricDefinitionApiName;
|
|
10562
|
+
config.queryParams.startDate = representation.dateRange.startDate;
|
|
10563
|
+
config.queryParams.endDate = representation.dateRange.endDate;
|
|
10564
|
+
return createResourceRequest$c(config);
|
|
10787
10565
|
}
|
|
10788
10566
|
|
|
10789
|
-
const adapterName$
|
|
10567
|
+
const adapterName$c = 'getSemanticGoal';
|
|
10790
10568
|
const getSemanticGoal_ConfigPropertyMetadata = [
|
|
10791
10569
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10792
|
-
generateParamConfigMetadata('endDate',
|
|
10793
|
-
generateParamConfigMetadata('startDate',
|
|
10794
|
-
generateParamConfigMetadata('subMetricApiNameOrId',
|
|
10570
|
+
generateParamConfigMetadata('endDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
10571
|
+
generateParamConfigMetadata('startDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
10572
|
+
generateParamConfigMetadata('subMetricApiNameOrId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
10795
10573
|
];
|
|
10796
|
-
const getSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10797
|
-
const createResourceParams$
|
|
10574
|
+
const getSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSemanticGoal_ConfigPropertyMetadata);
|
|
10575
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$k(getSemanticGoal_ConfigPropertyMetadata);
|
|
10798
10576
|
function keyBuilder$i(luvio, config) {
|
|
10799
|
-
const resourceParams = createResourceParams$
|
|
10577
|
+
const resourceParams = createResourceParams$c(config);
|
|
10800
10578
|
return keyBuilder$j(luvio, resourceParams);
|
|
10801
10579
|
}
|
|
10802
|
-
function typeCheckConfig$
|
|
10580
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
10803
10581
|
const config = {};
|
|
10804
|
-
typeCheckConfig$
|
|
10582
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticGoal_ConfigPropertyMetadata);
|
|
10805
10583
|
return config;
|
|
10806
10584
|
}
|
|
10807
|
-
function validateAdapterConfig$
|
|
10585
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
10808
10586
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10809
10587
|
return null;
|
|
10810
10588
|
}
|
|
10811
10589
|
if (process.env.NODE_ENV !== 'production') {
|
|
10812
10590
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10813
10591
|
}
|
|
10814
|
-
const config = typeCheckConfig$
|
|
10592
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
10815
10593
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10816
10594
|
return null;
|
|
10817
10595
|
}
|
|
10818
10596
|
return config;
|
|
10819
10597
|
}
|
|
10820
10598
|
function adapterFragment$9(luvio, config) {
|
|
10821
|
-
createResourceParams$
|
|
10822
|
-
return select$
|
|
10599
|
+
createResourceParams$c(config);
|
|
10600
|
+
return select$i();
|
|
10823
10601
|
}
|
|
10824
10602
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
10825
|
-
const snapshot = ingestSuccess$
|
|
10603
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
10826
10604
|
config,
|
|
10827
|
-
resolve: () => buildNetworkSnapshot$
|
|
10605
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10828
10606
|
});
|
|
10829
10607
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10830
10608
|
}
|
|
10831
10609
|
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
10832
10610
|
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
10833
10611
|
config,
|
|
10834
|
-
resolve: () => buildNetworkSnapshot$
|
|
10612
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10835
10613
|
});
|
|
10836
10614
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10837
10615
|
}
|
|
10838
|
-
function buildNetworkSnapshot$
|
|
10839
|
-
const resourceParams = createResourceParams$
|
|
10840
|
-
const request = createResourceRequest$
|
|
10616
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
10617
|
+
const resourceParams = createResourceParams$c(config);
|
|
10618
|
+
const request = createResourceRequest$c(resourceParams);
|
|
10841
10619
|
return luvio.dispatchResourceRequest(request, options)
|
|
10842
10620
|
.then((response) => {
|
|
10843
10621
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
10844
10622
|
const cache = new StoreKeyMap();
|
|
10845
|
-
getResponseCacheKeys$
|
|
10623
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
10846
10624
|
return cache;
|
|
10847
10625
|
});
|
|
10848
10626
|
}, (response) => {
|
|
@@ -10850,7 +10628,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
10850
10628
|
});
|
|
10851
10629
|
}
|
|
10852
10630
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
10853
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10631
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
10854
10632
|
}
|
|
10855
10633
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
10856
10634
|
const { luvio, config } = context;
|
|
@@ -10861,12 +10639,12 @@ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
|
10861
10639
|
};
|
|
10862
10640
|
const cacheSnapshot = storeLookup(selector, {
|
|
10863
10641
|
config,
|
|
10864
|
-
resolve: () => buildNetworkSnapshot$
|
|
10642
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10865
10643
|
});
|
|
10866
10644
|
return cacheSnapshot;
|
|
10867
10645
|
}
|
|
10868
10646
|
const getSemanticGoalAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticGoal(untrustedConfig, requestContext) {
|
|
10869
|
-
const config = validateAdapterConfig$
|
|
10647
|
+
const config = validateAdapterConfig$c(untrustedConfig, getSemanticGoal_ConfigPropertyNames);
|
|
10870
10648
|
// Invalid or incomplete config
|
|
10871
10649
|
if (config === null) {
|
|
10872
10650
|
return null;
|
|
@@ -10876,7 +10654,7 @@ const getSemanticGoalAdapterFactory = (luvio) => function SemanticAuthoring__get
|
|
|
10876
10654
|
};
|
|
10877
10655
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
10878
10656
|
return function getSsotSemanticModelsGoalsByModelApiNameOrIdNotifyChange(configs) {
|
|
10879
|
-
const keys = configs.map(c => keyBuilder$
|
|
10657
|
+
const keys = configs.map(c => keyBuilder$B(luvio, c));
|
|
10880
10658
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
10881
10659
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
10882
10660
|
const { key, record: val } = entries[i];
|
|
@@ -10904,24 +10682,24 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
10904
10682
|
};
|
|
10905
10683
|
};
|
|
10906
10684
|
|
|
10907
|
-
function select$
|
|
10908
|
-
return select$
|
|
10685
|
+
function select$h(luvio, params) {
|
|
10686
|
+
return select$t();
|
|
10909
10687
|
}
|
|
10910
10688
|
function keyBuilder$h(luvio, params) {
|
|
10911
|
-
return keyBuilder$
|
|
10689
|
+
return keyBuilder$s(luvio, {
|
|
10912
10690
|
name: params.urlParams.metricNameOrId
|
|
10913
10691
|
});
|
|
10914
10692
|
}
|
|
10915
|
-
function getResponseCacheKeys$
|
|
10693
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
10916
10694
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
10917
10695
|
}
|
|
10918
|
-
function ingestSuccess$
|
|
10696
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
10919
10697
|
const { body } = response;
|
|
10920
10698
|
const key = keyBuilder$h(luvio, resourceParams);
|
|
10921
10699
|
luvio.storeIngest(key, ingest$9, body);
|
|
10922
10700
|
const snapshot = luvio.storeLookup({
|
|
10923
10701
|
recordId: key,
|
|
10924
|
-
node: select$
|
|
10702
|
+
node: select$h(),
|
|
10925
10703
|
variables: {},
|
|
10926
10704
|
}, snapshotRefresh);
|
|
10927
10705
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10938,7 +10716,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
10938
10716
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10939
10717
|
return errorSnapshot;
|
|
10940
10718
|
}
|
|
10941
|
-
function createResourceRequest$
|
|
10719
|
+
function createResourceRequest$b(config) {
|
|
10942
10720
|
const headers = {};
|
|
10943
10721
|
return {
|
|
10944
10722
|
baseUri: '/services/data/v63.0',
|
|
@@ -10956,64 +10734,64 @@ function createResourceRequestFromRepresentation$2(representation) {
|
|
|
10956
10734
|
urlParams: {},
|
|
10957
10735
|
};
|
|
10958
10736
|
config.urlParams.metricNameOrId = representation.id;
|
|
10959
|
-
return createResourceRequest$
|
|
10737
|
+
return createResourceRequest$b(config);
|
|
10960
10738
|
}
|
|
10961
10739
|
|
|
10962
|
-
const adapterName$
|
|
10740
|
+
const adapterName$b = 'getSemanticMetric';
|
|
10963
10741
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
10964
10742
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10965
10743
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10966
10744
|
];
|
|
10967
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10968
|
-
const createResourceParams$
|
|
10745
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSemanticMetric_ConfigPropertyMetadata);
|
|
10746
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$k(getSemanticMetric_ConfigPropertyMetadata);
|
|
10969
10747
|
function keyBuilder$g(luvio, config) {
|
|
10970
|
-
const resourceParams = createResourceParams$
|
|
10748
|
+
const resourceParams = createResourceParams$b(config);
|
|
10971
10749
|
return keyBuilder$h(luvio, resourceParams);
|
|
10972
10750
|
}
|
|
10973
|
-
function typeCheckConfig$
|
|
10751
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
10974
10752
|
const config = {};
|
|
10975
|
-
typeCheckConfig$
|
|
10753
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
10976
10754
|
return config;
|
|
10977
10755
|
}
|
|
10978
|
-
function validateAdapterConfig$
|
|
10756
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
10979
10757
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10980
10758
|
return null;
|
|
10981
10759
|
}
|
|
10982
10760
|
if (process.env.NODE_ENV !== 'production') {
|
|
10983
10761
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10984
10762
|
}
|
|
10985
|
-
const config = typeCheckConfig$
|
|
10763
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
10986
10764
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10987
10765
|
return null;
|
|
10988
10766
|
}
|
|
10989
10767
|
return config;
|
|
10990
10768
|
}
|
|
10991
10769
|
function adapterFragment$8(luvio, config) {
|
|
10992
|
-
createResourceParams$
|
|
10993
|
-
return select$
|
|
10770
|
+
createResourceParams$b(config);
|
|
10771
|
+
return select$h();
|
|
10994
10772
|
}
|
|
10995
10773
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
10996
|
-
const snapshot = ingestSuccess$
|
|
10774
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
10997
10775
|
config,
|
|
10998
|
-
resolve: () => buildNetworkSnapshot$
|
|
10776
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
10999
10777
|
});
|
|
11000
10778
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11001
10779
|
}
|
|
11002
10780
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
11003
10781
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
11004
10782
|
config,
|
|
11005
|
-
resolve: () => buildNetworkSnapshot$
|
|
10783
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
11006
10784
|
});
|
|
11007
10785
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11008
10786
|
}
|
|
11009
|
-
function buildNetworkSnapshot$
|
|
11010
|
-
const resourceParams = createResourceParams$
|
|
11011
|
-
const request = createResourceRequest$
|
|
10787
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
10788
|
+
const resourceParams = createResourceParams$b(config);
|
|
10789
|
+
const request = createResourceRequest$b(resourceParams);
|
|
11012
10790
|
return luvio.dispatchResourceRequest(request, options)
|
|
11013
10791
|
.then((response) => {
|
|
11014
10792
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
11015
10793
|
const cache = new StoreKeyMap();
|
|
11016
|
-
getResponseCacheKeys$
|
|
10794
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
11017
10795
|
return cache;
|
|
11018
10796
|
});
|
|
11019
10797
|
}, (response) => {
|
|
@@ -11021,7 +10799,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
11021
10799
|
});
|
|
11022
10800
|
}
|
|
11023
10801
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
11024
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10802
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
11025
10803
|
}
|
|
11026
10804
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
11027
10805
|
const { luvio, config } = context;
|
|
@@ -11032,12 +10810,12 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
11032
10810
|
};
|
|
11033
10811
|
const cacheSnapshot = storeLookup(selector, {
|
|
11034
10812
|
config,
|
|
11035
|
-
resolve: () => buildNetworkSnapshot$
|
|
10813
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
11036
10814
|
});
|
|
11037
10815
|
return cacheSnapshot;
|
|
11038
10816
|
}
|
|
11039
10817
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
11040
|
-
const config = validateAdapterConfig$
|
|
10818
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
11041
10819
|
// Invalid or incomplete config
|
|
11042
10820
|
if (config === null) {
|
|
11043
10821
|
return null;
|
|
@@ -11047,7 +10825,7 @@ const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
11047
10825
|
};
|
|
11048
10826
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
11049
10827
|
return function getSsotSemanticModelsMetricsByMetricNameOrIdAndModelApiNameOrIdNotifyChange(configs) {
|
|
11050
|
-
const keys = configs.map(c => keyBuilder$
|
|
10828
|
+
const keys = configs.map(c => keyBuilder$s(luvio, c));
|
|
11051
10829
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
11052
10830
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
11053
10831
|
const { key, record: val } = entries[i];
|
|
@@ -11120,7 +10898,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
11120
10898
|
}
|
|
11121
10899
|
return input;
|
|
11122
10900
|
}
|
|
11123
|
-
const select$
|
|
10901
|
+
const select$g = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
11124
10902
|
return {
|
|
11125
10903
|
kind: 'Fragment',
|
|
11126
10904
|
version: VERSION$5,
|
|
@@ -11131,7 +10909,7 @@ const select$f = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
11131
10909
|
kind: 'Link',
|
|
11132
10910
|
plural: true,
|
|
11133
10911
|
required: false,
|
|
11134
|
-
fragment: select$
|
|
10912
|
+
fragment: select$t()
|
|
11135
10913
|
}
|
|
11136
10914
|
]
|
|
11137
10915
|
};
|
|
@@ -11185,22 +10963,22 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11185
10963
|
}
|
|
11186
10964
|
}
|
|
11187
10965
|
|
|
11188
|
-
function select$
|
|
11189
|
-
return select$
|
|
10966
|
+
function select$f(luvio, params) {
|
|
10967
|
+
return select$g();
|
|
11190
10968
|
}
|
|
11191
10969
|
function keyBuilder$f(luvio, params) {
|
|
11192
10970
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11193
10971
|
}
|
|
11194
|
-
function getResponseCacheKeys$
|
|
10972
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
11195
10973
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
11196
10974
|
}
|
|
11197
|
-
function ingestSuccess$
|
|
10975
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
11198
10976
|
const { body } = response;
|
|
11199
10977
|
const key = keyBuilder$f(luvio, resourceParams);
|
|
11200
10978
|
luvio.storeIngest(key, ingest$4, body);
|
|
11201
10979
|
const snapshot = luvio.storeLookup({
|
|
11202
10980
|
recordId: key,
|
|
11203
|
-
node: select$
|
|
10981
|
+
node: select$f(),
|
|
11204
10982
|
variables: {},
|
|
11205
10983
|
}, snapshotRefresh);
|
|
11206
10984
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11217,7 +10995,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
11217
10995
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11218
10996
|
return errorSnapshot;
|
|
11219
10997
|
}
|
|
11220
|
-
function createResourceRequest$
|
|
10998
|
+
function createResourceRequest$a(config) {
|
|
11221
10999
|
const headers = {};
|
|
11222
11000
|
return {
|
|
11223
11001
|
baseUri: '/services/data/v63.0',
|
|
@@ -11231,60 +11009,60 @@ function createResourceRequest$9(config) {
|
|
|
11231
11009
|
};
|
|
11232
11010
|
}
|
|
11233
11011
|
|
|
11234
|
-
const adapterName$
|
|
11012
|
+
const adapterName$a = 'getSemanticMetrics';
|
|
11235
11013
|
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
11236
11014
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11237
11015
|
];
|
|
11238
|
-
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11239
|
-
const createResourceParams$
|
|
11016
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11017
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$k(getSemanticMetrics_ConfigPropertyMetadata);
|
|
11240
11018
|
function keyBuilder$e(luvio, config) {
|
|
11241
|
-
const resourceParams = createResourceParams$
|
|
11019
|
+
const resourceParams = createResourceParams$a(config);
|
|
11242
11020
|
return keyBuilder$f(luvio, resourceParams);
|
|
11243
11021
|
}
|
|
11244
|
-
function typeCheckConfig$
|
|
11022
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
11245
11023
|
const config = {};
|
|
11246
|
-
typeCheckConfig$
|
|
11024
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11247
11025
|
return config;
|
|
11248
11026
|
}
|
|
11249
|
-
function validateAdapterConfig$
|
|
11027
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
11250
11028
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11251
11029
|
return null;
|
|
11252
11030
|
}
|
|
11253
11031
|
if (process.env.NODE_ENV !== 'production') {
|
|
11254
11032
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11255
11033
|
}
|
|
11256
|
-
const config = typeCheckConfig$
|
|
11034
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
11257
11035
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11258
11036
|
return null;
|
|
11259
11037
|
}
|
|
11260
11038
|
return config;
|
|
11261
11039
|
}
|
|
11262
11040
|
function adapterFragment$7(luvio, config) {
|
|
11263
|
-
createResourceParams$
|
|
11264
|
-
return select$
|
|
11041
|
+
createResourceParams$a(config);
|
|
11042
|
+
return select$f();
|
|
11265
11043
|
}
|
|
11266
11044
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
11267
|
-
const snapshot = ingestSuccess$
|
|
11045
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
11268
11046
|
config,
|
|
11269
|
-
resolve: () => buildNetworkSnapshot$
|
|
11047
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
11270
11048
|
});
|
|
11271
11049
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11272
11050
|
}
|
|
11273
11051
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
11274
11052
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
11275
11053
|
config,
|
|
11276
|
-
resolve: () => buildNetworkSnapshot$
|
|
11054
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
11277
11055
|
});
|
|
11278
11056
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11279
11057
|
}
|
|
11280
|
-
function buildNetworkSnapshot$
|
|
11281
|
-
const resourceParams = createResourceParams$
|
|
11282
|
-
const request = createResourceRequest$
|
|
11058
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
11059
|
+
const resourceParams = createResourceParams$a(config);
|
|
11060
|
+
const request = createResourceRequest$a(resourceParams);
|
|
11283
11061
|
return luvio.dispatchResourceRequest(request, options)
|
|
11284
11062
|
.then((response) => {
|
|
11285
11063
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
11286
11064
|
const cache = new StoreKeyMap();
|
|
11287
|
-
getResponseCacheKeys$
|
|
11065
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
11288
11066
|
return cache;
|
|
11289
11067
|
});
|
|
11290
11068
|
}, (response) => {
|
|
@@ -11292,7 +11070,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
11292
11070
|
});
|
|
11293
11071
|
}
|
|
11294
11072
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
11295
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11073
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
11296
11074
|
}
|
|
11297
11075
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
11298
11076
|
const { luvio, config } = context;
|
|
@@ -11303,12 +11081,12 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
11303
11081
|
};
|
|
11304
11082
|
const cacheSnapshot = storeLookup(selector, {
|
|
11305
11083
|
config,
|
|
11306
|
-
resolve: () => buildNetworkSnapshot$
|
|
11084
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
11307
11085
|
});
|
|
11308
11086
|
return cacheSnapshot;
|
|
11309
11087
|
}
|
|
11310
11088
|
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
11311
|
-
const config = validateAdapterConfig$
|
|
11089
|
+
const config = validateAdapterConfig$a(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
11312
11090
|
// Invalid or incomplete config
|
|
11313
11091
|
if (config === null) {
|
|
11314
11092
|
return null;
|
|
@@ -11317,22 +11095,22 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
11317
11095
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
11318
11096
|
};
|
|
11319
11097
|
|
|
11320
|
-
function select$
|
|
11321
|
-
return select$
|
|
11098
|
+
function select$e(luvio, params) {
|
|
11099
|
+
return select$g();
|
|
11322
11100
|
}
|
|
11323
11101
|
function keyBuilder$d(luvio, params) {
|
|
11324
11102
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
11325
11103
|
}
|
|
11326
|
-
function getResponseCacheKeys$
|
|
11104
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
11327
11105
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
11328
11106
|
}
|
|
11329
|
-
function ingestSuccess$
|
|
11107
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
11330
11108
|
const { body } = response;
|
|
11331
11109
|
const key = keyBuilder$d(luvio, resourceParams);
|
|
11332
11110
|
luvio.storeIngest(key, ingest$4, body);
|
|
11333
11111
|
const snapshot = luvio.storeLookup({
|
|
11334
11112
|
recordId: key,
|
|
11335
|
-
node: select$
|
|
11113
|
+
node: select$e(),
|
|
11336
11114
|
variables: {},
|
|
11337
11115
|
}, snapshotRefresh);
|
|
11338
11116
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11349,7 +11127,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
11349
11127
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11350
11128
|
return errorSnapshot;
|
|
11351
11129
|
}
|
|
11352
|
-
function createResourceRequest$
|
|
11130
|
+
function createResourceRequest$9(config) {
|
|
11353
11131
|
const headers = {};
|
|
11354
11132
|
return {
|
|
11355
11133
|
baseUri: '/services/data/v63.0',
|
|
@@ -11363,62 +11141,62 @@ function createResourceRequest$8(config) {
|
|
|
11363
11141
|
};
|
|
11364
11142
|
}
|
|
11365
11143
|
|
|
11366
|
-
const adapterName$
|
|
11144
|
+
const adapterName$9 = 'getSemanticMetricsByIds';
|
|
11367
11145
|
const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
11368
11146
|
generateParamConfigMetadata('metricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11369
11147
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11370
11148
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11371
11149
|
];
|
|
11372
|
-
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11373
|
-
const createResourceParams$
|
|
11150
|
+
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
11151
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$k(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
11374
11152
|
function keyBuilder$c(luvio, config) {
|
|
11375
|
-
const resourceParams = createResourceParams$
|
|
11153
|
+
const resourceParams = createResourceParams$9(config);
|
|
11376
11154
|
return keyBuilder$d(luvio, resourceParams);
|
|
11377
11155
|
}
|
|
11378
|
-
function typeCheckConfig$
|
|
11156
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
11379
11157
|
const config = {};
|
|
11380
|
-
typeCheckConfig$
|
|
11158
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
11381
11159
|
return config;
|
|
11382
11160
|
}
|
|
11383
|
-
function validateAdapterConfig$
|
|
11161
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
11384
11162
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11385
11163
|
return null;
|
|
11386
11164
|
}
|
|
11387
11165
|
if (process.env.NODE_ENV !== 'production') {
|
|
11388
11166
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11389
11167
|
}
|
|
11390
|
-
const config = typeCheckConfig$
|
|
11168
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
11391
11169
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11392
11170
|
return null;
|
|
11393
11171
|
}
|
|
11394
11172
|
return config;
|
|
11395
11173
|
}
|
|
11396
11174
|
function adapterFragment$6(luvio, config) {
|
|
11397
|
-
createResourceParams$
|
|
11398
|
-
return select$
|
|
11175
|
+
createResourceParams$9(config);
|
|
11176
|
+
return select$e();
|
|
11399
11177
|
}
|
|
11400
11178
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
11401
|
-
const snapshot = ingestSuccess$
|
|
11179
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
11402
11180
|
config,
|
|
11403
|
-
resolve: () => buildNetworkSnapshot$
|
|
11181
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11404
11182
|
});
|
|
11405
11183
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11406
11184
|
}
|
|
11407
11185
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
11408
11186
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
11409
11187
|
config,
|
|
11410
|
-
resolve: () => buildNetworkSnapshot$
|
|
11188
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11411
11189
|
});
|
|
11412
11190
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11413
11191
|
}
|
|
11414
|
-
function buildNetworkSnapshot$
|
|
11415
|
-
const resourceParams = createResourceParams$
|
|
11416
|
-
const request = createResourceRequest$
|
|
11192
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
11193
|
+
const resourceParams = createResourceParams$9(config);
|
|
11194
|
+
const request = createResourceRequest$9(resourceParams);
|
|
11417
11195
|
return luvio.dispatchResourceRequest(request, options)
|
|
11418
11196
|
.then((response) => {
|
|
11419
11197
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
11420
11198
|
const cache = new StoreKeyMap();
|
|
11421
|
-
getResponseCacheKeys$
|
|
11199
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
11422
11200
|
return cache;
|
|
11423
11201
|
});
|
|
11424
11202
|
}, (response) => {
|
|
@@ -11426,7 +11204,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
11426
11204
|
});
|
|
11427
11205
|
}
|
|
11428
11206
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
11429
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11207
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
11430
11208
|
}
|
|
11431
11209
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
11432
11210
|
const { luvio, config } = context;
|
|
@@ -11437,12 +11215,12 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
11437
11215
|
};
|
|
11438
11216
|
const cacheSnapshot = storeLookup(selector, {
|
|
11439
11217
|
config,
|
|
11440
|
-
resolve: () => buildNetworkSnapshot$
|
|
11218
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11441
11219
|
});
|
|
11442
11220
|
return cacheSnapshot;
|
|
11443
11221
|
}
|
|
11444
11222
|
const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsByIds(untrustedConfig, requestContext) {
|
|
11445
|
-
const config = validateAdapterConfig$
|
|
11223
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
11446
11224
|
// Invalid or incomplete config
|
|
11447
11225
|
if (config === null) {
|
|
11448
11226
|
return null;
|
|
@@ -11503,7 +11281,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
11503
11281
|
}
|
|
11504
11282
|
return input;
|
|
11505
11283
|
}
|
|
11506
|
-
const select$
|
|
11284
|
+
const select$d = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
11507
11285
|
return {
|
|
11508
11286
|
kind: 'Fragment',
|
|
11509
11287
|
version: VERSION$4,
|
|
@@ -11519,7 +11297,7 @@ const select$c = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
11519
11297
|
kind: 'Link',
|
|
11520
11298
|
plural: true,
|
|
11521
11299
|
required: false,
|
|
11522
|
-
fragment: select$
|
|
11300
|
+
fragment: select$o()
|
|
11523
11301
|
}
|
|
11524
11302
|
]
|
|
11525
11303
|
};
|
|
@@ -11631,7 +11409,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
11631
11409
|
}
|
|
11632
11410
|
return input;
|
|
11633
11411
|
}
|
|
11634
|
-
const select$
|
|
11412
|
+
const select$c = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
11635
11413
|
return {
|
|
11636
11414
|
kind: 'Fragment',
|
|
11637
11415
|
version: VERSION$3,
|
|
@@ -11642,7 +11420,7 @@ const select$b = function SemanticSubMetricsByMetricCollectionOutputRepresentati
|
|
|
11642
11420
|
kind: 'Link',
|
|
11643
11421
|
plural: true,
|
|
11644
11422
|
required: false,
|
|
11645
|
-
fragment: select$
|
|
11423
|
+
fragment: select$d()
|
|
11646
11424
|
}
|
|
11647
11425
|
]
|
|
11648
11426
|
};
|
|
@@ -11696,22 +11474,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11696
11474
|
}
|
|
11697
11475
|
}
|
|
11698
11476
|
|
|
11699
|
-
function select$
|
|
11700
|
-
return select$
|
|
11477
|
+
function select$b(luvio, params) {
|
|
11478
|
+
return select$c();
|
|
11701
11479
|
}
|
|
11702
11480
|
function keyBuilder$b(luvio, params) {
|
|
11703
11481
|
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11704
11482
|
}
|
|
11705
|
-
function getResponseCacheKeys$
|
|
11483
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
11706
11484
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
11707
11485
|
}
|
|
11708
|
-
function ingestSuccess$
|
|
11486
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
11709
11487
|
const { body } = response;
|
|
11710
11488
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
11711
11489
|
luvio.storeIngest(key, ingest$2, body);
|
|
11712
11490
|
const snapshot = luvio.storeLookup({
|
|
11713
11491
|
recordId: key,
|
|
11714
|
-
node: select$
|
|
11492
|
+
node: select$b(),
|
|
11715
11493
|
variables: {},
|
|
11716
11494
|
}, snapshotRefresh);
|
|
11717
11495
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11728,7 +11506,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
11728
11506
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11729
11507
|
return errorSnapshot;
|
|
11730
11508
|
}
|
|
11731
|
-
function createResourceRequest$
|
|
11509
|
+
function createResourceRequest$8(config) {
|
|
11732
11510
|
const headers = {};
|
|
11733
11511
|
return {
|
|
11734
11512
|
baseUri: '/services/data/v63.0',
|
|
@@ -11742,61 +11520,61 @@ function createResourceRequest$7(config) {
|
|
|
11742
11520
|
};
|
|
11743
11521
|
}
|
|
11744
11522
|
|
|
11745
|
-
const adapterName$
|
|
11523
|
+
const adapterName$8 = 'getSemanticMetricsToSubMetrics';
|
|
11746
11524
|
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
11747
11525
|
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11748
11526
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11749
11527
|
];
|
|
11750
|
-
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11751
|
-
const createResourceParams$
|
|
11528
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11529
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$k(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11752
11530
|
function keyBuilder$a(luvio, config) {
|
|
11753
|
-
const resourceParams = createResourceParams$
|
|
11531
|
+
const resourceParams = createResourceParams$8(config);
|
|
11754
11532
|
return keyBuilder$b(luvio, resourceParams);
|
|
11755
11533
|
}
|
|
11756
|
-
function typeCheckConfig$
|
|
11534
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
11757
11535
|
const config = {};
|
|
11758
|
-
typeCheckConfig$
|
|
11536
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11759
11537
|
return config;
|
|
11760
11538
|
}
|
|
11761
|
-
function validateAdapterConfig$
|
|
11539
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
11762
11540
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11763
11541
|
return null;
|
|
11764
11542
|
}
|
|
11765
11543
|
if (process.env.NODE_ENV !== 'production') {
|
|
11766
11544
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11767
11545
|
}
|
|
11768
|
-
const config = typeCheckConfig$
|
|
11546
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
11769
11547
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11770
11548
|
return null;
|
|
11771
11549
|
}
|
|
11772
11550
|
return config;
|
|
11773
11551
|
}
|
|
11774
11552
|
function adapterFragment$5(luvio, config) {
|
|
11775
|
-
createResourceParams$
|
|
11776
|
-
return select$
|
|
11553
|
+
createResourceParams$8(config);
|
|
11554
|
+
return select$b();
|
|
11777
11555
|
}
|
|
11778
11556
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
11779
|
-
const snapshot = ingestSuccess$
|
|
11557
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
11780
11558
|
config,
|
|
11781
|
-
resolve: () => buildNetworkSnapshot$
|
|
11559
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11782
11560
|
});
|
|
11783
11561
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11784
11562
|
}
|
|
11785
11563
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
11786
11564
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
11787
11565
|
config,
|
|
11788
|
-
resolve: () => buildNetworkSnapshot$
|
|
11566
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11789
11567
|
});
|
|
11790
11568
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11791
11569
|
}
|
|
11792
|
-
function buildNetworkSnapshot$
|
|
11793
|
-
const resourceParams = createResourceParams$
|
|
11794
|
-
const request = createResourceRequest$
|
|
11570
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
11571
|
+
const resourceParams = createResourceParams$8(config);
|
|
11572
|
+
const request = createResourceRequest$8(resourceParams);
|
|
11795
11573
|
return luvio.dispatchResourceRequest(request, options)
|
|
11796
11574
|
.then((response) => {
|
|
11797
11575
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
11798
11576
|
const cache = new StoreKeyMap();
|
|
11799
|
-
getResponseCacheKeys$
|
|
11577
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
11800
11578
|
return cache;
|
|
11801
11579
|
});
|
|
11802
11580
|
}, (response) => {
|
|
@@ -11804,7 +11582,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
11804
11582
|
});
|
|
11805
11583
|
}
|
|
11806
11584
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
11807
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11585
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
11808
11586
|
}
|
|
11809
11587
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
11810
11588
|
const { luvio, config } = context;
|
|
@@ -11815,12 +11593,12 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
11815
11593
|
};
|
|
11816
11594
|
const cacheSnapshot = storeLookup(selector, {
|
|
11817
11595
|
config,
|
|
11818
|
-
resolve: () => buildNetworkSnapshot$
|
|
11596
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11819
11597
|
});
|
|
11820
11598
|
return cacheSnapshot;
|
|
11821
11599
|
}
|
|
11822
11600
|
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
11823
|
-
const config = validateAdapterConfig$
|
|
11601
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
11824
11602
|
// Invalid or incomplete config
|
|
11825
11603
|
if (config === null) {
|
|
11826
11604
|
return null;
|
|
@@ -11829,24 +11607,24 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
11829
11607
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
11830
11608
|
};
|
|
11831
11609
|
|
|
11832
|
-
function select$
|
|
11833
|
-
return select$
|
|
11610
|
+
function select$a(luvio, params) {
|
|
11611
|
+
return select$q();
|
|
11834
11612
|
}
|
|
11835
11613
|
function keyBuilder$9(luvio, params) {
|
|
11836
|
-
return keyBuilder$
|
|
11614
|
+
return keyBuilder$q(luvio, {
|
|
11837
11615
|
name: params.urlParams.modelApiNameOrId
|
|
11838
11616
|
});
|
|
11839
11617
|
}
|
|
11840
|
-
function getResponseCacheKeys$
|
|
11618
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
11841
11619
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
11842
11620
|
}
|
|
11843
|
-
function ingestSuccess$
|
|
11621
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
11844
11622
|
const { body } = response;
|
|
11845
11623
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
11846
11624
|
luvio.storeIngest(key, ingest$7, body);
|
|
11847
11625
|
const snapshot = luvio.storeLookup({
|
|
11848
11626
|
recordId: key,
|
|
11849
|
-
node: select$
|
|
11627
|
+
node: select$a(),
|
|
11850
11628
|
variables: {},
|
|
11851
11629
|
}, snapshotRefresh);
|
|
11852
11630
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11863,7 +11641,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
11863
11641
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11864
11642
|
return errorSnapshot;
|
|
11865
11643
|
}
|
|
11866
|
-
function createResourceRequest$
|
|
11644
|
+
function createResourceRequest$7(config) {
|
|
11867
11645
|
const headers = {};
|
|
11868
11646
|
return {
|
|
11869
11647
|
baseUri: '/services/data/v63.0',
|
|
@@ -11882,66 +11660,66 @@ function createResourceRequestFromRepresentation$1(representation) {
|
|
|
11882
11660
|
queryParams: {},
|
|
11883
11661
|
};
|
|
11884
11662
|
config.urlParams.modelApiNameOrId = representation.id;
|
|
11885
|
-
return createResourceRequest$
|
|
11663
|
+
return createResourceRequest$7(config);
|
|
11886
11664
|
}
|
|
11887
11665
|
|
|
11888
|
-
const adapterName$
|
|
11666
|
+
const adapterName$7 = 'getSemanticModel';
|
|
11889
11667
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
11890
11668
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11891
11669
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11892
11670
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
11893
11671
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
11894
11672
|
];
|
|
11895
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11896
|
-
const createResourceParams$
|
|
11673
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticModel_ConfigPropertyMetadata);
|
|
11674
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$k(getSemanticModel_ConfigPropertyMetadata);
|
|
11897
11675
|
function keyBuilder$8(luvio, config) {
|
|
11898
|
-
const resourceParams = createResourceParams$
|
|
11676
|
+
const resourceParams = createResourceParams$7(config);
|
|
11899
11677
|
return keyBuilder$9(luvio, resourceParams);
|
|
11900
11678
|
}
|
|
11901
|
-
function typeCheckConfig$
|
|
11679
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
11902
11680
|
const config = {};
|
|
11903
|
-
typeCheckConfig$
|
|
11681
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
11904
11682
|
return config;
|
|
11905
11683
|
}
|
|
11906
|
-
function validateAdapterConfig$
|
|
11684
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
11907
11685
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11908
11686
|
return null;
|
|
11909
11687
|
}
|
|
11910
11688
|
if (process.env.NODE_ENV !== 'production') {
|
|
11911
11689
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11912
11690
|
}
|
|
11913
|
-
const config = typeCheckConfig$
|
|
11691
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
11914
11692
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11915
11693
|
return null;
|
|
11916
11694
|
}
|
|
11917
11695
|
return config;
|
|
11918
11696
|
}
|
|
11919
11697
|
function adapterFragment$4(luvio, config) {
|
|
11920
|
-
createResourceParams$
|
|
11921
|
-
return select$
|
|
11698
|
+
createResourceParams$7(config);
|
|
11699
|
+
return select$a();
|
|
11922
11700
|
}
|
|
11923
11701
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
11924
|
-
const snapshot = ingestSuccess$
|
|
11702
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
11925
11703
|
config,
|
|
11926
|
-
resolve: () => buildNetworkSnapshot$
|
|
11704
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11927
11705
|
});
|
|
11928
11706
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11929
11707
|
}
|
|
11930
11708
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
11931
11709
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
11932
11710
|
config,
|
|
11933
|
-
resolve: () => buildNetworkSnapshot$
|
|
11711
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11934
11712
|
});
|
|
11935
11713
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11936
11714
|
}
|
|
11937
|
-
function buildNetworkSnapshot$
|
|
11938
|
-
const resourceParams = createResourceParams$
|
|
11939
|
-
const request = createResourceRequest$
|
|
11715
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
11716
|
+
const resourceParams = createResourceParams$7(config);
|
|
11717
|
+
const request = createResourceRequest$7(resourceParams);
|
|
11940
11718
|
return luvio.dispatchResourceRequest(request, options)
|
|
11941
11719
|
.then((response) => {
|
|
11942
11720
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
11943
11721
|
const cache = new StoreKeyMap();
|
|
11944
|
-
getResponseCacheKeys$
|
|
11722
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
11945
11723
|
return cache;
|
|
11946
11724
|
});
|
|
11947
11725
|
}, (response) => {
|
|
@@ -11949,7 +11727,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
11949
11727
|
});
|
|
11950
11728
|
}
|
|
11951
11729
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
11952
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11730
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
11953
11731
|
}
|
|
11954
11732
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
11955
11733
|
const { luvio, config } = context;
|
|
@@ -11960,12 +11738,12 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
11960
11738
|
};
|
|
11961
11739
|
const cacheSnapshot = storeLookup(selector, {
|
|
11962
11740
|
config,
|
|
11963
|
-
resolve: () => buildNetworkSnapshot$
|
|
11741
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11964
11742
|
});
|
|
11965
11743
|
return cacheSnapshot;
|
|
11966
11744
|
}
|
|
11967
11745
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
11968
|
-
const config = validateAdapterConfig$
|
|
11746
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
11969
11747
|
// Invalid or incomplete config
|
|
11970
11748
|
if (config === null) {
|
|
11971
11749
|
return null;
|
|
@@ -11975,7 +11753,7 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
11975
11753
|
};
|
|
11976
11754
|
const notifyChangeFactory$1 = (luvio, options) => {
|
|
11977
11755
|
return function getSsotSemanticModelsByModelApiNameOrIdNotifyChange(configs) {
|
|
11978
|
-
const keys = configs.map(c => keyBuilder$
|
|
11756
|
+
const keys = configs.map(c => keyBuilder$q(luvio, c));
|
|
11979
11757
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
11980
11758
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
11981
11759
|
const { key, record: val } = entries[i];
|
|
@@ -12208,8 +11986,8 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
12208
11986
|
})();
|
|
12209
11987
|
return v_error === undefined ? null : v_error;
|
|
12210
11988
|
}
|
|
12211
|
-
const select$
|
|
12212
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
11989
|
+
const select$9 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
11990
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$N();
|
|
12213
11991
|
return {
|
|
12214
11992
|
kind: 'Fragment',
|
|
12215
11993
|
version: VERSION$2,
|
|
@@ -12746,8 +12524,8 @@ const RepresentationType$1 = 'SemanticModelCollectionOutputRepresentation';
|
|
|
12746
12524
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
12747
12525
|
return input;
|
|
12748
12526
|
}
|
|
12749
|
-
const select$
|
|
12750
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
12527
|
+
const select$8 = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
12528
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$9();
|
|
12751
12529
|
return {
|
|
12752
12530
|
kind: 'Fragment',
|
|
12753
12531
|
version: VERSION$1,
|
|
@@ -12878,22 +12656,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
12878
12656
|
});
|
|
12879
12657
|
}
|
|
12880
12658
|
|
|
12881
|
-
function select$
|
|
12882
|
-
return select$
|
|
12659
|
+
function select$7(luvio, params) {
|
|
12660
|
+
return select$8();
|
|
12883
12661
|
}
|
|
12884
12662
|
function keyBuilder$7(luvio, params) {
|
|
12885
12663
|
return keyPrefix + '::SemanticModelCollectionOutputRepresentation:(' + 'app:' + params.queryParams.app + ',' + 'category:' + params.queryParams.category + ',' + 'dataspace:' + params.queryParams.dataspace + ',' + 'label:' + params.queryParams.label + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sourceCreation:' + params.queryParams.sourceCreation + ',' + 'sourceCreationName:' + params.queryParams.sourceCreationName + ')';
|
|
12886
12664
|
}
|
|
12887
|
-
function getResponseCacheKeys$
|
|
12665
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
12888
12666
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
12889
12667
|
}
|
|
12890
|
-
function ingestSuccess$
|
|
12668
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
12891
12669
|
const { body } = response;
|
|
12892
12670
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
12893
12671
|
luvio.storeIngest(key, ingest$1, body);
|
|
12894
12672
|
const snapshot = luvio.storeLookup({
|
|
12895
12673
|
recordId: key,
|
|
12896
|
-
node: select$
|
|
12674
|
+
node: select$7(),
|
|
12897
12675
|
variables: {},
|
|
12898
12676
|
}, snapshotRefresh);
|
|
12899
12677
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -12910,7 +12688,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
12910
12688
|
luvio.storeIngestError(key, errorSnapshot);
|
|
12911
12689
|
return errorSnapshot;
|
|
12912
12690
|
}
|
|
12913
|
-
function createResourceRequest$
|
|
12691
|
+
function createResourceRequest$6(config) {
|
|
12914
12692
|
const headers = {};
|
|
12915
12693
|
return {
|
|
12916
12694
|
baseUri: '/services/data/v63.0',
|
|
@@ -12924,7 +12702,7 @@ function createResourceRequest$5(config) {
|
|
|
12924
12702
|
};
|
|
12925
12703
|
}
|
|
12926
12704
|
|
|
12927
|
-
const adapterName$
|
|
12705
|
+
const adapterName$6 = 'getSemanticModels';
|
|
12928
12706
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
12929
12707
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12930
12708
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -12936,56 +12714,56 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
12936
12714
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12937
12715
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12938
12716
|
];
|
|
12939
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
12940
|
-
const createResourceParams$
|
|
12717
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticModels_ConfigPropertyMetadata);
|
|
12718
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$k(getSemanticModels_ConfigPropertyMetadata);
|
|
12941
12719
|
function keyBuilder$6(luvio, config) {
|
|
12942
|
-
const resourceParams = createResourceParams$
|
|
12720
|
+
const resourceParams = createResourceParams$6(config);
|
|
12943
12721
|
return keyBuilder$7(luvio, resourceParams);
|
|
12944
12722
|
}
|
|
12945
|
-
function typeCheckConfig$
|
|
12723
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
12946
12724
|
const config = {};
|
|
12947
|
-
typeCheckConfig$
|
|
12725
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
12948
12726
|
return config;
|
|
12949
12727
|
}
|
|
12950
|
-
function validateAdapterConfig$
|
|
12728
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
12951
12729
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
12952
12730
|
return null;
|
|
12953
12731
|
}
|
|
12954
12732
|
if (process.env.NODE_ENV !== 'production') {
|
|
12955
12733
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
12956
12734
|
}
|
|
12957
|
-
const config = typeCheckConfig$
|
|
12735
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
12958
12736
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12959
12737
|
return null;
|
|
12960
12738
|
}
|
|
12961
12739
|
return config;
|
|
12962
12740
|
}
|
|
12963
12741
|
function adapterFragment$3(luvio, config) {
|
|
12964
|
-
createResourceParams$
|
|
12965
|
-
return select$
|
|
12742
|
+
createResourceParams$6(config);
|
|
12743
|
+
return select$7();
|
|
12966
12744
|
}
|
|
12967
12745
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
12968
|
-
const snapshot = ingestSuccess$
|
|
12746
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
12969
12747
|
config,
|
|
12970
|
-
resolve: () => buildNetworkSnapshot$
|
|
12748
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
12971
12749
|
});
|
|
12972
12750
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
12973
12751
|
}
|
|
12974
12752
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
12975
12753
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
12976
12754
|
config,
|
|
12977
|
-
resolve: () => buildNetworkSnapshot$
|
|
12755
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
12978
12756
|
});
|
|
12979
12757
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
12980
12758
|
}
|
|
12981
|
-
function buildNetworkSnapshot$
|
|
12982
|
-
const resourceParams = createResourceParams$
|
|
12983
|
-
const request = createResourceRequest$
|
|
12759
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
12760
|
+
const resourceParams = createResourceParams$6(config);
|
|
12761
|
+
const request = createResourceRequest$6(resourceParams);
|
|
12984
12762
|
return luvio.dispatchResourceRequest(request, options)
|
|
12985
12763
|
.then((response) => {
|
|
12986
12764
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
12987
12765
|
const cache = new StoreKeyMap();
|
|
12988
|
-
getResponseCacheKeys$
|
|
12766
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
12989
12767
|
return cache;
|
|
12990
12768
|
});
|
|
12991
12769
|
}, (response) => {
|
|
@@ -12993,7 +12771,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
12993
12771
|
});
|
|
12994
12772
|
}
|
|
12995
12773
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
12996
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
12774
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
12997
12775
|
}
|
|
12998
12776
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
12999
12777
|
const { luvio, config } = context;
|
|
@@ -13004,12 +12782,12 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
13004
12782
|
};
|
|
13005
12783
|
const cacheSnapshot = storeLookup(selector, {
|
|
13006
12784
|
config,
|
|
13007
|
-
resolve: () => buildNetworkSnapshot$
|
|
12785
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
13008
12786
|
});
|
|
13009
12787
|
return cacheSnapshot;
|
|
13010
12788
|
}
|
|
13011
12789
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
13012
|
-
const config = validateAdapterConfig$
|
|
12790
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
13013
12791
|
// Invalid or incomplete config
|
|
13014
12792
|
if (config === null) {
|
|
13015
12793
|
return null;
|
|
@@ -13018,24 +12796,24 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
13018
12796
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
13019
12797
|
};
|
|
13020
12798
|
|
|
13021
|
-
function select$
|
|
13022
|
-
return select$
|
|
12799
|
+
function select$6(luvio, params) {
|
|
12800
|
+
return select$o();
|
|
13023
12801
|
}
|
|
13024
12802
|
function keyBuilder$5(luvio, params) {
|
|
13025
|
-
return keyBuilder$
|
|
12803
|
+
return keyBuilder$p(luvio, {
|
|
13026
12804
|
name: params.urlParams.subMetricNameOrId
|
|
13027
12805
|
});
|
|
13028
12806
|
}
|
|
13029
|
-
function getResponseCacheKeys$
|
|
12807
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
13030
12808
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
13031
12809
|
}
|
|
13032
|
-
function ingestSuccess$
|
|
12810
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
13033
12811
|
const { body } = response;
|
|
13034
12812
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
13035
12813
|
luvio.storeIngest(key, ingest$6, body);
|
|
13036
12814
|
const snapshot = luvio.storeLookup({
|
|
13037
12815
|
recordId: key,
|
|
13038
|
-
node: select$
|
|
12816
|
+
node: select$6(),
|
|
13039
12817
|
variables: {},
|
|
13040
12818
|
}, snapshotRefresh);
|
|
13041
12819
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13052,7 +12830,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
13052
12830
|
luvio.storeIngestError(key, errorSnapshot);
|
|
13053
12831
|
return errorSnapshot;
|
|
13054
12832
|
}
|
|
13055
|
-
function createResourceRequest$
|
|
12833
|
+
function createResourceRequest$5(config) {
|
|
13056
12834
|
const headers = {};
|
|
13057
12835
|
return {
|
|
13058
12836
|
baseUri: '/services/data/v63.0',
|
|
@@ -13070,64 +12848,64 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
13070
12848
|
urlParams: {},
|
|
13071
12849
|
};
|
|
13072
12850
|
config.urlParams.subMetricNameOrId = representation.id;
|
|
13073
|
-
return createResourceRequest$
|
|
12851
|
+
return createResourceRequest$5(config);
|
|
13074
12852
|
}
|
|
13075
12853
|
|
|
13076
|
-
const adapterName$
|
|
12854
|
+
const adapterName$5 = 'getSemanticSubMetric';
|
|
13077
12855
|
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
13078
12856
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13079
12857
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13080
12858
|
];
|
|
13081
|
-
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
13082
|
-
const createResourceParams$
|
|
12859
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
12860
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$k(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
13083
12861
|
function keyBuilder$4(luvio, config) {
|
|
13084
|
-
const resourceParams = createResourceParams$
|
|
12862
|
+
const resourceParams = createResourceParams$5(config);
|
|
13085
12863
|
return keyBuilder$5(luvio, resourceParams);
|
|
13086
12864
|
}
|
|
13087
|
-
function typeCheckConfig$
|
|
12865
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
13088
12866
|
const config = {};
|
|
13089
|
-
typeCheckConfig$
|
|
12867
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
13090
12868
|
return config;
|
|
13091
12869
|
}
|
|
13092
|
-
function validateAdapterConfig$
|
|
12870
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
13093
12871
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
13094
12872
|
return null;
|
|
13095
12873
|
}
|
|
13096
12874
|
if (process.env.NODE_ENV !== 'production') {
|
|
13097
12875
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
13098
12876
|
}
|
|
13099
|
-
const config = typeCheckConfig$
|
|
12877
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
13100
12878
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
13101
12879
|
return null;
|
|
13102
12880
|
}
|
|
13103
12881
|
return config;
|
|
13104
12882
|
}
|
|
13105
12883
|
function adapterFragment$2(luvio, config) {
|
|
13106
|
-
createResourceParams$
|
|
13107
|
-
return select$
|
|
12884
|
+
createResourceParams$5(config);
|
|
12885
|
+
return select$6();
|
|
13108
12886
|
}
|
|
13109
12887
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
13110
|
-
const snapshot = ingestSuccess$
|
|
12888
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
13111
12889
|
config,
|
|
13112
|
-
resolve: () => buildNetworkSnapshot$
|
|
12890
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
13113
12891
|
});
|
|
13114
12892
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13115
12893
|
}
|
|
13116
12894
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
13117
12895
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
13118
12896
|
config,
|
|
13119
|
-
resolve: () => buildNetworkSnapshot$
|
|
12897
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
13120
12898
|
});
|
|
13121
12899
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13122
12900
|
}
|
|
13123
|
-
function buildNetworkSnapshot$
|
|
13124
|
-
const resourceParams = createResourceParams$
|
|
13125
|
-
const request = createResourceRequest$
|
|
12901
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
12902
|
+
const resourceParams = createResourceParams$5(config);
|
|
12903
|
+
const request = createResourceRequest$5(resourceParams);
|
|
13126
12904
|
return luvio.dispatchResourceRequest(request, options)
|
|
13127
12905
|
.then((response) => {
|
|
13128
12906
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
13129
12907
|
const cache = new StoreKeyMap();
|
|
13130
|
-
getResponseCacheKeys$
|
|
12908
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
13131
12909
|
return cache;
|
|
13132
12910
|
});
|
|
13133
12911
|
}, (response) => {
|
|
@@ -13135,7 +12913,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
13135
12913
|
});
|
|
13136
12914
|
}
|
|
13137
12915
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
13138
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
12916
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
13139
12917
|
}
|
|
13140
12918
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
13141
12919
|
const { luvio, config } = context;
|
|
@@ -13146,12 +12924,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
13146
12924
|
};
|
|
13147
12925
|
const cacheSnapshot = storeLookup(selector, {
|
|
13148
12926
|
config,
|
|
13149
|
-
resolve: () => buildNetworkSnapshot$
|
|
12927
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
13150
12928
|
});
|
|
13151
12929
|
return cacheSnapshot;
|
|
13152
12930
|
}
|
|
13153
12931
|
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
13154
|
-
const config = validateAdapterConfig$
|
|
12932
|
+
const config = validateAdapterConfig$5(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
13155
12933
|
// Invalid or incomplete config
|
|
13156
12934
|
if (config === null) {
|
|
13157
12935
|
return null;
|
|
@@ -13161,7 +12939,7 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
13161
12939
|
};
|
|
13162
12940
|
const notifyChangeFactory = (luvio, options) => {
|
|
13163
12941
|
return function getSsotSemanticModelsSubMetricsByModelApiNameOrIdAndSubMetricNameOrIdNotifyChange(configs) {
|
|
13164
|
-
const keys = configs.map(c => keyBuilder$
|
|
12942
|
+
const keys = configs.map(c => keyBuilder$p(luvio, c));
|
|
13165
12943
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
13166
12944
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
13167
12945
|
const { key, record: val } = entries[i];
|
|
@@ -13234,7 +13012,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
13234
13012
|
}
|
|
13235
13013
|
return input;
|
|
13236
13014
|
}
|
|
13237
|
-
const select$
|
|
13015
|
+
const select$5 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
13238
13016
|
return {
|
|
13239
13017
|
kind: 'Fragment',
|
|
13240
13018
|
version: VERSION,
|
|
@@ -13245,7 +13023,7 @@ const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
13245
13023
|
kind: 'Link',
|
|
13246
13024
|
plural: true,
|
|
13247
13025
|
required: false,
|
|
13248
|
-
fragment: select$
|
|
13026
|
+
fragment: select$o()
|
|
13249
13027
|
}
|
|
13250
13028
|
]
|
|
13251
13029
|
};
|
|
@@ -13299,22 +13077,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
13299
13077
|
}
|
|
13300
13078
|
}
|
|
13301
13079
|
|
|
13302
|
-
function select$
|
|
13303
|
-
return select$
|
|
13080
|
+
function select$4(luvio, params) {
|
|
13081
|
+
return select$5();
|
|
13304
13082
|
}
|
|
13305
13083
|
function keyBuilder$3(luvio, params) {
|
|
13306
13084
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'hasGoal:' + params.queryParams.hasGoal + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
13307
13085
|
}
|
|
13308
|
-
function getResponseCacheKeys$
|
|
13086
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
13309
13087
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
13310
13088
|
}
|
|
13311
|
-
function ingestSuccess$
|
|
13089
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
13312
13090
|
const { body } = response;
|
|
13313
13091
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
13314
13092
|
luvio.storeIngest(key, ingest, body);
|
|
13315
13093
|
const snapshot = luvio.storeLookup({
|
|
13316
13094
|
recordId: key,
|
|
13317
|
-
node: select$
|
|
13095
|
+
node: select$4(),
|
|
13318
13096
|
variables: {},
|
|
13319
13097
|
}, snapshotRefresh);
|
|
13320
13098
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13331,7 +13109,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
13331
13109
|
luvio.storeIngestError(key, errorSnapshot);
|
|
13332
13110
|
return errorSnapshot;
|
|
13333
13111
|
}
|
|
13334
|
-
function createResourceRequest$
|
|
13112
|
+
function createResourceRequest$4(config) {
|
|
13335
13113
|
const headers = {};
|
|
13336
13114
|
return {
|
|
13337
13115
|
baseUri: '/services/data/v63.0',
|
|
@@ -13345,61 +13123,61 @@ function createResourceRequest$3(config) {
|
|
|
13345
13123
|
};
|
|
13346
13124
|
}
|
|
13347
13125
|
|
|
13348
|
-
const adapterName$
|
|
13126
|
+
const adapterName$4 = 'getSemanticSubMetrics';
|
|
13349
13127
|
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
13350
13128
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13351
13129
|
generateParamConfigMetadata('hasGoal', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
13352
13130
|
];
|
|
13353
|
-
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
13354
|
-
const createResourceParams$
|
|
13131
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
13132
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$k(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
13355
13133
|
function keyBuilder$2(luvio, config) {
|
|
13356
|
-
const resourceParams = createResourceParams$
|
|
13134
|
+
const resourceParams = createResourceParams$4(config);
|
|
13357
13135
|
return keyBuilder$3(luvio, resourceParams);
|
|
13358
13136
|
}
|
|
13359
|
-
function typeCheckConfig$
|
|
13137
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
13360
13138
|
const config = {};
|
|
13361
|
-
typeCheckConfig$
|
|
13139
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
13362
13140
|
return config;
|
|
13363
13141
|
}
|
|
13364
|
-
function validateAdapterConfig$
|
|
13142
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
13365
13143
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
13366
13144
|
return null;
|
|
13367
13145
|
}
|
|
13368
13146
|
if (process.env.NODE_ENV !== 'production') {
|
|
13369
13147
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
13370
13148
|
}
|
|
13371
|
-
const config = typeCheckConfig$
|
|
13149
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
13372
13150
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
13373
13151
|
return null;
|
|
13374
13152
|
}
|
|
13375
13153
|
return config;
|
|
13376
13154
|
}
|
|
13377
13155
|
function adapterFragment$1(luvio, config) {
|
|
13378
|
-
createResourceParams$
|
|
13379
|
-
return select$
|
|
13156
|
+
createResourceParams$4(config);
|
|
13157
|
+
return select$4();
|
|
13380
13158
|
}
|
|
13381
13159
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
13382
|
-
const snapshot = ingestSuccess$
|
|
13160
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
13383
13161
|
config,
|
|
13384
|
-
resolve: () => buildNetworkSnapshot$
|
|
13162
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
13385
13163
|
});
|
|
13386
13164
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13387
13165
|
}
|
|
13388
13166
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
13389
13167
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
13390
13168
|
config,
|
|
13391
|
-
resolve: () => buildNetworkSnapshot$
|
|
13169
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
13392
13170
|
});
|
|
13393
13171
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13394
13172
|
}
|
|
13395
|
-
function buildNetworkSnapshot$
|
|
13396
|
-
const resourceParams = createResourceParams$
|
|
13397
|
-
const request = createResourceRequest$
|
|
13173
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
13174
|
+
const resourceParams = createResourceParams$4(config);
|
|
13175
|
+
const request = createResourceRequest$4(resourceParams);
|
|
13398
13176
|
return luvio.dispatchResourceRequest(request, options)
|
|
13399
13177
|
.then((response) => {
|
|
13400
13178
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
13401
13179
|
const cache = new StoreKeyMap();
|
|
13402
|
-
getResponseCacheKeys$
|
|
13180
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
13403
13181
|
return cache;
|
|
13404
13182
|
});
|
|
13405
13183
|
}, (response) => {
|
|
@@ -13407,7 +13185,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
13407
13185
|
});
|
|
13408
13186
|
}
|
|
13409
13187
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
13410
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
13188
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
13411
13189
|
}
|
|
13412
13190
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
13413
13191
|
const { luvio, config } = context;
|
|
@@ -13418,12 +13196,12 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
13418
13196
|
};
|
|
13419
13197
|
const cacheSnapshot = storeLookup(selector, {
|
|
13420
13198
|
config,
|
|
13421
|
-
resolve: () => buildNetworkSnapshot$
|
|
13199
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
13422
13200
|
});
|
|
13423
13201
|
return cacheSnapshot;
|
|
13424
13202
|
}
|
|
13425
13203
|
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
13426
|
-
const config = validateAdapterConfig$
|
|
13204
|
+
const config = validateAdapterConfig$4(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
13427
13205
|
// Invalid or incomplete config
|
|
13428
13206
|
if (config === null) {
|
|
13429
13207
|
return null;
|
|
@@ -13432,22 +13210,22 @@ const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthorin
|
|
|
13432
13210
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
13433
13211
|
};
|
|
13434
13212
|
|
|
13435
|
-
function select$
|
|
13436
|
-
return select$
|
|
13213
|
+
function select$3(luvio, params) {
|
|
13214
|
+
return select$5();
|
|
13437
13215
|
}
|
|
13438
13216
|
function keyBuilder$1(luvio, params) {
|
|
13439
13217
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
13440
13218
|
}
|
|
13441
|
-
function getResponseCacheKeys$
|
|
13219
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
13442
13220
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
13443
13221
|
}
|
|
13444
|
-
function ingestSuccess$
|
|
13222
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
13445
13223
|
const { body } = response;
|
|
13446
13224
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
13447
13225
|
luvio.storeIngest(key, ingest, body);
|
|
13448
13226
|
const snapshot = luvio.storeLookup({
|
|
13449
13227
|
recordId: key,
|
|
13450
|
-
node: select$
|
|
13228
|
+
node: select$3(),
|
|
13451
13229
|
variables: {},
|
|
13452
13230
|
}, snapshotRefresh);
|
|
13453
13231
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13464,7 +13242,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
13464
13242
|
luvio.storeIngestError(key, errorSnapshot);
|
|
13465
13243
|
return errorSnapshot;
|
|
13466
13244
|
}
|
|
13467
|
-
function createResourceRequest$
|
|
13245
|
+
function createResourceRequest$3(config) {
|
|
13468
13246
|
const headers = {};
|
|
13469
13247
|
return {
|
|
13470
13248
|
baseUri: '/services/data/v63.0',
|
|
@@ -13478,62 +13256,62 @@ function createResourceRequest$2(config) {
|
|
|
13478
13256
|
};
|
|
13479
13257
|
}
|
|
13480
13258
|
|
|
13481
|
-
const adapterName$
|
|
13259
|
+
const adapterName$3 = 'getSemanticSubMetricsById';
|
|
13482
13260
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
13483
13261
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13484
13262
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
13485
13263
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
13486
13264
|
];
|
|
13487
|
-
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
13488
|
-
const createResourceParams$
|
|
13265
|
+
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
13266
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$k(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
13489
13267
|
function keyBuilder(luvio, config) {
|
|
13490
|
-
const resourceParams = createResourceParams$
|
|
13268
|
+
const resourceParams = createResourceParams$3(config);
|
|
13491
13269
|
return keyBuilder$1(luvio, resourceParams);
|
|
13492
13270
|
}
|
|
13493
|
-
function typeCheckConfig$
|
|
13271
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
13494
13272
|
const config = {};
|
|
13495
|
-
typeCheckConfig$
|
|
13273
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
13496
13274
|
return config;
|
|
13497
13275
|
}
|
|
13498
|
-
function validateAdapterConfig$
|
|
13276
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
13499
13277
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
13500
13278
|
return null;
|
|
13501
13279
|
}
|
|
13502
13280
|
if (process.env.NODE_ENV !== 'production') {
|
|
13503
13281
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
13504
13282
|
}
|
|
13505
|
-
const config = typeCheckConfig$
|
|
13283
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
13506
13284
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
13507
13285
|
return null;
|
|
13508
13286
|
}
|
|
13509
13287
|
return config;
|
|
13510
13288
|
}
|
|
13511
13289
|
function adapterFragment(luvio, config) {
|
|
13512
|
-
createResourceParams$
|
|
13513
|
-
return select$
|
|
13290
|
+
createResourceParams$3(config);
|
|
13291
|
+
return select$3();
|
|
13514
13292
|
}
|
|
13515
13293
|
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
13516
|
-
const snapshot = ingestSuccess$
|
|
13294
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
13517
13295
|
config,
|
|
13518
|
-
resolve: () => buildNetworkSnapshot$
|
|
13296
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
13519
13297
|
});
|
|
13520
13298
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13521
13299
|
}
|
|
13522
13300
|
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
13523
13301
|
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
13524
13302
|
config,
|
|
13525
|
-
resolve: () => buildNetworkSnapshot$
|
|
13303
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
13526
13304
|
});
|
|
13527
13305
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13528
13306
|
}
|
|
13529
|
-
function buildNetworkSnapshot$
|
|
13530
|
-
const resourceParams = createResourceParams$
|
|
13531
|
-
const request = createResourceRequest$
|
|
13307
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
13308
|
+
const resourceParams = createResourceParams$3(config);
|
|
13309
|
+
const request = createResourceRequest$3(resourceParams);
|
|
13532
13310
|
return luvio.dispatchResourceRequest(request, options)
|
|
13533
13311
|
.then((response) => {
|
|
13534
13312
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
13535
13313
|
const cache = new StoreKeyMap();
|
|
13536
|
-
getResponseCacheKeys$
|
|
13314
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
13537
13315
|
return cache;
|
|
13538
13316
|
});
|
|
13539
13317
|
}, (response) => {
|
|
@@ -13541,7 +13319,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
13541
13319
|
});
|
|
13542
13320
|
}
|
|
13543
13321
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
13544
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
13322
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
13545
13323
|
}
|
|
13546
13324
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
13547
13325
|
const { luvio, config } = context;
|
|
@@ -13552,12 +13330,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
13552
13330
|
};
|
|
13553
13331
|
const cacheSnapshot = storeLookup(selector, {
|
|
13554
13332
|
config,
|
|
13555
|
-
resolve: () => buildNetworkSnapshot$
|
|
13333
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
13556
13334
|
});
|
|
13557
13335
|
return cacheSnapshot;
|
|
13558
13336
|
}
|
|
13559
13337
|
const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetricsById(untrustedConfig, requestContext) {
|
|
13560
|
-
const config = validateAdapterConfig$
|
|
13338
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetricsById_ConfigPropertyNames);
|
|
13561
13339
|
// Invalid or incomplete config
|
|
13562
13340
|
if (config === null) {
|
|
13563
13341
|
return null;
|
|
@@ -13566,19 +13344,19 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
13566
13344
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
13567
13345
|
};
|
|
13568
13346
|
|
|
13569
|
-
function select$
|
|
13570
|
-
return select$
|
|
13347
|
+
function select$2(luvio, params) {
|
|
13348
|
+
return select$o();
|
|
13571
13349
|
}
|
|
13572
|
-
function getResponseCacheKeys$
|
|
13350
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
13573
13351
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
13574
13352
|
}
|
|
13575
|
-
function ingestSuccess$
|
|
13353
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
13576
13354
|
const { body } = response;
|
|
13577
13355
|
const key = keyBuilderFromType(luvio, body);
|
|
13578
13356
|
luvio.storeIngest(key, ingest$6, body);
|
|
13579
13357
|
const snapshot = luvio.storeLookup({
|
|
13580
13358
|
recordId: key,
|
|
13581
|
-
node: select$
|
|
13359
|
+
node: select$2(),
|
|
13582
13360
|
variables: {},
|
|
13583
13361
|
});
|
|
13584
13362
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13589,7 +13367,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
13589
13367
|
deepFreeze(snapshot.data);
|
|
13590
13368
|
return snapshot;
|
|
13591
13369
|
}
|
|
13592
|
-
function createResourceRequest$
|
|
13370
|
+
function createResourceRequest$2(config) {
|
|
13593
13371
|
const headers = {};
|
|
13594
13372
|
return {
|
|
13595
13373
|
baseUri: '/services/data/v63.0',
|
|
@@ -13603,18 +13381,18 @@ function createResourceRequest$1(config) {
|
|
|
13603
13381
|
};
|
|
13604
13382
|
}
|
|
13605
13383
|
|
|
13606
|
-
const adapterName$
|
|
13384
|
+
const adapterName$2 = 'patchSemanticMetricGoal';
|
|
13607
13385
|
const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
13608
13386
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13609
13387
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13610
13388
|
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
13611
13389
|
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
13612
13390
|
];
|
|
13613
|
-
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
13614
|
-
const createResourceParams$
|
|
13615
|
-
function typeCheckConfig$
|
|
13391
|
+
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
13392
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$k(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
13393
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
13616
13394
|
const config = {};
|
|
13617
|
-
typeCheckConfig$
|
|
13395
|
+
typeCheckConfig$k(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
13618
13396
|
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
13619
13397
|
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
13620
13398
|
const untrustedConfig_statusConditions_array = [];
|
|
@@ -13629,30 +13407,30 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
13629
13407
|
}
|
|
13630
13408
|
return config;
|
|
13631
13409
|
}
|
|
13632
|
-
function validateAdapterConfig$
|
|
13410
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
13633
13411
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
13634
13412
|
return null;
|
|
13635
13413
|
}
|
|
13636
13414
|
if (process.env.NODE_ENV !== 'production') {
|
|
13637
13415
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
13638
13416
|
}
|
|
13639
|
-
const config = typeCheckConfig$
|
|
13417
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
13640
13418
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
13641
13419
|
return null;
|
|
13642
13420
|
}
|
|
13643
13421
|
return config;
|
|
13644
13422
|
}
|
|
13645
|
-
function buildNetworkSnapshot$
|
|
13646
|
-
const resourceParams = createResourceParams$
|
|
13647
|
-
const request = createResourceRequest$
|
|
13423
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
13424
|
+
const resourceParams = createResourceParams$2(config);
|
|
13425
|
+
const request = createResourceRequest$2(resourceParams);
|
|
13648
13426
|
return luvio.dispatchResourceRequest(request, options)
|
|
13649
13427
|
.then((response) => {
|
|
13650
13428
|
return luvio.handleSuccessResponse(() => {
|
|
13651
|
-
const snapshot = ingestSuccess$
|
|
13429
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
13652
13430
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13653
13431
|
}, () => {
|
|
13654
13432
|
const cache = new StoreKeyMap();
|
|
13655
|
-
getResponseCacheKeys$
|
|
13433
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
13656
13434
|
return cache;
|
|
13657
13435
|
});
|
|
13658
13436
|
}, (response) => {
|
|
@@ -13662,28 +13440,28 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
13662
13440
|
}
|
|
13663
13441
|
const patchSemanticMetricGoalAdapterFactory = (luvio) => {
|
|
13664
13442
|
return function patchSemanticMetricGoal(untrustedConfig) {
|
|
13665
|
-
const config = validateAdapterConfig$
|
|
13443
|
+
const config = validateAdapterConfig$2(untrustedConfig, patchSemanticMetricGoal_ConfigPropertyNames);
|
|
13666
13444
|
// Invalid or incomplete config
|
|
13667
13445
|
if (config === null) {
|
|
13668
13446
|
throw new Error('Invalid config for "patchSemanticMetricGoal"');
|
|
13669
13447
|
}
|
|
13670
|
-
return buildNetworkSnapshot$
|
|
13448
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
13671
13449
|
};
|
|
13672
13450
|
};
|
|
13673
13451
|
|
|
13674
|
-
function select(luvio, params) {
|
|
13675
|
-
return select$
|
|
13452
|
+
function select$1(luvio, params) {
|
|
13453
|
+
return select$q();
|
|
13676
13454
|
}
|
|
13677
|
-
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
13455
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
13678
13456
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
13679
13457
|
}
|
|
13680
|
-
function ingestSuccess(luvio, resourceParams, response) {
|
|
13458
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
13681
13459
|
const { body } = response;
|
|
13682
13460
|
const key = keyBuilderFromType$1(luvio, body);
|
|
13683
13461
|
luvio.storeIngest(key, ingest$7, body);
|
|
13684
13462
|
const snapshot = luvio.storeLookup({
|
|
13685
13463
|
recordId: key,
|
|
13686
|
-
node: select(),
|
|
13464
|
+
node: select$1(),
|
|
13687
13465
|
variables: {},
|
|
13688
13466
|
});
|
|
13689
13467
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13694,7 +13472,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
13694
13472
|
deepFreeze(snapshot.data);
|
|
13695
13473
|
return snapshot;
|
|
13696
13474
|
}
|
|
13697
|
-
function createResourceRequest(config) {
|
|
13475
|
+
function createResourceRequest$1(config) {
|
|
13698
13476
|
const headers = {};
|
|
13699
13477
|
return {
|
|
13700
13478
|
baseUri: '/services/data/v63.0',
|
|
@@ -13708,7 +13486,7 @@ function createResourceRequest(config) {
|
|
|
13708
13486
|
};
|
|
13709
13487
|
}
|
|
13710
13488
|
|
|
13711
|
-
const adapterName = 'patchSemanticModel';
|
|
13489
|
+
const adapterName$1 = 'patchSemanticModel';
|
|
13712
13490
|
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
13713
13491
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13714
13492
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -13730,11 +13508,11 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
13730
13508
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
13731
13509
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
13732
13510
|
];
|
|
13733
|
-
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, patchSemanticModel_ConfigPropertyMetadata);
|
|
13734
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
13735
|
-
function typeCheckConfig(untrustedConfig) {
|
|
13511
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticModel_ConfigPropertyMetadata);
|
|
13512
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$k(patchSemanticModel_ConfigPropertyMetadata);
|
|
13513
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
13736
13514
|
const config = {};
|
|
13737
|
-
typeCheckConfig$
|
|
13515
|
+
typeCheckConfig$k(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
13738
13516
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
13739
13517
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
13740
13518
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -13845,6 +13623,123 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
13845
13623
|
}
|
|
13846
13624
|
return config;
|
|
13847
13625
|
}
|
|
13626
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
13627
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
13628
|
+
return null;
|
|
13629
|
+
}
|
|
13630
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
13631
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
13632
|
+
}
|
|
13633
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
13634
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
13635
|
+
return null;
|
|
13636
|
+
}
|
|
13637
|
+
return config;
|
|
13638
|
+
}
|
|
13639
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
13640
|
+
const resourceParams = createResourceParams$1(config);
|
|
13641
|
+
const request = createResourceRequest$1(resourceParams);
|
|
13642
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
13643
|
+
.then((response) => {
|
|
13644
|
+
return luvio.handleSuccessResponse(() => {
|
|
13645
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
13646
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
13647
|
+
}, () => {
|
|
13648
|
+
const cache = new StoreKeyMap();
|
|
13649
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
13650
|
+
return cache;
|
|
13651
|
+
});
|
|
13652
|
+
}, (response) => {
|
|
13653
|
+
deepFreeze(response);
|
|
13654
|
+
throw response;
|
|
13655
|
+
});
|
|
13656
|
+
}
|
|
13657
|
+
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
13658
|
+
return function patchSemanticModel(untrustedConfig) {
|
|
13659
|
+
const config = validateAdapterConfig$1(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
13660
|
+
// Invalid or incomplete config
|
|
13661
|
+
if (config === null) {
|
|
13662
|
+
throw new Error('Invalid config for "patchSemanticModel"');
|
|
13663
|
+
}
|
|
13664
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
13665
|
+
};
|
|
13666
|
+
};
|
|
13667
|
+
|
|
13668
|
+
function select(luvio, params) {
|
|
13669
|
+
return select$P();
|
|
13670
|
+
}
|
|
13671
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
13672
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response);
|
|
13673
|
+
}
|
|
13674
|
+
function ingestSuccess(luvio, resourceParams, response) {
|
|
13675
|
+
const { body } = response;
|
|
13676
|
+
const key = keyBuilderFromType$c(luvio, body);
|
|
13677
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
13678
|
+
const snapshot = luvio.storeLookup({
|
|
13679
|
+
recordId: key,
|
|
13680
|
+
node: select(),
|
|
13681
|
+
variables: {},
|
|
13682
|
+
});
|
|
13683
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
13684
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
13685
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
13686
|
+
}
|
|
13687
|
+
}
|
|
13688
|
+
deepFreeze(snapshot.data);
|
|
13689
|
+
return snapshot;
|
|
13690
|
+
}
|
|
13691
|
+
function createResourceRequest(config) {
|
|
13692
|
+
const headers = {};
|
|
13693
|
+
return {
|
|
13694
|
+
baseUri: '/services/data/v63.0',
|
|
13695
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/goals',
|
|
13696
|
+
method: 'put',
|
|
13697
|
+
body: config.body,
|
|
13698
|
+
urlParams: config.urlParams,
|
|
13699
|
+
queryParams: config.queryParams,
|
|
13700
|
+
headers,
|
|
13701
|
+
priority: 'normal',
|
|
13702
|
+
};
|
|
13703
|
+
}
|
|
13704
|
+
|
|
13705
|
+
const adapterName = 'updateSemanticGoal';
|
|
13706
|
+
const updateSemanticGoal_ConfigPropertyMetadata = [
|
|
13707
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13708
|
+
generateParamConfigMetadata('endDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
13709
|
+
generateParamConfigMetadata('startDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
13710
|
+
generateParamConfigMetadata('subMetricApiNameOrId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
13711
|
+
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
13712
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
13713
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
13714
|
+
generateParamConfigMetadata('dateRange', true, 2 /* Body */, 4 /* Unsupported */),
|
|
13715
|
+
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
13716
|
+
generateParamConfigMetadata('statusConditions', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
13717
|
+
generateParamConfigMetadata('subMetricDefinitionApiName', true, 2 /* Body */, 0 /* String */),
|
|
13718
|
+
];
|
|
13719
|
+
const updateSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateSemanticGoal_ConfigPropertyMetadata);
|
|
13720
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$k(updateSemanticGoal_ConfigPropertyMetadata);
|
|
13721
|
+
function typeCheckConfig(untrustedConfig) {
|
|
13722
|
+
const config = {};
|
|
13723
|
+
typeCheckConfig$k(untrustedConfig, config, updateSemanticGoal_ConfigPropertyMetadata);
|
|
13724
|
+
const untrustedConfig_dateRange = untrustedConfig.dateRange;
|
|
13725
|
+
const referenceSemanticGoalDateRangeInputRepresentationValidationError = validate$14(untrustedConfig_dateRange);
|
|
13726
|
+
if (referenceSemanticGoalDateRangeInputRepresentationValidationError === null) {
|
|
13727
|
+
config.dateRange = untrustedConfig_dateRange;
|
|
13728
|
+
}
|
|
13729
|
+
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
13730
|
+
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
13731
|
+
const untrustedConfig_statusConditions_array = [];
|
|
13732
|
+
for (let i = 0, arrayLength = untrustedConfig_statusConditions.length; i < arrayLength; i++) {
|
|
13733
|
+
const untrustedConfig_statusConditions_item = untrustedConfig_statusConditions[i];
|
|
13734
|
+
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$13(untrustedConfig_statusConditions_item);
|
|
13735
|
+
if (referenceSemanticGoalStatusConditionInputRepresentationValidationError === null) {
|
|
13736
|
+
untrustedConfig_statusConditions_array.push(untrustedConfig_statusConditions_item);
|
|
13737
|
+
}
|
|
13738
|
+
}
|
|
13739
|
+
config.statusConditions = untrustedConfig_statusConditions_array;
|
|
13740
|
+
}
|
|
13741
|
+
return config;
|
|
13742
|
+
}
|
|
13848
13743
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
13849
13744
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
13850
13745
|
return null;
|
|
@@ -13876,12 +13771,12 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
13876
13771
|
throw response;
|
|
13877
13772
|
});
|
|
13878
13773
|
}
|
|
13879
|
-
const
|
|
13880
|
-
return function
|
|
13881
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
13774
|
+
const updateSemanticGoalAdapterFactory = (luvio) => {
|
|
13775
|
+
return function updateSemanticGoal(untrustedConfig) {
|
|
13776
|
+
const config = validateAdapterConfig(untrustedConfig, updateSemanticGoal_ConfigPropertyNames);
|
|
13882
13777
|
// Invalid or incomplete config
|
|
13883
13778
|
if (config === null) {
|
|
13884
|
-
throw new Error('Invalid config for "
|
|
13779
|
+
throw new Error('Invalid config for "updateSemanticGoal"');
|
|
13885
13780
|
}
|
|
13886
13781
|
return buildNetworkSnapshot(luvio, config);
|
|
13887
13782
|
};
|
|
@@ -13891,6 +13786,7 @@ let createSemanticGoal;
|
|
|
13891
13786
|
let createSemanticModel;
|
|
13892
13787
|
let createSemanticSubMetric;
|
|
13893
13788
|
let deleteGoalFromSubMetric;
|
|
13789
|
+
let deleteSemanticGoal;
|
|
13894
13790
|
let deleteSemanticSubMetric;
|
|
13895
13791
|
let getLeafDependenciesByTypes;
|
|
13896
13792
|
let getSemanticGoal;
|
|
@@ -13909,6 +13805,7 @@ let getSemanticSubMetrics;
|
|
|
13909
13805
|
let getSemanticSubMetricsById;
|
|
13910
13806
|
let patchSemanticMetricGoal;
|
|
13911
13807
|
let patchSemanticModel;
|
|
13808
|
+
let updateSemanticGoal;
|
|
13912
13809
|
// Imperative GET Adapters
|
|
13913
13810
|
let getLeafDependenciesByTypes_imperative;
|
|
13914
13811
|
let getSemanticGoal_imperative;
|
|
@@ -13972,8 +13869,9 @@ function bindExportsTo(luvio) {
|
|
|
13972
13869
|
createSemanticGoal: unwrapSnapshotData(createSemanticGoalAdapterFactory),
|
|
13973
13870
|
createSemanticModel: unwrapSnapshotData(createSemanticModelAdapterFactory),
|
|
13974
13871
|
createSemanticSubMetric: unwrapSnapshotData(createSemanticSubMetricAdapterFactory),
|
|
13975
|
-
deleteGoalFromSubMetric: createLDSAdapter(luvio, adapterName$
|
|
13976
|
-
|
|
13872
|
+
deleteGoalFromSubMetric: createLDSAdapter(luvio, adapterName$g, deleteGoalFromSubMetricAdapterFactory),
|
|
13873
|
+
deleteSemanticGoal: createLDSAdapter(luvio, adapterName$f, deleteSemanticGoalAdapterFactory),
|
|
13874
|
+
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$e, deleteSemanticSubMetricAdapterFactory),
|
|
13977
13875
|
getLeafDependenciesByTypes: createWireAdapterConstructor(luvio, getLeafDependenciesByTypes_ldsAdapter, getLeafDependenciesByTypesMetadata),
|
|
13978
13876
|
getSemanticGoal: createWireAdapterConstructor(luvio, getSemanticGoal_ldsAdapter, getSemanticGoalMetadata),
|
|
13979
13877
|
getSemanticGoalNotifyChange: createLDSAdapter(luvio, 'getSemanticGoalNotifyChange', notifyChangeFactory$3),
|
|
@@ -13991,6 +13889,7 @@ function bindExportsTo(luvio) {
|
|
|
13991
13889
|
getSemanticSubMetricsById: createWireAdapterConstructor(luvio, getSemanticSubMetricsById_ldsAdapter, getSemanticSubMetricsByIdMetadata),
|
|
13992
13890
|
patchSemanticMetricGoal: unwrapSnapshotData(patchSemanticMetricGoalAdapterFactory),
|
|
13993
13891
|
patchSemanticModel: unwrapSnapshotData(patchSemanticModelAdapterFactory),
|
|
13892
|
+
updateSemanticGoal: unwrapSnapshotData(updateSemanticGoalAdapterFactory),
|
|
13994
13893
|
// Imperative GET Adapters
|
|
13995
13894
|
getLeafDependenciesByTypes_imperative: createImperativeAdapter(luvio, getLeafDependenciesByTypes_ldsAdapter, getLeafDependenciesByTypesMetadata),
|
|
13996
13895
|
getSemanticGoal_imperative: createImperativeAdapter(luvio, getSemanticGoal_ldsAdapter, getSemanticGoalMetadata),
|
|
@@ -14012,6 +13911,7 @@ withDefaultLuvio((luvio) => {
|
|
|
14012
13911
|
createSemanticModel,
|
|
14013
13912
|
createSemanticSubMetric,
|
|
14014
13913
|
deleteGoalFromSubMetric,
|
|
13914
|
+
deleteSemanticGoal,
|
|
14015
13915
|
deleteSemanticSubMetric,
|
|
14016
13916
|
getLeafDependenciesByTypes,
|
|
14017
13917
|
getSemanticGoal,
|
|
@@ -14030,6 +13930,7 @@ withDefaultLuvio((luvio) => {
|
|
|
14030
13930
|
getSemanticSubMetricsById,
|
|
14031
13931
|
patchSemanticMetricGoal,
|
|
14032
13932
|
patchSemanticModel,
|
|
13933
|
+
updateSemanticGoal,
|
|
14033
13934
|
getLeafDependenciesByTypes_imperative,
|
|
14034
13935
|
getSemanticGoal_imperative,
|
|
14035
13936
|
getSemanticMetric_imperative,
|
|
@@ -14044,5 +13945,5 @@ withDefaultLuvio((luvio) => {
|
|
|
14044
13945
|
} = bindExportsTo(luvio));
|
|
14045
13946
|
});
|
|
14046
13947
|
|
|
14047
|
-
export { createSemanticGoal, createSemanticModel, createSemanticSubMetric, deleteGoalFromSubMetric, deleteSemanticSubMetric, getLeafDependenciesByTypes, getLeafDependenciesByTypes_imperative, getSemanticGoal, getSemanticGoalNotifyChange, getSemanticGoal_imperative, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsByIds, getSemanticMetricsByIds_imperative, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticMetricGoal, patchSemanticModel };
|
|
14048
|
-
// version: 1.332.0-
|
|
13948
|
+
export { createSemanticGoal, createSemanticModel, createSemanticSubMetric, deleteGoalFromSubMetric, deleteSemanticGoal, deleteSemanticSubMetric, getLeafDependenciesByTypes, getLeafDependenciesByTypes_imperative, getSemanticGoal, getSemanticGoalNotifyChange, getSemanticGoal_imperative, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsByIds, getSemanticMetricsByIds_imperative, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticMetricGoal, patchSemanticModel, updateSemanticGoal };
|
|
13949
|
+
// version: 1.332.0-dev17-75a56cc45d
|