@salesforce/lds-adapters-service-einsteinllm 1.385.0 → 1.387.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.
@@ -1512,7 +1512,7 @@ function equals$k(existing, incoming) {
1512
1512
  return true;
1513
1513
  }
1514
1514
 
1515
- const VERSION$j = "4656c961c9d093a9e206c1db7d4de0b0";
1515
+ const VERSION$j = "379fd960d1a0118f506f458ab2c8dd7e";
1516
1516
  function validate$p(obj, path = 'WrappedMap') {
1517
1517
  const v_error = (() => {
1518
1518
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1528,8 +1528,8 @@ function validate$p(obj, path = 'WrappedMap') {
1528
1528
  const key = obj_wrappedMap_keys[i];
1529
1529
  const obj_wrappedMap_prop = obj_wrappedMap[key];
1530
1530
  const path_wrappedMap_prop = path_wrappedMap + '["' + key + '"]';
1531
- if (typeof obj_wrappedMap_prop !== 'object' || ArrayIsArray(obj_wrappedMap_prop) || obj_wrappedMap_prop === null) {
1532
- return new TypeError('Expected "object" but received "' + typeof obj_wrappedMap_prop + '" (at "' + path_wrappedMap_prop + '")');
1531
+ if (obj_wrappedMap_prop === undefined) {
1532
+ return new TypeError('Expected "defined" but received "' + typeof obj_wrappedMap_prop + '" (at "' + path_wrappedMap_prop + '")');
1533
1533
  }
1534
1534
  }
1535
1535
  })();
@@ -1540,13 +1540,22 @@ const select$w = function WrappedMapSelect() {
1540
1540
  kind: 'Fragment',
1541
1541
  version: VERSION$j,
1542
1542
  private: [],
1543
- selections: []
1543
+ selections: [
1544
+ {
1545
+ name: 'wrappedMap',
1546
+ kind: 'Object',
1547
+ // any
1548
+ }
1549
+ ]
1544
1550
  };
1545
1551
  };
1546
1552
  function equals$j(existing, incoming) {
1547
1553
  const existing_wrappedMap = existing.wrappedMap;
1548
1554
  const incoming_wrappedMap = incoming.wrappedMap;
1549
1555
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
1556
+ if (JSONStringify(incoming_wrappedMap_prop) !== JSONStringify(existing_wrappedMap_prop)) {
1557
+ return false;
1558
+ }
1550
1559
  });
1551
1560
  if (equals_wrappedMap_props === false) {
1552
1561
  return false;
@@ -1,5 +1,5 @@
1
1
  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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "4656c961c9d093a9e206c1db7d4de0b0";
2
+ export declare const VERSION = "379fd960d1a0118f506f458ab2c8dd7e";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: WrappedMap, existing: WrappedMapNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): WrappedMapNormalized;
@@ -16,7 +16,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  export interface WrappedMapNormalized {
17
17
  /** wrapped map */
18
18
  wrappedMap: {
19
- [key: string]: {};
19
+ [key: string]: unknown;
20
20
  };
21
21
  }
22
22
  /**
@@ -27,6 +27,6 @@ export interface WrappedMapNormalized {
27
27
  */
28
28
  export interface WrappedMap {
29
29
  wrappedMap: {
30
- [key: string]: {};
30
+ [key: string]: unknown;
31
31
  };
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einsteinllm",
3
- "version": "1.385.0",
3
+ "version": "1.387.0",
4
4
  "description": "Connect family for Einstein LLM generations",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-einsteinllm.js",
@@ -44,11 +44,11 @@
44
44
  "test:unit": "jest --config=./jest.config.js"
45
45
  },
