@coveo/platform-client 60.7.1 → 61.0.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 (65) 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/Enums.js +10 -3
  4. package/dist/cjs/resources/Enums.js.map +1 -1
  5. package/dist/cjs/resources/PlatformResources.js +9 -18
  6. package/dist/cjs/resources/PlatformResources.js.map +1 -1
  7. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshots.js +11 -0
  8. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
  9. package/dist/cjs/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -1
  10. package/dist/cjs/resources/index.js +1 -2
  11. package/dist/cjs/resources/index.js.map +1 -1
  12. package/dist/esm/resources/Catalogs/index.js +1 -5
  13. package/dist/esm/resources/Catalogs/index.js.map +1 -1
  14. package/dist/esm/resources/Enums.js +8 -1
  15. package/dist/esm/resources/Enums.js.map +1 -1
  16. package/dist/esm/resources/PlatformResources.js +9 -18
  17. package/dist/esm/resources/PlatformResources.js.map +1 -1
  18. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshots.js +11 -0
  19. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -1
  20. package/dist/esm/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -1
  21. package/dist/esm/resources/index.js +1 -2
  22. package/dist/esm/resources/index.js.map +1 -1
  23. package/dist/types/resources/Catalogs/index.d.ts +1 -5
  24. package/dist/types/resources/Enums.d.ts +8 -2
  25. package/dist/types/resources/Pipelines/Conditions/ConditionInterfaces.d.ts +19 -2
  26. package/dist/types/resources/PlatformResources.d.ts +9 -15
  27. package/dist/types/resources/ResourceSnapshots/ResourceSnapshots.d.ts +10 -1
  28. package/dist/types/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.d.ts +49 -0
  29. package/dist/types/resources/index.d.ts +1 -2
  30. package/package.json +1 -1
  31. package/dist/cjs/resources/Catalogs/ProductListing.js +0 -68
  32. package/dist/cjs/resources/Catalogs/ProductListing.js.map +0 -1
  33. package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js +0 -61
  34. package/dist/cjs/resources/Catalogs/ProductListingConfiguration.js.map +0 -1
  35. package/dist/cjs/resources/Catalogs/ProductListingConfigurationInterfaces.js +0 -13
  36. package/dist/cjs/resources/Catalogs/ProductListingConfigurationInterfaces.js.map +0 -1
  37. package/dist/cjs/resources/Catalogs/ProductListingInterfaces.js +0 -4
  38. package/dist/cjs/resources/Catalogs/ProductListingInterfaces.js.map +0 -1
  39. package/dist/cjs/resources/Products/Product.js +0 -18
  40. package/dist/cjs/resources/Products/Product.js.map +0 -1
  41. package/dist/cjs/resources/Products/ProductInterfaces.js +0 -3
  42. package/dist/cjs/resources/Products/ProductInterfaces.js.map +0 -1
  43. package/dist/cjs/resources/Products/index.js +0 -6
  44. package/dist/cjs/resources/Products/index.js.map +0 -1
  45. package/dist/esm/resources/Catalogs/ProductListing.js +0 -64
  46. package/dist/esm/resources/Catalogs/ProductListing.js.map +0 -1
  47. package/dist/esm/resources/Catalogs/ProductListingConfiguration.js +0 -57
  48. package/dist/esm/resources/Catalogs/ProductListingConfiguration.js.map +0 -1
  49. package/dist/esm/resources/Catalogs/ProductListingConfigurationInterfaces.js +0 -10
  50. package/dist/esm/resources/Catalogs/ProductListingConfigurationInterfaces.js.map +0 -1
  51. package/dist/esm/resources/Catalogs/ProductListingInterfaces.js +0 -2
  52. package/dist/esm/resources/Catalogs/ProductListingInterfaces.js.map +0 -1
  53. package/dist/esm/resources/Products/Product.js +0 -14
  54. package/dist/esm/resources/Products/Product.js.map +0 -1
  55. package/dist/esm/resources/Products/ProductInterfaces.js +0 -2
  56. package/dist/esm/resources/Products/ProductInterfaces.js.map +0 -1
  57. package/dist/esm/resources/Products/index.js +0 -3
  58. package/dist/esm/resources/Products/index.js.map +0 -1
  59. package/dist/types/resources/Catalogs/ProductListing.d.ts +0 -48
  60. package/dist/types/resources/Catalogs/ProductListingConfiguration.d.ts +0 -45
  61. package/dist/types/resources/Catalogs/ProductListingConfigurationInterfaces.d.ts +0 -53
  62. package/dist/types/resources/Catalogs/ProductListingInterfaces.d.ts +0 -96
  63. package/dist/types/resources/Products/Product.d.ts +0 -12
  64. package/dist/types/resources/Products/ProductInterfaces.d.ts +0 -254
  65. package/dist/types/resources/Products/index.d.ts +0 -2
@@ -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';