@cimulate/copilot-sdk 3.4.0 → 3.5.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.
@@ -4,5 +4,7 @@ interface SearchParams {
4
4
  pageSize?: number;
5
5
  page?: number;
6
6
  includeFacets?: boolean;
7
+ catalogSegment?: string;
8
+ pricebooks?: string[];
7
9
  }
8
10
  export { SearchParams };
@@ -6,8 +6,8 @@ export * from './CommonRequiredFields';
6
6
  export * from './ConnectAck';
7
7
  export * from './ConnectAckMetadata';
8
8
  export * from './ConnectError';
9
- export * from './CopilotAPIEvent';
10
9
  export * from './CopilotApiAck';
10
+ export * from './CopilotAPIEvent';
11
11
  export * from './CopilotError';
12
12
  export * from './CopilotEvent';
13
13
  export * from './CopilotSearch';
@@ -16,7 +16,7 @@ async function main() {
16
16
 
17
17
  try {
18
18
  const search = await copilot.search({
19
- searchParams: { query: "laptops" },
19
+ searchParams: { query: "starlink Mini", catalogSegment: "WestMarine", pricebooks: ["wm-regular", "wm-sale-retail"] },
20
20
  });
21
21
  console.log("Search request ack:", search.result);
22
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimulate/copilot-sdk",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "A lightweight API client SDK for Cimulate Copilot",
5
5
  "files": [
6
6
  "dist/**",
@@ -5,5 +5,7 @@ interface SearchParams {
5
5
  pageSize?: number;
6
6
  page?: number;
7
7
  includeFacets?: boolean;
8
+ catalogSegment?: string;
9
+ pricebooks?: string[];
8
10
  }
9
11
  export { SearchParams };
@@ -6,8 +6,8 @@ export * from './CommonRequiredFields';
6
6
  export * from './ConnectAck';
7
7
  export * from './ConnectAckMetadata';
8
8
  export * from './ConnectError';
9
- export * from './CopilotAPIEvent';
10
9
  export * from './CopilotApiAck';
10
+ export * from './CopilotAPIEvent';
11
11
  export * from './CopilotError';
12
12
  export * from './CopilotEvent';
13
13
  export * from './CopilotSearch';