46
46
  "dependencies": {
47
- "@salesforce/lds-bindings": "^1.385.0"
47
+ "@salesforce/lds-bindings": "^1.387.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.385.0",
51
- "@salesforce/lds-karma": "^1.385.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.387.0",
51
+ "@salesforce/lds-karma": "^1.387.0"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -1522,7 +1522,7 @@ function equals$k(existing, incoming) {
1522
1522
  return true;
1523
1523
  }
1524
1524
 
1525
- const VERSION$j = "4656c961c9d093a9e206c1db7d4de0b0";
1525
+ const VERSION$j = "379fd960d1a0118f506f458ab2c8dd7e";
1526
1526
  function validate$p(obj, path = 'WrappedMap') {
1527
1527
  const v_error = (() => {
1528
1528
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1538,8 +1538,8 @@ function validate$p(obj, path = 'WrappedMap') {
1538
1538
  const key = obj_wrappedMap_keys[i];
1539
1539
  const obj_wrappedMap_prop = obj_wrappedMap[key];
1540
1540
  const path_wrappedMap_prop = path_wrappedMap + '["' + key + '"]';
1541
- if (typeof obj_wrappedMap_prop !== 'object' || ArrayIsArray(obj_wrappedMap_prop) || obj_wrappedMap_prop === null) {
1542
- return new TypeError('Expected "object" but received "' + typeof obj_wrappedMap_prop + '" (at "' + path_wrappedMap_prop + '")');
1541
+ if (obj_wrappedMap_prop === undefined) {
1542
+ return new TypeError('Expected "defined" but received "' + typeof obj_wrappedMap_prop + '" (at "' + path_wrappedMap_prop + '")');
1543
1543
  }
1544
1544
  }
1545
1545
  })();
@@ -1550,13 +1550,22 @@ const select$w = function WrappedMapSelect() {
1550
1550
  kind: 'Fragment',
1551
1551
  version: VERSION$j,
1552
1552
  private: [],
1553
- selections: []
1553
+ selections: [
1554
+ {
1555
+ name: 'wrappedMap',
1556
+ kind: 'Object',
1557
+ // any
1558
+ }
1559
+ ]
1554
1560
  };
1555
1561
  };
1556
1562
  function equals$j(existing, incoming) {
1557
1563
  const existing_wrappedMap = existing.wrappedMap;
1558
1564
  const incoming_wrappedMap = incoming.wrappedMap;
1559
1565
  const equals_wrappedMap_props = equalsObject(existing_wrappedMap, incoming_wrappedMap, (existing_wrappedMap_prop, incoming_wrappedMap_prop) => {
1566
+ if (JSONStringify(incoming_wrappedMap_prop) !== JSONStringify(existing_wrappedMap_prop)) {
1567
+ return false;
1568
+ }
1560
1569
  });
1561
1570
  if (equals_wrappedMap_props === false) {
1562
1571
  return false;
@@ -6090,4 +6099,4 @@ withDefaultLuvio((luvio) => {
6090
6099
  });
6091
6100
 
6092
6101
  export { createEmbeddings, createEmbeddings_imperative, createFeedback, createGenerations, createGenerationsForPromptTemplate, createPromptTemplate, createPromptTemplateVersion, getDataProviderInstanceConfig, getDataProviderInstanceConfig_imperative, getDataProviderTypeConfigs, getDataProviderTypeConfigs_imperative, getDataProviders, getDataProviders_imperative, getInputMappedDataProviders, getInputMappedDataProviders_imperative, getOutputLanguages, getOutputLanguages_imperative, getPromptTemplate, getPromptTemplate_imperative, getPromptTemplates, getPromptTemplates_imperative, putEinsteinPromptTemplateVersionStatus, updatePromptTemplateVersion };
6093
- // version: 1.385.0-c6070cc476
6102
+ // version: 1.387.0-1c34f8f965
package/src/raml/api.raml CHANGED
@@ -912,7 +912,7 @@ types:
912
912
  type: object
913
913
  properties:
914
914
  //:
915
- type: object
915
+ type: any
916
916
  WrappedValue:
917
917
  description: Wrapped Object for use in Einstein LLM.
918
918
  type: object