@constructor-io/constructorio-node 4.3.0 → 4.3.1
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/package.json +11 -3
- package/src/.DS_Store +0 -0
- package/src/modules/catalog.js +9 -9
- package/src/modules/quizzes.js +5 -4
- package/src/modules/tracker.js +22 -2
- package/src/types/autocomplete.d.ts +56 -0
- package/src/types/browse.d.ts +140 -0
- package/src/types/catalog.d.ts +535 -0
- package/src/types/constructorio.d.ts +34 -0
- package/src/types/index.d.ts +277 -0
- package/src/types/quizzes.d.ts +73 -0
- package/src/types/recommendations.d.ts +64 -0
- package/src/types/search.d.ts +98 -0
- package/src/types/tasks.d.ts +70 -0
- package/src/types/tests/autocomplete.test-d.ts +59 -0
- package/src/types/tests/browse.test-d.ts +120 -0
- package/src/types/tests/catalog.test-d.ts +109 -0
- package/src/types/tests/quizzes.test-d.ts +82 -0
- package/src/types/tests/recommedations.test-d.ts +45 -0
- package/src/types/tests/search.test-d.ts +124 -0
- package/src/types/tests/tasks.test-d.ts +40 -0
- package/src/types/tracker.d.ts +203 -0
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ConstructorClientOptions,
|
|
3
|
+
Item,
|
|
4
|
+
ItemGroup,
|
|
5
|
+
RedirectRuleMatchObject,
|
|
6
|
+
Variation,
|
|
7
|
+
FacetConfiguration,
|
|
8
|
+
NetworkParameters,
|
|
9
|
+
FacetOptionConfiguration,
|
|
10
|
+
RedirectRuleResponse,
|
|
11
|
+
OneWaySynonymRelation,
|
|
12
|
+
SynonymGroup,
|
|
13
|
+
} from '.';
|
|
14
|
+
|
|
15
|
+
export default Catalog;
|
|
16
|
+
|
|
17
|
+
declare class Catalog {
|
|
18
|
+
constructor(options: ConstructorClientOptions);
|
|
19
|
+
|
|
20
|
+
options: ConstructorClientOptions;
|
|
21
|
+
|
|
22
|
+
createOrReplaceItems(
|
|
23
|
+
parameters: {
|
|
24
|
+
items: Item[];
|
|
25
|
+
force?: boolean;
|
|
26
|
+
notificationEmail?: string;
|
|
27
|
+
section?: string;
|
|
28
|
+
},
|
|
29
|
+
networkParameters?: NetworkParameters
|
|
30
|
+
): Promise<void>;
|
|
31
|
+
|
|
32
|
+
updateItems(
|
|
33
|
+
parameters: {
|
|
34
|
+
items: Item[];
|
|
35
|
+
force?: boolean;
|
|
36
|
+
notificationEmail?: string;
|
|
37
|
+
section?: string;
|
|
38
|
+
},
|
|
39
|
+
networkParameters?: NetworkParameters
|
|
40
|
+
): Promise<void>;
|
|
41
|
+
|
|
42
|
+
deleteItems(
|
|
43
|
+
parameters: {
|
|
44
|
+
items: Pick<Item, 'id'>[];
|
|
45
|
+
section?: string;
|
|
46
|
+
notificationEmail?: string;
|
|
47
|
+
},
|
|
48
|
+
networkParameters?: NetworkParameters
|
|
49
|
+
): Promise<void>;
|
|
50
|
+
|
|
51
|
+
retrieveItems(
|
|
52
|
+
parameters: {
|
|
53
|
+
ids?: string[];
|
|
54
|
+
section?: string;
|
|
55
|
+
numResultsPerPage?: number;
|
|
56
|
+
page?: number;
|
|
57
|
+
},
|
|
58
|
+
networkParameters?: NetworkParameters
|
|
59
|
+
): Promise<{ items: Item[]; total_count: number; [key: string]: any }>;
|
|
60
|
+
|
|
61
|
+
createOrReplaceVariations(
|
|
62
|
+
parameters: {
|
|
63
|
+
variations: Variation[];
|
|
64
|
+
force?: boolean;
|
|
65
|
+
notificationEmail?: string;
|
|
66
|
+
section?: string;
|
|
67
|
+
},
|
|
68
|
+
networkParameters?: NetworkParameters
|
|
69
|
+
): Promise<void>;
|
|
70
|
+
|
|
71
|
+
updateVariations(
|
|
72
|
+
parameters: {
|
|
73
|
+
variations: Variation[];
|
|
74
|
+
force?: boolean;
|
|
75
|
+
notificationEmail?: string;
|
|
76
|
+
section?: string;
|
|
77
|
+
},
|
|
78
|
+
networkParameters?: NetworkParameters
|
|
79
|
+
): Promise<void>;
|
|
80
|
+
|
|
81
|
+
deleteVariations(
|
|
82
|
+
parameters: {
|
|
83
|
+
variations: Pick<Variation, 'id'>[];
|
|
84
|
+
force?: boolean;
|
|
85
|
+
notificationEmail?: string;
|
|
86
|
+
section?: string;
|
|
87
|
+
},
|
|
88
|
+
networkParameters?: NetworkParameters
|
|
89
|
+
): Promise<void>;
|
|
90
|
+
|
|
91
|
+
retrieveVariations(
|
|
92
|
+
parameters: {
|
|
93
|
+
section?: string;
|
|
94
|
+
ids?: string[];
|
|
95
|
+
itemId?: string;
|
|
96
|
+
numResultsPerPage?: number;
|
|
97
|
+
page?: number;
|
|
98
|
+
},
|
|
99
|
+
networkParameters?: NetworkParameters
|
|
100
|
+
): Promise<{
|
|
101
|
+
variations: Variation[];
|
|
102
|
+
total_count: number;
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
}>;
|
|
105
|
+
|
|
106
|
+
addItemGroup(
|
|
107
|
+
parameters: {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
parent_id?: string;
|
|
111
|
+
data?: Record<string, any>;
|
|
112
|
+
},
|
|
113
|
+
networkParameters?: NetworkParameters
|
|
114
|
+
): Promise<void>;
|
|
115
|
+
|
|
116
|
+
addItemGroups(
|
|
117
|
+
parameters: {
|
|
118
|
+
item_groups: ItemGroup[];
|
|
119
|
+
},
|
|
120
|
+
networkParameters?: NetworkParameters
|
|
121
|
+
): Promise<void>;
|
|
122
|
+
|
|
123
|
+
getItemGroup(
|
|
124
|
+
parameters: {
|
|
125
|
+
id: string;
|
|
126
|
+
},
|
|
127
|
+
networkParameters?: NetworkParameters
|
|
128
|
+
): Promise<{
|
|
129
|
+
item_groups: ItemGroup[];
|
|
130
|
+
total_count: number;
|
|
131
|
+
[key: string]: any;
|
|
132
|
+
}>;
|
|
133
|
+
|
|
134
|
+
getItemGroups(networkParameters?: NetworkParameters): Promise<{
|
|
135
|
+
item_groups: ItemGroup[];
|
|
136
|
+
total_count: number;
|
|
137
|
+
[key: string]: any;
|
|
138
|
+
}>;
|
|
139
|
+
|
|
140
|
+
addOrUpdateItemGroups(
|
|
141
|
+
parameters: {
|
|
142
|
+
item_groups: ItemGroup[];
|
|
143
|
+
},
|
|
144
|
+
networkParameters?: NetworkParameters
|
|
145
|
+
): Promise<{
|
|
146
|
+
item_groups: {
|
|
147
|
+
deleted: number;
|
|
148
|
+
inserted: number;
|
|
149
|
+
processed: number;
|
|
150
|
+
updated: number;
|
|
151
|
+
};
|
|
152
|
+
}>;
|
|
153
|
+
|
|
154
|
+
modifyItemGroup(
|
|
155
|
+
parameters: ItemGroup,
|
|
156
|
+
networkParameters?: NetworkParameters
|
|
157
|
+
): Promise<{
|
|
158
|
+
id: string;
|
|
159
|
+
path?: string;
|
|
160
|
+
path_list?: string[];
|
|
161
|
+
name?: string;
|
|
162
|
+
parent_id?: string;
|
|
163
|
+
data?: Record<string, any>;
|
|
164
|
+
[key: string]: any;
|
|
165
|
+
}>;
|
|
166
|
+
|
|
167
|
+
removeItemGroups(
|
|
168
|
+
networkParameters?: NetworkParameters
|
|
169
|
+
): Promise<{ message: string }>;
|
|
170
|
+
|
|
171
|
+
addOneWaySynonym(
|
|
172
|
+
parameters: {
|
|
173
|
+
phrase: string;
|
|
174
|
+
child_phrases: string[];
|
|
175
|
+
},
|
|
176
|
+
networkParameters?: NetworkParameters
|
|
177
|
+
): Promise<void>;
|
|
178
|
+
|
|
179
|
+
modifyOneWaySynonym(
|
|
180
|
+
parameters: {
|
|
181
|
+
phrase: string;
|
|
182
|
+
child_phrases: string[];
|
|
183
|
+
},
|
|
184
|
+
networkParameters?: NetworkParameters
|
|
185
|
+
): Promise<void>;
|
|
186
|
+
|
|
187
|
+
getOneWaySynonym(
|
|
188
|
+
parameters: {
|
|
189
|
+
phrase: string;
|
|
190
|
+
},
|
|
191
|
+
networkParameters?: NetworkParameters
|
|
192
|
+
): Promise<{
|
|
193
|
+
one_way_synonym_relations: OneWaySynonymRelation[];
|
|
194
|
+
}>;
|
|
195
|
+
|
|
196
|
+
getOneWaySynonyms(
|
|
197
|
+
parameters?: {
|
|
198
|
+
num_results_per_page?: number;
|
|
199
|
+
page?: number;
|
|
200
|
+
},
|
|
201
|
+
networkParameters?: NetworkParameters
|
|
202
|
+
): Promise<{
|
|
203
|
+
one_way_synonym_relations: OneWaySynonymRelation[];
|
|
204
|
+
[key: string]: any;
|
|
205
|
+
}>;
|
|
206
|
+
|
|
207
|
+
removeOneWaySynonym(
|
|
208
|
+
parameters: {
|
|
209
|
+
phrase: string;
|
|
210
|
+
},
|
|
211
|
+
networkParameters?: NetworkParameters
|
|
212
|
+
): Promise<void>;
|
|
213
|
+
|
|
214
|
+
removeOneWaySynonyms(networkParameters?: NetworkParameters): Promise<void>;
|
|
215
|
+
|
|
216
|
+
addSynonymGroup(
|
|
217
|
+
parameters: {
|
|
218
|
+
synonyms: string[];
|
|
219
|
+
},
|
|
220
|
+
networkParameters?: NetworkParameters
|
|
221
|
+
): Promise<{ group_id: number; [key: string]: any }>;
|
|
222
|
+
|
|
223
|
+
modifySynonymGroup(
|
|
224
|
+
parameters: {
|
|
225
|
+
id: number;
|
|
226
|
+
synonyms: string[];
|
|
227
|
+
},
|
|
228
|
+
networkParameters?: NetworkParameters
|
|
229
|
+
): Promise<void>;
|
|
230
|
+
|
|
231
|
+
getSynonymGroup(
|
|
232
|
+
parameters: {
|
|
233
|
+
id: number;
|
|
234
|
+
},
|
|
235
|
+
networkParameters?: NetworkParameters
|
|
236
|
+
): Promise<{
|
|
237
|
+
synonym_groups: SynonymGroup[];
|
|
238
|
+
total_count: number;
|
|
239
|
+
[key: string]: any;
|
|
240
|
+
}>;
|
|
241
|
+
|
|
242
|
+
getSynonymGroups(
|
|
243
|
+
parameters?: {
|
|
244
|
+
phrase?: string;
|
|
245
|
+
num_results_per_page?: number;
|
|
246
|
+
page?: number;
|
|
247
|
+
},
|
|
248
|
+
networkParameters?: NetworkParameters
|
|
249
|
+
): Promise<{
|
|
250
|
+
synonym_groups: SynonymGroup[];
|
|
251
|
+
total_count: number;
|
|
252
|
+
[key: string]: any;
|
|
253
|
+
}>;
|
|
254
|
+
|
|
255
|
+
removeSynonymGroup(
|
|
256
|
+
parameters: {
|
|
257
|
+
id: number;
|
|
258
|
+
},
|
|
259
|
+
networkParameters?: NetworkParameters
|
|
260
|
+
): Promise<void>;
|
|
261
|
+
|
|
262
|
+
removeSynonymGroups(networkParameters?: NetworkParameters): Promise<void>;
|
|
263
|
+
|
|
264
|
+
addRedirectRule(
|
|
265
|
+
parameters: {
|
|
266
|
+
url: string;
|
|
267
|
+
matches: RedirectRuleMatchObject[];
|
|
268
|
+
start_time?: string;
|
|
269
|
+
end_time?: string;
|
|
270
|
+
user_segments?: string[];
|
|
271
|
+
metadata?: Record<string, any>;
|
|
272
|
+
},
|
|
273
|
+
networkParameters?: NetworkParameters
|
|
274
|
+
): Promise<RedirectRuleResponse>;
|
|
275
|
+
|
|
276
|
+
updateRedirectRule(
|
|
277
|
+
parameters: {
|
|
278
|
+
id: string;
|
|
279
|
+
url: string;
|
|
280
|
+
matches: RedirectRuleMatchObject[];
|
|
281
|
+
start_time?: string;
|
|
282
|
+
end_time?: string;
|
|
283
|
+
user_segments?: string[];
|
|
284
|
+
metadata?: Record<string, any>;
|
|
285
|
+
},
|
|
286
|
+
networkParameters?: NetworkParameters
|
|
287
|
+
): Promise<RedirectRuleResponse>;
|
|
288
|
+
|
|
289
|
+
modifyRedirectRule(
|
|
290
|
+
parameters: {
|
|
291
|
+
id: string;
|
|
292
|
+
url: string;
|
|
293
|
+
matches: RedirectRuleMatchObject[];
|
|
294
|
+
start_time?: string;
|
|
295
|
+
end_time?: string;
|
|
296
|
+
user_segments?: string[];
|
|
297
|
+
metadata?: Record<string, any>;
|
|
298
|
+
},
|
|
299
|
+
networkParameters?: NetworkParameters
|
|
300
|
+
): Promise<RedirectRuleResponse>;
|
|
301
|
+
|
|
302
|
+
getRedirectRule(
|
|
303
|
+
parameters: {
|
|
304
|
+
id: string;
|
|
305
|
+
},
|
|
306
|
+
networkParameters?: NetworkParameters
|
|
307
|
+
): Promise<RedirectRuleResponse>;
|
|
308
|
+
|
|
309
|
+
getRedirectRules(
|
|
310
|
+
parameters?: {
|
|
311
|
+
num_results_per_page?: number;
|
|
312
|
+
page?: number;
|
|
313
|
+
query?: string;
|
|
314
|
+
status?: string;
|
|
315
|
+
},
|
|
316
|
+
networkParameters?: NetworkParameters
|
|
317
|
+
): Promise<{
|
|
318
|
+
redirect_rules: RedirectRuleResponse[];
|
|
319
|
+
total_count: number;
|
|
320
|
+
[key: string]: any;
|
|
321
|
+
}>;
|
|
322
|
+
|
|
323
|
+
removeRedirectRule(
|
|
324
|
+
parameters: {
|
|
325
|
+
id: string;
|
|
326
|
+
},
|
|
327
|
+
networkParameters?: NetworkParameters
|
|
328
|
+
): Promise<RedirectRuleResponse>;
|
|
329
|
+
|
|
330
|
+
replaceCatalog(
|
|
331
|
+
parameters: {
|
|
332
|
+
section: string;
|
|
333
|
+
notification_email?: string;
|
|
334
|
+
force?: boolean;
|
|
335
|
+
items?: File;
|
|
336
|
+
variations?: File;
|
|
337
|
+
item_groups?: File;
|
|
338
|
+
},
|
|
339
|
+
networkParameters?: NetworkParameters
|
|
340
|
+
): Promise<{
|
|
341
|
+
task_id: string;
|
|
342
|
+
task_status_path: string;
|
|
343
|
+
[key: string]: any;
|
|
344
|
+
}>;
|
|
345
|
+
|
|
346
|
+
updateCatalog(
|
|
347
|
+
parameters: {
|
|
348
|
+
section: string;
|
|
349
|
+
notification_email?: string;
|
|
350
|
+
force?: boolean;
|
|
351
|
+
items?: File;
|
|
352
|
+
variations?: File;
|
|
353
|
+
item_groups?: File;
|
|
354
|
+
},
|
|
355
|
+
networkParameters?: NetworkParameters
|
|
356
|
+
): Promise<{
|
|
357
|
+
task_id: string;
|
|
358
|
+
task_status_path: string;
|
|
359
|
+
[key: string]: any;
|
|
360
|
+
}>;
|
|
361
|
+
|
|
362
|
+
patchCatalog(
|
|
363
|
+
parameters: {
|
|
364
|
+
section: string;
|
|
365
|
+
notification_email?: string;
|
|
366
|
+
force?: boolean;
|
|
367
|
+
items?: File;
|
|
368
|
+
variations?: File;
|
|
369
|
+
item_groups?: File;
|
|
370
|
+
},
|
|
371
|
+
networkParameters?: NetworkParameters
|
|
372
|
+
): Promise<{
|
|
373
|
+
task_id: string;
|
|
374
|
+
task_status_path: string;
|
|
375
|
+
[key: string]: any;
|
|
376
|
+
}>;
|
|
377
|
+
|
|
378
|
+
replaceCatalogUsingTarArchive(
|
|
379
|
+
parameters: {
|
|
380
|
+
section: string;
|
|
381
|
+
notification_email?: string;
|
|
382
|
+
force?: boolean;
|
|
383
|
+
tarArchive?: File;
|
|
384
|
+
},
|
|
385
|
+
networkParameters?: NetworkParameters
|
|
386
|
+
): Promise<{
|
|
387
|
+
task_id: string;
|
|
388
|
+
task_status_path: string;
|
|
389
|
+
[key: string]: any;
|
|
390
|
+
}>;
|
|
391
|
+
|
|
392
|
+
updateCatalogUsingTarArchive(
|
|
393
|
+
parameters: {
|
|
394
|
+
section: string;
|
|
395
|
+
notification_email?: string;
|
|
396
|
+
force?: boolean;
|
|
397
|
+
tarArchive?: File;
|
|
398
|
+
},
|
|
399
|
+
networkParameters?: NetworkParameters
|
|
400
|
+
): Promise<{
|
|
401
|
+
task_id: string;
|
|
402
|
+
task_status_path: string;
|
|
403
|
+
[key: string]: any;
|
|
404
|
+
}>;
|
|
405
|
+
|
|
406
|
+
patchCatalogUsingTarArchive(
|
|
407
|
+
parameters: {
|
|
408
|
+
section: string;
|
|
409
|
+
notification_email?: string;
|
|
410
|
+
force?: boolean;
|
|
411
|
+
tarArchive?: File;
|
|
412
|
+
},
|
|
413
|
+
networkParameters?: NetworkParameters
|
|
414
|
+
): Promise<{
|
|
415
|
+
task_id: string;
|
|
416
|
+
task_status_path: string;
|
|
417
|
+
[key: string]: any;
|
|
418
|
+
}>;
|
|
419
|
+
|
|
420
|
+
addFacetConfiguration(
|
|
421
|
+
parameters: FacetConfiguration,
|
|
422
|
+
networkParameters?: NetworkParameters
|
|
423
|
+
): Promise<FacetConfiguration>;
|
|
424
|
+
|
|
425
|
+
getFacetConfigurations(
|
|
426
|
+
parameters: {
|
|
427
|
+
page?: number;
|
|
428
|
+
num_results_per_page?: number;
|
|
429
|
+
section?: string;
|
|
430
|
+
},
|
|
431
|
+
networkParameters?: NetworkParameters
|
|
432
|
+
): Promise<{
|
|
433
|
+
facets: FacetConfiguration[];
|
|
434
|
+
total_count: number;
|
|
435
|
+
[key: string]: any;
|
|
436
|
+
}>;
|
|
437
|
+
|
|
438
|
+
getFacetConfiguration(
|
|
439
|
+
parameters: {
|
|
440
|
+
name?: string;
|
|
441
|
+
section?: string;
|
|
442
|
+
},
|
|
443
|
+
networkParameters?: NetworkParameters
|
|
444
|
+
): Promise<FacetConfiguration>;
|
|
445
|
+
|
|
446
|
+
modifyFacetConfigurations(
|
|
447
|
+
parameters?: {
|
|
448
|
+
facetConfigurations: FacetConfiguration[];
|
|
449
|
+
},
|
|
450
|
+
networkParameters?: NetworkParameters
|
|
451
|
+
): Promise<FacetConfiguration[]>;
|
|
452
|
+
|
|
453
|
+
replaceFacetConfiguration(
|
|
454
|
+
parameters: FacetConfiguration,
|
|
455
|
+
networkParameters?: NetworkParameters
|
|
456
|
+
): Promise<FacetConfiguration>;
|
|
457
|
+
|
|
458
|
+
modifyFacetConfiguration(
|
|
459
|
+
parameters: FacetConfiguration,
|
|
460
|
+
networkParameters?: NetworkParameters
|
|
461
|
+
): Promise<FacetConfiguration>;
|
|
462
|
+
|
|
463
|
+
removeFacetConfiguration(
|
|
464
|
+
parameters?: {
|
|
465
|
+
name: string;
|
|
466
|
+
section?: string;
|
|
467
|
+
},
|
|
468
|
+
networkParameters?: NetworkParameters
|
|
469
|
+
): Promise<FacetConfiguration>;
|
|
470
|
+
|
|
471
|
+
addFacetOptionConfiguration(
|
|
472
|
+
parameters: FacetOptionConfiguration & {
|
|
473
|
+
facetGroupName: string;
|
|
474
|
+
section?: string;
|
|
475
|
+
},
|
|
476
|
+
networkParameters?: NetworkParameters
|
|
477
|
+
): Promise<FacetOptionConfiguration>;
|
|
478
|
+
|
|
479
|
+
addOrModifyFacetOptionConfigurations(
|
|
480
|
+
parameters: {
|
|
481
|
+
facetGroupName: string;
|
|
482
|
+
facetOptionConfigurations: FacetOptionConfiguration[];
|
|
483
|
+
section?: string;
|
|
484
|
+
},
|
|
485
|
+
networkParameters?: NetworkParameters
|
|
486
|
+
): Promise<FacetOptionConfiguration[]>;
|
|
487
|
+
|
|
488
|
+
getFacetOptionConfigurations(
|
|
489
|
+
parameters: {
|
|
490
|
+
facetGroupName: string;
|
|
491
|
+
page?: number;
|
|
492
|
+
num_results_per_page?: number;
|
|
493
|
+
section?: string;
|
|
494
|
+
},
|
|
495
|
+
networkParameters?: NetworkParameters
|
|
496
|
+
): Promise<{
|
|
497
|
+
facet_options: FacetOptionConfiguration[];
|
|
498
|
+
total_count: number;
|
|
499
|
+
[key: string]: any;
|
|
500
|
+
}>;
|
|
501
|
+
|
|
502
|
+
getFacetOptionConfiguration(
|
|
503
|
+
parameters: {
|
|
504
|
+
facetGroupName: string;
|
|
505
|
+
value: string;
|
|
506
|
+
section?: string;
|
|
507
|
+
},
|
|
508
|
+
networkParameters?: NetworkParameters
|
|
509
|
+
): Promise<FacetOptionConfiguration>;
|
|
510
|
+
|
|
511
|
+
replaceFacetOptionConfiguration(
|
|
512
|
+
parameters: {
|
|
513
|
+
facetGroupName: string;
|
|
514
|
+
section?: string;
|
|
515
|
+
} & FacetOptionConfiguration,
|
|
516
|
+
networkParameters?: NetworkParameters
|
|
517
|
+
): Promise<FacetOptionConfiguration>;
|
|
518
|
+
|
|
519
|
+
modifyFacetOptionConfiguration(
|
|
520
|
+
parameters?: {
|
|
521
|
+
facetGroupName: string;
|
|
522
|
+
section?: string;
|
|
523
|
+
} & FacetOptionConfiguration,
|
|
524
|
+
networkParameters?: NetworkParameters
|
|
525
|
+
): Promise<FacetOptionConfiguration>;
|
|
526
|
+
|
|
527
|
+
removeFacetOptionConfiguration(
|
|
528
|
+
parameters: {
|
|
529
|
+
facetGroupName: string;
|
|
530
|
+
value: string;
|
|
531
|
+
section?: string;
|
|
532
|
+
},
|
|
533
|
+
networkParameters?: NetworkParameters
|
|
534
|
+
): Promise<FacetOptionConfiguration>;
|
|
535
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Search from './search';
|
|
2
|
+
import Browse from './browse';
|
|
3
|
+
import Autocomplete from './autocomplete';
|
|
4
|
+
import Recommendations from './recommendations';
|
|
5
|
+
import Tracker from './tracker';
|
|
6
|
+
import Catalog from './catalog';
|
|
7
|
+
import Tasks from './tasks';
|
|
8
|
+
import Quizzes from './quizzes';
|
|
9
|
+
|
|
10
|
+
import { ConstructorClientOptions } from '.';
|
|
11
|
+
|
|
12
|
+
export = ConstructorIO;
|
|
13
|
+
|
|
14
|
+
declare class ConstructorIO {
|
|
15
|
+
constructor(options: ConstructorClientOptions);
|
|
16
|
+
|
|
17
|
+
private options: ConstructorClientOptions;
|
|
18
|
+
|
|
19
|
+
search: Search;
|
|
20
|
+
|
|
21
|
+
browse: Browse;
|
|
22
|
+
|
|
23
|
+
autocomplete: Autocomplete;
|
|
24
|
+
|
|
25
|
+
recommendations: Recommendations;
|
|
26
|
+
|
|
27
|
+
tracker: Tracker;
|
|
28
|
+
|
|
29
|
+
catalog: Catalog;
|
|
30
|
+
|
|
31
|
+
tasks: Tasks;
|
|
32
|
+
|
|
33
|
+
quizzes: Quizzes;
|
|
34
|
+
}
|