@coveo/platform-client 60.8.0 → 61.1.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.
Files changed (60) hide show
  1. package/dist/cjs/resources/Catalogs/index.js +1 -5
  2. package/dist/cjs/resources/Catalogs/index.js.map +1 -1
  3. package/dist/cjs/resources/PlatformResources.js +9 -18
  4. package/dist/cjs/resources/PlatformResources.js.map +1 -1
  5. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshots.js +11 -0
  6. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
  7. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -1
  8. package/dist/cjs/resources/index.js +1 -2
  9. package/dist/cjs/resources/index.js.map +1 -1
  10. package/dist/esm/resources/Catalogs/index.js +1 -5
  11. package/dist/esm/resources/Catalogs/index.js.map +1 -1
  12. package/dist/esm/resources/PlatformResources.js +9 -18
  13. package/dist/esm/resources/PlatformResources.js.map +1 -1
  14. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshots.js +11 -0
  15. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
  16. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -1
  17. package/dist/esm/resources/index.js +1 -2
  18. package/dist/esm/resources/index.js.map +1 -1
  19. package/dist/types/resources/Catalogs/index.d.ts +1 -5
  20. package/dist/types/resources/PlatformResources.d.ts +9 -15
  21. package/dist/types/resources/ResourceSnapshots/ResourceSnapshots.d.ts +10 -1
  22. package/dist/types/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.d.ts +49 -0
  23. package/dist/types/resources/Sources/SourcesSubInterfaces/Authentification.d.ts +1 -0
  24. package/dist/types/resources/index.d.ts +1 -2
  25. package/package.json +1 -1
  26. package/dist/cjs/resources/Catalogs/ProductListing.js +0 -68
  27. package/dist/cjs/resources/Catalogs/ProductListing.js.map +0 -1
  28. package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js +0 -61
  29. package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js.map +0 -1
  30. package/dist/cjs/resources/Catalogs/ProductListingConfigurationInterfaces.js +0 -13
  31. package/dist/cjs/resources/Catalogs/ProductListingConfigurationInterfaces.js.map +0 -1
  32. package/dist/cjs/resources/Catalogs/ProductListingInterfaces.js +0 -4
  33. package/dist/cjs/resources/Catalogs/ProductListingInterfaces.js.map +0 -1
  34. package/dist/cjs/resources/Products/Product.js +0 -18
  35. package/dist/cjs/resources/Products/Product.js.map +0 -1
  36. package/dist/cjs/resources/Products/ProductInterfaces.js +0 -3
  37. package/dist/cjs/resources/Products/ProductInterfaces.js.map +0 -1
  38. package/dist/cjs/resources/Products/index.js +0 -6
  39. package/dist/cjs/resources/Products/index.js.map +0 -1
  40. package/dist/esm/resources/Catalogs/ProductListing.js +0 -64
  41. package/dist/esm/resources/Catalogs/ProductListing.js.map +0 -1
  42. package/dist/esm/resources/Catalogs/ProductListingConfiguration.js +0 -57
  43. package/dist/esm/resources/Catalogs/ProductListingConfiguration.js.map +0 -1
  44. package/dist/esm/resources/Catalogs/ProductListingConfigurationInterfaces.js +0 -10
  45. package/dist/esm/resources/Catalogs/ProductListingConfigurationInterfaces.js.map +0 -1
  46. package/dist/esm/resources/Catalogs/ProductListingInterfaces.js +0 -2
  47. package/dist/esm/resources/Catalogs/ProductListingInterfaces.js.map +0 -1
  48. package/dist/esm/resources/Products/Product.js +0 -14
  49. package/dist/esm/resources/Products/Product.js.map +0 -1
  50. package/dist/esm/resources/Products/ProductInterfaces.js +0 -2
  51. package/dist/esm/resources/Products/ProductInterfaces.js.map +0 -1
  52. package/dist/esm/resources/Products/index.js +0 -3
  53. package/dist/esm/resources/Products/index.js.map +0 -1
  54. package/dist/types/resources/Catalogs/ProductListing.d.ts +0 -48
  55. package/dist/types/resources/Catalogs/ProductListingConfiguration.d.ts +0 -45
  56. package/dist/types/resources/Catalogs/ProductListingConfigurationInterfaces.d.ts +0 -53
  57. package/dist/types/resources/Catalogs/ProductListingInterfaces.d.ts +0 -96
  58. package/dist/types/resources/Products/Product.d.ts +0 -12
  59. package/dist/types/resources/Products/ProductInterfaces.d.ts +0 -254
  60. package/dist/types/resources/Products/index.d.ts +0 -2
