@salesforce/lds-adapters-cdp-semantic-authoring 1.303.0 → 1.305.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8120,235 +8120,8 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
8120
8120
  buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
8121
8121
  };
8122
8122
 
8123
- const VERSION$5 = "099ecda89ead862ebc5bbba6125bfa88";
8124
- function validate$5(obj, path = 'SemanticMetricCollectionOutputRepresentation') {
8125
- const v_error = (() => {
8126
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8127
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
8128
- }
8129
- const obj_metrics = obj.metrics;
8130
- const path_metrics = path + '.metrics';
8131
- if (!ArrayIsArray(obj_metrics)) {
8132
- return new TypeError('Expected "array" but received "' + typeof obj_metrics + '" (at "' + path_metrics + '")');
8133
- }
8134
- for (let i = 0; i < obj_metrics.length; i++) {
8135
- const obj_metrics_item = obj_metrics[i];
8136
- const path_metrics_item = path_metrics + '[' + i + ']';
8137
- if (typeof obj_metrics_item !== 'object') {
8138
- return new TypeError('Expected "object" but received "' + typeof obj_metrics_item + '" (at "' + path_metrics_item + '")');
8139
- }
8140
- }
8141
- })();
8142
- return v_error === undefined ? null : v_error;
8143
- }
8144
- const RepresentationType$4 = 'SemanticMetricCollectionOutputRepresentation';
8145
- function normalize$4(input, existing, path, luvio, store, timestamp) {
8146
- const input_metrics = input.metrics;
8147
- const input_metrics_id = path.fullPath + '__metrics';
8148
- for (let i = 0; i < input_metrics.length; i++) {
8149
- const input_metrics_item = input_metrics[i];
8150
- let input_metrics_item_id = input_metrics_id + '__' + i;
8151
- input_metrics[i] = ingest$6(input_metrics_item, {
8152
- fullPath: input_metrics_item_id,
8153
- propertyName: i,
8154
- parent: {
8155
- data: input,
8156
- key: path.fullPath,
8157
- existing: existing,
8158
- },
8159
- ttl: path.ttl
8160
- }, luvio, store, timestamp);
8161
- }
8162
- return input;
8163
- }
8164
- const select$a = function SemanticMetricCollectionOutputRepresentationSelect() {
8165
- return {
8166
- kind: 'Fragment',
8167
- version: VERSION$5,
8168
- private: [],
8169
- selections: [
8170
- {
8171
- name: 'metrics',
8172
- kind: 'Link',
8173
- plural: true,
8174
- fragment: select$d()
8175
- }
8176
- ]
8177
- };
8178
- };
8179
- function equals$5(existing, incoming) {
8180
- const existing_metrics = existing.metrics;
8181
- const incoming_metrics = incoming.metrics;
8182
- const equals_metrics_items = equalsArray(existing_metrics, incoming_metrics, (existing_metrics_item, incoming_metrics_item) => {
8183
- if (!(existing_metrics_item.__ref === incoming_metrics_item.__ref)) {
8184
- return false;
8185
- }
8186
- });
8187
- if (equals_metrics_items === false) {
8188
- return false;
8189
- }
8190
- return true;
8191
- }
8192
- const ingest$4 = function SemanticMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8193
- if (process.env.NODE_ENV !== 'production') {
8194
- const validateError = validate$5(input);
8195
- if (validateError !== null) {
8196
- throw validateError;
8197
- }
8198
- }
8199
- const key = path.fullPath;
8200
- const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
8201
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SemanticAuthoring", VERSION$5, RepresentationType$4, equals$5);
8202
- return createLink(key);
8203
- };
8204
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
8205
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
8206
- const rootKey = fullPathFactory();
8207
- rootKeySet.set(rootKey, {
8208
- namespace: keyPrefix,
8209
- representationName: RepresentationType$4,
8210
- mergeable: false
8211
- });
8212
- const input_metrics_length = input.metrics.length;
8213
- for (let i = 0; i < input_metrics_length; i++) {
8214
- getTypeCacheKeys$6(rootKeySet, luvio, input.metrics[i]);
8215
- }
8216
- }
8217
-
8218
- function select$9(luvio, params) {
8219
- return select$a();
8220
- }
8221
- function keyBuilder$a(luvio, params) {
8222
- return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
8223
- }
8224
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
8225
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
8226
- }
8227
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
8228
- const { body } = response;
8229
- const key = keyBuilder$a(luvio, resourceParams);
8230
- luvio.storeIngest(key, ingest$4, body);
8231
- const snapshot = luvio.storeLookup({
8232
- recordId: key,
8233
- node: select$9(),
8234
- variables: {},
8235
- }, snapshotRefresh);
8236
- if (process.env.NODE_ENV !== 'production') {
8237
- if (snapshot.state !== 'Fulfilled') {
8238
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
8239
- }
8240
- }
8241
- deepFreeze(snapshot.data);
8242
- return snapshot;
8243
- }
8244
- function ingestError$4(luvio, params, error, snapshotRefresh) {
8245
- const key = keyBuilder$a(luvio, params);
8246
- const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
8247
- luvio.storeIngestError(key, errorSnapshot);
8248
- return errorSnapshot;
8249
- }
8250
- function createResourceRequest$4(config) {
8251
- const headers = {};
8252
- return {
8253
- baseUri: '/services/data/v62.0',
8254
- basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics',
8255
- method: 'get',
8256
- body: null,
8257
- urlParams: config.urlParams,
8258
- queryParams: {},
8259
- headers,
8260
- priority: 'normal',
8261
- };
8262
- }
8263
-
8264
- const adapterName$4 = 'getSemanticMetrics';
8265
- const getSemanticMetrics_ConfigPropertyMetadata = [
8266
- generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
8267
- ];
8268
- const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticMetrics_ConfigPropertyMetadata);
8269
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getSemanticMetrics_ConfigPropertyMetadata);
8270
- function keyBuilder$9(luvio, config) {
8271
- const resourceParams = createResourceParams$4(config);
8272
- return keyBuilder$a(luvio, resourceParams);
8273
- }
8274
- function typeCheckConfig$4(untrustedConfig) {
8275
- const config = {};
8276
- typeCheckConfig$7(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
8277
- return config;
8278
- }
8279
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
8280
- if (!untrustedIsObject(untrustedConfig)) {
8281
- return null;
8282
- }
8283
- if (process.env.NODE_ENV !== 'production') {
8284
- validateConfig(untrustedConfig, configPropertyNames);
8285
- }
8286
- const config = typeCheckConfig$4(untrustedConfig);
8287
- if (!areRequiredParametersPresent(config, configPropertyNames)) {
8288
- return null;
8289
- }
8290
- return config;
8291
- }
8292
- function adapterFragment$4(luvio, config) {
8293
- createResourceParams$4(config);
8294
- return select$9();
8295
- }
8296
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
8297
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
8298
- config,
8299
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
8300
- });
8301
- return luvio.storeBroadcast().then(() => snapshot);
8302
- }
8303
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
8304
- const snapshot = ingestError$4(luvio, resourceParams, response, {
8305
- config,
8306
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
8307
- });
8308
- return luvio.storeBroadcast().then(() => snapshot);
8309
- }
8310
- function buildNetworkSnapshot$4(luvio, config, options) {
8311
- const resourceParams = createResourceParams$4(config);
8312
- const request = createResourceRequest$4(resourceParams);
8313
- return luvio.dispatchResourceRequest(request, options)
8314
- .then((response) => {
8315
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
8316
- const cache = new StoreKeyMap();
8317
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
8318
- return cache;
8319
- });
8320
- }, (response) => {
8321
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
8322
- });
8323
- }
8324
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
8325
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
8326
- }
8327
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
8328
- const { luvio, config } = context;
8329
- const selector = {
8330
- recordId: keyBuilder$9(luvio, config),
8331
- node: adapterFragment$4(luvio, config),
8332
- variables: {},
8333
- };
8334
- const cacheSnapshot = storeLookup(selector, {
8335
- config,
8336
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
8337
- });
8338
- return cacheSnapshot;
8339
- }
8340
- const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
8341
- const config = validateAdapterConfig$4(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
8342
- // Invalid or incomplete config
8343
- if (config === null) {
8344
- return null;
8345
- }
8346
- return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
8347
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
8348
- };
8349
-
8350
- const VERSION$4 = "52571b5259c434dbcab4ff3fc2fb1007";
8351
- function validate$4(obj, path = 'SemanticTimeRangeOutputRepresentation') {
8123
+ const VERSION$5 = "52571b5259c434dbcab4ff3fc2fb1007";
8124
+ function validate$5(obj, path = 'SemanticTimeRangeOutputRepresentation') {
8352
8125
  const v_error = (() => {
8353
8126
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8354
8127
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -8440,10 +8213,10 @@ function validate$4(obj, path = 'SemanticTimeRangeOutputRepresentation') {
8440
8213
  })();
8441
8214
  return v_error === undefined ? null : v_error;
8442
8215
  }
8443
- const select$8 = function SemanticTimeRangeOutputRepresentationSelect() {
8216
+ const select$a = function SemanticTimeRangeOutputRepresentationSelect() {
8444
8217
  return {
8445
8218
  kind: 'Fragment',
8446
- version: VERSION$4,
8219
+ version: VERSION$5,
8447
8220
  private: [],
8448
8221
  selections: [
8449
8222
  {
@@ -8464,7 +8237,7 @@ const select$8 = function SemanticTimeRangeOutputRepresentationSelect() {
8464
8237
  ]
8465
8238
  };
8466
8239
  };
8467
- function equals$4(existing, incoming) {
8240
+ function equals$5(existing, incoming) {
8468
8241
  const existing_customerEndDate = existing.customerEndDate;
8469
8242
  const incoming_customerEndDate = incoming.customerEndDate;
8470
8243
  // if at least one of these optionals is defined
@@ -8507,8 +8280,8 @@ function equals$4(existing, incoming) {
8507
8280
  return true;
8508
8281
  }
8509
8282
 
8510
- const VERSION$3 = "ed3364f5079040e53fbc5d2980bbcaa4";
8511
- function validate$3(obj, path = 'SemanticSubMetricOutputRepresentation') {
8283
+ const VERSION$4 = "ed3364f5079040e53fbc5d2980bbcaa4";
8284
+ function validate$4(obj, path = 'SemanticSubMetricOutputRepresentation') {
8512
8285
  const v_error = (() => {
8513
8286
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8514
8287
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -8730,7 +8503,7 @@ function validate$3(obj, path = 'SemanticSubMetricOutputRepresentation') {
8730
8503
  const path_timeRange = path + '.timeRange';
8731
8504
  let obj_timeRange_union0 = null;
8732
8505
  const obj_timeRange_union0_error = (() => {
8733
- const referencepath_timeRangeValidationError = validate$4(obj_timeRange, path_timeRange);
8506
+ const referencepath_timeRangeValidationError = validate$5(obj_timeRange, path_timeRange);
8734
8507
  if (referencepath_timeRangeValidationError !== null) {
8735
8508
  let message = 'Object doesn\'t match SemanticTimeRangeOutputRepresentation (at "' + path_timeRange + '")\n';
8736
8509
  message += referencepath_timeRangeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8759,25 +8532,25 @@ function validate$3(obj, path = 'SemanticSubMetricOutputRepresentation') {
8759
8532
  })();
8760
8533
  return v_error === undefined ? null : v_error;
8761
8534
  }
8762
- const RepresentationType$3 = 'SemanticSubMetricOutputRepresentation';
8763
- function keyBuilder$8(luvio, config) {
8764
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.name;
8535
+ const RepresentationType$4 = 'SemanticSubMetricOutputRepresentation';
8536
+ function keyBuilder$a(luvio, config) {
8537
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.name;
8765
8538
  }
8766
8539
  function keyBuilderFromType(luvio, object) {
8767
8540
  const keyParams = {
8768
8541
  name: object.apiName
8769
8542
  };
8770
- return keyBuilder$8(luvio, keyParams);
8543
+ return keyBuilder$a(luvio, keyParams);
8771
8544
  }
8772
- function normalize$3(input, existing, path, luvio, store, timestamp) {
8545
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
8773
8546
  return input;
8774
8547
  }
8775
- const select$7 = function SemanticSubMetricOutputRepresentationSelect() {
8548
+ const select$9 = function SemanticSubMetricOutputRepresentationSelect() {
8776
8549
  const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$s();
8777
- const { selections: SemanticTimeRangeOutputRepresentation__selections, opaque: SemanticTimeRangeOutputRepresentation__opaque, } = select$8();
8550
+ const { selections: SemanticTimeRangeOutputRepresentation__selections, opaque: SemanticTimeRangeOutputRepresentation__opaque, } = select$a();
8778
8551
  return {
8779
8552
  kind: 'Fragment',
8780
- version: VERSION$3,
8553
+ version: VERSION$4,
8781
8554
  private: [],
8782
8555
  selections: [
8783
8556
  {
@@ -8848,7 +8621,7 @@ const select$7 = function SemanticSubMetricOutputRepresentationSelect() {
8848
8621
  ]
8849
8622
  };
8850
8623
  };
8851
- function equals$3(existing, incoming) {
8624
+ function equals$4(existing, incoming) {
8852
8625
  const existing_apiName = existing.apiName;
8853
8626
  const incoming_apiName = incoming.apiName;
8854
8627
  if (!(existing_apiName === incoming_apiName)) {
@@ -8990,36 +8763,36 @@ function equals$3(existing, incoming) {
8990
8763
  if (!(existing_timeRange === incoming_timeRange
8991
8764
  || (existing_timeRange != null &&
8992
8765
  incoming_timeRange != null &&
8993
- equals$4(existing_timeRange, incoming_timeRange)))) {
8766
+ equals$5(existing_timeRange, incoming_timeRange)))) {
8994
8767
  return false;
8995
8768
  }
8996
8769
  }
8997
8770
  return true;
8998
8771
  }
8999
- const ingest$3 = function SemanticSubMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8772
+ const ingest$4 = function SemanticSubMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
9000
8773
  if (process.env.NODE_ENV !== 'production') {
9001
- const validateError = validate$3(input);
8774
+ const validateError = validate$4(input);
9002
8775
  if (validateError !== null) {
9003
8776
  throw validateError;
9004
8777
  }
9005
8778
  }
9006
8779
  const key = keyBuilderFromType(luvio, input);
9007
8780
  const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
9008
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SemanticAuthoring", VERSION$3, RepresentationType$3, equals$3);
8781
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SemanticAuthoring", VERSION$4, RepresentationType$4, equals$4);
9009
8782
  return createLink(key);
9010
8783
  };
9011
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
8784
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
9012
8785
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
9013
8786
  const rootKey = keyBuilderFromType(luvio, input);
9014
8787
  rootKeySet.set(rootKey, {
9015
8788
  namespace: keyPrefix,
9016
- representationName: RepresentationType$3,
8789
+ representationName: RepresentationType$4,
9017
8790
  mergeable: false
9018
8791
  });
9019
8792
  }
9020
8793
 
9021
- const VERSION$2 = "386f507f0ce3151b9b2009eae0ea1d99";
9022
- function validate$2(obj, path = 'SemanticSubMetricsByMetricOutputRepresentation') {
8794
+ const VERSION$3 = "386f507f0ce3151b9b2009eae0ea1d99";
8795
+ function validate$3(obj, path = 'SemanticSubMetricsByMetricOutputRepresentation') {
9023
8796
  const v_error = (() => {
9024
8797
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
9025
8798
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -9069,15 +8842,15 @@ function validate$2(obj, path = 'SemanticSubMetricsByMetricOutputRepresentation'
9069
8842
  })();
9070
8843
  return v_error === undefined ? null : v_error;
9071
8844
  }
9072
- const RepresentationType$2 = 'SemanticSubMetricsByMetricOutputRepresentation';
9073
- function normalize$2(input, existing, path, luvio, store, timestamp) {
8845
+ const RepresentationType$3 = 'SemanticSubMetricsByMetricOutputRepresentation';
8846
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
9074
8847
  const input_subMetrics = input.subMetrics;
9075
8848
  const input_subMetrics_id = path.fullPath + '__subMetrics';
9076
8849
  if (input_subMetrics !== undefined) {
9077
8850
  for (let i = 0; i < input_subMetrics.length; i++) {
9078
8851
  const input_subMetrics_item = input_subMetrics[i];
9079
8852
  let input_subMetrics_item_id = input_subMetrics_id + '__' + i;
9080
- input_subMetrics[i] = ingest$3(input_subMetrics_item, {
8853
+ input_subMetrics[i] = ingest$4(input_subMetrics_item, {
9081
8854
  fullPath: input_subMetrics_item_id,
9082
8855
  propertyName: i,
9083
8856
  parent: {
@@ -9091,10 +8864,10 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
9091
8864
  }
9092
8865
  return input;
9093
8866
  }
9094
- const select$6 = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
8867
+ const select$8 = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
9095
8868
  return {
9096
8869
  kind: 'Fragment',
9097
- version: VERSION$2,
8870
+ version: VERSION$3,
9098
8871
  private: [],
9099
8872
  selections: [
9100
8873
  {
@@ -9107,12 +8880,12 @@ const select$6 = function SemanticSubMetricsByMetricOutputRepresentationSelect()
9107
8880
  kind: 'Link',
9108
8881
  plural: true,
9109
8882
  required: false,
9110
- fragment: select$7()
8883
+ fragment: select$9()
9111
8884
  }
9112
8885
  ]
9113
8886
  };
9114
8887
  };
9115
- function equals$2(existing, incoming) {
8888
+ function equals$3(existing, incoming) {
9116
8889
  const existing_metricApiName = existing.metricApiName;
9117
8890
  const incoming_metricApiName = incoming.metricApiName;
9118
8891
  // if at least one of these optionals is defined
@@ -9146,36 +8919,36 @@ function equals$2(existing, incoming) {
9146
8919
  }
9147
8920
  return true;
9148
8921
  }
9149
- const ingest$2 = function SemanticSubMetricsByMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8922
+ const ingest$3 = function SemanticSubMetricsByMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
9150
8923
  if (process.env.NODE_ENV !== 'production') {
9151
- const validateError = validate$2(input);
8924
+ const validateError = validate$3(input);
9152
8925
  if (validateError !== null) {
9153
8926
  throw validateError;
9154
8927
  }
9155
8928
  }
9156
8929
  const key = path.fullPath;
9157
8930
  const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
9158
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "SemanticAuthoring", VERSION$2, RepresentationType$2, equals$2);
8931
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SemanticAuthoring", VERSION$3, RepresentationType$3, equals$3);
9159
8932
  return createLink(key);
9160
8933
  };
9161
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
8934
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
9162
8935
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
9163
8936
  const rootKey = fullPathFactory();
9164
8937
  rootKeySet.set(rootKey, {
9165
8938
  namespace: keyPrefix,
9166
- representationName: RepresentationType$2,
8939
+ representationName: RepresentationType$3,
9167
8940
  mergeable: false
9168
8941
  });
9169
8942
  if (input.subMetrics !== undefined) {
9170
8943
  const input_subMetrics_length = input.subMetrics.length;
9171
8944
  for (let i = 0; i < input_subMetrics_length; i++) {
9172
- getTypeCacheKeys$3(rootKeySet, luvio, input.subMetrics[i]);
8945
+ getTypeCacheKeys$4(rootKeySet, luvio, input.subMetrics[i]);
9173
8946
  }
9174
8947
  }
9175
8948
  }
9176
8949
 
9177
- const VERSION$1 = "6fbd75e1a154b08c14ba6560c06488db";
9178
- function validate$1(obj, path = 'SemanticSubMetricsByMetricCollectionOutputRepresentation') {
8950
+ const VERSION$2 = "6fbd75e1a154b08c14ba6560c06488db";
8951
+ function validate$2(obj, path = 'SemanticSubMetricsByMetricCollectionOutputRepresentation') {
9179
8952
  const v_error = (() => {
9180
8953
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
9181
8954
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -9197,15 +8970,15 @@ function validate$1(obj, path = 'SemanticSubMetricsByMetricCollectionOutputRepre
9197
8970
  })();
9198
8971
  return v_error === undefined ? null : v_error;
9199
8972
  }
9200
- const RepresentationType$1 = 'SemanticSubMetricsByMetricCollectionOutputRepresentation';
9201
- function normalize$1(input, existing, path, luvio, store, timestamp) {
8973
+ const RepresentationType$2 = 'SemanticSubMetricsByMetricCollectionOutputRepresentation';
8974
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
9202
8975
  const input_items = input.items;
9203
8976
  const input_items_id = path.fullPath + '__items';
9204
8977
  if (input_items !== undefined) {
9205
8978
  for (let i = 0; i < input_items.length; i++) {
9206
8979
  const input_items_item = input_items[i];
9207
8980
  let input_items_item_id = input_items_id + '__' + i;
9208
- input_items[i] = ingest$2(input_items_item, {
8981
+ input_items[i] = ingest$3(input_items_item, {
9209
8982
  fullPath: input_items_item_id,
9210
8983
  propertyName: i,
9211
8984
  parent: {
@@ -9219,10 +8992,10 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
9219
8992
  }
9220
8993
  return input;
9221
8994
  }
9222
- const select$5 = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
8995
+ const select$7 = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
9223
8996
  return {
9224
8997
  kind: 'Fragment',
9225
- version: VERSION$1,
8998
+ version: VERSION$2,
9226
8999
  private: [],
9227
9000
  selections: [
9228
9001
  {
@@ -9230,12 +9003,12 @@ const select$5 = function SemanticSubMetricsByMetricCollectionOutputRepresentati
9230
9003
  kind: 'Link',
9231
9004
  plural: true,
9232
9005
  required: false,
9233
- fragment: select$6()
9006
+ fragment: select$8()
9234
9007
  }
9235
9008
  ]
9236
9009
  };
9237
9010
  };
9238
- function equals$1(existing, incoming) {
9011
+ function equals$2(existing, incoming) {
9239
9012
  const existing_items = existing.items;
9240
9013
  const incoming_items = incoming.items;
9241
9014
  // if at least one of these optionals is defined
@@ -9256,39 +9029,267 @@ function equals$1(existing, incoming) {
9256
9029
  }
9257
9030
  return true;
9258
9031
  }
9259
- const ingest$1 = function SemanticSubMetricsByMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
9032
+ const ingest$2 = function SemanticSubMetricsByMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
9260
9033
  if (process.env.NODE_ENV !== 'production') {
9261
- const validateError = validate$1(input);
9034
+ const validateError = validate$2(input);
9262
9035
  if (validateError !== null) {
9263
9036
  throw validateError;
9264
9037
  }
9265
9038
  }
9266
9039
  const key = path.fullPath;
9267
9040
  const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
9268
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "SemanticAuthoring", VERSION$1, RepresentationType$1, equals$1);
9041
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "SemanticAuthoring", VERSION$2, RepresentationType$2, equals$2);
9269
9042
  return createLink(key);
9270
9043
  };
9271
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
9044
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
9272
9045
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
9273
9046
  const rootKey = fullPathFactory();
9274
9047
  rootKeySet.set(rootKey, {
9275
9048
  namespace: keyPrefix,
9276
- representationName: RepresentationType$1,
9049
+ representationName: RepresentationType$2,
9277
9050
  mergeable: false
9278
9051
  });
9279
9052
  if (input.items !== undefined) {
9280
9053
  const input_items_length = input.items.length;
9281
9054
  for (let i = 0; i < input_items_length; i++) {
9282
- getTypeCacheKeys$2(rootKeySet, luvio, input.items[i], () => '');
9055
+ getTypeCacheKeys$3(rootKeySet, luvio, input.items[i], () => '');
9056
+ }
9057
+ }
9058
+ }
9059
+
9060
+ function select$6(luvio, params) {
9061
+ return select$7();
9062
+ }
9063
+ function keyBuilder$9(luvio, params) {
9064
+ return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
9065
+ }
9066
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
9067
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
9068
+ }
9069
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
9070
+ const { body } = response;
9071
+ const key = keyBuilder$9(luvio, resourceParams);
9072
+ luvio.storeIngest(key, ingest$2, body);
9073
+ const snapshot = luvio.storeLookup({
9074
+ recordId: key,
9075
+ node: select$6(),
9076
+ variables: {},
9077
+ }, snapshotRefresh);
9078
+ if (process.env.NODE_ENV !== 'production') {
9079
+ if (snapshot.state !== 'Fulfilled') {
9080
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
9283
9081
  }
9284
9082
  }
9083
+ deepFreeze(snapshot.data);
9084
+ return snapshot;
9085
+ }
9086
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
9087
+ const key = keyBuilder$9(luvio, params);
9088
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
9089
+ luvio.storeIngestError(key, errorSnapshot);
9090
+ return errorSnapshot;
9091
+ }
9092
+ function createResourceRequest$4(config) {
9093
+ const headers = {};
9094
+ return {
9095
+ baseUri: '/services/data/v62.0',
9096
+ basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metric-api-names/' + config.urlParams.metricApiNames + '/sub-metrics',
9097
+ method: 'get',
9098
+ body: null,
9099
+ urlParams: config.urlParams,
9100
+ queryParams: {},
9101
+ headers,
9102
+ priority: 'normal',
9103
+ };
9104
+ }
9105
+
9106
+ const adapterName$4 = 'getSemanticMetricsToSubMetrics';
9107
+ const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
9108
+ generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
9109
+ generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
9110
+ ];
9111
+ const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
9112
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
9113
+ function keyBuilder$8(luvio, config) {
9114
+ const resourceParams = createResourceParams$4(config);
9115
+ return keyBuilder$9(luvio, resourceParams);
9116
+ }
9117
+ function typeCheckConfig$4(untrustedConfig) {
9118
+ const config = {};
9119
+ typeCheckConfig$7(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
9120
+ return config;
9121
+ }
9122
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
9123
+ if (!untrustedIsObject(untrustedConfig)) {
9124
+ return null;
9125
+ }
9126
+ if (process.env.NODE_ENV !== 'production') {
9127
+ validateConfig(untrustedConfig, configPropertyNames);
9128
+ }
9129
+ const config = typeCheckConfig$4(untrustedConfig);
9130
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
9131
+ return null;
9132
+ }
9133
+ return config;
9134
+ }
9135
+ function adapterFragment$4(luvio, config) {
9136
+ createResourceParams$4(config);
9137
+ return select$6();
9138
+ }
9139
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
9140
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
9141
+ config,
9142
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
9143
+ });
9144
+ return luvio.storeBroadcast().then(() => snapshot);
9145
+ }
9146
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
9147
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
9148
+ config,
9149
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
9150
+ });
9151
+ return luvio.storeBroadcast().then(() => snapshot);
9152
+ }
9153
+ function buildNetworkSnapshot$4(luvio, config, options) {
9154
+ const resourceParams = createResourceParams$4(config);
9155
+ const request = createResourceRequest$4(resourceParams);
9156
+ return luvio.dispatchResourceRequest(request, options)
9157
+ .then((response) => {
9158
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
9159
+ const cache = new StoreKeyMap();
9160
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
9161
+ return cache;
9162
+ });
9163
+ }, (response) => {
9164
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
9165
+ });
9166
+ }
9167
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
9168
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
9169
+ }
9170
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
9171
+ const { luvio, config } = context;
9172
+ const selector = {
9173
+ recordId: keyBuilder$8(luvio, config),
9174
+ node: adapterFragment$4(luvio, config),
9175
+ variables: {},
9176
+ };
9177
+ const cacheSnapshot = storeLookup(selector, {
9178
+ config,
9179
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
9180
+ });
9181
+ return cacheSnapshot;
9182
+ }
9183
+ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
9184
+ const config = validateAdapterConfig$4(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
9185
+ // Invalid or incomplete config
9186
+ if (config === null) {
9187
+ return null;
9188
+ }
9189
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
9190
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
9191
+ };
9192
+
9193
+ const VERSION$1 = "099ecda89ead862ebc5bbba6125bfa88";
9194
+ function validate$1(obj, path = 'SemanticMetricCollectionOutputRepresentation') {
9195
+ const v_error = (() => {
9196
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
9197
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
9198
+ }
9199
+ const obj_metrics = obj.metrics;
9200
+ const path_metrics = path + '.metrics';
9201
+ if (!ArrayIsArray(obj_metrics)) {
9202
+ return new TypeError('Expected "array" but received "' + typeof obj_metrics + '" (at "' + path_metrics + '")');
9203
+ }
9204
+ for (let i = 0; i < obj_metrics.length; i++) {
9205
+ const obj_metrics_item = obj_metrics[i];
9206
+ const path_metrics_item = path_metrics + '[' + i + ']';
9207
+ if (typeof obj_metrics_item !== 'object') {
9208
+ return new TypeError('Expected "object" but received "' + typeof obj_metrics_item + '" (at "' + path_metrics_item + '")');
9209
+ }
9210
+ }
9211
+ })();
9212
+ return v_error === undefined ? null : v_error;
9213
+ }
9214
+ const RepresentationType$1 = 'SemanticMetricCollectionOutputRepresentation';
9215
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
9216
+ const input_metrics = input.metrics;
9217
+ const input_metrics_id = path.fullPath + '__metrics';
9218
+ for (let i = 0; i < input_metrics.length; i++) {
9219
+ const input_metrics_item = input_metrics[i];
9220
+ let input_metrics_item_id = input_metrics_id + '__' + i;
9221
+ input_metrics[i] = ingest$6(input_metrics_item, {
9222
+ fullPath: input_metrics_item_id,
9223
+ propertyName: i,
9224
+ parent: {
9225
+ data: input,
9226
+ key: path.fullPath,
9227
+ existing: existing,
9228
+ },
9229
+ ttl: path.ttl
9230
+ }, luvio, store, timestamp);
9231
+ }
9232
+ return input;
9233
+ }
9234
+ const select$5 = function SemanticMetricCollectionOutputRepresentationSelect() {
9235
+ return {
9236
+ kind: 'Fragment',
9237
+ version: VERSION$1,
9238
+ private: [],
9239
+ selections: [
9240
+ {
9241
+ name: 'metrics',
9242
+ kind: 'Link',
9243
+ plural: true,
9244
+ fragment: select$d()
9245
+ }
9246
+ ]
9247
+ };
9248
+ };
9249
+ function equals$1(existing, incoming) {
9250
+ const existing_metrics = existing.metrics;
9251
+ const incoming_metrics = incoming.metrics;
9252
+ const equals_metrics_items = equalsArray(existing_metrics, incoming_metrics, (existing_metrics_item, incoming_metrics_item) => {
9253
+ if (!(existing_metrics_item.__ref === incoming_metrics_item.__ref)) {
9254
+ return false;
9255
+ }
9256
+ });
9257
+ if (equals_metrics_items === false) {
9258
+ return false;
9259
+ }
9260
+ return true;
9261
+ }
9262
+ const ingest$1 = function SemanticMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
9263
+ if (process.env.NODE_ENV !== 'production') {
9264
+ const validateError = validate$1(input);
9265
+ if (validateError !== null) {
9266
+ throw validateError;
9267
+ }
9268
+ }
9269
+ const key = path.fullPath;
9270
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
9271
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "SemanticAuthoring", VERSION$1, RepresentationType$1, equals$1);
9272
+ return createLink(key);
9273
+ };
9274
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
9275
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
9276
+ const rootKey = fullPathFactory();
9277
+ rootKeySet.set(rootKey, {
9278
+ namespace: keyPrefix,
9279
+ representationName: RepresentationType$1,
9280
+ mergeable: false
9281
+ });
9282
+ const input_metrics_length = input.metrics.length;
9283
+ for (let i = 0; i < input_metrics_length; i++) {
9284
+ getTypeCacheKeys$6(rootKeySet, luvio, input.metrics[i]);
9285
+ }
9285
9286
  }
9286
9287
 
9287
9288
  function select$4(luvio, params) {
9288
9289
  return select$5();
9289
9290
  }
9290
9291
  function keyBuilder$7(luvio, params) {
9291
- return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
9292
+ return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
9292
9293
  }
9293
9294
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
9294
9295
  getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
@@ -9320,7 +9321,7 @@ function createResourceRequest$3(config) {
9320
9321
  const headers = {};
9321
9322
  return {
9322
9323
  baseUri: '/services/data/v62.0',
9323
- basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics/' + config.urlParams.metricApiNames + '/sub-metrics',
9324
+ basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics',
9324
9325
  method: 'get',
9325
9326
  body: null,
9326
9327
  urlParams: config.urlParams,
@@ -9330,20 +9331,19 @@ function createResourceRequest$3(config) {
9330
9331
  };
9331
9332
  }
9332
9333
 
9333
- const adapterName$3 = 'getSemanticMetricsToSubMetrics';
9334
- const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
9335
- generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
9334
+ const adapterName$3 = 'getSemanticMetrics';
9335
+ const getSemanticMetrics_ConfigPropertyMetadata = [
9336
9336
  generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
9337
9337
  ];
9338
- const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
9339
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
9338
+ const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticMetrics_ConfigPropertyMetadata);
9339
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getSemanticMetrics_ConfigPropertyMetadata);
9340
9340
  function keyBuilder$6(luvio, config) {
9341
9341
  const resourceParams = createResourceParams$3(config);
9342
9342
  return keyBuilder$7(luvio, resourceParams);
9343
9343
  }
9344
9344
  function typeCheckConfig$3(untrustedConfig) {
9345
9345
  const config = {};
9346
- typeCheckConfig$7(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
9346
+ typeCheckConfig$7(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
9347
9347
  return config;
9348
9348
  }
9349
9349
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -9407,8 +9407,8 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
9407
9407
  });
9408
9408
  return cacheSnapshot;
9409
9409
  }
9410
- const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
9411
- const config = validateAdapterConfig$3(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
9410
+ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
9411
+ const config = validateAdapterConfig$3(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
9412
9412
  // Invalid or incomplete config
9413
9413
  if (config === null) {
9414
9414
  return null;
@@ -9583,7 +9583,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
9583
9583
  for (let i = 0; i < input_items.length; i++) {
9584
9584
  const input_items_item = input_items[i];
9585
9585
  let input_items_item_id = input_items_id + '__' + i;
9586
- input_items[i] = ingest$3(input_items_item, {
9586
+ input_items[i] = ingest$4(input_items_item, {
9587
9587
  fullPath: input_items_item_id,
9588
9588
  propertyName: i,
9589
9589
  parent: {
@@ -9608,7 +9608,7 @@ const select$2 = function SemanticSubMetricCollectionOutputRepresentationSelect(
9608
9608
  kind: 'Link',
9609
9609
  plural: true,
9610
9610
  required: false,
9611
- fragment: select$7()
9611
+ fragment: select$9()
9612
9612
  }
9613
9613
  ]
9614
9614
  };
@@ -9657,7 +9657,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
9657
9657
  if (input.items !== undefined) {
9658
9658
  const input_items_length = input.items.length;
9659
9659
  for (let i = 0; i < input_items_length; i++) {
9660
- getTypeCacheKeys$3(rootKeySet, luvio, input.items[i]);
9660
+ getTypeCacheKeys$4(rootKeySet, luvio, input.items[i]);
9661
9661
  }
9662
9662
  }
9663
9663
  }
@@ -9795,20 +9795,20 @@ const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthorin
9795
9795
  };
9796
9796
 
9797
9797
  function select(luvio, params) {
9798
- return select$7();
9798
+ return select$9();
9799
9799
  }
9800
9800
  function keyBuilder$1(luvio, params) {
9801
- return keyBuilder$8(luvio, {
9801
+ return keyBuilder$a(luvio, {
9802
9802
  name: params.urlParams.subMetricNameOrId
9803
9803
  });
9804
9804
  }
9805
9805
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
9806
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
9806
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
9807
9807
  }
9808
9808
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
9809
9809
  const { body } = response;
9810
9810
  const key = keyBuilder$1(luvio, resourceParams);
9811
- luvio.storeIngest(key, ingest$3, body);
9811
+ luvio.storeIngest(key, ingest$4, body);
9812
9812
  const snapshot = luvio.storeLookup({
9813
9813
  recordId: key,
9814
9814
  node: select(),
@@ -1,6 +1,6 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
- import { ResourceRequestConfig as resources_getSsotSemanticModelsMetricsSubMetricsByMetricApiNamesAndModelApiNameOrId_ResourceRequestConfig } from '../resources/getSsotSemanticModelsMetricsSubMetricsByMetricApiNamesAndModelApiNameOrId';
3
+ import { ResourceRequestConfig as resources_getSsotSemanticModelsMetricApiNamesSubMetricsByMetricApiNamesAndModelApiNameOrId_ResourceRequestConfig } from '../resources/getSsotSemanticModelsMetricApiNamesSubMetricsByMetricApiNamesAndModelApiNameOrId';
4
4
  import { SemanticSubMetricsByMetricCollectionOutputRepresentation as types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation } from '../types/SemanticSubMetricsByMetricCollectionOutputRepresentation';
5
5
  export declare const adapterName = "getSemanticMetricsToSubMetrics";
6
6
  export declare const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
@@ -9,15 +9,15 @@ export interface GetSemanticMetricsToSubMetricsConfig {
9
9
  metricApiNames: string;
10
10
  modelApiNameOrId: string;
11
11
  }
12
- export declare const createResourceParams: (config: GetSemanticMetricsToSubMetricsConfig) => resources_getSsotSemanticModelsMetricsSubMetricsByMetricApiNamesAndModelApiNameOrId_ResourceRequestConfig;
12
+ export declare const createResourceParams: (config: GetSemanticMetricsToSubMetricsConfig) => resources_getSsotSemanticModelsMetricApiNamesSubMetricsByMetricApiNamesAndModelApiNameOrId_ResourceRequestConfig;
13
13
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetSemanticMetricsToSubMetricsConfig): string;
14
14
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetSemanticMetricsToSubMetricsConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
15
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetSemanticMetricsToSubMetricsConfig>): adapter$45$utils_Untrusted<GetSemanticMetricsToSubMetricsConfig>;
16
16
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetSemanticMetricsToSubMetricsConfig | null;
17
17
  export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetSemanticMetricsToSubMetricsConfig): $64$luvio_engine_Fragment;
18
18
  export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSemanticMetricsToSubMetricsConfig): $64$luvio_engine_Snapshot<types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation, any>;
19
- export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetSemanticMetricsToSubMetricsConfig, resourceParams: resources_getSsotSemanticModelsMetricsSubMetricsByMetricApiNamesAndModelApiNameOrId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation, any>>;
20
- export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetSemanticMetricsToSubMetricsConfig, resourceParams: resources_getSsotSemanticModelsMetricsSubMetricsByMetricApiNamesAndModelApiNameOrId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
19
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetSemanticMetricsToSubMetricsConfig, resourceParams: resources_getSsotSemanticModelsMetricApiNamesSubMetricsByMetricApiNamesAndModelApiNameOrId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation, any>>;
20
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetSemanticMetricsToSubMetricsConfig, resourceParams: resources_getSsotSemanticModelsMetricApiNamesSubMetricsByMetricApiNamesAndModelApiNameOrId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
21
21
  export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSemanticMetricsToSubMetricsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_SemanticSubMetricsByMetricCollectionOutputRepresentation_SemanticSubMetricsByMetricCollectionOutputRepresentation, any>>;
22
22
  export type BuildSnapshotContext = {
23
23
  luvio: $64$luvio_engine_Luvio;
@@ -1,7 +1,7 @@
1
1
  export { getSemanticModelsAdapterFactory } from '../adapters/getSemanticModels';
2
2
  export { getSemanticModelAdapterFactory } from '../adapters/getSemanticModel';
3
- export { getSemanticMetricsAdapterFactory } from '../adapters/getSemanticMetrics';
4
3
  export { getSemanticMetricsToSubMetricsAdapterFactory } from '../adapters/getSemanticMetricsToSubMetrics';
4
+ export { getSemanticMetricsAdapterFactory } from '../adapters/getSemanticMetrics';
5
5
  export { getSemanticMetricAdapterFactory } from '../adapters/getSemanticMetric';
6
6
  export { getSemanticSubMetricsAdapterFactory } from '../adapters/getSemanticSubMetrics';
7
7
  export { getSemanticSubMetricAdapterFactory } from '../adapters/getSemanticSubMetric';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cdp-semantic-authoring",
3
- "version": "1.303.0",
3
+ "version": "1.305.0",
4
4
  "description": "Semantic Authoring",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/cdp-semantic-authoring.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.303.0"
43
+ "@salesforce/lds-bindings": "^1.305.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.303.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.305.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -2715,7 +2715,7 @@ function createResourceRequest$4(config) {
2715
2715
  const headers = {};
2716
2716
  return {
2717
2717
  baseUri: '/services/data/v62.0',
2718
- basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics/' + config.urlParams.metricApiNames + '/sub-metrics',
2718
+ basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metric-api-names/' + config.urlParams.metricApiNames + '/sub-metrics',
2719
2719
  method: 'get',
2720
2720
  body: null,
2721
2721
  urlParams: config.urlParams,
@@ -10138,4 +10138,4 @@ withDefaultLuvio((luvio) => {
10138
10138
  });
10139
10139
 
10140
10140
  export { getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetrics_imperative };
10141
- // version: 1.303.0-b6ed223d95
10141
+ // version: 1.305.0-ec92f7304c
package/src/raml/api.raml CHANGED
@@ -2373,6 +2373,23 @@ types:
2373
2373
  modelApiNameOrId:
2374
2374
  type: string
2375
2375
  required: true
2376
+ /metric-api-names/{metricApiNames}/sub-metrics:
2377
+ get:
2378
+ displayName: getSemanticSubMetricsByMetric
2379
+ description: Retrieves a collection of metric to sub metrics
2380
+ responses:
2381
+ '200':
2382
+ description: Success
2383
+ body:
2384
+ application/json:
2385
+ type: SemanticSubMetricsByMetricCollectionOutputRepresentation
2386
+ uriParameters:
2387
+ metricApiNames:
2388
+ type: string
2389
+ required: true
2390
+ modelApiNameOrId:
2391
+ type: string
2392
+ required: true
2376
2393
  /metrics:
2377
2394
  get:
2378
2395
  displayName: getSemanticMetricCollection
@@ -2400,23 +2417,6 @@ types:
2400
2417
  modelApiNameOrId:
2401
2418
  type: string
2402
2419
  required: true
2403
- /{metricApiNames}/sub-metrics:
2404
- get:
2405
- displayName: getSemanticSubMetricsByMetric
2406
- description: Retrieves a collection of metric to sub metrics
2407
- responses:
2408
- '200':
2409
- description: Success
2410
- body:
2411
- application/json:
2412
- type: SemanticSubMetricsByMetricCollectionOutputRepresentation
2413
- uriParameters:
2414
- metricApiNames:
2415
- type: string
2416
- required: true
2417
- modelApiNameOrId:
2418
- type: string
2419
- required: true
2420
2420
  /{metricNameOrId}:
2421
2421
  delete:
2422
2422
  displayName: deleteSemanticMetric
@@ -35,7 +35,7 @@ types:
35
35
  get:
36
36
  (luvio.adapter):
37
37
  name: getSemanticMetrics
38
- /metrics/{metricApiNames}/sub-metrics:
38
+ /metric-api-names/{metricApiNames}/sub-metrics:
39
39
  get:
40
40
  (luvio.adapter):
41
41
  name: getSemanticMetricsToSubMetrics