@salesforce/lds-adapters-platform-external-services 1.112.1 → 1.113.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.
@@ -576,6 +576,7 @@ function validate$8(obj, path = 'OpenApiSpecInferenceInputRepresentation') {
576
576
  return v_error === undefined ? null : v_error;
577
577
  }
578
578
 
579
+ const TTL = 500;
579
580
  const VERSION$6 = "9f5779e32b8c9e02976609db89831dbb";
580
581
  function validate$7(obj, path = 'OpenApiSpecInferenceOutputRepresentation') {
581
582
  const v_error = (() => {
@@ -670,7 +671,7 @@ const ingest$2 = function OpenApiSpecInferenceOutputRepresentationIngest(input,
670
671
  }
671
672
  const key = path.fullPath;
672
673
  const existingRecord = store.readEntry(key);
673
- const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
674
+ const ttlToUse = TTL;
674
675
  let incomingRecord = normalize$2(input, store.readEntry(key), {
675
676
  fullPath: key,
676
677
  parent: path.parent,
@@ -680,7 +681,7 @@ const ingest$2 = function OpenApiSpecInferenceOutputRepresentationIngest(input,
680
681
  if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
681
682
  luvio.storePublish(key, incomingRecord);
682
683
  }
683
- if (ttlToUse !== undefined) {
684
+ {
684
685
  const storeMetadataParams = {
685
686
  ttl: ttlToUse,
686
687
  namespace: "external-services",
@@ -731,7 +732,13 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
731
732
  function ingestError$2(luvio, params, error, snapshotRefresh) {
732
733
  const key = keyBuilder$6(luvio, params);
733
734
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
734
- luvio.storeIngestError(key, errorSnapshot);
735
+ const storeMetadataParams = {
736
+ ttl: TTL,
737
+ namespace: keyPrefix,
738
+ version: VERSION$6,
739
+ representationName: RepresentationType$2
740
+ };
741
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
735
742
  return errorSnapshot;
736
743
  }
737
744
  function createResourceRequest$3(config) {
@@ -1,5 +1,6 @@
1
1
  import { InferenceErrorMessageRepresentation as InferenceErrorMessageRepresentation_InferenceErrorMessageRepresentation } from './InferenceErrorMessageRepresentation';
2
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const TTL = 500;
3
4
  export declare const VERSION = "9f5779e32b8c9e02976609db89831dbb";
4
5
  export declare function validate(obj: any, path?: string): TypeError | null;
5
6
  export declare const RepresentationType: string;
@@ -580,6 +580,7 @@
580
580
  return v_error === undefined ? null : v_error;
581
581
  }
582
582
 
583
+ const TTL = 500;
583
584
  const VERSION$6 = "9f5779e32b8c9e02976609db89831dbb";
584
585
  function validate$7(obj, path = 'OpenApiSpecInferenceOutputRepresentation') {
585
586
  const v_error = (() => {
@@ -674,7 +675,7 @@
674
675
  }
675
676
  const key = path.fullPath;
676
677
  const existingRecord = store.readEntry(key);
677
- const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
678
+ const ttlToUse = TTL;
678
679
  let incomingRecord = normalize$2(input, store.readEntry(key), {
679
680
  fullPath: key,
680
681
  parent: path.parent,
@@ -684,7 +685,7 @@
684
685
  if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
685
686
  luvio.storePublish(key, incomingRecord);
686
687
  }
687
- if (ttlToUse !== undefined) {
688
+ {
688
689
  const storeMetadataParams = {
689
690
  ttl: ttlToUse,
690
691
  namespace: "external-services",
@@ -735,7 +736,13 @@
735
736
  function ingestError$2(luvio, params, error, snapshotRefresh) {
736
737
  const key = keyBuilder$6(luvio, params);
737
738
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
738
- luvio.storeIngestError(key, errorSnapshot);
739
+ const storeMetadataParams = {
740
+ ttl: TTL,
741
+ namespace: keyPrefix,
742
+ version: VERSION$6,
743
+ representationName: RepresentationType$2
744
+ };
745
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
739
746
  return errorSnapshot;
740
747
  }
741
748
  function createResourceRequest$3(config) {
@@ -584,6 +584,7 @@
584
584
  return v_error === undefined ? null : v_error;
585
585
  }
586
586
 
587
+ var TTL = 500;
587
588
  var VERSION$6 = "9f5779e32b8c9e02976609db89831dbb";
588
589
  function validate$7(obj, path) {
589
590
  if (path === void 0) { path = 'OpenApiSpecInferenceOutputRepresentation'; }
@@ -679,7 +680,7 @@
679
680
  }
680
681
  var key = path.fullPath;
681
682
  var existingRecord = store.readEntry(key);
682
- var ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
683
+ var ttlToUse = TTL;
683
684
  var incomingRecord = normalize$2(input, store.readEntry(key), {
684
685
  fullPath: key,
685
686
  parent: path.parent,
@@ -689,7 +690,7 @@
689
690
  if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
690
691
  luvio.storePublish(key, incomingRecord);
691
692
  }
692
- if (ttlToUse !== undefined) {
693
+ {
693
694
  var storeMetadataParams = {
694
695
  ttl: ttlToUse,
695
696
  namespace: "external-services",
@@ -740,7 +741,13 @@
740
741
  function ingestError$2(luvio, params, error, snapshotRefresh) {
741
742
  var key = keyBuilder$6(luvio, params);
742
743
  var errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
743
- luvio.storeIngestError(key, errorSnapshot);
744
+ var storeMetadataParams = {
745
+ ttl: TTL,
746
+ namespace: keyPrefix,
747
+ version: VERSION$6,
748
+ representationName: RepresentationType$2
749
+ };
750
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
744
751
  return errorSnapshot;
745
752
  }
746
753
  function createResourceRequest$3(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-external-services",
3
- "version": "1.112.1",
3
+ "version": "1.113.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "External Services Connect API Family",
6
6
  "main": "dist/umd/es2018/platform-external-services.js",
@@ -43,14 +43,14 @@
43
43
  "test:compat": "karma start --single-run --compat"
44
44
  },
45
45
  "dependencies": {
46
- "@salesforce/lds-bindings": "^1.112.1"
46
+ "@salesforce/lds-bindings": "^1.113.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@luvio/cli": "0.137.1",
50
50
  "@luvio/compiler": "0.137.1",
51
51
  "@luvio/engine": "0.137.1",
52
52
  "@luvio/lwc-luvio": "0.137.1",
53
- "@salesforce/lds-karma": "^1.112.1"
53
+ "@salesforce/lds-karma": "^1.113.0"
54
54
  },
55
55
  "nx": {
56
56
  "targets": {
package/sfdc/index.js CHANGED
@@ -586,6 +586,7 @@ function validate$8(obj, path = 'OpenApiSpecInferenceInputRepresentation') {
586
586
  return v_error === undefined ? null : v_error;
587
587
  }
588
588
 
589
+ const TTL = 500;
589
590
  const VERSION$6 = "9f5779e32b8c9e02976609db89831dbb";
590
591
  function validate$7(obj, path = 'OpenApiSpecInferenceOutputRepresentation') {
591
592
  const v_error = (() => {
@@ -680,7 +681,7 @@ const ingest$2 = function OpenApiSpecInferenceOutputRepresentationIngest(input,
680
681
  }
681
682
  const key = path.fullPath;
682
683
  const existingRecord = store.readEntry(key);
683
- const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
684
+ const ttlToUse = TTL;
684
685
  let incomingRecord = normalize$2(input, store.readEntry(key), {
685
686
  fullPath: key,
686
687
  parent: path.parent,
@@ -690,7 +691,7 @@ const ingest$2 = function OpenApiSpecInferenceOutputRepresentationIngest(input,
690
691
  if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
691
692
  luvio.storePublish(key, incomingRecord);
692
693
  }
693
- if (ttlToUse !== undefined) {
694
+ {
694
695
  const storeMetadataParams = {
695
696
  ttl: ttlToUse,
696
697
  namespace: "external-services",
@@ -741,7 +742,13 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
741
742
  function ingestError$2(luvio, params, error, snapshotRefresh) {
742
743
  const key = keyBuilder$6(luvio, params);
743
744
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
744
- luvio.storeIngestError(key, errorSnapshot);
745
+ const storeMetadataParams = {
746
+ ttl: TTL,
747
+ namespace: keyPrefix,
748
+ version: VERSION$6,
749
+ representationName: RepresentationType$2
750
+ };
751
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
745
752
  return errorSnapshot;
746
753
  }
747
754
  function createResourceRequest$3(config) {
@@ -2240,7 +2247,7 @@ let getStatistics_imperative;
2240
2247
  let getStatisticsForService_imperative;
2241
2248
  // Adapter Metadata
2242
2249
  const getDataShapeMetadata = { apiFamily: 'externalservices', name: 'getDataShape' };
2243
- const getOpenApiSpecMetadata = { apiFamily: 'externalservices', name: 'getOpenApiSpec' };
2250
+ const getOpenApiSpecMetadata = { apiFamily: 'externalservices', name: 'getOpenApiSpec', ttl: 500 };
2244
2251
  const getStatisticsMetadata = { apiFamily: 'externalservices', name: 'getStatistics' };
2245
2252
  const getStatisticsForServiceMetadata = { apiFamily: 'externalservices', name: 'getStatisticsForService' };
2246
2253
  function bindExportsTo(luvio) {
@@ -2281,4 +2288,4 @@ withDefaultLuvio((luvio) => {
2281
2288
  });
2282
2289
 
2283
2290
  export { getDataShape, getDataShape_imperative, getOpenApiSpec, getOpenApiSpec_imperative, getStatistics, getStatisticsForService, getStatisticsForService_imperative, getStatistics_imperative, validateSchema };
2284
- // version: 1.112.1-1a0875b1d
2291
+ // version: 1.113.0-a8af103c9
@@ -10,6 +10,8 @@ uses:
10
10
  types:
11
11
  DataShapeInferenceOutputRepresentation:
12
12
  (luvio.opaque): true
13
+ OpenApiSpecInferenceOutputRepresentation:
14
+ (luvio.ttl): 500
13
15
  SchemaValidationOutputRepresentation:
14
16
  (luvio.key):
15
17
  schemaName: schemaName