@squiz/dxp-ai-client
Advanced tools
Comparing version 0.15.0 to 0.16.0
# @squiz/dxp-ai-client | ||
## 0.16.0 | ||
### Minor Changes | ||
- d8be544: Fixed incorrect return type from get/list context item APIs. | ||
## 0.15.0 | ||
@@ -4,0 +10,0 @@ |
@@ -205,4 +205,4 @@ export type AiAuthType = 'none' | 'dxp'; | ||
} | ||
export interface PageResultContextItem { | ||
items: ContextItem[]; | ||
export interface PageResultPersistedContextItem { | ||
items: PersistedContextItem[]; | ||
links?: { | ||
@@ -474,3 +474,3 @@ nextPage?: string; | ||
type RequestHeaders = {}; | ||
type ResponseBody = ContextItem; | ||
type ResponseBody = PersistedContextItem; | ||
} | ||
@@ -490,3 +490,3 @@ namespace List { | ||
type RequestHeaders = {}; | ||
type ResponseBody = PageResultContextItem; | ||
type ResponseBody = PageResultPersistedContextItem; | ||
} | ||
@@ -714,4 +714,4 @@ namespace Update { | ||
delete: (aiId: string, contextId: string, contextItemId: string, params?: RequestParams) => Promise<void>; | ||
get: (aiId: string, contextId: string, contextItemId: string, params?: RequestParams) => Promise<ContextItem>; | ||
list: ({ aiId, contextId, ...query }: ListParams4, params?: RequestParams) => Promise<PageResultContextItem>; | ||
get: (aiId: string, contextId: string, contextItemId: string, params?: RequestParams) => Promise<PersistedContextItem>; | ||
list: ({ aiId, contextId, ...query }: ListParams4, params?: RequestParams) => Promise<PageResultPersistedContextItem>; | ||
update: (aiId: string, contextId: string, contextItemId: string, data: PersistedContextItem, params?: RequestParams) => Promise<PersistedContextItem>; | ||
@@ -718,0 +718,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "Exposes the DXP AI service as a package for consumers", | ||
@@ -21,5 +21,5 @@ "main": "dist/index.js", | ||
"jest": "^29.7.0", | ||
"@squiz/ai-service": "1.9.0" | ||
"@squiz/ai-service": "1.10.0" | ||
}, | ||
"dependencies": {} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
254112