@compassdigital/sdk.typescript 4.322.0 → 4.324.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.
- package/lib/index.d.ts +10 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +11 -2
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +8 -0
- package/lib/interface/ai.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -2
- package/src/interface/ai.ts +16 -0
- package/src/interface/consumer.ts +1 -1
- package/src/interface/shoppingcart.ts +1 -1
package/src/index.ts
CHANGED
|
@@ -1272,6 +1272,8 @@ import {
|
|
|
1272
1272
|
PostAiImageGenerateResponse,
|
|
1273
1273
|
PostAiTranslateBody,
|
|
1274
1274
|
PostAiTranslateResponse,
|
|
1275
|
+
PostAiLanguageGenerateSearchParamsBody,
|
|
1276
|
+
PostAiLanguageGenerateSearchParamsResponse,
|
|
1275
1277
|
} from './interface/ai';
|
|
1276
1278
|
|
|
1277
1279
|
import {
|
|
@@ -3177,7 +3179,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3177
3179
|
}
|
|
3178
3180
|
|
|
3179
3181
|
/**
|
|
3180
|
-
* POST /shoppingcart - Create a new ShoppingCart
|
|
3182
|
+
* POST /shoppingcart - Create a new marketplace or single station ShoppingCart
|
|
3181
3183
|
*
|
|
3182
3184
|
* @param body
|
|
3183
3185
|
* @param options - additional request options
|
|
@@ -13442,7 +13444,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
13442
13444
|
}
|
|
13443
13445
|
|
|
13444
13446
|
/**
|
|
13445
|
-
* POST /consumer/shoppingcart - Create a new shopping cart
|
|
13447
|
+
* POST /consumer/shoppingcart - Create a new marketplace or single station shopping cart
|
|
13446
13448
|
*
|
|
13447
13449
|
* @param body - Post Shopping Cart Request Body
|
|
13448
13450
|
* @param options - additional request options
|
|
@@ -13884,6 +13886,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
13884
13886
|
return this.request('ai', '/ai/translate', 'POST', `/ai/translate`, body, options);
|
|
13885
13887
|
}
|
|
13886
13888
|
|
|
13889
|
+
/**
|
|
13890
|
+
* POST /ai/language/generate-search-params - Generate search query parameters from natural language
|
|
13891
|
+
*
|
|
13892
|
+
* @param body
|
|
13893
|
+
* @param options - additional request options
|
|
13894
|
+
*/
|
|
13895
|
+
post_ai_language_generate_search_params(
|
|
13896
|
+
body: PostAiLanguageGenerateSearchParamsBody,
|
|
13897
|
+
options?: RequestOptions,
|
|
13898
|
+
): ResponsePromise<PostAiLanguageGenerateSearchParamsResponse> {
|
|
13899
|
+
return this.request(
|
|
13900
|
+
'ai',
|
|
13901
|
+
'/ai/language/generate-search-params',
|
|
13902
|
+
'POST',
|
|
13903
|
+
`/ai/language/generate-search-params`,
|
|
13904
|
+
body,
|
|
13905
|
+
options,
|
|
13906
|
+
);
|
|
13907
|
+
}
|
|
13908
|
+
|
|
13887
13909
|
/**
|
|
13888
13910
|
* POST /centricos/ai/item/description - Generate item description
|
|
13889
13911
|
*
|
package/src/interface/ai.ts
CHANGED
|
@@ -77,6 +77,16 @@ export interface TranslateResponse {
|
|
|
77
77
|
translations: Record<string, string>;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
export interface GenerateSearchParamsRequest {
|
|
81
|
+
// Natural language query to convert to search parameters
|
|
82
|
+
query: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface GenerateSearchParamsResponse {
|
|
86
|
+
// Query parameters for get_search_order endpoint
|
|
87
|
+
params: Record<string, any>;
|
|
88
|
+
}
|
|
89
|
+
|
|
80
90
|
// POST /ai/language/generate - Generate text from a given prompt
|
|
81
91
|
|
|
82
92
|
export type PostAiLanguageGenerateBody = GenerateTextRequest;
|
|
@@ -94,3 +104,9 @@ export type PostAiImageGenerateResponse = GenerateImageResponse;
|
|
|
94
104
|
export type PostAiTranslateBody = TranslateRequest;
|
|
95
105
|
|
|
96
106
|
export type PostAiTranslateResponse = TranslateResponse;
|
|
107
|
+
|
|
108
|
+
// POST /ai/language/generate-search-params - Generate search query parameters from natural language
|
|
109
|
+
|
|
110
|
+
export type PostAiLanguageGenerateSearchParamsBody = GenerateSearchParamsRequest;
|
|
111
|
+
|
|
112
|
+
export type PostAiLanguageGenerateSearchParamsResponse = GenerateSearchParamsResponse;
|
|
@@ -3224,7 +3224,7 @@ export type PostConsumerShoppingcartRecommendedItemsBody = PostConsumerRecommend
|
|
|
3224
3224
|
|
|
3225
3225
|
export type PostConsumerShoppingcartRecommendedItemsResponse = PostConsumerRecommendedResponse;
|
|
3226
3226
|
|
|
3227
|
-
// POST /consumer/shoppingcart - Create a new shopping cart
|
|
3227
|
+
// POST /consumer/shoppingcart - Create a new marketplace or single station shopping cart
|
|
3228
3228
|
|
|
3229
3229
|
export type PostConsumerShoppingcartBody = PostConsumerShoppingCartBodyRequest;
|
|
3230
3230
|
|
|
@@ -740,7 +740,7 @@ export interface HealthMetadata {
|
|
|
740
740
|
service?: string;
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
-
// POST /shoppingcart - Create a new ShoppingCart
|
|
743
|
+
// POST /shoppingcart - Create a new marketplace or single station ShoppingCart
|
|
744
744
|
|
|
745
745
|
export interface PostShoppingcartCartQuery {
|
|
746
746
|
// If set to true then the hidden brand validation will be skipped, requires global write permission
|