@constructor-io/constructorio-client-javascript 2.35.1 → 2.35.2
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/types/browse.d.ts +2 -1
- package/lib/types/index.d.ts +4 -6
- package/lib/types/quizzes.d.ts +1 -1
- package/lib/types/search.d.ts +3 -3
- package/package.json +1 -1
package/lib/types/browse.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
Facet,
|
|
5
5
|
Feature,
|
|
6
6
|
FilterExpression,
|
|
7
|
+
FmtOptions,
|
|
7
8
|
Group,
|
|
8
9
|
NetworkParameters,
|
|
9
10
|
RequestFeature,
|
|
@@ -23,7 +24,7 @@ export interface IBrowseParameters {
|
|
|
23
24
|
sortBy?: string;
|
|
24
25
|
sortOrder?: string;
|
|
25
26
|
section?: string;
|
|
26
|
-
fmtOptions?:
|
|
27
|
+
fmtOptions?: FmtOptions;
|
|
27
28
|
preFilterExpression: FilterExpression;
|
|
28
29
|
hiddenFields?: string[];
|
|
29
30
|
hiddenFacets?: string[];
|
package/lib/types/index.d.ts
CHANGED
|
@@ -96,11 +96,6 @@ export interface Feature extends Record<string, any> {
|
|
|
96
96
|
} | null;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export interface FmtOption extends Record<string, any> {
|
|
100
|
-
groups_start: string;
|
|
101
|
-
groups_max_depth: number;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
99
|
export type Facet = RangeFacet | OptionFacet;
|
|
105
100
|
|
|
106
101
|
export interface BaseFacet extends Record<string, any> {
|
|
@@ -149,7 +144,10 @@ export interface BaseGroup extends Record<string, any> {
|
|
|
149
144
|
group_id: string;
|
|
150
145
|
}
|
|
151
146
|
|
|
152
|
-
export interface FmtOptions extends Record<string, any> {
|
|
147
|
+
export interface FmtOptions extends Record<string, any> {
|
|
148
|
+
groups_max_depth?: number;
|
|
149
|
+
groups_start?: 'current' | 'top';
|
|
150
|
+
}
|
|
153
151
|
|
|
154
152
|
export type Nullable<T> = T | null;
|
|
155
153
|
|
package/lib/types/quizzes.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ declare class Quizzes {
|
|
|
50
50
|
export interface NextQuestionResponse extends Record<string, any> {
|
|
51
51
|
next_question: Question;
|
|
52
52
|
is_last_question?: boolean;
|
|
53
|
-
|
|
53
|
+
quiz_version_id?: string;
|
|
54
54
|
quiz_id?: string;
|
|
55
55
|
quiz_session_id?: string;
|
|
56
56
|
}
|
package/lib/types/search.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Facet,
|
|
4
4
|
Feature,
|
|
5
5
|
FilterExpression,
|
|
6
|
-
|
|
6
|
+
FmtOptions,
|
|
7
7
|
Group,
|
|
8
8
|
NetworkParameters,
|
|
9
9
|
RequestFeature,
|
|
@@ -23,7 +23,7 @@ export interface SearchParameters {
|
|
|
23
23
|
sortBy?: string;
|
|
24
24
|
sortOrder?: string;
|
|
25
25
|
section?: string;
|
|
26
|
-
fmtOptions?:
|
|
26
|
+
fmtOptions?: FmtOptions;
|
|
27
27
|
preFilterExpression: FilterExpression;
|
|
28
28
|
hiddenFields?: string[];
|
|
29
29
|
hiddenFacets?: string[];
|
|
@@ -75,7 +75,7 @@ export interface SearchRequestType extends Record<string, any> {
|
|
|
75
75
|
section: string;
|
|
76
76
|
blacklist_rules: boolean;
|
|
77
77
|
term: string;
|
|
78
|
-
fmt_options:
|
|
78
|
+
fmt_options: FmtOptions;
|
|
79
79
|
sort_by: string;
|
|
80
80
|
sort_order: string;
|
|
81
81
|
features: Partial<RequestFeature>;
|