@@ -1,53 +0,0 @@
1
- import { Paginated } from '../BaseInterfaces.js';
2
- import { DeprecatedPaginated } from '../InternalBaseInterface.js';
3
- import { QueryFilterModel } from './ProductListingInterfaces.js';
4
- /**
5
- * @deprecated
6
- */
7
- export type ProductListingConfigurationOptions = Paginated | DeprecatedPaginated;
8
- /**
9
- * @deprecated
10
- */
11
- export interface ProductListingConfigurationModel {
12
- /**
13
- * The id of the ProductListingConfiguration.
14
- */
15
- id: string;
16
- /**
17
- * The list of RankingConfiguration.
18
- */
19
- rankingConfigurations: RankingConfiguration[];
20
- }
21
- /**
22
- * @deprecated
23
- */
24
- export interface RankingConfiguration {
25
- /**
26
- * The name of the RankingConfiguration.
27
- */
28
- name: string;
29
- /**
30
- * The list of inclusion filters.
31
- */
32
- include: QueryFilterModel[];
33
- /**
34
- * The list of exclusion filters.
35
- */
36
- exclude: QueryFilterModel[];
37
- /**
38
- * The type of the RankingConfiguration.
39
- */
40
- type: RankingTypeEnum;
41
- /**
42
- * The modifier value if type is BOOST or BURY. The index value if type is PIN.
43
- */
44
- value: number;
45
- }
46
- /**
47
- * @deprecated
48
- */
49
- export declare enum RankingTypeEnum {
50
- BOOST = "BOOST",
51
- BURY = "BURY",
52
- PIN = "PIN"
53
- }
@@ -1,96 +0,0 @@
1
- import { Paginated } from '../BaseInterfaces.js';
2
- import { FieldOperatorType, FieldValueType } from '../Enums.js';
3
- import { DeprecatedPaginated } from '../InternalBaseInterface.js';
4
- /**
5
- * @deprecated
6
- */
7
- export type ProductListingsListOptions = Paginated | DeprecatedPaginated;
8
- interface FieldValueModelGeneric<T extends FieldValueType> {
9
- /**
10
- * The type of the field.
11
- */
12
- type: T;
13
- /**
14
- * The value of the field.
15
- */
16
- value: ValueTypeForFieldValueType[T];
17
- }
18
- interface ValueTypeForFieldValueType {
19
- [FieldValueType.RANGE]: number[];
20
- [FieldValueType.STRING]: string;
21
- [FieldValueType.DECIMAL]: number;
22
- [FieldValueType.ARRAY]: string[];
23
- [FieldValueType.HIERARCHIC_MULTI_VALUE]: string[];
24
- }
25
- type FieldValueModel = FieldValueModelGeneric<FieldValueType.RANGE> | FieldValueModelGeneric<FieldValueType.STRING> | FieldValueModelGeneric<FieldValueType.DECIMAL> | FieldValueModelGeneric<FieldValueType.ARRAY> | FieldValueModelGeneric<FieldValueType.HIERARCHIC_MULTI_VALUE>;
26
- /**
27
- * @deprecated
28
- */
29
- export interface QueryFilterModel {
30
- /**
31
- * The field name.
32
- */
33
- fieldName: string;
34
- /**
35
- * The field operator.
36
- */
37
- operator: FieldOperatorType;
38
- /**
39
- * The field value.
40
- */
41
- value: FieldValueModel;
42
- }
43
- /**
44
- * @deprecated
45
- */
46
- export interface ProductListingMetricsModel {
47
- lastNumberOfProducts?: number;
48
- lastQueried: string;
49
- }
50
- /**
51
- * @deprecated
52
- */
53
- export interface ProductListingModel {
54
- /**
55
- * The list of exclusion filters.
56
- */
57
- exclude?: QueryFilterModel[];
58
- /**
59
- * The unique identifier of this product listing.
60
- */
61
- id?: string;
62
- /**
63
- * The list of inclusion filters.
64
- */
65
- include?: QueryFilterModel[];
66
- /**
67
- * The name of this product listing.
68
- */
69
- name: string;
70
- /**
71
- * The list of URLs for the product listing.
72
- */
73
- urls: string[];
74
- /**
75
- * The list of usage metrics.
76
- */
77
- metrics?: ProductListingMetricsModel;
78
- }
79
- /**
80
- * @deprecated
81
- */
82
- export interface CatalogProductListingsGroupModel {
83
- /**
84
- * The unique identifier of the catalog.
85
- */
86
- catalogId?: string;
87
- /**
88
- * The name of the catalog.
89
- */
90
- catalogName?: string;
91
- /**
92
- * The number of associated product listings.
93
- */
94
- productListingsCount?: number;
95
- }
96
- export {};
@@ -1,12 +0,0 @@
1
- import { New } from '../BaseInterfaces.js';
2
- import Resource from '../Resource.js';
3
- import { ProductsRequestModel, ProductsResultModel } from './ProductInterfaces.js';
4
- export default class Products extends Resource {
5
- static baseUrl: string;
6
- /**
7
- * @param productsRequest
8
- * @param refreshCache
9
- * @deprecated
10
- */
11
- get(productsRequest: New<ProductsRequestModel>, refreshCache?: boolean): Promise<ProductsResultModel>;
12
- }
@@ -1,254 +0,0 @@
1
- import { ProductsFacetRequestSortType, ProductsSortByType, SortingOrder } from '../Enums.js';
2
- /**
3
- * @deprecated
4
- */
5
- export interface AdvancedFiltersModel {
6
- queryFilter: string;
7
- }
8
- /**
9
- * @deprecated
10
- */
11
- export interface AdvancedParametersModel {
12
- /**
13
- * Used to retrieve debug information. Will have an impact on query performance.
14
- */
15
- debug?: boolean;
16
- /**
17
- * Used to retrieve all documents regardless of their security model.
18
- */
19
- viewAllContent?: boolean;
20
- }
21
- /**
22
- * @deprecated
23
- */
24
- export interface FacetRequestOptions {
25
- /**
26
- * Whether to take into account the scores generated by the index when reordering facets.
27
- */
28
- enableIndexFacetOrdering?: boolean;
29
- /**
30
- * Whether facets should be returned in the same order in which they were requested.
31
- */
32
- freezeFacetOrder?: boolean;
33
- }
34
- /**
35
- * @deprecated
36
- */
37
- export interface FacetRequestItem {
38
- /**
39
- * The values displayed by the facet in the search interface at the moment of the request.
40
- */
41
- currentValues?: any[];
42
- /**
43
- * A custom sort order for the facet values.
44
- */
45
- customOrder?: string[];
46
- /**
47
- * The unique identifier of the facet in the search interface.
48
- */
49
- facetId?: string;
50
- /**
51
- * The name of the field on which to base the facet request.
52
- */
53
- field: string;
54
- /**
55
- * Whether the facet is expanded in the search interface at the moment of the request.
56
- */
57
- isFieldExpanded?: boolean;
58
- /**
59
- * The maximum number of facet values to fetch.
60
- */
61
- numberOfValues?: number;
62
- /**
63
- * Whether to prevent Coveo ML from automatically selecting facet values.
64
- */
65
- preventAutoSelect?: boolean;
66
- /**
67
- * The criterion to use for sorting returned facet values.
68
- */
69
- sortCriteria?: ProductsFacetRequestSortType;
70
- }
71
- /**
72
- * @deprecated
73
- */
74
- export interface FacetsRequestModel {
75
- /**
76
- * The facet options to add to the request.
77
- */
78
- options?: FacetRequestOptions;
79
- /**
80
- * The facet operations to perform on the products listings.
81
- */
82
- requests: FacetRequestItem[];
83
- }
84
- /**
85
- * @deprecated
86
- */
87
- export interface PaginatedModel {
88
- /**
89
- * The number of elements to list per page.
90
- */
91
- numberOfValues?: number;
92
- /**
93
- * The 0-based index number of the page of elements to retrieve.
94
- */
95
- page?: number;
96
- }
97
- /**
98
- * @deprecated
99
- */
100
- export interface SortByFields {
101
- /**
102
- * The name of the field.
103
- */
104
- name: string;
105
- /**
106
- * The sorting direction.
107
- */
108
- direction: SortingOrder;
109
- }
110
- /**
111
- * @deprecated
112
- */
113
- export interface SortModel {
114
- /**
115
- * The name of the field to sort by.
116
- */
117
- by: ProductsSortByType;
118
- /**
119
- * The fields to take into consideration when sorting.
120
- */
121
- fields?: SortByFields[];
122
- }
123
- /**
124
- * @deprecated
125
- */
126
- export interface ProductsRequestModel {
127
- /**
128
- * Additional fields allow you to collect additional information, besides the standard data.
129
- */
130
- additionalFields?: string[];
131
- /**
132
- *
133
- */
134
- advancedFiltersModel?: AdvancedFiltersModel;
135
- /**
136
- * Advanced parameters to retrieve more information from the search queries.
137
- */
138
- advancedParameters?: AdvancedParametersModel;
139
- /**
140
- * An anonymous identifier used to determine from which identity the query comes from.
141
- */
142
- clientId?: string;
143
- /**
144
- * Parameters related to the facet request.
145
- */
146
- facets?: FacetsRequestModel;
147
- /**
148
- * Pagination parameters for the returned products.
149
- */
150
- pagination?: PaginatedModel;
151
- /**
152
- * Determines the order in which to retrieve the results.
153
- */
154
- sort?: SortModel;
155
- /**
156
- * The URL used to retrieve the products listings.
157
- */
158
- url: string;
159
- }
160
- /**
161
- * @deprecated
162
- */
163
- export interface FacetResultModel {
164
- facetId: string;
165
- field: string;
166
- fromAutoSelect: boolean;
167
- indexScore: number;
168
- mlScore: number;
169
- moreValuesAvailable: boolean;
170
- values: any[];
171
- }
172
- /**
173
- * @deprecated
174
- */
175
- export interface FacetResponseModel {
176
- /**
177
- * A list of facet results.
178
- */
179
- results: FacetResultModel[];
180
- }
181
- /**
182
- * @deprecated
183
- */
184
- export interface PaginationResultModel {
185
- /**
186
- * The number of elements.
187
- */
188
- totalCount: number;
189
- }
190
- /**
191
- * @deprecated
192
- */
193
- export interface ProductListingIdentityModel {
194
- /**
195
- * Associated catalog id.
196
- */
197
- catalogId: string;
198
- /**
199
- * The product listing unique id.
200
- */
201
- id: string;
202
- }
203
- /**
204
- * @deprecated
205
- */
206
- export interface ProductModel {
207
- additionalFields: Map<string, any>;
208
- childResults: ProductModel[];
209
- clickUri: string;
210
- ec_brand: string;
211
- ec_category: string[];
212
- ec_cogs: number;
213
- ec_description: string;
214
- ec_images: string[];
215
- ec_in_stock: boolean;
216
- ec_item_group_id: string;
217
- ec_name: string;
218
- ec_price: number;
219
- ec_promo_price: number;
220
- ec_rating: number;
221
- ec_shortdesc: string;
222
- ec_thumbnails: string[];
223
- permanentid: string;
224
- totalNumberOfChildResults: number;
225
- }
226
- /**
227
- * @deprecated
228
- */
229
- export interface ProductsResultModel {
230
- /**
231
- * The execution report.
232
- */
233
- executionReport: Map<string, any>;
234
- /**
235
- * The list of facet results.
236
- */
237
- facets: FacetResponseModel;
238
- /**
239
- * The number of total elements returned.
240
- */
241
- pagination: PaginationResultModel;
242
- /**
243
- * The product listing identity model.
244
- */
245
- productListing: ProductListingIdentityModel;
246
- /**
247
- * A list of products.
248
- */
249
- products: ProductModel[];
250
- /**
251
- * The response unique id.
252
- */
253
- responseId: string;
254
- }
@@ -1,2 +0,0 @@
1
- export * from './Product.js';
2
- export * from './ProductInterfaces.js';