@salesforce/lds-adapters-cdp-semantic-authoring 1.346.0 → 1.347.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/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/v64.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,
|
|
@@ -2681,20 +2366,20 @@ function validate$B(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
2681
2366
|
return v_error === undefined ? null : v_error;
|
|
2682
2367
|
}
|
|
2683
2368
|
const RepresentationType$h = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
2684
|
-
function keyBuilder$
|
|
2369
|
+
function keyBuilder$A(luvio, config) {
|
|
2685
2370
|
return keyPrefix + '::' + RepresentationType$h + ':' + config.name;
|
|
2686
2371
|
}
|
|
2687
2372
|
function keyBuilderFromType$b(luvio, object) {
|
|
2688
2373
|
const keyParams = {
|
|
2689
2374
|
name: object.id
|
|
2690
2375
|
};
|
|
2691
|
-
return keyBuilder$
|
|
2376
|
+
return keyBuilder$A(luvio, keyParams);
|
|
2692
2377
|
}
|
|
2693
2378
|
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
2694
2379
|
return input;
|
|
2695
2380
|
}
|
|
2696
|
-
const select$
|
|
2697
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
2381
|
+
const select$L = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
2382
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$M();
|
|
2698
2383
|
return {
|
|
2699
2384
|
kind: 'Fragment',
|
|
2700
2385
|
version: VERSION$v,
|
|
@@ -3253,20 +2938,20 @@ function validate$A(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
3253
2938
|
return v_error === undefined ? null : v_error;
|
|
3254
2939
|
}
|
|
3255
2940
|
const RepresentationType$g = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
3256
|
-
function keyBuilder$
|
|
2941
|
+
function keyBuilder$z(luvio, config) {
|
|
3257
2942
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.name;
|
|
3258
2943
|
}
|
|
3259
2944
|
function keyBuilderFromType$a(luvio, object) {
|
|
3260
2945
|
const keyParams = {
|
|
3261
2946
|
name: object.id
|
|
3262
2947
|
};
|
|
3263
|
-
return keyBuilder$
|
|
2948
|
+
return keyBuilder$z(luvio, keyParams);
|
|
3264
2949
|
}
|
|
3265
2950
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
3266
2951
|
return input;
|
|
3267
2952
|
}
|
|
3268
|
-
const select$
|
|
3269
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
2953
|
+
const select$K = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
2954
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$M();
|
|
3270
2955
|
return {
|
|
3271
2956
|
kind: 'Fragment',
|
|
3272
2957
|
version: VERSION$u,
|
|
@@ -4228,19 +3913,19 @@ function validate$x(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
4228
3913
|
return v_error === undefined ? null : v_error;
|
|
4229
3914
|
}
|
|
4230
3915
|
const RepresentationType$f = 'SemanticDataObjectOutputRepresentation';
|
|
4231
|
-
function keyBuilder$
|
|
3916
|
+
function keyBuilder$y(luvio, config) {
|
|
4232
3917
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.name;
|
|
4233
3918
|
}
|
|
4234
3919
|
function keyBuilderFromType$9(luvio, object) {
|
|
4235
3920
|
const keyParams = {
|
|
4236
3921
|
name: object.id
|
|
4237
3922
|
};
|
|
4238
|
-
return keyBuilder$
|
|
3923
|
+
return keyBuilder$y(luvio, keyParams);
|
|
4239
3924
|
}
|
|
4240
3925
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
4241
3926
|
return input;
|
|
4242
3927
|
}
|
|
4243
|
-
const select$
|
|
3928
|
+
const select$J = function SemanticDataObjectOutputRepresentationSelect() {
|
|
4244
3929
|
return {
|
|
4245
3930
|
kind: 'Fragment',
|
|
4246
3931
|
version: VERSION$t,
|
|
@@ -4286,7 +3971,7 @@ function validate$w(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
4286
3971
|
})();
|
|
4287
3972
|
return v_error === undefined ? null : v_error;
|
|
4288
3973
|
}
|
|
4289
|
-
const select$
|
|
3974
|
+
const select$I = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
4290
3975
|
return {
|
|
4291
3976
|
kind: 'Fragment',
|
|
4292
3977
|
version: VERSION$s,
|
|
@@ -4336,7 +4021,7 @@ function validate$v(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
4336
4021
|
})();
|
|
4337
4022
|
return v_error === undefined ? null : v_error;
|
|
4338
4023
|
}
|
|
4339
|
-
const select$
|
|
4024
|
+
const select$H = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
4340
4025
|
return {
|
|
4341
4026
|
kind: 'Fragment',
|
|
4342
4027
|
version: VERSION$r,
|
|
@@ -4415,8 +4100,8 @@ function validate$u(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
4415
4100
|
})();
|
|
4416
4101
|
return v_error === undefined ? null : v_error;
|
|
4417
4102
|
}
|
|
4418
|
-
const select$
|
|
4419
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
4103
|
+
const select$G = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
4104
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$H();
|
|
4420
4105
|
return {
|
|
4421
4106
|
kind: 'Fragment',
|
|
4422
4107
|
version: VERSION$q,
|
|
@@ -4501,9 +4186,9 @@ function validate$t(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
4501
4186
|
})();
|
|
4502
4187
|
return v_error === undefined ? null : v_error;
|
|
4503
4188
|
}
|
|
4504
|
-
const select$
|
|
4505
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
4506
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
4189
|
+
const select$F = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
4190
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$I();
|
|
4191
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$G();
|
|
4507
4192
|
return {
|
|
4508
4193
|
kind: 'Fragment',
|
|
4509
4194
|
version: VERSION$p,
|
|
@@ -4577,7 +4262,7 @@ function validate$s(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
4577
4262
|
})();
|
|
4578
4263
|
return v_error === undefined ? null : v_error;
|
|
4579
4264
|
}
|
|
4580
|
-
const select$
|
|
4265
|
+
const select$E = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
4581
4266
|
return {
|
|
4582
4267
|
kind: 'Fragment',
|
|
4583
4268
|
version: VERSION$o,
|
|
@@ -4652,8 +4337,8 @@ function validate$r(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
4652
4337
|
})();
|
|
4653
4338
|
return v_error === undefined ? null : v_error;
|
|
4654
4339
|
}
|
|
4655
|
-
const select$
|
|
4656
|
-
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$
|
|
4340
|
+
const select$D = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
4341
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$E();
|
|
4657
4342
|
return {
|
|
4658
4343
|
kind: 'Fragment',
|
|
4659
4344
|
version: VERSION$n,
|
|
@@ -4796,21 +4481,21 @@ function validate$q(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
4796
4481
|
return v_error === undefined ? null : v_error;
|
|
4797
4482
|
}
|
|
4798
4483
|
const RepresentationType$e = 'SemanticGroupingOutputRepresentation';
|
|
4799
|
-
function keyBuilder$
|
|
4484
|
+
function keyBuilder$x(luvio, config) {
|
|
4800
4485
|
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
4801
4486
|
}
|
|
4802
4487
|
function keyBuilderFromType$8(luvio, object) {
|
|
4803
4488
|
const keyParams = {
|
|
4804
4489
|
name: object.id
|
|
4805
4490
|
};
|
|
4806
|
-
return keyBuilder$
|
|
4491
|
+
return keyBuilder$x(luvio, keyParams);
|
|
4807
4492
|
}
|
|
4808
4493
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4809
4494
|
return input;
|
|
4810
4495
|
}
|
|
4811
|
-
const select$
|
|
4812
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
4813
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
4496
|
+
const select$C = function SemanticGroupingOutputRepresentationSelect() {
|
|
4497
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$F();
|
|
4498
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$D();
|
|
4814
4499
|
return {
|
|
4815
4500
|
kind: 'Fragment',
|
|
4816
4501
|
version: VERSION$m,
|
|
@@ -5061,7 +4746,7 @@ function validate$p(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
5061
4746
|
})();
|
|
5062
4747
|
return v_error === undefined ? null : v_error;
|
|
5063
4748
|
}
|
|
5064
|
-
const select$
|
|
4749
|
+
const select$B = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
5065
4750
|
return {
|
|
5066
4751
|
kind: 'Fragment',
|
|
5067
4752
|
version: VERSION$l,
|
|
@@ -5295,20 +4980,20 @@ function validate$o(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
5295
4980
|
return v_error === undefined ? null : v_error;
|
|
5296
4981
|
}
|
|
5297
4982
|
const RepresentationType$d = 'SemanticRelationshipOutputRepresentation';
|
|
5298
|
-
function keyBuilder$
|
|
4983
|
+
function keyBuilder$w(luvio, config) {
|
|
5299
4984
|
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
5300
4985
|
}
|
|
5301
4986
|
function keyBuilderFromType$7(luvio, object) {
|
|
5302
4987
|
const keyParams = {
|
|
5303
4988
|
name: object.id
|
|
5304
4989
|
};
|
|
5305
|
-
return keyBuilder$
|
|
4990
|
+
return keyBuilder$w(luvio, keyParams);
|
|
5306
4991
|
}
|
|
5307
4992
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
5308
4993
|
return input;
|
|
5309
4994
|
}
|
|
5310
|
-
const select$
|
|
5311
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
4995
|
+
const select$A = function SemanticRelationshipOutputRepresentationSelect() {
|
|
4996
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$B();
|
|
5312
4997
|
return {
|
|
5313
4998
|
kind: 'Fragment',
|
|
5314
4999
|
version: VERSION$k,
|
|
@@ -5735,19 +5420,19 @@ function validate$n(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
5735
5420
|
return v_error === undefined ? null : v_error;
|
|
5736
5421
|
}
|
|
5737
5422
|
const RepresentationType$c = 'SemanticMappedFieldOutputRepresentation';
|
|
5738
|
-
function keyBuilder$
|
|
5423
|
+
function keyBuilder$v(luvio, config) {
|
|
5739
5424
|
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
5740
5425
|
}
|
|
5741
5426
|
function keyBuilderFromType$6(luvio, object) {
|
|
5742
5427
|
const keyParams = {
|
|
5743
5428
|
name: object.id
|
|
5744
5429
|
};
|
|
5745
|
-
return keyBuilder$
|
|
5430
|
+
return keyBuilder$v(luvio, keyParams);
|
|
5746
5431
|
}
|
|
5747
5432
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5748
5433
|
return input;
|
|
5749
5434
|
}
|
|
5750
|
-
const select$
|
|
5435
|
+
const select$z = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
5751
5436
|
return {
|
|
5752
5437
|
kind: 'Fragment',
|
|
5753
5438
|
version: VERSION$j,
|
|
@@ -5911,14 +5596,14 @@ function validate$m(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
5911
5596
|
return v_error === undefined ? null : v_error;
|
|
5912
5597
|
}
|
|
5913
5598
|
const RepresentationType$b = 'SemanticUnionOutputRepresentation';
|
|
5914
|
-
function keyBuilder$
|
|
5599
|
+
function keyBuilder$u(luvio, config) {
|
|
5915
5600
|
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
5916
5601
|
}
|
|
5917
5602
|
function keyBuilderFromType$5(luvio, object) {
|
|
5918
5603
|
const keyParams = {
|
|
5919
5604
|
name: object.id
|
|
5920
5605
|
};
|
|
5921
|
-
return keyBuilder$
|
|
5606
|
+
return keyBuilder$u(luvio, keyParams);
|
|
5922
5607
|
}
|
|
5923
5608
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5924
5609
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -5959,7 +5644,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
5959
5644
|
}
|
|
5960
5645
|
return input;
|
|
5961
5646
|
}
|
|
5962
|
-
const select$
|
|
5647
|
+
const select$y = function SemanticUnionOutputRepresentationSelect() {
|
|
5963
5648
|
return {
|
|
5964
5649
|
kind: 'Fragment',
|
|
5965
5650
|
version: VERSION$i,
|
|
@@ -6021,14 +5706,14 @@ const select$x = function SemanticUnionOutputRepresentationSelect() {
|
|
|
6021
5706
|
kind: 'Link',
|
|
6022
5707
|
plural: true,
|
|
6023
5708
|
required: false,
|
|
6024
|
-
fragment: select$
|
|
5709
|
+
fragment: select$J()
|
|
6025
5710
|
},
|
|
6026
5711
|
{
|
|
6027
5712
|
name: 'semanticMappedFields',
|
|
6028
5713
|
kind: 'Link',
|
|
6029
5714
|
plural: true,
|
|
6030
5715
|
required: false,
|
|
6031
|
-
fragment: select$
|
|
5716
|
+
fragment: select$z()
|
|
6032
5717
|
}
|
|
6033
5718
|
]
|
|
6034
5719
|
};
|
|
@@ -6369,14 +6054,14 @@ function validate$l(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
6369
6054
|
return v_error === undefined ? null : v_error;
|
|
6370
6055
|
}
|
|
6371
6056
|
const RepresentationType$a = 'SemanticLogicalViewOutputRepresentation';
|
|
6372
|
-
function keyBuilder$
|
|
6057
|
+
function keyBuilder$t(luvio, config) {
|
|
6373
6058
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
6374
6059
|
}
|
|
6375
6060
|
function keyBuilderFromType$4(luvio, object) {
|
|
6376
6061
|
const keyParams = {
|
|
6377
6062
|
name: object.id
|
|
6378
6063
|
};
|
|
6379
|
-
return keyBuilder$
|
|
6064
|
+
return keyBuilder$t(luvio, keyParams);
|
|
6380
6065
|
}
|
|
6381
6066
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
6382
6067
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -6435,8 +6120,8 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
6435
6120
|
}
|
|
6436
6121
|
return input;
|
|
6437
6122
|
}
|
|
6438
|
-
const select$
|
|
6439
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
6123
|
+
const select$x = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
6124
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$M();
|
|
6440
6125
|
return {
|
|
6441
6126
|
kind: 'Fragment',
|
|
6442
6127
|
version: VERSION$h,
|
|
@@ -6510,21 +6195,21 @@ const select$w = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
6510
6195
|
kind: 'Link',
|
|
6511
6196
|
plural: true,
|
|
6512
6197
|
required: false,
|
|
6513
|
-
fragment: select$
|
|
6198
|
+
fragment: select$J()
|
|
6514
6199
|
},
|
|
6515
6200
|
{
|
|
6516
6201
|
name: 'semanticRelationships',
|
|
6517
6202
|
kind: 'Link',
|
|
6518
6203
|
plural: true,
|
|
6519
6204
|
required: false,
|
|
6520
|
-
fragment: select$
|
|
6205
|
+
fragment: select$A()
|
|
6521
6206
|
},
|
|
6522
6207
|
{
|
|
6523
6208
|
name: 'semanticUnions',
|
|
6524
6209
|
kind: 'Link',
|
|
6525
6210
|
plural: true,
|
|
6526
6211
|
required: false,
|
|
6527
|
-
fragment: select$
|
|
6212
|
+
fragment: select$y()
|
|
6528
6213
|
},
|
|
6529
6214
|
{
|
|
6530
6215
|
name: 'semanticViewTypeEnum',
|
|
@@ -6815,8 +6500,8 @@ function validate$k(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6815
6500
|
})();
|
|
6816
6501
|
return v_error === undefined ? null : v_error;
|
|
6817
6502
|
}
|
|
6818
|
-
const select$
|
|
6819
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6503
|
+
const select$w = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
6504
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$D();
|
|
6820
6505
|
return {
|
|
6821
6506
|
kind: 'Fragment',
|
|
6822
6507
|
version: VERSION$g,
|
|
@@ -6890,7 +6575,7 @@ function validate$j(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
6890
6575
|
})();
|
|
6891
6576
|
return v_error === undefined ? null : v_error;
|
|
6892
6577
|
}
|
|
6893
|
-
const select$
|
|
6578
|
+
const select$v = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
6894
6579
|
return {
|
|
6895
6580
|
kind: 'Fragment',
|
|
6896
6581
|
version: VERSION$f,
|
|
@@ -7013,10 +6698,10 @@ function validate$i(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
7013
6698
|
})();
|
|
7014
6699
|
return v_error === undefined ? null : v_error;
|
|
7015
6700
|
}
|
|
7016
|
-
const select$
|
|
7017
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
7018
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
7019
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6701
|
+
const select$u = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
6702
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$w();
|
|
6703
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$v();
|
|
6704
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$D();
|
|
7020
6705
|
return {
|
|
7021
6706
|
kind: 'Fragment',
|
|
7022
6707
|
version: VERSION$e,
|
|
@@ -7323,22 +7008,22 @@ function validate$h(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
7323
7008
|
return v_error === undefined ? null : v_error;
|
|
7324
7009
|
}
|
|
7325
7010
|
const RepresentationType$9 = 'SemanticMetricOutputRepresentation';
|
|
7326
|
-
function keyBuilder$
|
|
7011
|
+
function keyBuilder$s(luvio, config) {
|
|
7327
7012
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
7328
7013
|
}
|
|
7329
7014
|
function keyBuilderFromType$3(luvio, object) {
|
|
7330
7015
|
const keyParams = {
|
|
7331
7016
|
name: object.id
|
|
7332
7017
|
};
|
|
7333
|
-
return keyBuilder$
|
|
7018
|
+
return keyBuilder$s(luvio, keyParams);
|
|
7334
7019
|
}
|
|
7335
7020
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
7336
7021
|
return input;
|
|
7337
7022
|
}
|
|
7338
|
-
const select$
|
|
7339
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
7340
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7341
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
7023
|
+
const select$t = function SemanticMetricOutputRepresentationSelect() {
|
|
7024
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$D();
|
|
7025
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$M();
|
|
7026
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$u();
|
|
7342
7027
|
return {
|
|
7343
7028
|
kind: 'Fragment',
|
|
7344
7029
|
version: VERSION$d,
|
|
@@ -7724,7 +7409,7 @@ function validate$g(obj, path = 'SemanticParameterListValueOutputRepresentation'
|
|
|
7724
7409
|
})();
|
|
7725
7410
|
return v_error === undefined ? null : v_error;
|
|
7726
7411
|
}
|
|
7727
|
-
const select$
|
|
7412
|
+
const select$s = function SemanticParameterListValueOutputRepresentationSelect() {
|
|
7728
7413
|
return {
|
|
7729
7414
|
kind: 'Fragment',
|
|
7730
7415
|
version: VERSION$c,
|
|
@@ -7918,20 +7603,20 @@ function validate$f(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
7918
7603
|
return v_error === undefined ? null : v_error;
|
|
7919
7604
|
}
|
|
7920
7605
|
const RepresentationType$8 = 'SemanticParameterOutputRepresentation';
|
|
7921
|
-
function keyBuilder$
|
|
7606
|
+
function keyBuilder$r(luvio, config) {
|
|
7922
7607
|
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7923
7608
|
}
|
|
7924
7609
|
function keyBuilderFromType$2(luvio, object) {
|
|
7925
7610
|
const keyParams = {
|
|
7926
7611
|
name: object.id
|
|
7927
7612
|
};
|
|
7928
|
-
return keyBuilder$
|
|
7613
|
+
return keyBuilder$r(luvio, keyParams);
|
|
7929
7614
|
}
|
|
7930
7615
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7931
7616
|
return input;
|
|
7932
7617
|
}
|
|
7933
|
-
const select$
|
|
7934
|
-
const { selections: SemanticParameterListValueOutputRepresentation__selections, opaque: SemanticParameterListValueOutputRepresentation__opaque, } = select$
|
|
7618
|
+
const select$r = function SemanticParameterOutputRepresentationSelect() {
|
|
7619
|
+
const { selections: SemanticParameterListValueOutputRepresentation__selections, opaque: SemanticParameterListValueOutputRepresentation__opaque, } = select$s();
|
|
7935
7620
|
return {
|
|
7936
7621
|
kind: 'Fragment',
|
|
7937
7622
|
version: VERSION$b,
|
|
@@ -8584,14 +8269,14 @@ function validate$e(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8584
8269
|
return v_error === undefined ? null : v_error;
|
|
8585
8270
|
}
|
|
8586
8271
|
const RepresentationType$7 = 'SemanticModelOutputRepresentation';
|
|
8587
|
-
function keyBuilder$
|
|
8272
|
+
function keyBuilder$q(luvio, config) {
|
|
8588
8273
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
8589
8274
|
}
|
|
8590
8275
|
function keyBuilderFromType$1(luvio, object) {
|
|
8591
8276
|
const keyParams = {
|
|
8592
8277
|
name: object.id
|
|
8593
8278
|
};
|
|
8594
|
-
return keyBuilder$
|
|
8279
|
+
return keyBuilder$q(luvio, keyParams);
|
|
8595
8280
|
}
|
|
8596
8281
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
8597
8282
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
@@ -8740,8 +8425,8 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
8740
8425
|
}
|
|
8741
8426
|
return input;
|
|
8742
8427
|
}
|
|
8743
|
-
const select$
|
|
8744
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
8428
|
+
const select$q = function SemanticModelOutputRepresentationSelect() {
|
|
8429
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$N();
|
|
8745
8430
|
return {
|
|
8746
8431
|
kind: 'Fragment',
|
|
8747
8432
|
version: VERSION$a,
|
|
@@ -8830,7 +8515,7 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8830
8515
|
kind: 'Link',
|
|
8831
8516
|
plural: true,
|
|
8832
8517
|
required: false,
|
|
8833
|
-
fragment: select$
|
|
8518
|
+
fragment: select$L()
|
|
8834
8519
|
},
|
|
8835
8520
|
{
|
|
8836
8521
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -8842,7 +8527,7 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8842
8527
|
kind: 'Link',
|
|
8843
8528
|
plural: true,
|
|
8844
8529
|
required: false,
|
|
8845
|
-
fragment: select$
|
|
8530
|
+
fragment: select$K()
|
|
8846
8531
|
},
|
|
8847
8532
|
{
|
|
8848
8533
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -8854,7 +8539,7 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8854
8539
|
kind: 'Link',
|
|
8855
8540
|
plural: true,
|
|
8856
8541
|
required: false,
|
|
8857
|
-
fragment: select$
|
|
8542
|
+
fragment: select$J()
|
|
8858
8543
|
},
|
|
8859
8544
|
{
|
|
8860
8545
|
name: 'semanticDataObjectsUrl',
|
|
@@ -8866,7 +8551,7 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8866
8551
|
kind: 'Link',
|
|
8867
8552
|
plural: true,
|
|
8868
8553
|
required: false,
|
|
8869
|
-
fragment: select$
|
|
8554
|
+
fragment: select$C()
|
|
8870
8555
|
},
|
|
8871
8556
|
{
|
|
8872
8557
|
name: 'semanticGroupingsUrl',
|
|
@@ -8878,21 +8563,21 @@ const select$p = function SemanticModelOutputRepresentationSelect() {
|
|
|
8878
8563
|
kind: 'Link',
|
|
8879
8564
|
plural: true,
|
|
8880
8565
|
required: false,
|
|
8881
|
-
fragment: select$
|
|
8566
|
+
fragment: select$x()
|
|
8882
8567
|
},
|
|
8883
8568
|
{
|
|
8884
8569
|
name: 'semanticMetrics',
|
|
8885
8570
|
kind: 'Link',
|
|
8886
8571
|
plural: true,
|
|
8887
8572
|
required: false,
|
|
8888
|
-
fragment: select$
|
|
8573
|
+
fragment: select$t()
|
|
8889
8574
|
},
|
|
8890
8575
|
{
|
|
8891
8576
|
name: 'semanticParameters',
|
|
8892
8577
|
kind: 'Link',
|
|
8893
8578
|
plural: true,
|
|
8894
8579
|
required: false,
|
|
8895
|
-
fragment: select$
|
|
8580
|
+
fragment: select$r()
|
|
8896
8581
|
},
|
|
8897
8582
|
{
|
|
8898
8583
|
name: 'semanticParametersUrl',
|
|
@@ -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$A()
|
|
8908
8593
|
},
|
|
8909
8594
|
{
|
|
8910
8595
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9423,19 +9108,19 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9423
9108
|
}
|
|
9424
9109
|
}
|
|
9425
9110
|
|
|
9426
|
-
function select$
|
|
9427
|
-
return select$
|
|
9111
|
+
function select$p(luvio, params) {
|
|
9112
|
+
return select$q();
|
|
9428
9113
|
}
|
|
9429
|
-
function getResponseCacheKeys$
|
|
9114
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
9430
9115
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
9431
9116
|
}
|
|
9432
|
-
function ingestSuccess$
|
|
9117
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
9433
9118
|
const { body } = response;
|
|
9434
9119
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9435
9120
|
luvio.storeIngest(key, ingest$7, body);
|
|
9436
9121
|
const snapshot = luvio.storeLookup({
|
|
9437
9122
|
recordId: key,
|
|
9438
|
-
node: select$
|
|
9123
|
+
node: select$p(),
|
|
9439
9124
|
variables: {},
|
|
9440
9125
|
});
|
|
9441
9126
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9446,7 +9131,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
9446
9131
|
deepFreeze(snapshot.data);
|
|
9447
9132
|
return snapshot;
|
|
9448
9133
|
}
|
|
9449
|
-
function createResourceRequest$
|
|
9134
|
+
function createResourceRequest$i(config) {
|
|
9450
9135
|
const headers = {};
|
|
9451
9136
|
return {
|
|
9452
9137
|
baseUri: '/services/data/v64.0',
|
|
@@ -9460,7 +9145,7 @@ function createResourceRequest$g(config) {
|
|
|
9460
9145
|
};
|
|
9461
9146
|
}
|
|
9462
9147
|
|
|
9463
|
-
const adapterName$
|
|
9148
|
+
const adapterName$i = 'createSemanticModel';
|
|
9464
9149
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
9465
9150
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9466
9151
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9481,11 +9166,11 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
9481
9166
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9482
9167
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9483
9168
|
];
|
|
9484
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9485
|
-
const createResourceParams$
|
|
9486
|
-
function typeCheckConfig$
|
|
9169
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, createSemanticModel_ConfigPropertyMetadata);
|
|
9170
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$k(createSemanticModel_ConfigPropertyMetadata);
|
|
9171
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
9487
9172
|
const config = {};
|
|
9488
|
-
typeCheckConfig$
|
|
9173
|
+
typeCheckConfig$k(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
9489
9174
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9490
9175
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9491
9176
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -9596,30 +9281,30 @@ function typeCheckConfig$g(untrustedConfig) {
|
|
|
9596
9281
|
}
|
|
9597
9282
|
return config;
|
|
9598
9283
|
}
|
|
9599
|
-
function validateAdapterConfig$
|
|
9284
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
9600
9285
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9601
9286
|
return null;
|
|
9602
9287
|
}
|
|
9603
9288
|
if (process.env.NODE_ENV !== 'production') {
|
|
9604
9289
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9605
9290
|
}
|
|
9606
|
-
const config = typeCheckConfig$
|
|
9291
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
9607
9292
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9608
9293
|
return null;
|
|
9609
9294
|
}
|
|
9610
9295
|
return config;
|
|
9611
9296
|
}
|
|
9612
|
-
function buildNetworkSnapshot$
|
|
9613
|
-
const resourceParams = createResourceParams$
|
|
9614
|
-
const request = createResourceRequest$
|
|
9297
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
9298
|
+
const resourceParams = createResourceParams$i(config);
|
|
9299
|
+
const request = createResourceRequest$i(resourceParams);
|
|
9615
9300
|
return luvio.dispatchResourceRequest(request, options)
|
|
9616
9301
|
.then((response) => {
|
|
9617
9302
|
return luvio.handleSuccessResponse(() => {
|
|
9618
|
-
const snapshot = ingestSuccess$
|
|
9303
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
9619
9304
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9620
9305
|
}, () => {
|
|
9621
9306
|
const cache = new StoreKeyMap();
|
|
9622
|
-
getResponseCacheKeys$
|
|
9307
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
9623
9308
|
return cache;
|
|
9624
9309
|
});
|
|
9625
9310
|
}, (response) => {
|
|
@@ -9629,12 +9314,12 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
9629
9314
|
}
|
|
9630
9315
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
9631
9316
|
return function createSemanticModel(untrustedConfig) {
|
|
9632
|
-
const config = validateAdapterConfig$
|
|
9317
|
+
const config = validateAdapterConfig$i(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
9633
9318
|
// Invalid or incomplete config
|
|
9634
9319
|
if (config === null) {
|
|
9635
9320
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
9636
9321
|
}
|
|
9637
|
-
return buildNetworkSnapshot$
|
|
9322
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
9638
9323
|
};
|
|
9639
9324
|
};
|
|
9640
9325
|
|
|
@@ -9893,19 +9578,19 @@ function validate$9(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9893
9578
|
return v_error === undefined ? null : v_error;
|
|
9894
9579
|
}
|
|
9895
9580
|
const RepresentationType$6 = 'SemanticSubMetricOutputRepresentation';
|
|
9896
|
-
function keyBuilder$
|
|
9581
|
+
function keyBuilder$p(luvio, config) {
|
|
9897
9582
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
9898
9583
|
}
|
|
9899
9584
|
function keyBuilderFromType(luvio, object) {
|
|
9900
9585
|
const keyParams = {
|
|
9901
9586
|
name: object.id
|
|
9902
9587
|
};
|
|
9903
|
-
return keyBuilder$
|
|
9588
|
+
return keyBuilder$p(luvio, keyParams);
|
|
9904
9589
|
}
|
|
9905
9590
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
9906
9591
|
return input;
|
|
9907
9592
|
}
|
|
9908
|
-
const select$
|
|
9593
|
+
const select$o = function SemanticSubMetricOutputRepresentationSelect() {
|
|
9909
9594
|
return {
|
|
9910
9595
|
kind: 'Fragment',
|
|
9911
9596
|
version: VERSION$9,
|
|
@@ -9941,19 +9626,19 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9941
9626
|
});
|
|
9942
9627
|
}
|
|
9943
9628
|
|
|
9944
|
-
function select$
|
|
9945
|
-
return select$
|
|
9629
|
+
function select$n(luvio, params) {
|
|
9630
|
+
return select$o();
|
|
9946
9631
|
}
|
|
9947
|
-
function getResponseCacheKeys$
|
|
9632
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
9948
9633
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
9949
9634
|
}
|
|
9950
|
-
function ingestSuccess$
|
|
9635
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
9951
9636
|
const { body } = response;
|
|
9952
9637
|
const key = keyBuilderFromType(luvio, body);
|
|
9953
9638
|
luvio.storeIngest(key, ingest$6, body);
|
|
9954
9639
|
const snapshot = luvio.storeLookup({
|
|
9955
9640
|
recordId: key,
|
|
9956
|
-
node: select$
|
|
9641
|
+
node: select$n(),
|
|
9957
9642
|
variables: {},
|
|
9958
9643
|
});
|
|
9959
9644
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9964,7 +9649,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
9964
9649
|
deepFreeze(snapshot.data);
|
|
9965
9650
|
return snapshot;
|
|
9966
9651
|
}
|
|
9967
|
-
function createResourceRequest$
|
|
9652
|
+
function createResourceRequest$h(config) {
|
|
9968
9653
|
const headers = {};
|
|
9969
9654
|
return {
|
|
9970
9655
|
baseUri: '/services/data/v64.0',
|
|
@@ -9978,7 +9663,7 @@ function createResourceRequest$f(config) {
|
|
|
9978
9663
|
};
|
|
9979
9664
|
}
|
|
9980
9665
|
|
|
9981
|
-
const adapterName$
|
|
9666
|
+
const adapterName$h = 'createSemanticSubMetric';
|
|
9982
9667
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
9983
9668
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9984
9669
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9990,11 +9675,11 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
9990
9675
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
9991
9676
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
9992
9677
|
];
|
|
9993
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9994
|
-
const createResourceParams$
|
|
9995
|
-
function typeCheckConfig$
|
|
9678
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9679
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$k(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9680
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
9996
9681
|
const config = {};
|
|
9997
|
-
typeCheckConfig$
|
|
9682
|
+
typeCheckConfig$k(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9998
9683
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
9999
9684
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
10000
9685
|
const untrustedConfig_filters_array = [];
|
|
@@ -10019,30 +9704,30 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
10019
9704
|
}
|
|
10020
9705
|
return config;
|
|
10021
9706
|
}
|
|
10022
|
-
function validateAdapterConfig$
|
|
9707
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
10023
9708
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10024
9709
|
return null;
|
|
10025
9710
|
}
|
|
10026
9711
|
if (process.env.NODE_ENV !== 'production') {
|
|
10027
9712
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10028
9713
|
}
|
|
10029
|
-
const config = typeCheckConfig$
|
|
9714
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
10030
9715
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10031
9716
|
return null;
|
|
10032
9717
|
}
|
|
10033
9718
|
return config;
|
|
10034
9719
|
}
|
|
10035
|
-
function buildNetworkSnapshot$
|
|
10036
|
-
const resourceParams = createResourceParams$
|
|
10037
|
-
const request = createResourceRequest$
|
|
9720
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
9721
|
+
const resourceParams = createResourceParams$h(config);
|
|
9722
|
+
const request = createResourceRequest$h(resourceParams);
|
|
10038
9723
|
return luvio.dispatchResourceRequest(request, options)
|
|
10039
9724
|
.then((response) => {
|
|
10040
9725
|
return luvio.handleSuccessResponse(() => {
|
|
10041
|
-
const snapshot = ingestSuccess$
|
|
9726
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
10042
9727
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10043
9728
|
}, () => {
|
|
10044
9729
|
const cache = new StoreKeyMap();
|
|
10045
|
-
getResponseCacheKeys$
|
|
9730
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
10046
9731
|
return cache;
|
|
10047
9732
|
});
|
|
10048
9733
|
}, (response) => {
|
|
@@ -10052,33 +9737,33 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
10052
9737
|
}
|
|
10053
9738
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
10054
9739
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
10055
|
-
const config = validateAdapterConfig$
|
|
9740
|
+
const config = validateAdapterConfig$h(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
10056
9741
|
// Invalid or incomplete config
|
|
10057
9742
|
if (config === null) {
|
|
10058
9743
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
10059
9744
|
}
|
|
10060
|
-
return buildNetworkSnapshot$
|
|
9745
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
10061
9746
|
};
|
|
10062
9747
|
};
|
|
10063
9748
|
|
|
10064
|
-
function keyBuilder$
|
|
10065
|
-
return keyBuilder$
|
|
9749
|
+
function keyBuilder$o(luvio, params) {
|
|
9750
|
+
return keyBuilder$p(luvio, {
|
|
10066
9751
|
name: params.urlParams.subMetricNameOrId
|
|
10067
9752
|
});
|
|
10068
9753
|
}
|
|
10069
|
-
function getResponseCacheKeys$
|
|
10070
|
-
const key = keyBuilder$
|
|
9754
|
+
function getResponseCacheKeys$g(cacheKeyMap, luvio, resourceParams) {
|
|
9755
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
10071
9756
|
cacheKeyMap.set(key, {
|
|
10072
9757
|
namespace: keyPrefix,
|
|
10073
9758
|
representationName: RepresentationType$6,
|
|
10074
9759
|
mergeable: false
|
|
10075
9760
|
});
|
|
10076
9761
|
}
|
|
10077
|
-
function evictSuccess$
|
|
10078
|
-
const key = keyBuilder$
|
|
9762
|
+
function evictSuccess$2(luvio, resourceParams) {
|
|
9763
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
10079
9764
|
luvio.storeEvict(key);
|
|
10080
9765
|
}
|
|
10081
|
-
function createResourceRequest$
|
|
9766
|
+
function createResourceRequest$g(config) {
|
|
10082
9767
|
const headers = {};
|
|
10083
9768
|
return {
|
|
10084
9769
|
baseUri: '/services/data/v64.0',
|
|
@@ -10092,42 +9777,42 @@ function createResourceRequest$e(config) {
|
|
|
10092
9777
|
};
|
|
10093
9778
|
}
|
|
10094
9779
|
|
|
10095
|
-
const adapterName$
|
|
9780
|
+
const adapterName$g = 'deleteGoalFromSubMetric';
|
|
10096
9781
|
const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
10097
9782
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10098
9783
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10099
9784
|
];
|
|
10100
|
-
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10101
|
-
const createResourceParams$
|
|
10102
|
-
function typeCheckConfig$
|
|
9785
|
+
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9786
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$k(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9787
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
10103
9788
|
const config = {};
|
|
10104
|
-
typeCheckConfig$
|
|
9789
|
+
typeCheckConfig$k(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
10105
9790
|
return config;
|
|
10106
9791
|
}
|
|
10107
|
-
function validateAdapterConfig$
|
|
9792
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
10108
9793
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10109
9794
|
return null;
|
|
10110
9795
|
}
|
|
10111
9796
|
if (process.env.NODE_ENV !== 'production') {
|
|
10112
9797
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10113
9798
|
}
|
|
10114
|
-
const config = typeCheckConfig$
|
|
9799
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
10115
9800
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10116
9801
|
return null;
|
|
10117
9802
|
}
|
|
10118
9803
|
return config;
|
|
10119
9804
|
}
|
|
10120
|
-
function buildNetworkSnapshot$
|
|
10121
|
-
const resourceParams = createResourceParams$
|
|
10122
|
-
const request = createResourceRequest$
|
|
9805
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
9806
|
+
const resourceParams = createResourceParams$g(config);
|
|
9807
|
+
const request = createResourceRequest$g(resourceParams);
|
|
10123
9808
|
return luvio.dispatchResourceRequest(request, options)
|
|
10124
9809
|
.then(() => {
|
|
10125
9810
|
return luvio.handleSuccessResponse(() => {
|
|
10126
|
-
evictSuccess$
|
|
9811
|
+
evictSuccess$2(luvio, resourceParams);
|
|
10127
9812
|
return luvio.storeBroadcast();
|
|
10128
9813
|
}, () => {
|
|
10129
9814
|
const cache = new StoreKeyMap();
|
|
10130
|
-
getResponseCacheKeys$
|
|
9815
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams);
|
|
10131
9816
|
return cache;
|
|
10132
9817
|
});
|
|
10133
9818
|
}, (response) => {
|
|
@@ -10137,21 +9822,110 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
10137
9822
|
}
|
|
10138
9823
|
const deleteGoalFromSubMetricAdapterFactory = (luvio) => {
|
|
10139
9824
|
return function SemanticAuthoringdeleteGoalFromSubMetric(untrustedConfig) {
|
|
10140
|
-
const config = validateAdapterConfig$
|
|
9825
|
+
const config = validateAdapterConfig$g(untrustedConfig, deleteGoalFromSubMetric_ConfigPropertyNames);
|
|
10141
9826
|
// Invalid or incomplete config
|
|
10142
9827
|
if (config === null) {
|
|
10143
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
9828
|
+
throw new Error(`Invalid config for "${adapterName$g}"`);
|
|
10144
9829
|
}
|
|
10145
|
-
return buildNetworkSnapshot$
|
|
9830
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
9831
|
+
};
|
|
9832
|
+
};
|
|
9833
|
+
|
|
9834
|
+
function keyBuilder$n(luvio, params) {
|
|
9835
|
+
return keyBuilder$B(luvio, {
|
|
9836
|
+
subMetricNameOrId: params.queryParams.subMetricApiNameOrId,
|
|
9837
|
+
startDate: params.queryParams.startDate,
|
|
9838
|
+
endDate: params.queryParams.endDate
|
|
9839
|
+
});
|
|
9840
|
+
}
|
|
9841
|
+
function getResponseCacheKeys$f(cacheKeyMap, luvio, resourceParams) {
|
|
9842
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
9843
|
+
cacheKeyMap.set(key, {
|
|
9844
|
+
namespace: keyPrefix,
|
|
9845
|
+
representationName: RepresentationType$i,
|
|
9846
|
+
mergeable: false
|
|
9847
|
+
});
|
|
9848
|
+
}
|
|
9849
|
+
function evictSuccess$1(luvio, resourceParams) {
|
|
9850
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
9851
|
+
luvio.storeEvict(key);
|
|
9852
|
+
}
|
|
9853
|
+
function createResourceRequest$f(config) {
|
|
9854
|
+
const headers = {};
|
|
9855
|
+
return {
|
|
9856
|
+
baseUri: '/services/data/v64.0',
|
|
9857
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/goals',
|
|
9858
|
+
method: 'delete',
|
|
9859
|
+
body: null,
|
|
9860
|
+
urlParams: config.urlParams,
|
|
9861
|
+
queryParams: config.queryParams,
|
|
9862
|
+
headers,
|
|
9863
|
+
priority: 'normal',
|
|
9864
|
+
};
|
|
9865
|
+
}
|
|
9866
|
+
|
|
9867
|
+
const adapterName$f = 'deleteSemanticGoal';
|
|
9868
|
+
const deleteSemanticGoal_ConfigPropertyMetadata = [
|
|
9869
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9870
|
+
generateParamConfigMetadata('endDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
9871
|
+
generateParamConfigMetadata('startDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
9872
|
+
generateParamConfigMetadata('subMetricApiNameOrId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
9873
|
+
];
|
|
9874
|
+
const deleteSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, deleteSemanticGoal_ConfigPropertyMetadata);
|
|
9875
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$k(deleteSemanticGoal_ConfigPropertyMetadata);
|
|
9876
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
9877
|
+
const config = {};
|
|
9878
|
+
typeCheckConfig$k(untrustedConfig, config, deleteSemanticGoal_ConfigPropertyMetadata);
|
|
9879
|
+
return config;
|
|
9880
|
+
}
|
|
9881
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
9882
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9883
|
+
return null;
|
|
9884
|
+
}
|
|
9885
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9886
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9887
|
+
}
|
|
9888
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
9889
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9890
|
+
return null;
|
|
9891
|
+
}
|
|
9892
|
+
return config;
|
|
9893
|
+
}
|
|
9894
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
9895
|
+
const resourceParams = createResourceParams$f(config);
|
|
9896
|
+
const request = createResourceRequest$f(resourceParams);
|
|
9897
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9898
|
+
.then(() => {
|
|
9899
|
+
return luvio.handleSuccessResponse(() => {
|
|
9900
|
+
evictSuccess$1(luvio, resourceParams);
|
|
9901
|
+
return luvio.storeBroadcast();
|
|
9902
|
+
}, () => {
|
|
9903
|
+
const cache = new StoreKeyMap();
|
|
9904
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams);
|
|
9905
|
+
return cache;
|
|
9906
|
+
});
|
|
9907
|
+
}, (response) => {
|
|
9908
|
+
deepFreeze(response);
|
|
9909
|
+
throw response;
|
|
9910
|
+
});
|
|
9911
|
+
}
|
|
9912
|
+
const deleteSemanticGoalAdapterFactory = (luvio) => {
|
|
9913
|
+
return function SemanticAuthoringdeleteSemanticGoal(untrustedConfig) {
|
|
9914
|
+
const config = validateAdapterConfig$f(untrustedConfig, deleteSemanticGoal_ConfigPropertyNames);
|
|
9915
|
+
// Invalid or incomplete config
|
|
9916
|
+
if (config === null) {
|
|
9917
|
+
throw new Error(`Invalid config for "${adapterName$f}"`);
|
|
9918
|
+
}
|
|
9919
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
10146
9920
|
};
|
|
10147
9921
|
};
|
|
10148
9922
|
|
|
10149
9923
|
function keyBuilder$m(luvio, params) {
|
|
10150
|
-
return keyBuilder$
|
|
9924
|
+
return keyBuilder$p(luvio, {
|
|
10151
9925
|
name: params.urlParams.subMetricNameOrId
|
|
10152
9926
|
});
|
|
10153
9927
|
}
|
|
10154
|
-
function getResponseCacheKeys$
|
|
9928
|
+
function getResponseCacheKeys$e(cacheKeyMap, luvio, resourceParams) {
|
|
10155
9929
|
const key = keyBuilder$m(luvio, resourceParams);
|
|
10156
9930
|
cacheKeyMap.set(key, {
|
|
10157
9931
|
namespace: keyPrefix,
|
|
@@ -10163,7 +9937,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
10163
9937
|
const key = keyBuilder$m(luvio, resourceParams);
|
|
10164
9938
|
luvio.storeEvict(key);
|
|
10165
9939
|
}
|
|
10166
|
-
function createResourceRequest$
|
|
9940
|
+
function createResourceRequest$e(config) {
|
|
10167
9941
|
const headers = {};
|
|
10168
9942
|
return {
|
|
10169
9943
|
baseUri: '/services/data/v64.0',
|
|
@@ -10177,34 +9951,34 @@ function createResourceRequest$d(config) {
|
|
|
10177
9951
|
};
|
|
10178
9952
|
}
|
|
10179
9953
|
|
|
10180
|
-
const adapterName$
|
|
9954
|
+
const adapterName$e = 'deleteSemanticSubMetric';
|
|
10181
9955
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
10182
9956
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10183
9957
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10184
9958
|
];
|
|
10185
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10186
|
-
const createResourceParams$
|
|
10187
|
-
function typeCheckConfig$
|
|
9959
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9960
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$k(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9961
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
10188
9962
|
const config = {};
|
|
10189
|
-
typeCheckConfig$
|
|
9963
|
+
typeCheckConfig$k(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
10190
9964
|
return config;
|
|
10191
9965
|
}
|
|
10192
|
-
function validateAdapterConfig$
|
|
9966
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
10193
9967
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10194
9968
|
return null;
|
|
10195
9969
|
}
|
|
10196
9970
|
if (process.env.NODE_ENV !== 'production') {
|
|
10197
9971
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10198
9972
|
}
|
|
10199
|
-
const config = typeCheckConfig$
|
|
9973
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
10200
9974
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10201
9975
|
return null;
|
|
10202
9976
|
}
|
|
10203
9977
|
return config;
|
|
10204
9978
|
}
|
|
10205
|
-
function buildNetworkSnapshot$
|
|
10206
|
-
const resourceParams = createResourceParams$
|
|
10207
|
-
const request = createResourceRequest$
|
|
9979
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
9980
|
+
const resourceParams = createResourceParams$e(config);
|
|
9981
|
+
const request = createResourceRequest$e(resourceParams);
|
|
10208
9982
|
return luvio.dispatchResourceRequest(request, options)
|
|
10209
9983
|
.then(() => {
|
|
10210
9984
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -10212,7 +9986,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
10212
9986
|
return luvio.storeBroadcast();
|
|
10213
9987
|
}, () => {
|
|
10214
9988
|
const cache = new StoreKeyMap();
|
|
10215
|
-
getResponseCacheKeys$
|
|
9989
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams);
|
|
10216
9990
|
return cache;
|
|
10217
9991
|
});
|
|
10218
9992
|
}, (response) => {
|
|
@@ -10222,12 +9996,12 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
10222
9996
|
}
|
|
10223
9997
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
10224
9998
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
10225
|
-
const config = validateAdapterConfig$
|
|
9999
|
+
const config = validateAdapterConfig$e(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
10226
10000
|
// Invalid or incomplete config
|
|
10227
10001
|
if (config === null) {
|
|
10228
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
10002
|
+
throw new Error(`Invalid config for "${adapterName$e}"`);
|
|
10229
10003
|
}
|
|
10230
|
-
return buildNetworkSnapshot$
|
|
10004
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
10231
10005
|
};
|
|
10232
10006
|
};
|
|
10233
10007
|
|
|
@@ -10266,7 +10040,7 @@ function validate$8(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
|
10266
10040
|
})();
|
|
10267
10041
|
return v_error === undefined ? null : v_error;
|
|
10268
10042
|
}
|
|
10269
|
-
const select$
|
|
10043
|
+
const select$m = function SemanticDependencyOutputRepresentationSelect() {
|
|
10270
10044
|
return {
|
|
10271
10045
|
kind: 'Fragment',
|
|
10272
10046
|
version: VERSION$8,
|
|
@@ -10382,8 +10156,8 @@ function validate$7(obj, path = 'SemanticDependencyInnerCollectionOutputRepresen
|
|
|
10382
10156
|
})();
|
|
10383
10157
|
return v_error === undefined ? null : v_error;
|
|
10384
10158
|
}
|
|
10385
|
-
const select$
|
|
10386
|
-
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$
|
|
10159
|
+
const select$l = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
10160
|
+
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$m();
|
|
10387
10161
|
return {
|
|
10388
10162
|
kind: 'Fragment',
|
|
10389
10163
|
version: VERSION$7,
|
|
@@ -10487,8 +10261,8 @@ const RepresentationType$5 = 'SemanticDependencyCollectionOutputRepresentation';
|
|
|
10487
10261
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
10488
10262
|
return input;
|
|
10489
10263
|
}
|
|
10490
|
-
const select$
|
|
10491
|
-
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$
|
|
10264
|
+
const select$k = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
10265
|
+
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$l();
|
|
10492
10266
|
return {
|
|
10493
10267
|
kind: 'Fragment',
|
|
10494
10268
|
version: VERSION$6,
|
|
@@ -10547,22 +10321,22 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10547
10321
|
});
|
|
10548
10322
|
}
|
|
10549
10323
|
|
|
10550
|
-
function select$
|
|
10551
|
-
return select$
|
|
10324
|
+
function select$j(luvio, params) {
|
|
10325
|
+
return select$k();
|
|
10552
10326
|
}
|
|
10553
10327
|
function keyBuilder$l(luvio, params) {
|
|
10554
10328
|
return keyPrefix + '::SemanticDependencyCollectionOutputRepresentation:(' + 'types:' + params.queryParams.types + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10555
10329
|
}
|
|
10556
|
-
function getResponseCacheKeys$
|
|
10330
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
10557
10331
|
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
|
|
10558
10332
|
}
|
|
10559
|
-
function ingestSuccess$
|
|
10333
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
10560
10334
|
const { body } = response;
|
|
10561
10335
|
const key = keyBuilder$l(luvio, resourceParams);
|
|
10562
10336
|
luvio.storeIngest(key, ingest$5, body);
|
|
10563
10337
|
const snapshot = luvio.storeLookup({
|
|
10564
10338
|
recordId: key,
|
|
10565
|
-
node: select$
|
|
10339
|
+
node: select$j(),
|
|
10566
10340
|
variables: {},
|
|
10567
10341
|
}, snapshotRefresh);
|
|
10568
10342
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10579,7 +10353,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
10579
10353
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10580
10354
|
return errorSnapshot;
|
|
10581
10355
|
}
|
|
10582
|
-
function createResourceRequest$
|
|
10356
|
+
function createResourceRequest$d(config) {
|
|
10583
10357
|
const headers = {};
|
|
10584
10358
|
return {
|
|
10585
10359
|
baseUri: '/services/data/v64.0',
|
|
@@ -10593,61 +10367,61 @@ function createResourceRequest$c(config) {
|
|
|
10593
10367
|
};
|
|
10594
10368
|
}
|
|
10595
10369
|
|
|
10596
|
-
const adapterName$
|
|
10370
|
+
const adapterName$d = 'getLeafDependenciesByTypes';
|
|
10597
10371
|
const getLeafDependenciesByTypes_ConfigPropertyMetadata = [
|
|
10598
10372
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10599
10373
|
generateParamConfigMetadata('types', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
10600
10374
|
];
|
|
10601
|
-
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10602
|
-
const createResourceParams$
|
|
10375
|
+
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10376
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$k(getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10603
10377
|
function keyBuilder$k(luvio, config) {
|
|
10604
|
-
const resourceParams = createResourceParams$
|
|
10378
|
+
const resourceParams = createResourceParams$d(config);
|
|
10605
10379
|
return keyBuilder$l(luvio, resourceParams);
|
|
10606
10380
|
}
|
|
10607
|
-
function typeCheckConfig$
|
|
10381
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
10608
10382
|
const config = {};
|
|
10609
|
-
typeCheckConfig$
|
|
10383
|
+
typeCheckConfig$k(untrustedConfig, config, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10610
10384
|
return config;
|
|
10611
10385
|
}
|
|
10612
|
-
function validateAdapterConfig$
|
|
10386
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
10613
10387
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10614
10388
|
return null;
|
|
10615
10389
|
}
|
|
10616
10390
|
if (process.env.NODE_ENV !== 'production') {
|
|
10617
10391
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10618
10392
|
}
|
|
10619
|
-
const config = typeCheckConfig$
|
|
10393
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
10620
10394
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10621
10395
|
return null;
|
|
10622
10396
|
}
|
|
10623
10397
|
return config;
|
|
10624
10398
|
}
|
|
10625
10399
|
function adapterFragment$a(luvio, config) {
|
|
10626
|
-
createResourceParams$
|
|
10627
|
-
return select$
|
|
10400
|
+
createResourceParams$d(config);
|
|
10401
|
+
return select$j();
|
|
10628
10402
|
}
|
|
10629
10403
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
10630
|
-
const snapshot = ingestSuccess$
|
|
10404
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
10631
10405
|
config,
|
|
10632
|
-
resolve: () => buildNetworkSnapshot$
|
|
10406
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
10633
10407
|
});
|
|
10634
10408
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10635
10409
|
}
|
|
10636
10410
|
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
10637
10411
|
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
10638
10412
|
config,
|
|
10639
|
-
resolve: () => buildNetworkSnapshot$
|
|
10413
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
10640
10414
|
});
|
|
10641
10415
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10642
10416
|
}
|
|
10643
|
-
function buildNetworkSnapshot$
|
|
10644
|
-
const resourceParams = createResourceParams$
|
|
10645
|
-
const request = createResourceRequest$
|
|
10417
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
10418
|
+
const resourceParams = createResourceParams$d(config);
|
|
10419
|
+
const request = createResourceRequest$d(resourceParams);
|
|
10646
10420
|
return luvio.dispatchResourceRequest(request, options)
|
|
10647
10421
|
.then((response) => {
|
|
10648
10422
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
10649
10423
|
const cache = new StoreKeyMap();
|
|
10650
|
-
getResponseCacheKeys$
|
|
10424
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
10651
10425
|
return cache;
|
|
10652
10426
|
});
|
|
10653
10427
|
}, (response) => {
|
|
@@ -10655,7 +10429,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
10655
10429
|
});
|
|
10656
10430
|
}
|
|
10657
10431
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
10658
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10432
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
10659
10433
|
}
|
|
10660
10434
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
10661
10435
|
const { luvio, config } = context;
|
|
@@ -10666,12 +10440,12 @@ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
|
10666
10440
|
};
|
|
10667
10441
|
const cacheSnapshot = storeLookup(selector, {
|
|
10668
10442
|
config,
|
|
10669
|
-
resolve: () => buildNetworkSnapshot$
|
|
10443
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
10670
10444
|
});
|
|
10671
10445
|
return cacheSnapshot;
|
|
10672
10446
|
}
|
|
10673
10447
|
const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAuthoring__getLeafDependenciesByTypes(untrustedConfig, requestContext) {
|
|
10674
|
-
const config = validateAdapterConfig$
|
|
10448
|
+
const config = validateAdapterConfig$d(untrustedConfig, getLeafDependenciesByTypes_ConfigPropertyNames);
|
|
10675
10449
|
// Invalid or incomplete config
|
|
10676
10450
|
if (config === null) {
|
|
10677
10451
|
return null;
|
|
@@ -10680,24 +10454,26 @@ const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAut
|
|
|
10680
10454
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
10681
10455
|
};
|
|
10682
10456
|
|
|
10683
|
-
function select$
|
|
10684
|
-
return select$
|
|
10457
|
+
function select$i(luvio, params) {
|
|
10458
|
+
return select$P();
|
|
10685
10459
|
}
|
|
10686
10460
|
function keyBuilder$j(luvio, params) {
|
|
10687
|
-
return keyBuilder$
|
|
10688
|
-
|
|
10461
|
+
return keyBuilder$B(luvio, {
|
|
10462
|
+
subMetricNameOrId: params.queryParams.subMetricApiNameOrId,
|
|
10463
|
+
startDate: params.queryParams.startDate,
|
|
10464
|
+
endDate: params.queryParams.endDate
|
|
10689
10465
|
});
|
|
10690
10466
|
}
|
|
10691
|
-
function getResponseCacheKeys$
|
|
10467
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
10692
10468
|
getTypeCacheKeys$i(storeKeyMap, luvio, response);
|
|
10693
10469
|
}
|
|
10694
|
-
function ingestSuccess$
|
|
10470
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
10695
10471
|
const { body } = response;
|
|
10696
10472
|
const key = keyBuilder$j(luvio, resourceParams);
|
|
10697
10473
|
luvio.storeIngest(key, ingest$i, body);
|
|
10698
10474
|
const snapshot = luvio.storeLookup({
|
|
10699
10475
|
recordId: key,
|
|
10700
|
-
node: select$
|
|
10476
|
+
node: select$i(),
|
|
10701
10477
|
variables: {},
|
|
10702
10478
|
}, snapshotRefresh);
|
|
10703
10479
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10714,7 +10490,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
10714
10490
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10715
10491
|
return errorSnapshot;
|
|
10716
10492
|
}
|
|
10717
|
-
function createResourceRequest$
|
|
10493
|
+
function createResourceRequest$c(config) {
|
|
10718
10494
|
const headers = {};
|
|
10719
10495
|
return {
|
|
10720
10496
|
baseUri: '/services/data/v64.0',
|
|
@@ -10732,67 +10508,69 @@ function createResourceRequestFromRepresentation$3(representation) {
|
|
|
10732
10508
|
urlParams: {},
|
|
10733
10509
|
queryParams: {},
|
|
10734
10510
|
};
|
|
10735
|
-
config.
|
|
10736
|
-
|
|
10511
|
+
config.queryParams.subMetricApiNameOrId = representation.subMetricDefinitionApiName;
|
|
10512
|
+
config.queryParams.startDate = representation.dateRange.startDate;
|
|
10513
|
+
config.queryParams.endDate = representation.dateRange.endDate;
|
|
10514
|
+
return createResourceRequest$c(config);
|
|
10737
10515
|
}
|
|
10738
10516
|
|
|
10739
|
-
const adapterName$
|
|
10517
|
+
const adapterName$c = 'getSemanticGoal';
|
|
10740
10518
|
const getSemanticGoal_ConfigPropertyMetadata = [
|
|
10741
10519
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10742
|
-
generateParamConfigMetadata('endDate',
|
|
10743
|
-
generateParamConfigMetadata('startDate',
|
|
10744
|
-
generateParamConfigMetadata('subMetricApiNameOrId',
|
|
10520
|
+
generateParamConfigMetadata('endDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
10521
|
+
generateParamConfigMetadata('startDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
10522
|
+
generateParamConfigMetadata('subMetricApiNameOrId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
10745
10523
|
];
|
|
10746
|
-
const getSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10747
|
-
const createResourceParams$
|
|
10524
|
+
const getSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSemanticGoal_ConfigPropertyMetadata);
|
|
10525
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$k(getSemanticGoal_ConfigPropertyMetadata);
|
|
10748
10526
|
function keyBuilder$i(luvio, config) {
|
|
10749
|
-
const resourceParams = createResourceParams$
|
|
10527
|
+
const resourceParams = createResourceParams$c(config);
|
|
10750
10528
|
return keyBuilder$j(luvio, resourceParams);
|
|
10751
10529
|
}
|
|
10752
|
-
function typeCheckConfig$
|
|
10530
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
10753
10531
|
const config = {};
|
|
10754
|
-
typeCheckConfig$
|
|
10532
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticGoal_ConfigPropertyMetadata);
|
|
10755
10533
|
return config;
|
|
10756
10534
|
}
|
|
10757
|
-
function validateAdapterConfig$
|
|
10535
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
10758
10536
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10759
10537
|
return null;
|
|
10760
10538
|
}
|
|
10761
10539
|
if (process.env.NODE_ENV !== 'production') {
|
|
10762
10540
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10763
10541
|
}
|
|
10764
|
-
const config = typeCheckConfig$
|
|
10542
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
10765
10543
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10766
10544
|
return null;
|
|
10767
10545
|
}
|
|
10768
10546
|
return config;
|
|
10769
10547
|
}
|
|
10770
10548
|
function adapterFragment$9(luvio, config) {
|
|
10771
|
-
createResourceParams$
|
|
10772
|
-
return select$
|
|
10549
|
+
createResourceParams$c(config);
|
|
10550
|
+
return select$i();
|
|
10773
10551
|
}
|
|
10774
10552
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
10775
|
-
const snapshot = ingestSuccess$
|
|
10553
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
10776
10554
|
config,
|
|
10777
|
-
resolve: () => buildNetworkSnapshot$
|
|
10555
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10778
10556
|
});
|
|
10779
10557
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10780
10558
|
}
|
|
10781
10559
|
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
10782
10560
|
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
10783
10561
|
config,
|
|
10784
|
-
resolve: () => buildNetworkSnapshot$
|
|
10562
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10785
10563
|
});
|
|
10786
10564
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10787
10565
|
}
|
|
10788
|
-
function buildNetworkSnapshot$
|
|
10789
|
-
const resourceParams = createResourceParams$
|
|
10790
|
-
const request = createResourceRequest$
|
|
10566
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
10567
|
+
const resourceParams = createResourceParams$c(config);
|
|
10568
|
+
const request = createResourceRequest$c(resourceParams);
|
|
10791
10569
|
return luvio.dispatchResourceRequest(request, options)
|
|
10792
10570
|
.then((response) => {
|
|
10793
10571
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
10794
10572
|
const cache = new StoreKeyMap();
|
|
10795
|
-
getResponseCacheKeys$
|
|
10573
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
10796
10574
|
return cache;
|
|
10797
10575
|
});
|
|
10798
10576
|
}, (response) => {
|
|
@@ -10800,7 +10578,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
10800
10578
|
});
|
|
10801
10579
|
}
|
|
10802
10580
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
10803
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10581
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
10804
10582
|
}
|
|
10805
10583
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
10806
10584
|
const { luvio, config } = context;
|
|
@@ -10811,12 +10589,12 @@ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
|
10811
10589
|
};
|
|
10812
10590
|
const cacheSnapshot = storeLookup(selector, {
|
|
10813
10591
|
config,
|
|
10814
|
-
resolve: () => buildNetworkSnapshot$
|
|
10592
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10815
10593
|
});
|
|
10816
10594
|
return cacheSnapshot;
|
|
10817
10595
|
}
|
|
10818
10596
|
const getSemanticGoalAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticGoal(untrustedConfig, requestContext) {
|
|
10819
|
-
const config = validateAdapterConfig$
|
|
10597
|
+
const config = validateAdapterConfig$c(untrustedConfig, getSemanticGoal_ConfigPropertyNames);
|
|
10820
10598
|
// Invalid or incomplete config
|
|
10821
10599
|
if (config === null) {
|
|
10822
10600
|
return null;
|
|
@@ -10826,7 +10604,7 @@ const getSemanticGoalAdapterFactory = (luvio) => function SemanticAuthoring__get
|
|
|
10826
10604
|
};
|
|
10827
10605
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
10828
10606
|
return function getSsotSemanticModelsGoalsByModelApiNameOrIdNotifyChange(configs) {
|
|
10829
|
-
const keys = configs.map(c => keyBuilder$
|
|
10607
|
+
const keys = configs.map(c => keyBuilder$B(luvio, c));
|
|
10830
10608
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
10831
10609
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
10832
10610
|
const { key, record: val } = entries[i];
|
|
@@ -10854,24 +10632,24 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
10854
10632
|
};
|
|
10855
10633
|
};
|
|
10856
10634
|
|
|
10857
|
-
function select$
|
|
10858
|
-
return select$
|
|
10635
|
+
function select$h(luvio, params) {
|
|
10636
|
+
return select$t();
|
|
10859
10637
|
}
|
|
10860
10638
|
function keyBuilder$h(luvio, params) {
|
|
10861
|
-
return keyBuilder$
|
|
10639
|
+
return keyBuilder$s(luvio, {
|
|
10862
10640
|
name: params.urlParams.metricNameOrId
|
|
10863
10641
|
});
|
|
10864
10642
|
}
|
|
10865
|
-
function getResponseCacheKeys$
|
|
10643
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
10866
10644
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
10867
10645
|
}
|
|
10868
|
-
function ingestSuccess$
|
|
10646
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
10869
10647
|
const { body } = response;
|
|
10870
10648
|
const key = keyBuilder$h(luvio, resourceParams);
|
|
10871
10649
|
luvio.storeIngest(key, ingest$9, body);
|
|
10872
10650
|
const snapshot = luvio.storeLookup({
|
|
10873
10651
|
recordId: key,
|
|
10874
|
-
node: select$
|
|
10652
|
+
node: select$h(),
|
|
10875
10653
|
variables: {},
|
|
10876
10654
|
}, snapshotRefresh);
|
|
10877
10655
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10888,7 +10666,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
10888
10666
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10889
10667
|
return errorSnapshot;
|
|
10890
10668
|
}
|
|
10891
|
-
function createResourceRequest$
|
|
10669
|
+
function createResourceRequest$b(config) {
|
|
10892
10670
|
const headers = {};
|
|
10893
10671
|
return {
|
|
10894
10672
|
baseUri: '/services/data/v64.0',
|
|
@@ -10906,64 +10684,64 @@ function createResourceRequestFromRepresentation$2(representation) {
|
|
|
10906
10684
|
urlParams: {},
|
|
10907
10685
|
};
|
|
10908
10686
|
config.urlParams.metricNameOrId = representation.id;
|
|
10909
|
-
return createResourceRequest$
|
|
10687
|
+
return createResourceRequest$b(config);
|
|
10910
10688
|
}
|
|
10911
10689
|
|
|
10912
|
-
const adapterName$
|
|
10690
|
+
const adapterName$b = 'getSemanticMetric';
|
|
10913
10691
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
10914
10692
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10915
10693
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10916
10694
|
];
|
|
10917
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10918
|
-
const createResourceParams$
|
|
10695
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSemanticMetric_ConfigPropertyMetadata);
|
|
10696
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$k(getSemanticMetric_ConfigPropertyMetadata);
|
|
10919
10697
|
function keyBuilder$g(luvio, config) {
|
|
10920
|
-
const resourceParams = createResourceParams$
|
|
10698
|
+
const resourceParams = createResourceParams$b(config);
|
|
10921
10699
|
return keyBuilder$h(luvio, resourceParams);
|
|
10922
10700
|
}
|
|
10923
|
-
function typeCheckConfig$
|
|
10701
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
10924
10702
|
const config = {};
|
|
10925
|
-
typeCheckConfig$
|
|
10703
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
10926
10704
|
return config;
|
|
10927
10705
|
}
|
|
10928
|
-
function validateAdapterConfig$
|
|
10706
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
10929
10707
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10930
10708
|
return null;
|
|
10931
10709
|
}
|
|
10932
10710
|
if (process.env.NODE_ENV !== 'production') {
|
|
10933
10711
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10934
10712
|
}
|
|
10935
|
-
const config = typeCheckConfig$
|
|
10713
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
10936
10714
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10937
10715
|
return null;
|
|
10938
10716
|
}
|
|
10939
10717
|
return config;
|
|
10940
10718
|
}
|
|
10941
10719
|
function adapterFragment$8(luvio, config) {
|
|
10942
|
-
createResourceParams$
|
|
10943
|
-
return select$
|
|
10720
|
+
createResourceParams$b(config);
|
|
10721
|
+
return select$h();
|
|
10944
10722
|
}
|
|
10945
10723
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
10946
|
-
const snapshot = ingestSuccess$
|
|
10724
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
10947
10725
|
config,
|
|
10948
|
-
resolve: () => buildNetworkSnapshot$
|
|
10726
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
10949
10727
|
});
|
|
10950
10728
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10951
10729
|
}
|
|
10952
10730
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
10953
10731
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
10954
10732
|
config,
|
|
10955
|
-
resolve: () => buildNetworkSnapshot$
|
|
10733
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
10956
10734
|
});
|
|
10957
10735
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10958
10736
|
}
|
|
10959
|
-
function buildNetworkSnapshot$
|
|
10960
|
-
const resourceParams = createResourceParams$
|
|
10961
|
-
const request = createResourceRequest$
|
|
10737
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
10738
|
+
const resourceParams = createResourceParams$b(config);
|
|
10739
|
+
const request = createResourceRequest$b(resourceParams);
|
|
10962
10740
|
return luvio.dispatchResourceRequest(request, options)
|
|
10963
10741
|
.then((response) => {
|
|
10964
10742
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
10965
10743
|
const cache = new StoreKeyMap();
|
|
10966
|
-
getResponseCacheKeys$
|
|
10744
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
10967
10745
|
return cache;
|
|
10968
10746
|
});
|
|
10969
10747
|
}, (response) => {
|
|
@@ -10971,7 +10749,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
10971
10749
|
});
|
|
10972
10750
|
}
|
|
10973
10751
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
10974
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10752
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
10975
10753
|
}
|
|
10976
10754
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
10977
10755
|
const { luvio, config } = context;
|
|
@@ -10982,12 +10760,12 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
10982
10760
|
};
|
|
10983
10761
|
const cacheSnapshot = storeLookup(selector, {
|
|
10984
10762
|
config,
|
|
10985
|
-
resolve: () => buildNetworkSnapshot$
|
|
10763
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
10986
10764
|
});
|
|
10987
10765
|
return cacheSnapshot;
|
|
10988
10766
|
}
|
|
10989
10767
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
10990
|
-
const config = validateAdapterConfig$
|
|
10768
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
10991
10769
|
// Invalid or incomplete config
|
|
10992
10770
|
if (config === null) {
|
|
10993
10771
|
return null;
|
|
@@ -10997,7 +10775,7 @@ const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
10997
10775
|
};
|
|
10998
10776
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
10999
10777
|
return function getSsotSemanticModelsMetricsByMetricNameOrIdAndModelApiNameOrIdNotifyChange(configs) {
|
|
11000
|
-
const keys = configs.map(c => keyBuilder$
|
|
10778
|
+
const keys = configs.map(c => keyBuilder$s(luvio, c));
|
|
11001
10779
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
11002
10780
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
11003
10781
|
const { key, record: val } = entries[i];
|
|
@@ -11070,7 +10848,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
11070
10848
|
}
|
|
11071
10849
|
return input;
|
|
11072
10850
|
}
|
|
11073
|
-
const select$
|
|
10851
|
+
const select$g = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
11074
10852
|
return {
|
|
11075
10853
|
kind: 'Fragment',
|
|
11076
10854
|
version: VERSION$5,
|
|
@@ -11081,7 +10859,7 @@ const select$f = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
11081
10859
|
kind: 'Link',
|
|
11082
10860
|
plural: true,
|
|
11083
10861
|
required: false,
|
|
11084
|
-
fragment: select$
|
|
10862
|
+
fragment: select$t()
|
|
11085
10863
|
}
|
|
11086
10864
|
]
|
|
11087
10865
|
};
|
|
@@ -11135,22 +10913,22 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11135
10913
|
}
|
|
11136
10914
|
}
|
|
11137
10915
|
|
|
11138
|
-
function select$
|
|
11139
|
-
return select$
|
|
10916
|
+
function select$f(luvio, params) {
|
|
10917
|
+
return select$g();
|
|
11140
10918
|
}
|
|
11141
10919
|
function keyBuilder$f(luvio, params) {
|
|
11142
10920
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11143
10921
|
}
|
|
11144
|
-
function getResponseCacheKeys$
|
|
10922
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
11145
10923
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
11146
10924
|
}
|
|
11147
|
-
function ingestSuccess$
|
|
10925
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
11148
10926
|
const { body } = response;
|
|
11149
10927
|
const key = keyBuilder$f(luvio, resourceParams);
|
|
11150
10928
|
luvio.storeIngest(key, ingest$4, body);
|
|
11151
10929
|
const snapshot = luvio.storeLookup({
|
|
11152
10930
|
recordId: key,
|
|
11153
|
-
node: select$
|
|
10931
|
+
node: select$f(),
|
|
11154
10932
|
variables: {},
|
|
11155
10933
|
}, snapshotRefresh);
|
|
11156
10934
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11167,7 +10945,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
11167
10945
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11168
10946
|
return errorSnapshot;
|
|
11169
10947
|
}
|
|
11170
|
-
function createResourceRequest$
|
|
10948
|
+
function createResourceRequest$a(config) {
|
|
11171
10949
|
const headers = {};
|
|
11172
10950
|
return {
|
|
11173
10951
|
baseUri: '/services/data/v64.0',
|
|
@@ -11181,60 +10959,60 @@ function createResourceRequest$9(config) {
|
|
|
11181
10959
|
};
|
|
11182
10960
|
}
|
|
11183
10961
|
|
|
11184
|
-
const adapterName$
|
|
10962
|
+
const adapterName$a = 'getSemanticMetrics';
|
|
11185
10963
|
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
11186
10964
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11187
10965
|
];
|
|
11188
|
-
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11189
|
-
const createResourceParams$
|
|
10966
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSemanticMetrics_ConfigPropertyMetadata);
|
|
10967
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$k(getSemanticMetrics_ConfigPropertyMetadata);
|
|
11190
10968
|
function keyBuilder$e(luvio, config) {
|
|
11191
|
-
const resourceParams = createResourceParams$
|
|
10969
|
+
const resourceParams = createResourceParams$a(config);
|
|
11192
10970
|
return keyBuilder$f(luvio, resourceParams);
|
|
11193
10971
|
}
|
|
11194
|
-
function typeCheckConfig$
|
|
10972
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
11195
10973
|
const config = {};
|
|
11196
|
-
typeCheckConfig$
|
|
10974
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11197
10975
|
return config;
|
|
11198
10976
|
}
|
|
11199
|
-
function validateAdapterConfig$
|
|
10977
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
11200
10978
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11201
10979
|
return null;
|
|
11202
10980
|
}
|
|
11203
10981
|
if (process.env.NODE_ENV !== 'production') {
|
|
11204
10982
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11205
10983
|
}
|
|
11206
|
-
const config = typeCheckConfig$
|
|
10984
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
11207
10985
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11208
10986
|
return null;
|
|
11209
10987
|
}
|
|
11210
10988
|
return config;
|
|
11211
10989
|
}
|
|
11212
10990
|
function adapterFragment$7(luvio, config) {
|
|
11213
|
-
createResourceParams$
|
|
11214
|
-
return select$
|
|
10991
|
+
createResourceParams$a(config);
|
|
10992
|
+
return select$f();
|
|
11215
10993
|
}
|
|
11216
10994
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
11217
|
-
const snapshot = ingestSuccess$
|
|
10995
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
11218
10996
|
config,
|
|
11219
|
-
resolve: () => buildNetworkSnapshot$
|
|
10997
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
11220
10998
|
});
|
|
11221
10999
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11222
11000
|
}
|
|
11223
11001
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
11224
11002
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
11225
11003
|
config,
|
|
11226
|
-
resolve: () => buildNetworkSnapshot$
|
|
11004
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
11227
11005
|
});
|
|
11228
11006
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11229
11007
|
}
|
|
11230
|
-
function buildNetworkSnapshot$
|
|
11231
|
-
const resourceParams = createResourceParams$
|
|
11232
|
-
const request = createResourceRequest$
|
|
11008
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
11009
|
+
const resourceParams = createResourceParams$a(config);
|
|
11010
|
+
const request = createResourceRequest$a(resourceParams);
|
|
11233
11011
|
return luvio.dispatchResourceRequest(request, options)
|
|
11234
11012
|
.then((response) => {
|
|
11235
11013
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
11236
11014
|
const cache = new StoreKeyMap();
|
|
11237
|
-
getResponseCacheKeys$
|
|
11015
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
11238
11016
|
return cache;
|
|
11239
11017
|
});
|
|
11240
11018
|
}, (response) => {
|
|
@@ -11242,7 +11020,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
11242
11020
|
});
|
|
11243
11021
|
}
|
|
11244
11022
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
11245
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11023
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
11246
11024
|
}
|
|
11247
11025
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
11248
11026
|
const { luvio, config } = context;
|
|
@@ -11253,12 +11031,12 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
11253
11031
|
};
|
|
11254
11032
|
const cacheSnapshot = storeLookup(selector, {
|
|
11255
11033
|
config,
|
|
11256
|
-
resolve: () => buildNetworkSnapshot$
|
|
11034
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
11257
11035
|
});
|
|
11258
11036
|
return cacheSnapshot;
|
|
11259
11037
|
}
|
|
11260
11038
|
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
11261
|
-
const config = validateAdapterConfig$
|
|
11039
|
+
const config = validateAdapterConfig$a(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
11262
11040
|
// Invalid or incomplete config
|
|
11263
11041
|
if (config === null) {
|
|
11264
11042
|
return null;
|
|
@@ -11267,22 +11045,22 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
11267
11045
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
11268
11046
|
};
|
|
11269
11047
|
|
|
11270
|
-
function select$
|
|
11271
|
-
return select$
|
|
11048
|
+
function select$e(luvio, params) {
|
|
11049
|
+
return select$g();
|
|
11272
11050
|
}
|
|
11273
11051
|
function keyBuilder$d(luvio, params) {
|
|
11274
11052
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
11275
11053
|
}
|
|
11276
|
-
function getResponseCacheKeys$
|
|
11054
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
11277
11055
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
11278
11056
|
}
|
|
11279
|
-
function ingestSuccess$
|
|
11057
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
11280
11058
|
const { body } = response;
|
|
11281
11059
|
const key = keyBuilder$d(luvio, resourceParams);
|
|
11282
11060
|
luvio.storeIngest(key, ingest$4, body);
|
|
11283
11061
|
const snapshot = luvio.storeLookup({
|
|
11284
11062
|
recordId: key,
|
|
11285
|
-
node: select$
|
|
11063
|
+
node: select$e(),
|
|
11286
11064
|
variables: {},
|
|
11287
11065
|
}, snapshotRefresh);
|
|
11288
11066
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11299,7 +11077,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
11299
11077
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11300
11078
|
return errorSnapshot;
|
|
11301
11079
|
}
|
|
11302
|
-
function createResourceRequest$
|
|
11080
|
+
function createResourceRequest$9(config) {
|
|
11303
11081
|
const headers = {};
|
|
11304
11082
|
return {
|
|
11305
11083
|
baseUri: '/services/data/v64.0',
|
|
@@ -11313,62 +11091,62 @@ function createResourceRequest$8(config) {
|
|
|
11313
11091
|
};
|
|
11314
11092
|
}
|
|
11315
11093
|
|
|
11316
|
-
const adapterName$
|
|
11094
|
+
const adapterName$9 = 'getSemanticMetricsByIds';
|
|
11317
11095
|
const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
11318
11096
|
generateParamConfigMetadata('metricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11319
11097
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11320
11098
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11321
11099
|
];
|
|
11322
|
-
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11323
|
-
const createResourceParams$
|
|
11100
|
+
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
11101
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$k(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
11324
11102
|
function keyBuilder$c(luvio, config) {
|
|
11325
|
-
const resourceParams = createResourceParams$
|
|
11103
|
+
const resourceParams = createResourceParams$9(config);
|
|
11326
11104
|
return keyBuilder$d(luvio, resourceParams);
|
|
11327
11105
|
}
|
|
11328
|
-
function typeCheckConfig$
|
|
11106
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
11329
11107
|
const config = {};
|
|
11330
|
-
typeCheckConfig$
|
|
11108
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
11331
11109
|
return config;
|
|
11332
11110
|
}
|
|
11333
|
-
function validateAdapterConfig$
|
|
11111
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
11334
11112
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11335
11113
|
return null;
|
|
11336
11114
|
}
|
|
11337
11115
|
if (process.env.NODE_ENV !== 'production') {
|
|
11338
11116
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11339
11117
|
}
|
|
11340
|
-
const config = typeCheckConfig$
|
|
11118
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
11341
11119
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11342
11120
|
return null;
|
|
11343
11121
|
}
|
|
11344
11122
|
return config;
|
|
11345
11123
|
}
|
|
11346
11124
|
function adapterFragment$6(luvio, config) {
|
|
11347
|
-
createResourceParams$
|
|
11348
|
-
return select$
|
|
11125
|
+
createResourceParams$9(config);
|
|
11126
|
+
return select$e();
|
|
11349
11127
|
}
|
|
11350
11128
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
11351
|
-
const snapshot = ingestSuccess$
|
|
11129
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
11352
11130
|
config,
|
|
11353
|
-
resolve: () => buildNetworkSnapshot$
|
|
11131
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11354
11132
|
});
|
|
11355
11133
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11356
11134
|
}
|
|
11357
11135
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
11358
11136
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
11359
11137
|
config,
|
|
11360
|
-
resolve: () => buildNetworkSnapshot$
|
|
11138
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11361
11139
|
});
|
|
11362
11140
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11363
11141
|
}
|
|
11364
|
-
function buildNetworkSnapshot$
|
|
11365
|
-
const resourceParams = createResourceParams$
|
|
11366
|
-
const request = createResourceRequest$
|
|
11142
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
11143
|
+
const resourceParams = createResourceParams$9(config);
|
|
11144
|
+
const request = createResourceRequest$9(resourceParams);
|
|
11367
11145
|
return luvio.dispatchResourceRequest(request, options)
|
|
11368
11146
|
.then((response) => {
|
|
11369
11147
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
11370
11148
|
const cache = new StoreKeyMap();
|
|
11371
|
-
getResponseCacheKeys$
|
|
11149
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
11372
11150
|
return cache;
|
|
11373
11151
|
});
|
|
11374
11152
|
}, (response) => {
|
|
@@ -11376,7 +11154,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
11376
11154
|
});
|
|
11377
11155
|
}
|
|
11378
11156
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
11379
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11157
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
11380
11158
|
}
|
|
11381
11159
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
11382
11160
|
const { luvio, config } = context;
|
|
@@ -11387,12 +11165,12 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
11387
11165
|
};
|
|
11388
11166
|
const cacheSnapshot = storeLookup(selector, {
|
|
11389
11167
|
config,
|
|
11390
|
-
resolve: () => buildNetworkSnapshot$
|
|
11168
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11391
11169
|
});
|
|
11392
11170
|
return cacheSnapshot;
|
|
11393
11171
|
}
|
|
11394
11172
|
const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsByIds(untrustedConfig, requestContext) {
|
|
11395
|
-
const config = validateAdapterConfig$
|
|
11173
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
11396
11174
|
// Invalid or incomplete config
|
|
11397
11175
|
if (config === null) {
|
|
11398
11176
|
return null;
|
|
@@ -11453,7 +11231,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
11453
11231
|
}
|
|
11454
11232
|
return input;
|
|
11455
11233
|
}
|
|
11456
|
-
const select$
|
|
11234
|
+
const select$d = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
11457
11235
|
return {
|
|
11458
11236
|
kind: 'Fragment',
|
|
11459
11237
|
version: VERSION$4,
|
|
@@ -11469,7 +11247,7 @@ const select$c = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
11469
11247
|
kind: 'Link',
|
|
11470
11248
|
plural: true,
|
|
11471
11249
|
required: false,
|
|
11472
|
-
fragment: select$
|
|
11250
|
+
fragment: select$o()
|
|
11473
11251
|
}
|
|
11474
11252
|
]
|
|
11475
11253
|
};
|
|
@@ -11581,7 +11359,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
11581
11359
|
}
|
|
11582
11360
|
return input;
|
|
11583
11361
|
}
|
|
11584
|
-
const select$
|
|
11362
|
+
const select$c = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
11585
11363
|
return {
|
|
11586
11364
|
kind: 'Fragment',
|
|
11587
11365
|
version: VERSION$3,
|
|
@@ -11592,7 +11370,7 @@ const select$b = function SemanticSubMetricsByMetricCollectionOutputRepresentati
|
|
|
11592
11370
|
kind: 'Link',
|
|
11593
11371
|
plural: true,
|
|
11594
11372
|
required: false,
|
|
11595
|
-
fragment: select$
|
|
11373
|
+
fragment: select$d()
|
|
11596
11374
|
}
|
|
11597
11375
|
]
|
|
11598
11376
|
};
|
|
@@ -11646,22 +11424,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11646
11424
|
}
|
|
11647
11425
|
}
|
|
11648
11426
|
|
|
11649
|
-
function select$
|
|
11650
|
-
return select$
|
|
11427
|
+
function select$b(luvio, params) {
|
|
11428
|
+
return select$c();
|
|
11651
11429
|
}
|
|
11652
11430
|
function keyBuilder$b(luvio, params) {
|
|
11653
11431
|
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11654
11432
|
}
|
|
11655
|
-
function getResponseCacheKeys$
|
|
11433
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
11656
11434
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
11657
11435
|
}
|
|
11658
|
-
function ingestSuccess$
|
|
11436
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
11659
11437
|
const { body } = response;
|
|
11660
11438
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
11661
11439
|
luvio.storeIngest(key, ingest$2, body);
|
|
11662
11440
|
const snapshot = luvio.storeLookup({
|
|
11663
11441
|
recordId: key,
|
|
11664
|
-
node: select$
|
|
11442
|
+
node: select$b(),
|
|
11665
11443
|
variables: {},
|
|
11666
11444
|
}, snapshotRefresh);
|
|
11667
11445
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11678,7 +11456,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
11678
11456
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11679
11457
|
return errorSnapshot;
|
|
11680
11458
|
}
|
|
11681
|
-
function createResourceRequest$
|
|
11459
|
+
function createResourceRequest$8(config) {
|
|
11682
11460
|
const headers = {};
|
|
11683
11461
|
return {
|
|
11684
11462
|
baseUri: '/services/data/v64.0',
|
|
@@ -11692,61 +11470,61 @@ function createResourceRequest$7(config) {
|
|
|
11692
11470
|
};
|
|
11693
11471
|
}
|
|
11694
11472
|
|
|
11695
|
-
const adapterName$
|
|
11473
|
+
const adapterName$8 = 'getSemanticMetricsToSubMetrics';
|
|
11696
11474
|
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
11697
11475
|
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11698
11476
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11699
11477
|
];
|
|
11700
|
-
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11701
|
-
const createResourceParams$
|
|
11478
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11479
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$k(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11702
11480
|
function keyBuilder$a(luvio, config) {
|
|
11703
|
-
const resourceParams = createResourceParams$
|
|
11481
|
+
const resourceParams = createResourceParams$8(config);
|
|
11704
11482
|
return keyBuilder$b(luvio, resourceParams);
|
|
11705
11483
|
}
|
|
11706
|
-
function typeCheckConfig$
|
|
11484
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
11707
11485
|
const config = {};
|
|
11708
|
-
typeCheckConfig$
|
|
11486
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11709
11487
|
return config;
|
|
11710
11488
|
}
|
|
11711
|
-
function validateAdapterConfig$
|
|
11489
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
11712
11490
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11713
11491
|
return null;
|
|
11714
11492
|
}
|
|
11715
11493
|
if (process.env.NODE_ENV !== 'production') {
|
|
11716
11494
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11717
11495
|
}
|
|
11718
|
-
const config = typeCheckConfig$
|
|
11496
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
11719
11497
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11720
11498
|
return null;
|
|
11721
11499
|
}
|
|
11722
11500
|
return config;
|
|
11723
11501
|
}
|
|
11724
11502
|
function adapterFragment$5(luvio, config) {
|
|
11725
|
-
createResourceParams$
|
|
11726
|
-
return select$
|
|
11503
|
+
createResourceParams$8(config);
|
|
11504
|
+
return select$b();
|
|
11727
11505
|
}
|
|
11728
11506
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
11729
|
-
const snapshot = ingestSuccess$
|
|
11507
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
11730
11508
|
config,
|
|
11731
|
-
resolve: () => buildNetworkSnapshot$
|
|
11509
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11732
11510
|
});
|
|
11733
11511
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11734
11512
|
}
|
|
11735
11513
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
11736
11514
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
11737
11515
|
config,
|
|
11738
|
-
resolve: () => buildNetworkSnapshot$
|
|
11516
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11739
11517
|
});
|
|
11740
11518
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11741
11519
|
}
|
|
11742
|
-
function buildNetworkSnapshot$
|
|
11743
|
-
const resourceParams = createResourceParams$
|
|
11744
|
-
const request = createResourceRequest$
|
|
11520
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
11521
|
+
const resourceParams = createResourceParams$8(config);
|
|
11522
|
+
const request = createResourceRequest$8(resourceParams);
|
|
11745
11523
|
return luvio.dispatchResourceRequest(request, options)
|
|
11746
11524
|
.then((response) => {
|
|
11747
11525
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
11748
11526
|
const cache = new StoreKeyMap();
|
|
11749
|
-
getResponseCacheKeys$
|
|
11527
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
11750
11528
|
return cache;
|
|
11751
11529
|
});
|
|
11752
11530
|
}, (response) => {
|
|
@@ -11754,7 +11532,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
11754
11532
|
});
|
|
11755
11533
|
}
|
|
11756
11534
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
11757
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11535
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
11758
11536
|
}
|
|
11759
11537
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
11760
11538
|
const { luvio, config } = context;
|
|
@@ -11765,12 +11543,12 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
11765
11543
|
};
|
|
11766
11544
|
const cacheSnapshot = storeLookup(selector, {
|
|
11767
11545
|
config,
|
|
11768
|
-
resolve: () => buildNetworkSnapshot$
|
|
11546
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11769
11547
|
});
|
|
11770
11548
|
return cacheSnapshot;
|
|
11771
11549
|
}
|
|
11772
11550
|
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
11773
|
-
const config = validateAdapterConfig$
|
|
11551
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
11774
11552
|
// Invalid or incomplete config
|
|
11775
11553
|
if (config === null) {
|
|
11776
11554
|
return null;
|
|
@@ -11779,24 +11557,24 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
11779
11557
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
11780
11558
|
};
|
|
11781
11559
|
|
|
11782
|
-
function select$
|
|
11783
|
-
return select$
|
|
11560
|
+
function select$a(luvio, params) {
|
|
11561
|
+
return select$q();
|
|
11784
11562
|
}
|
|
11785
11563
|
function keyBuilder$9(luvio, params) {
|
|
11786
|
-
return keyBuilder$
|
|
11564
|
+
return keyBuilder$q(luvio, {
|
|
11787
11565
|
name: params.urlParams.modelApiNameOrId
|
|
11788
11566
|
});
|
|
11789
11567
|
}
|
|
11790
|
-
function getResponseCacheKeys$
|
|
11568
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
11791
11569
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
11792
11570
|
}
|
|
11793
|
-
function ingestSuccess$
|
|
11571
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
11794
11572
|
const { body } = response;
|
|
11795
11573
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
11796
11574
|
luvio.storeIngest(key, ingest$7, body);
|
|
11797
11575
|
const snapshot = luvio.storeLookup({
|
|
11798
11576
|
recordId: key,
|
|
11799
|
-
node: select$
|
|
11577
|
+
node: select$a(),
|
|
11800
11578
|
variables: {},
|
|
11801
11579
|
}, snapshotRefresh);
|
|
11802
11580
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11813,7 +11591,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
11813
11591
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11814
11592
|
return errorSnapshot;
|
|
11815
11593
|
}
|
|
11816
|
-
function createResourceRequest$
|
|
11594
|
+
function createResourceRequest$7(config) {
|
|
11817
11595
|
const headers = {};
|
|
11818
11596
|
return {
|
|
11819
11597
|
baseUri: '/services/data/v64.0',
|
|
@@ -11832,66 +11610,66 @@ function createResourceRequestFromRepresentation$1(representation) {
|
|
|
11832
11610
|
queryParams: {},
|
|
11833
11611
|
};
|
|
11834
11612
|
config.urlParams.modelApiNameOrId = representation.id;
|
|
11835
|
-
return createResourceRequest$
|
|
11613
|
+
return createResourceRequest$7(config);
|
|
11836
11614
|
}
|
|
11837
11615
|
|
|
11838
|
-
const adapterName$
|
|
11616
|
+
const adapterName$7 = 'getSemanticModel';
|
|
11839
11617
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
11840
11618
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11841
11619
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11842
11620
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
11843
11621
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
11844
11622
|
];
|
|
11845
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11846
|
-
const createResourceParams$
|
|
11623
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticModel_ConfigPropertyMetadata);
|
|
11624
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$k(getSemanticModel_ConfigPropertyMetadata);
|
|
11847
11625
|
function keyBuilder$8(luvio, config) {
|
|
11848
|
-
const resourceParams = createResourceParams$
|
|
11626
|
+
const resourceParams = createResourceParams$7(config);
|
|
11849
11627
|
return keyBuilder$9(luvio, resourceParams);
|
|
11850
11628
|
}
|
|
11851
|
-
function typeCheckConfig$
|
|
11629
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
11852
11630
|
const config = {};
|
|
11853
|
-
typeCheckConfig$
|
|
11631
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
11854
11632
|
return config;
|
|
11855
11633
|
}
|
|
11856
|
-
function validateAdapterConfig$
|
|
11634
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
11857
11635
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11858
11636
|
return null;
|
|
11859
11637
|
}
|
|
11860
11638
|
if (process.env.NODE_ENV !== 'production') {
|
|
11861
11639
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11862
11640
|
}
|
|
11863
|
-
const config = typeCheckConfig$
|
|
11641
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
11864
11642
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11865
11643
|
return null;
|
|
11866
11644
|
}
|
|
11867
11645
|
return config;
|
|
11868
11646
|
}
|
|
11869
11647
|
function adapterFragment$4(luvio, config) {
|
|
11870
|
-
createResourceParams$
|
|
11871
|
-
return select$
|
|
11648
|
+
createResourceParams$7(config);
|
|
11649
|
+
return select$a();
|
|
11872
11650
|
}
|
|
11873
11651
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
11874
|
-
const snapshot = ingestSuccess$
|
|
11652
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
11875
11653
|
config,
|
|
11876
|
-
resolve: () => buildNetworkSnapshot$
|
|
11654
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11877
11655
|
});
|
|
11878
11656
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11879
11657
|
}
|
|
11880
11658
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
11881
11659
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
11882
11660
|
config,
|
|
11883
|
-
resolve: () => buildNetworkSnapshot$
|
|
11661
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11884
11662
|
});
|
|
11885
11663
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11886
11664
|
}
|
|
11887
|
-
function buildNetworkSnapshot$
|
|
11888
|
-
const resourceParams = createResourceParams$
|
|
11889
|
-
const request = createResourceRequest$
|
|
11665
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
11666
|
+
const resourceParams = createResourceParams$7(config);
|
|
11667
|
+
const request = createResourceRequest$7(resourceParams);
|
|
11890
11668
|
return luvio.dispatchResourceRequest(request, options)
|
|
11891
11669
|
.then((response) => {
|
|
11892
11670
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
11893
11671
|
const cache = new StoreKeyMap();
|
|
11894
|
-
getResponseCacheKeys$
|
|
11672
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
11895
11673
|
return cache;
|
|
11896
11674
|
});
|
|
11897
11675
|
}, (response) => {
|
|
@@ -11899,7 +11677,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
11899
11677
|
});
|
|
11900
11678
|
}
|
|
11901
11679
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
11902
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11680
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
11903
11681
|
}
|
|
11904
11682
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
11905
11683
|
const { luvio, config } = context;
|
|
@@ -11910,12 +11688,12 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
11910
11688
|
};
|
|
11911
11689
|
const cacheSnapshot = storeLookup(selector, {
|
|
11912
11690
|
config,
|
|
11913
|
-
resolve: () => buildNetworkSnapshot$
|
|
11691
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11914
11692
|
});
|
|
11915
11693
|
return cacheSnapshot;
|
|
11916
11694
|
}
|
|
11917
11695
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
11918
|
-
const config = validateAdapterConfig$
|
|
11696
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
11919
11697
|
// Invalid or incomplete config
|
|
11920
11698
|
if (config === null) {
|
|
11921
11699
|
return null;
|
|
@@ -11925,7 +11703,7 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
11925
11703
|
};
|
|
11926
11704
|
const notifyChangeFactory$1 = (luvio, options) => {
|
|
11927
11705
|
return function getSsotSemanticModelsByModelApiNameOrIdNotifyChange(configs) {
|
|
11928
|
-
const keys = configs.map(c => keyBuilder$
|
|
11706
|
+
const keys = configs.map(c => keyBuilder$q(luvio, c));
|
|
11929
11707
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
11930
11708
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
11931
11709
|
const { key, record: val } = entries[i];
|
|
@@ -12158,8 +11936,8 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
12158
11936
|
})();
|
|
12159
11937
|
return v_error === undefined ? null : v_error;
|
|
12160
11938
|
}
|
|
12161
|
-
const select$
|
|
12162
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
11939
|
+
const select$9 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
11940
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$N();
|
|
12163
11941
|
return {
|
|
12164
11942
|
kind: 'Fragment',
|
|
12165
11943
|
version: VERSION$2,
|
|
@@ -12696,8 +12474,8 @@ const RepresentationType$1 = 'SemanticModelCollectionOutputRepresentation';
|
|
|
12696
12474
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
12697
12475
|
return input;
|
|
12698
12476
|
}
|
|
12699
|
-
const select$
|
|
12700
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
12477
|
+
const select$8 = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
12478
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$9();
|
|
12701
12479
|
return {
|
|
12702
12480
|
kind: 'Fragment',
|
|
12703
12481
|
version: VERSION$1,
|
|
@@ -12828,22 +12606,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
12828
12606
|
});
|
|
12829
12607
|
}
|
|
12830
12608
|
|
|
12831
|
-
function select$
|
|
12832
|
-
return select$
|
|
12609
|
+
function select$7(luvio, params) {
|
|
12610
|
+
return select$8();
|
|
12833
12611
|
}
|
|
12834
12612
|
function keyBuilder$7(luvio, params) {
|
|
12835
12613
|
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 + ')';
|
|
12836
12614
|
}
|
|
12837
|
-
function getResponseCacheKeys$
|
|
12615
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
12838
12616
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
12839
12617
|
}
|
|
12840
|
-
function ingestSuccess$
|
|
12618
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
12841
12619
|
const { body } = response;
|
|
12842
12620
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
12843
12621
|
luvio.storeIngest(key, ingest$1, body);
|
|
12844
12622
|
const snapshot = luvio.storeLookup({
|
|
12845
12623
|
recordId: key,
|
|
12846
|
-
node: select$
|
|
12624
|
+
node: select$7(),
|
|
12847
12625
|
variables: {},
|
|
12848
12626
|
}, snapshotRefresh);
|
|
12849
12627
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -12860,7 +12638,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
12860
12638
|
luvio.storeIngestError(key, errorSnapshot);
|
|
12861
12639
|
return errorSnapshot;
|
|
12862
12640
|
}
|
|
12863
|
-
function createResourceRequest$
|
|
12641
|
+
function createResourceRequest$6(config) {
|
|
12864
12642
|
const headers = {};
|
|
12865
12643
|
return {
|
|
12866
12644
|
baseUri: '/services/data/v64.0',
|
|
@@ -12874,7 +12652,7 @@ function createResourceRequest$5(config) {
|
|
|
12874
12652
|
};
|
|
12875
12653
|
}
|
|
12876
12654
|
|
|
12877
|
-
const adapterName$
|
|
12655
|
+
const adapterName$6 = 'getSemanticModels';
|
|
12878
12656
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
12879
12657
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12880
12658
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -12886,56 +12664,56 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
12886
12664
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12887
12665
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12888
12666
|
];
|
|
12889
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
12890
|
-
const createResourceParams$
|
|
12667
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticModels_ConfigPropertyMetadata);
|
|
12668
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$k(getSemanticModels_ConfigPropertyMetadata);
|
|
12891
12669
|
function keyBuilder$6(luvio, config) {
|
|
12892
|
-
const resourceParams = createResourceParams$
|
|
12670
|
+
const resourceParams = createResourceParams$6(config);
|
|
12893
12671
|
return keyBuilder$7(luvio, resourceParams);
|
|
12894
12672
|
}
|
|
12895
|
-
function typeCheckConfig$
|
|
12673
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
12896
12674
|
const config = {};
|
|
12897
|
-
typeCheckConfig$
|
|
12675
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
12898
12676
|
return config;
|
|
12899
12677
|
}
|
|
12900
|
-
function validateAdapterConfig$
|
|
12678
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
12901
12679
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
12902
12680
|
return null;
|
|
12903
12681
|
}
|
|
12904
12682
|
if (process.env.NODE_ENV !== 'production') {
|
|
12905
12683
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
12906
12684
|
}
|
|
12907
|
-
const config = typeCheckConfig$
|
|
12685
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
12908
12686
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12909
12687
|
return null;
|
|
12910
12688
|
}
|
|
12911
12689
|
return config;
|
|
12912
12690
|
}
|
|
12913
12691
|
function adapterFragment$3(luvio, config) {
|
|
12914
|
-
createResourceParams$
|
|
12915
|
-
return select$
|
|
12692
|
+
createResourceParams$6(config);
|
|
12693
|
+
return select$7();
|
|
12916
12694
|
}
|
|
12917
12695
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
12918
|
-
const snapshot = ingestSuccess$
|
|
12696
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
12919
12697
|
config,
|
|
12920
|
-
resolve: () => buildNetworkSnapshot$
|
|
12698
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
12921
12699
|
});
|
|
12922
12700
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
12923
12701
|
}
|
|
12924
12702
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
12925
12703
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
12926
12704
|
config,
|
|
12927
|
-
resolve: () => buildNetworkSnapshot$
|
|
12705
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
12928
12706
|
});
|
|
12929
12707
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
12930
12708
|
}
|
|
12931
|
-
function buildNetworkSnapshot$
|
|
12932
|
-
const resourceParams = createResourceParams$
|
|
12933
|
-
const request = createResourceRequest$
|
|
12709
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
12710
|
+
const resourceParams = createResourceParams$6(config);
|
|
12711
|
+
const request = createResourceRequest$6(resourceParams);
|
|
12934
12712
|
return luvio.dispatchResourceRequest(request, options)
|
|
12935
12713
|
.then((response) => {
|
|
12936
12714
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
12937
12715
|
const cache = new StoreKeyMap();
|
|
12938
|
-
getResponseCacheKeys$
|
|
12716
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
12939
12717
|
return cache;
|
|
12940
12718
|
});
|
|
12941
12719
|
}, (response) => {
|
|
@@ -12943,7 +12721,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
12943
12721
|
});
|
|
12944
12722
|
}
|
|
12945
12723
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
12946
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
12724
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
12947
12725
|
}
|
|
12948
12726
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
12949
12727
|
const { luvio, config } = context;
|
|
@@ -12954,12 +12732,12 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
12954
12732
|
};
|
|
12955
12733
|
const cacheSnapshot = storeLookup(selector, {
|
|
12956
12734
|
config,
|
|
12957
|
-
resolve: () => buildNetworkSnapshot$
|
|
12735
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
12958
12736
|
});
|
|
12959
12737
|
return cacheSnapshot;
|
|
12960
12738
|
}
|
|
12961
12739
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
12962
|
-
const config = validateAdapterConfig$
|
|
12740
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
12963
12741
|
// Invalid or incomplete config
|
|
12964
12742
|
if (config === null) {
|
|
12965
12743
|
return null;
|
|
@@ -12968,24 +12746,24 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
12968
12746
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
12969
12747
|
};
|
|
12970
12748
|
|
|
12971
|
-
function select$
|
|
12972
|
-
return select$
|
|
12749
|
+
function select$6(luvio, params) {
|
|
12750
|
+
return select$o();
|
|
12973
12751
|
}
|
|
12974
12752
|
function keyBuilder$5(luvio, params) {
|
|
12975
|
-
return keyBuilder$
|
|
12753
|
+
return keyBuilder$p(luvio, {
|
|
12976
12754
|
name: params.urlParams.subMetricNameOrId
|
|
12977
12755
|
});
|
|
12978
12756
|
}
|
|
12979
|
-
function getResponseCacheKeys$
|
|
12757
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
12980
12758
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
12981
12759
|
}
|
|
12982
|
-
function ingestSuccess$
|
|
12760
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
12983
12761
|
const { body } = response;
|
|
12984
12762
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
12985
12763
|
luvio.storeIngest(key, ingest$6, body);
|
|
12986
12764
|
const snapshot = luvio.storeLookup({
|
|
12987
12765
|
recordId: key,
|
|
12988
|
-
node: select$
|
|
12766
|
+
node: select$6(),
|
|
12989
12767
|
variables: {},
|
|
12990
12768
|
}, snapshotRefresh);
|
|
12991
12769
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13002,7 +12780,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
13002
12780
|
luvio.storeIngestError(key, errorSnapshot);
|
|
13003
12781
|
return errorSnapshot;
|
|
13004
12782
|
}
|
|
13005
|
-
function createResourceRequest$
|
|
12783
|
+
function createResourceRequest$5(config) {
|
|
13006
12784
|
const headers = {};
|
|
13007
12785
|
return {
|
|
13008
12786
|
baseUri: '/services/data/v64.0',
|
|
@@ -13020,64 +12798,64 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
13020
12798
|
urlParams: {},
|
|
13021
12799
|
};
|
|
13022
12800
|
config.urlParams.subMetricNameOrId = representation.id;
|
|
13023
|
-
return createResourceRequest$
|
|
12801
|
+
return createResourceRequest$5(config);
|
|
13024
12802
|
}
|
|
13025
12803
|
|
|
13026
|
-
const adapterName$
|
|
12804
|
+
const adapterName$5 = 'getSemanticSubMetric';
|
|
13027
12805
|
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
13028
12806
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13029
12807
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13030
12808
|
];
|
|
13031
|
-
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
13032
|
-
const createResourceParams$
|
|
12809
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
12810
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$k(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
13033
12811
|
function keyBuilder$4(luvio, config) {
|
|
13034
|
-
const resourceParams = createResourceParams$
|
|
12812
|
+
const resourceParams = createResourceParams$5(config);
|
|
13035
12813
|
return keyBuilder$5(luvio, resourceParams);
|
|
13036
12814
|
}
|
|
13037
|
-
function typeCheckConfig$
|
|
12815
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
13038
12816
|
const config = {};
|
|
13039
|
-
typeCheckConfig$
|
|
12817
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
13040
12818
|
return config;
|
|
13041
12819
|
}
|
|
13042
|
-
function validateAdapterConfig$
|
|
12820
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
13043
12821
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
13044
12822
|
return null;
|
|
13045
12823
|
}
|
|
13046
12824
|
if (process.env.NODE_ENV !== 'production') {
|
|
13047
12825
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
13048
12826
|
}
|
|
13049
|
-
const config = typeCheckConfig$
|
|
12827
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
13050
12828
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
13051
12829
|
return null;
|
|
13052
12830
|
}
|
|
13053
12831
|
return config;
|
|
13054
12832
|
}
|
|
13055
12833
|
function adapterFragment$2(luvio, config) {
|
|
13056
|
-
createResourceParams$
|
|
13057
|
-
return select$
|
|
12834
|
+
createResourceParams$5(config);
|
|
12835
|
+
return select$6();
|
|
13058
12836
|
}
|
|
13059
12837
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
13060
|
-
const snapshot = ingestSuccess$
|
|
12838
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
13061
12839
|
config,
|
|
13062
|
-
resolve: () => buildNetworkSnapshot$
|
|
12840
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
13063
12841
|
});
|
|
13064
12842
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13065
12843
|
}
|
|
13066
12844
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
13067
12845
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
13068
12846
|
config,
|
|
13069
|
-
resolve: () => buildNetworkSnapshot$
|
|
12847
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
13070
12848
|
});
|
|
13071
12849
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13072
12850
|
}
|
|
13073
|
-
function buildNetworkSnapshot$
|
|
13074
|
-
const resourceParams = createResourceParams$
|
|
13075
|
-
const request = createResourceRequest$
|
|
12851
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
12852
|
+
const resourceParams = createResourceParams$5(config);
|
|
12853
|
+
const request = createResourceRequest$5(resourceParams);
|
|
13076
12854
|
return luvio.dispatchResourceRequest(request, options)
|
|
13077
12855
|
.then((response) => {
|
|
13078
12856
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
13079
12857
|
const cache = new StoreKeyMap();
|
|
13080
|
-
getResponseCacheKeys$
|
|
12858
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
13081
12859
|
return cache;
|
|
13082
12860
|
});
|
|
13083
12861
|
}, (response) => {
|
|
@@ -13085,7 +12863,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
13085
12863
|
});
|
|
13086
12864
|
}
|
|
13087
12865
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
13088
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
12866
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
13089
12867
|
}
|
|
13090
12868
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
13091
12869
|
const { luvio, config } = context;
|
|
@@ -13096,12 +12874,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
13096
12874
|
};
|
|
13097
12875
|
const cacheSnapshot = storeLookup(selector, {
|
|
13098
12876
|
config,
|
|
13099
|
-
resolve: () => buildNetworkSnapshot$
|
|
12877
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
13100
12878
|
});
|
|
13101
12879
|
return cacheSnapshot;
|
|
13102
12880
|
}
|
|
13103
12881
|
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
13104
|
-
const config = validateAdapterConfig$
|
|
12882
|
+
const config = validateAdapterConfig$5(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
13105
12883
|
// Invalid or incomplete config
|
|
13106
12884
|
if (config === null) {
|
|
13107
12885
|
return null;
|
|
@@ -13111,7 +12889,7 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
13111
12889
|
};
|
|
13112
12890
|
const notifyChangeFactory = (luvio, options) => {
|
|
13113
12891
|
return function getSsotSemanticModelsSubMetricsByModelApiNameOrIdAndSubMetricNameOrIdNotifyChange(configs) {
|
|
13114
|
-
const keys = configs.map(c => keyBuilder$
|
|
12892
|
+
const keys = configs.map(c => keyBuilder$p(luvio, c));
|
|
13115
12893
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
13116
12894
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
13117
12895
|
const { key, record: val } = entries[i];
|
|
@@ -13184,7 +12962,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
13184
12962
|
}
|
|
13185
12963
|
return input;
|
|
13186
12964
|
}
|
|
13187
|
-
const select$
|
|
12965
|
+
const select$5 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
13188
12966
|
return {
|
|
13189
12967
|
kind: 'Fragment',
|
|
13190
12968
|
version: VERSION,
|
|
@@ -13195,7 +12973,7 @@ const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
13195
12973
|
kind: 'Link',
|
|
13196
12974
|
plural: true,
|
|
13197
12975
|
required: false,
|
|
13198
|
-
fragment: select$
|
|
12976
|
+
fragment: select$o()
|
|
13199
12977
|
}
|
|
13200
12978
|
]
|
|
13201
12979
|
};
|
|
@@ -13249,22 +13027,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
13249
13027
|
}
|
|
13250
13028
|
}
|
|
13251
13029
|
|
|
13252
|
-
function select$
|
|
13253
|
-
return select$
|
|
13030
|
+
function select$4(luvio, params) {
|
|
13031
|
+
return select$5();
|
|
13254
13032
|
}
|
|
13255
13033
|
function keyBuilder$3(luvio, params) {
|
|
13256
13034
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
13257
13035
|
}
|
|
13258
|
-
function getResponseCacheKeys$
|
|
13036
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
13259
13037
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
13260
13038
|
}
|
|
13261
|
-
function ingestSuccess$
|
|
13039
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
13262
13040
|
const { body } = response;
|
|
13263
13041
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
13264
13042
|
luvio.storeIngest(key, ingest, body);
|
|
13265
13043
|
const snapshot = luvio.storeLookup({
|
|
13266
13044
|
recordId: key,
|
|
13267
|
-
node: select$
|
|
13045
|
+
node: select$4(),
|
|
13268
13046
|
variables: {},
|
|
13269
13047
|
}, snapshotRefresh);
|
|
13270
13048
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13281,7 +13059,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
13281
13059
|
luvio.storeIngestError(key, errorSnapshot);
|
|
13282
13060
|
return errorSnapshot;
|
|
13283
13061
|
}
|
|
13284
|
-
function createResourceRequest$
|
|
13062
|
+
function createResourceRequest$4(config) {
|
|
13285
13063
|
const headers = {};
|
|
13286
13064
|
return {
|
|
13287
13065
|
baseUri: '/services/data/v64.0',
|
|
@@ -13295,60 +13073,60 @@ function createResourceRequest$3(config) {
|
|
|
13295
13073
|
};
|
|
13296
13074
|
}
|
|
13297
13075
|
|
|
13298
|
-
const adapterName$
|
|
13076
|
+
const adapterName$4 = 'getSemanticSubMetrics';
|
|
13299
13077
|
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
13300
13078
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13301
13079
|
];
|
|
13302
|
-
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
13303
|
-
const createResourceParams$
|
|
13080
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
13081
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$k(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
13304
13082
|
function keyBuilder$2(luvio, config) {
|
|
13305
|
-
const resourceParams = createResourceParams$
|
|
13083
|
+
const resourceParams = createResourceParams$4(config);
|
|
13306
13084
|
return keyBuilder$3(luvio, resourceParams);
|
|
13307
13085
|
}
|
|
13308
|
-
function typeCheckConfig$
|
|
13086
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
13309
13087
|
const config = {};
|
|
13310
|
-
typeCheckConfig$
|
|
13088
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
13311
13089
|
return config;
|
|
13312
13090
|
}
|
|
13313
|
-
function validateAdapterConfig$
|
|
13091
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
13314
13092
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
13315
13093
|
return null;
|
|
13316
13094
|
}
|
|
13317
13095
|
if (process.env.NODE_ENV !== 'production') {
|
|
13318
13096
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
13319
13097
|
}
|
|
13320
|
-
const config = typeCheckConfig$
|
|
13098
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
13321
13099
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
13322
13100
|
return null;
|
|
13323
13101
|
}
|
|
13324
13102
|
return config;
|
|
13325
13103
|
}
|
|
13326
13104
|
function adapterFragment$1(luvio, config) {
|
|
13327
|
-
createResourceParams$
|
|
13328
|
-
return select$
|
|
13105
|
+
createResourceParams$4(config);
|
|
13106
|
+
return select$4();
|
|
13329
13107
|
}
|
|
13330
13108
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
13331
|
-
const snapshot = ingestSuccess$
|
|
13109
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
13332
13110
|
config,
|
|
13333
|
-
resolve: () => buildNetworkSnapshot$
|
|
13111
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
13334
13112
|
});
|
|
13335
13113
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13336
13114
|
}
|
|
13337
13115
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
13338
13116
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
13339
13117
|
config,
|
|
13340
|
-
resolve: () => buildNetworkSnapshot$
|
|
13118
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
13341
13119
|
});
|
|
13342
13120
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13343
13121
|
}
|
|
13344
|
-
function buildNetworkSnapshot$
|
|
13345
|
-
const resourceParams = createResourceParams$
|
|
13346
|
-
const request = createResourceRequest$
|
|
13122
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
13123
|
+
const resourceParams = createResourceParams$4(config);
|
|
13124
|
+
const request = createResourceRequest$4(resourceParams);
|
|
13347
13125
|
return luvio.dispatchResourceRequest(request, options)
|
|
13348
13126
|
.then((response) => {
|
|
13349
13127
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
13350
13128
|
const cache = new StoreKeyMap();
|
|
13351
|
-
getResponseCacheKeys$
|
|
13129
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
13352
13130
|
return cache;
|
|
13353
13131
|
});
|
|
13354
13132
|
}, (response) => {
|
|
@@ -13356,7 +13134,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
13356
13134
|
});
|
|
13357
13135
|
}
|
|
13358
13136
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
13359
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
13137
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
13360
13138
|
}
|
|
13361
13139
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
13362
13140
|
const { luvio, config } = context;
|
|
@@ -13367,12 +13145,12 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
13367
13145
|
};
|
|
13368
13146
|
const cacheSnapshot = storeLookup(selector, {
|
|
13369
13147
|
config,
|
|
13370
|
-
resolve: () => buildNetworkSnapshot$
|
|
13148
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
13371
13149
|
});
|
|
13372
13150
|
return cacheSnapshot;
|
|
13373
13151
|
}
|
|
13374
13152
|
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
13375
|
-
const config = validateAdapterConfig$
|
|
13153
|
+
const config = validateAdapterConfig$4(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
13376
13154
|
// Invalid or incomplete config
|
|
13377
13155
|
if (config === null) {
|
|
13378
13156
|
return null;
|
|
@@ -13381,22 +13159,22 @@ const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthorin
|
|
|
13381
13159
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
13382
13160
|
};
|
|
13383
13161
|
|
|
13384
|
-
function select$
|
|
13385
|
-
return select$
|
|
13162
|
+
function select$3(luvio, params) {
|
|
13163
|
+
return select$5();
|
|
13386
13164
|
}
|
|
13387
13165
|
function keyBuilder$1(luvio, params) {
|
|
13388
13166
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
13389
13167
|
}
|
|
13390
|
-
function getResponseCacheKeys$
|
|
13168
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
13391
13169
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
13392
13170
|
}
|
|
13393
|
-
function ingestSuccess$
|
|
13171
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
13394
13172
|
const { body } = response;
|
|
13395
13173
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
13396
13174
|
luvio.storeIngest(key, ingest, body);
|
|
13397
13175
|
const snapshot = luvio.storeLookup({
|
|
13398
13176
|
recordId: key,
|
|
13399
|
-
node: select$
|
|
13177
|
+
node: select$3(),
|
|
13400
13178
|
variables: {},
|
|
13401
13179
|
}, snapshotRefresh);
|
|
13402
13180
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13413,7 +13191,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
13413
13191
|
luvio.storeIngestError(key, errorSnapshot);
|
|
13414
13192
|
return errorSnapshot;
|
|
13415
13193
|
}
|
|
13416
|
-
function createResourceRequest$
|
|
13194
|
+
function createResourceRequest$3(config) {
|
|
13417
13195
|
const headers = {};
|
|
13418
13196
|
return {
|
|
13419
13197
|
baseUri: '/services/data/v64.0',
|
|
@@ -13427,62 +13205,62 @@ function createResourceRequest$2(config) {
|
|
|
13427
13205
|
};
|
|
13428
13206
|
}
|
|
13429
13207
|
|
|
13430
|
-
const adapterName$
|
|
13208
|
+
const adapterName$3 = 'getSemanticSubMetricsById';
|
|
13431
13209
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
13432
13210
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13433
13211
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
13434
13212
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
13435
13213
|
];
|
|
13436
|
-
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
13437
|
-
const createResourceParams$
|
|
13214
|
+
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
13215
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$k(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
13438
13216
|
function keyBuilder(luvio, config) {
|
|
13439
|
-
const resourceParams = createResourceParams$
|
|
13217
|
+
const resourceParams = createResourceParams$3(config);
|
|
13440
13218
|
return keyBuilder$1(luvio, resourceParams);
|
|
13441
13219
|
}
|
|
13442
|
-
function typeCheckConfig$
|
|
13220
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
13443
13221
|
const config = {};
|
|
13444
|
-
typeCheckConfig$
|
|
13222
|
+
typeCheckConfig$k(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
13445
13223
|
return config;
|
|
13446
13224
|
}
|
|
13447
|
-
function validateAdapterConfig$
|
|
13225
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
13448
13226
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
13449
13227
|
return null;
|
|
13450
13228
|
}
|
|
13451
13229
|
if (process.env.NODE_ENV !== 'production') {
|
|
13452
13230
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
13453
13231
|
}
|
|
13454
|
-
const config = typeCheckConfig$
|
|
13232
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
13455
13233
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
13456
13234
|
return null;
|
|
13457
13235
|
}
|
|
13458
13236
|
return config;
|
|
13459
13237
|
}
|
|
13460
13238
|
function adapterFragment(luvio, config) {
|
|
13461
|
-
createResourceParams$
|
|
13462
|
-
return select$
|
|
13239
|
+
createResourceParams$3(config);
|
|
13240
|
+
return select$3();
|
|
13463
13241
|
}
|
|
13464
13242
|
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
13465
|
-
const snapshot = ingestSuccess$
|
|
13243
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
13466
13244
|
config,
|
|
13467
|
-
resolve: () => buildNetworkSnapshot$
|
|
13245
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
13468
13246
|
});
|
|
13469
13247
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13470
13248
|
}
|
|
13471
13249
|
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
13472
13250
|
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
13473
13251
|
config,
|
|
13474
|
-
resolve: () => buildNetworkSnapshot$
|
|
13252
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
13475
13253
|
});
|
|
13476
13254
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13477
13255
|
}
|
|
13478
|
-
function buildNetworkSnapshot$
|
|
13479
|
-
const resourceParams = createResourceParams$
|
|
13480
|
-
const request = createResourceRequest$
|
|
13256
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
13257
|
+
const resourceParams = createResourceParams$3(config);
|
|
13258
|
+
const request = createResourceRequest$3(resourceParams);
|
|
13481
13259
|
return luvio.dispatchResourceRequest(request, options)
|
|
13482
13260
|
.then((response) => {
|
|
13483
13261
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
13484
13262
|
const cache = new StoreKeyMap();
|
|
13485
|
-
getResponseCacheKeys$
|
|
13263
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
13486
13264
|
return cache;
|
|
13487
13265
|
});
|
|
13488
13266
|
}, (response) => {
|
|
@@ -13490,7 +13268,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
13490
13268
|
});
|
|
13491
13269
|
}
|
|
13492
13270
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
13493
|
-
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
13271
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
13494
13272
|
}
|
|
13495
13273
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
13496
13274
|
const { luvio, config } = context;
|
|
@@ -13501,12 +13279,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
13501
13279
|
};
|
|
13502
13280
|
const cacheSnapshot = storeLookup(selector, {
|
|
13503
13281
|
config,
|
|
13504
|
-
resolve: () => buildNetworkSnapshot$
|
|
13282
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
13505
13283
|
});
|
|
13506
13284
|
return cacheSnapshot;
|
|
13507
13285
|
}
|
|
13508
13286
|
const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetricsById(untrustedConfig, requestContext) {
|
|
13509
|
-
const config = validateAdapterConfig$
|
|
13287
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetricsById_ConfigPropertyNames);
|
|
13510
13288
|
// Invalid or incomplete config
|
|
13511
13289
|
if (config === null) {
|
|
13512
13290
|
return null;
|
|
@@ -13515,19 +13293,19 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
13515
13293
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
13516
13294
|
};
|
|
13517
13295
|
|
|
13518
|
-
function select$
|
|
13519
|
-
return select$
|
|
13296
|
+
function select$2(luvio, params) {
|
|
13297
|
+
return select$o();
|
|
13520
13298
|
}
|
|
13521
|
-
function getResponseCacheKeys$
|
|
13299
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
13522
13300
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
13523
13301
|
}
|
|
13524
|
-
function ingestSuccess$
|
|
13302
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
13525
13303
|
const { body } = response;
|
|
13526
13304
|
const key = keyBuilderFromType(luvio, body);
|
|
13527
13305
|
luvio.storeIngest(key, ingest$6, body);
|
|
13528
13306
|
const snapshot = luvio.storeLookup({
|
|
13529
13307
|
recordId: key,
|
|
13530
|
-
node: select$
|
|
13308
|
+
node: select$2(),
|
|
13531
13309
|
variables: {},
|
|
13532
13310
|
});
|
|
13533
13311
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13538,7 +13316,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
13538
13316
|
deepFreeze(snapshot.data);
|
|
13539
13317
|
return snapshot;
|
|
13540
13318
|
}
|
|
13541
|
-
function createResourceRequest$
|
|
13319
|
+
function createResourceRequest$2(config) {
|
|
13542
13320
|
const headers = {};
|
|
13543
13321
|
return {
|
|
13544
13322
|
baseUri: '/services/data/v64.0',
|
|
@@ -13552,18 +13330,18 @@ function createResourceRequest$1(config) {
|
|
|
13552
13330
|
};
|
|
13553
13331
|
}
|
|
13554
13332
|
|
|
13555
|
-
const adapterName$
|
|
13333
|
+
const adapterName$2 = 'patchSemanticMetricGoal';
|
|
13556
13334
|
const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
13557
13335
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13558
13336
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13559
13337
|
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
13560
13338
|
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
13561
13339
|
];
|
|
13562
|
-
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
13563
|
-
const createResourceParams$
|
|
13564
|
-
function typeCheckConfig$
|
|
13340
|
+
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
13341
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$k(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
13342
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
13565
13343
|
const config = {};
|
|
13566
|
-
typeCheckConfig$
|
|
13344
|
+
typeCheckConfig$k(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
13567
13345
|
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
13568
13346
|
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
13569
13347
|
const untrustedConfig_statusConditions_array = [];
|
|
@@ -13578,30 +13356,30 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
13578
13356
|
}
|
|
13579
13357
|
return config;
|
|
13580
13358
|
}
|
|
13581
|
-
function validateAdapterConfig$
|
|
13359
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
13582
13360
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
13583
13361
|
return null;
|
|
13584
13362
|
}
|
|
13585
13363
|
if (process.env.NODE_ENV !== 'production') {
|
|
13586
13364
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
13587
13365
|
}
|
|
13588
|
-
const config = typeCheckConfig$
|
|
13366
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
13589
13367
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
13590
13368
|
return null;
|
|
13591
13369
|
}
|
|
13592
13370
|
return config;
|
|
13593
13371
|
}
|
|
13594
|
-
function buildNetworkSnapshot$
|
|
13595
|
-
const resourceParams = createResourceParams$
|
|
13596
|
-
const request = createResourceRequest$
|
|
13372
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
13373
|
+
const resourceParams = createResourceParams$2(config);
|
|
13374
|
+
const request = createResourceRequest$2(resourceParams);
|
|
13597
13375
|
return luvio.dispatchResourceRequest(request, options)
|
|
13598
13376
|
.then((response) => {
|
|
13599
13377
|
return luvio.handleSuccessResponse(() => {
|
|
13600
|
-
const snapshot = ingestSuccess$
|
|
13378
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
13601
13379
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13602
13380
|
}, () => {
|
|
13603
13381
|
const cache = new StoreKeyMap();
|
|
13604
|
-
getResponseCacheKeys$
|
|
13382
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
13605
13383
|
return cache;
|
|
13606
13384
|
});
|
|
13607
13385
|
}, (response) => {
|
|
@@ -13611,28 +13389,28 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
13611
13389
|
}
|
|
13612
13390
|
const patchSemanticMetricGoalAdapterFactory = (luvio) => {
|
|
13613
13391
|
return function patchSemanticMetricGoal(untrustedConfig) {
|
|
13614
|
-
const config = validateAdapterConfig$
|
|
13392
|
+
const config = validateAdapterConfig$2(untrustedConfig, patchSemanticMetricGoal_ConfigPropertyNames);
|
|
13615
13393
|
// Invalid or incomplete config
|
|
13616
13394
|
if (config === null) {
|
|
13617
13395
|
throw new Error('Invalid config for "patchSemanticMetricGoal"');
|
|
13618
13396
|
}
|
|
13619
|
-
return buildNetworkSnapshot$
|
|
13397
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
13620
13398
|
};
|
|
13621
13399
|
};
|
|
13622
13400
|
|
|
13623
|
-
function select(luvio, params) {
|
|
13624
|
-
return select$
|
|
13401
|
+
function select$1(luvio, params) {
|
|
13402
|
+
return select$q();
|
|
13625
13403
|
}
|
|
13626
|
-
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
13404
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
13627
13405
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
13628
13406
|
}
|
|
13629
|
-
function ingestSuccess(luvio, resourceParams, response) {
|
|
13407
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
13630
13408
|
const { body } = response;
|
|
13631
13409
|
const key = keyBuilderFromType$1(luvio, body);
|
|
13632
13410
|
luvio.storeIngest(key, ingest$7, body);
|
|
13633
13411
|
const snapshot = luvio.storeLookup({
|
|
13634
13412
|
recordId: key,
|
|
13635
|
-
node: select(),
|
|
13413
|
+
node: select$1(),
|
|
13636
13414
|
variables: {},
|
|
13637
13415
|
});
|
|
13638
13416
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13643,7 +13421,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
13643
13421
|
deepFreeze(snapshot.data);
|
|
13644
13422
|
return snapshot;
|
|
13645
13423
|
}
|
|
13646
|
-
function createResourceRequest(config) {
|
|
13424
|
+
function createResourceRequest$1(config) {
|
|
13647
13425
|
const headers = {};
|
|
13648
13426
|
return {
|
|
13649
13427
|
baseUri: '/services/data/v64.0',
|
|
@@ -13657,7 +13435,7 @@ function createResourceRequest(config) {
|
|
|
13657
13435
|
};
|
|
13658
13436
|
}
|
|
13659
13437
|
|
|
13660
|
-
const adapterName = 'patchSemanticModel';
|
|
13438
|
+
const adapterName$1 = 'patchSemanticModel';
|
|
13661
13439
|
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
13662
13440
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13663
13441
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -13679,11 +13457,11 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
13679
13457
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
13680
13458
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
13681
13459
|
];
|
|
13682
|
-
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, patchSemanticModel_ConfigPropertyMetadata);
|
|
13683
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
13684
|
-
function typeCheckConfig(untrustedConfig) {
|
|
13460
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticModel_ConfigPropertyMetadata);
|
|
13461
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$k(patchSemanticModel_ConfigPropertyMetadata);
|
|
13462
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
13685
13463
|
const config = {};
|
|
13686
|
-
typeCheckConfig$
|
|
13464
|
+
typeCheckConfig$k(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
13687
13465
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
13688
13466
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
13689
13467
|
const untrustedConfig_baseModels_array = [];
|
|
@@ -13794,6 +13572,123 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
13794
13572
|
}
|
|
13795
13573
|
return config;
|
|
13796
13574
|
}
|
|
13575
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
13576
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
13577
|
+
return null;
|
|
13578
|
+
}
|
|
13579
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
13580
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
13581
|
+
}
|
|
13582
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
13583
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
13584
|
+
return null;
|
|
13585
|
+
}
|
|
13586
|
+
return config;
|
|
13587
|
+
}
|
|
13588
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
13589
|
+
const resourceParams = createResourceParams$1(config);
|
|
13590
|
+
const request = createResourceRequest$1(resourceParams);
|
|
13591
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
13592
|
+
.then((response) => {
|
|
13593
|
+
return luvio.handleSuccessResponse(() => {
|
|
13594
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
13595
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
13596
|
+
}, () => {
|
|
13597
|
+
const cache = new StoreKeyMap();
|
|
13598
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
13599
|
+
return cache;
|
|
13600
|
+
});
|
|
13601
|
+
}, (response) => {
|
|
13602
|
+
deepFreeze(response);
|
|
13603
|
+
throw response;
|
|
13604
|
+
});
|
|
13605
|
+
}
|
|
13606
|
+
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
13607
|
+
return function patchSemanticModel(untrustedConfig) {
|
|
13608
|
+
const config = validateAdapterConfig$1(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
13609
|
+
// Invalid or incomplete config
|
|
13610
|
+
if (config === null) {
|
|
13611
|
+
throw new Error('Invalid config for "patchSemanticModel"');
|
|
13612
|
+
}
|
|
13613
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
13614
|
+
};
|
|
13615
|
+
};
|
|
13616
|
+
|
|
13617
|
+
function select(luvio, params) {
|
|
13618
|
+
return select$P();
|
|
13619
|
+
}
|
|
13620
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
13621
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response);
|
|
13622
|
+
}
|
|
13623
|
+
function ingestSuccess(luvio, resourceParams, response) {
|
|
13624
|
+
const { body } = response;
|
|
13625
|
+
const key = keyBuilderFromType$c(luvio, body);
|
|
13626
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
13627
|
+
const snapshot = luvio.storeLookup({
|
|
13628
|
+
recordId: key,
|
|
13629
|
+
node: select(),
|
|
13630
|
+
variables: {},
|
|
13631
|
+
});
|
|
13632
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
13633
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
13634
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
13635
|
+
}
|
|
13636
|
+
}
|
|
13637
|
+
deepFreeze(snapshot.data);
|
|
13638
|
+
return snapshot;
|
|
13639
|
+
}
|
|
13640
|
+
function createResourceRequest(config) {
|
|
13641
|
+
const headers = {};
|
|
13642
|
+
return {
|
|
13643
|
+
baseUri: '/services/data/v64.0',
|
|
13644
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/goals',
|
|
13645
|
+
method: 'put',
|
|
13646
|
+
body: config.body,
|
|
13647
|
+
urlParams: config.urlParams,
|
|
13648
|
+
queryParams: config.queryParams,
|
|
13649
|
+
headers,
|
|
13650
|
+
priority: 'normal',
|
|
13651
|
+
};
|
|
13652
|
+
}
|
|
13653
|
+
|
|
13654
|
+
const adapterName = 'updateSemanticGoal';
|
|
13655
|
+
const updateSemanticGoal_ConfigPropertyMetadata = [
|
|
13656
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13657
|
+
generateParamConfigMetadata('endDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
13658
|
+
generateParamConfigMetadata('startDate', true, 1 /* QueryParameter */, 0 /* String */),
|
|
13659
|
+
generateParamConfigMetadata('subMetricApiNameOrId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
13660
|
+
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
13661
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
13662
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
13663
|
+
generateParamConfigMetadata('dateRange', true, 2 /* Body */, 4 /* Unsupported */),
|
|
13664
|
+
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
13665
|
+
generateParamConfigMetadata('statusConditions', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
13666
|
+
generateParamConfigMetadata('subMetricDefinitionApiName', true, 2 /* Body */, 0 /* String */),
|
|
13667
|
+
];
|
|
13668
|
+
const updateSemanticGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateSemanticGoal_ConfigPropertyMetadata);
|
|
13669
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$k(updateSemanticGoal_ConfigPropertyMetadata);
|
|
13670
|
+
function typeCheckConfig(untrustedConfig) {
|
|
13671
|
+
const config = {};
|
|
13672
|
+
typeCheckConfig$k(untrustedConfig, config, updateSemanticGoal_ConfigPropertyMetadata);
|
|
13673
|
+
const untrustedConfig_dateRange = untrustedConfig.dateRange;
|
|
13674
|
+
const referenceSemanticGoalDateRangeInputRepresentationValidationError = validate$14(untrustedConfig_dateRange);
|
|
13675
|
+
if (referenceSemanticGoalDateRangeInputRepresentationValidationError === null) {
|
|
13676
|
+
config.dateRange = untrustedConfig_dateRange;
|
|
13677
|
+
}
|
|
13678
|
+
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
13679
|
+
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
13680
|
+
const untrustedConfig_statusConditions_array = [];
|
|
13681
|
+
for (let i = 0, arrayLength = untrustedConfig_statusConditions.length; i < arrayLength; i++) {
|
|
13682
|
+
const untrustedConfig_statusConditions_item = untrustedConfig_statusConditions[i];
|
|
13683
|
+
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$13(untrustedConfig_statusConditions_item);
|
|
13684
|
+
if (referenceSemanticGoalStatusConditionInputRepresentationValidationError === null) {
|
|
13685
|
+
untrustedConfig_statusConditions_array.push(untrustedConfig_statusConditions_item);
|
|
13686
|
+
}
|
|
13687
|
+
}
|
|
13688
|
+
config.statusConditions = untrustedConfig_statusConditions_array;
|
|
13689
|
+
}
|
|
13690
|
+
return config;
|
|
13691
|
+
}
|
|
13797
13692
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
13798
13693
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
13799
13694
|
return null;
|
|
@@ -13825,12 +13720,12 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
13825
13720
|
throw response;
|
|
13826
13721
|
});
|
|
13827
13722
|
}
|
|
13828
|
-
const
|
|
13829
|
-
return function
|
|
13830
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
13723
|
+
const updateSemanticGoalAdapterFactory = (luvio) => {
|
|
13724
|
+
return function updateSemanticGoal(untrustedConfig) {
|
|
13725
|
+
const config = validateAdapterConfig(untrustedConfig, updateSemanticGoal_ConfigPropertyNames);
|
|
13831
13726
|
// Invalid or incomplete config
|
|
13832
13727
|
if (config === null) {
|
|
13833
|
-
throw new Error('Invalid config for "
|
|
13728
|
+
throw new Error('Invalid config for "updateSemanticGoal"');
|
|
13834
13729
|
}
|
|
13835
13730
|
return buildNetworkSnapshot(luvio, config);
|
|
13836
13731
|
};
|
|
@@ -13840,6 +13735,7 @@ let createSemanticGoal;
|
|
|
13840
13735
|
let createSemanticModel;
|
|
13841
13736
|
let createSemanticSubMetric;
|
|
13842
13737
|
let deleteGoalFromSubMetric;
|
|
13738
|
+
let deleteSemanticGoal;
|
|
13843
13739
|
let deleteSemanticSubMetric;
|
|
13844
13740
|
let getLeafDependenciesByTypes;
|
|
13845
13741
|
let getSemanticGoal;
|
|
@@ -13858,6 +13754,7 @@ let getSemanticSubMetrics;
|
|
|
13858
13754
|
let getSemanticSubMetricsById;
|
|
13859
13755
|
let patchSemanticMetricGoal;
|
|
13860
13756
|
let patchSemanticModel;
|
|
13757
|
+
let updateSemanticGoal;
|
|
13861
13758
|
// Imperative GET Adapters
|
|
13862
13759
|
let getLeafDependenciesByTypes_imperative;
|
|
13863
13760
|
let getSemanticGoal_imperative;
|
|
@@ -13921,8 +13818,9 @@ function bindExportsTo(luvio) {
|
|
|
13921
13818
|
createSemanticGoal: unwrapSnapshotData(createSemanticGoalAdapterFactory),
|
|
13922
13819
|
createSemanticModel: unwrapSnapshotData(createSemanticModelAdapterFactory),
|
|
13923
13820
|
createSemanticSubMetric: unwrapSnapshotData(createSemanticSubMetricAdapterFactory),
|
|
13924
|
-
deleteGoalFromSubMetric: createLDSAdapter(luvio, adapterName$
|
|
13925
|
-
|
|
13821
|
+
deleteGoalFromSubMetric: createLDSAdapter(luvio, adapterName$g, deleteGoalFromSubMetricAdapterFactory),
|
|
13822
|
+
deleteSemanticGoal: createLDSAdapter(luvio, adapterName$f, deleteSemanticGoalAdapterFactory),
|
|
13823
|
+
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$e, deleteSemanticSubMetricAdapterFactory),
|
|
13926
13824
|
getLeafDependenciesByTypes: createWireAdapterConstructor(luvio, getLeafDependenciesByTypes_ldsAdapter, getLeafDependenciesByTypesMetadata),
|
|
13927
13825
|
getSemanticGoal: createWireAdapterConstructor(luvio, getSemanticGoal_ldsAdapter, getSemanticGoalMetadata),
|
|
13928
13826
|
getSemanticGoalNotifyChange: createLDSAdapter(luvio, 'getSemanticGoalNotifyChange', notifyChangeFactory$3),
|
|
@@ -13940,6 +13838,7 @@ function bindExportsTo(luvio) {
|
|
|
13940
13838
|
getSemanticSubMetricsById: createWireAdapterConstructor(luvio, getSemanticSubMetricsById_ldsAdapter, getSemanticSubMetricsByIdMetadata),
|
|
13941
13839
|
patchSemanticMetricGoal: unwrapSnapshotData(patchSemanticMetricGoalAdapterFactory),
|
|
13942
13840
|
patchSemanticModel: unwrapSnapshotData(patchSemanticModelAdapterFactory),
|
|
13841
|
+
updateSemanticGoal: unwrapSnapshotData(updateSemanticGoalAdapterFactory),
|
|
13943
13842
|
// Imperative GET Adapters
|
|
13944
13843
|
getLeafDependenciesByTypes_imperative: createImperativeAdapter(luvio, getLeafDependenciesByTypes_ldsAdapter, getLeafDependenciesByTypesMetadata),
|
|
13945
13844
|
getSemanticGoal_imperative: createImperativeAdapter(luvio, getSemanticGoal_ldsAdapter, getSemanticGoalMetadata),
|
|
@@ -13961,6 +13860,7 @@ withDefaultLuvio((luvio) => {
|
|
|
13961
13860
|
createSemanticModel,
|
|
13962
13861
|
createSemanticSubMetric,
|
|
13963
13862
|
deleteGoalFromSubMetric,
|
|
13863
|
+
deleteSemanticGoal,
|
|
13964
13864
|
deleteSemanticSubMetric,
|
|
13965
13865
|
getLeafDependenciesByTypes,
|
|
13966
13866
|
getSemanticGoal,
|
|
@@ -13979,6 +13879,7 @@ withDefaultLuvio((luvio) => {
|
|
|
13979
13879
|
getSemanticSubMetricsById,
|
|
13980
13880
|
patchSemanticMetricGoal,
|
|
13981
13881
|
patchSemanticModel,
|
|
13882
|
+
updateSemanticGoal,
|
|
13982
13883
|
getLeafDependenciesByTypes_imperative,
|
|
13983
13884
|
getSemanticGoal_imperative,
|
|
13984
13885
|
getSemanticMetric_imperative,
|
|
@@ -13993,5 +13894,5 @@ withDefaultLuvio((luvio) => {
|
|
|
13993
13894
|
} = bindExportsTo(luvio));
|
|
13994
13895
|
});
|
|
13995
13896
|
|
|
13996
|
-
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 };
|
|
13997
|
-
// version: 1.
|
|
13897
|
+
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 };
|
|
13898
|
+
// version: 1.347.1-60ff64f212
|