@salesforce/lds-adapters-service-einstein-copilot-bot 1.287.0-dev3 → 1.287.0-dev5

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.
@@ -466,11 +466,16 @@ function validate$8(obj, path = 'VariableRepresentation') {
466
466
  if (typeof obj_name !== 'string') {
467
467
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
468
468
  }
469
+ const obj_type = obj.type;
470
+ const path_type = path + '.type';
471
+ if (typeof obj_type !== 'string') {
472
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
473
+ }
469
474
  if (obj.value !== undefined) {
470
475
  const obj_value = obj.value;
471
476
  const path_value = path + '.value';
472
- if (typeof obj_value !== 'string') {
473
- return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
477
+ if (obj_value === undefined) {
478
+ return new TypeError('Expected "defined" but received "' + typeof obj_value + '" (at "' + path_value + '")');
474
479
  }
475
480
  }
476
481
  })();
@@ -1,6 +1,6 @@
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
2
  export declare const TTL = 30000;
3
- export declare const VERSION = "b26ba8c95ca250aaeef6b6d3dfff8b40";
3
+ export declare const VERSION = "8191aab1c05f40fcbe0348ce5e5b5406";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: VariableRepresentation, existing: VariableRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): VariableRepresentationNormalized;
@@ -17,8 +17,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
17
17
  export interface VariableRepresentationNormalized {
18
18
  /** Name of the variable */
19
19
  name: string;
20
+ /** Type of the variable */
21
+ type: string;
20
22
  /** Value of the variable */
21
- value?: string;
23
+ value?: unknown;
22
24
  }
23
25
  /**
24
26
  * Represents a single variable for an operation to set variables
@@ -28,5 +30,6 @@ export interface VariableRepresentationNormalized {
28
30
  */
29
31
  export interface VariableRepresentation {
30
32
  name: string;
31
- value?: string;
33
+ type: string;
34
+ value?: unknown;
32
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-einstein-copilot-bot",
3
- "version": "1.287.0-dev3",
3
+ "version": "1.287.0-dev5",
4
4
  "description": "Einstein Copilot Bot API Family",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-einstein-copilot-bot.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.287.0-dev3"
43
+ "@salesforce/lds-bindings": "^1.287.0-dev5"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.287.0-dev3"
46
+ "@salesforce/lds-compiler-plugins": "^1.287.0-dev5"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1516,11 +1516,16 @@ function validate$4(obj, path = 'VariableRepresentation') {
1516
1516
  if (typeof obj_name !== 'string') {
1517
1517
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1518
1518
  }
1519
+ const obj_type = obj.type;
1520
+ const path_type = path + '.type';
1521
+ if (typeof obj_type !== 'string') {
1522
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1523
+ }
1519
1524
  if (obj.value !== undefined) {
1520
1525
  const obj_value = obj.value;
1521
1526
  const path_value = path + '.value';
1522
- if (typeof obj_value !== 'string') {
1523
- return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1527
+ if (obj_value === undefined) {
1528
+ return new TypeError('Expected "defined" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1524
1529
  }
1525
1530
  }
1526
1531
  })();
@@ -2688,4 +2693,4 @@ withDefaultLuvio((luvio) => {
2688
2693
  });
2689
2694
 
2690
2695
  export { getBotId, getBotId_imperative, getRecommendedActions, getRecommendedActions_imperative, getRecommendedPlanTemplates, getRecommendedPlanTemplates_imperative, sendMessage };
2691
- // version: 1.287.0-dev3-b1b8160d0
2696
+ // version: 1.287.0-dev5-7f74ce221
package/src/raml/api.raml CHANGED
@@ -332,9 +332,12 @@ types:
332
332
  name:
333
333
  description: Name of the variable
334
334
  type: string
335
+ type:
336
+ description: Type of the variable
337
+ type: string
335
338
  value:
336
339
  description: Value of the variable
337
- type: string
340
+ type: any
338
341
  required: false
339
342
  PlanTemplateRepresentation:
340
343
  description: Represents a plan template which can be executed by a Copilot client.