@wix/auto_sdk_faq_question-entry 1.0.0 → 1.0.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/build/cjs/src/faq-question-entry-v2-question-entry-question-entry.context.d.ts +1 -1
- package/build/cjs/src/faq-question-entry-v2-question-entry-question-entry.public.d.ts +1 -1
- package/build/cjs/src/faq-question-entry-v2-question-entry-question-entry.public.js.map +1 -1
- package/build/cjs/src/faq-question-entry-v2-question-entry-question-entry.types.d.ts +225 -47
- package/build/cjs/src/faq-question-entry-v2-question-entry-question-entry.types.js.map +1 -1
- package/build/cjs/src/faq-question-entry-v2-question-entry-question-entry.universal.d.ts +297 -61
- package/build/cjs/src/faq-question-entry-v2-question-entry-question-entry.universal.js.map +1 -1
- package/build/es/src/faq-question-entry-v2-question-entry-question-entry.context.d.ts +1 -1
- package/build/es/src/faq-question-entry-v2-question-entry-question-entry.public.d.ts +1 -1
- package/build/es/src/faq-question-entry-v2-question-entry-question-entry.public.js.map +1 -1
- package/build/es/src/faq-question-entry-v2-question-entry-question-entry.types.d.ts +225 -47
- package/build/es/src/faq-question-entry-v2-question-entry-question-entry.types.js.map +1 -1
- package/build/es/src/faq-question-entry-v2-question-entry-question-entry.universal.d.ts +297 -61
- package/build/es/src/faq-question-entry-v2-question-entry-question-entry.universal.js.map +1 -1
- package/build/internal/cjs/src/faq-question-entry-v2-question-entry-question-entry.context.d.ts +1 -1
- package/build/internal/cjs/src/faq-question-entry-v2-question-entry-question-entry.public.d.ts +1 -1
- package/build/internal/cjs/src/faq-question-entry-v2-question-entry-question-entry.public.js.map +1 -1
- package/build/internal/cjs/src/faq-question-entry-v2-question-entry-question-entry.types.d.ts +225 -47
- package/build/internal/cjs/src/faq-question-entry-v2-question-entry-question-entry.types.js.map +1 -1
- package/build/internal/cjs/src/faq-question-entry-v2-question-entry-question-entry.universal.d.ts +297 -61
- package/build/internal/cjs/src/faq-question-entry-v2-question-entry-question-entry.universal.js.map +1 -1
- package/build/internal/es/src/faq-question-entry-v2-question-entry-question-entry.context.d.ts +1 -1
- package/build/internal/es/src/faq-question-entry-v2-question-entry-question-entry.public.d.ts +1 -1
- package/build/internal/es/src/faq-question-entry-v2-question-entry-question-entry.public.js.map +1 -1
- package/build/internal/es/src/faq-question-entry-v2-question-entry-question-entry.types.d.ts +225 -47
- package/build/internal/es/src/faq-question-entry-v2-question-entry-question-entry.types.js.map +1 -1
- package/build/internal/es/src/faq-question-entry-v2-question-entry-question-entry.universal.d.ts +297 -61
- package/build/internal/es/src/faq-question-entry-v2-question-entry-question-entry.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
export interface QuestionEntry extends QuestionEntryAnswerOneOf {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* draft.js text.
|
|
4
|
+
* @minLength 1
|
|
5
|
+
* @maxLength 100000
|
|
6
|
+
*/
|
|
3
7
|
draftjs?: string;
|
|
4
8
|
/** rich content text. */
|
|
5
9
|
richContent?: RichContent;
|
|
6
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* plain text.
|
|
12
|
+
* @minLength 1
|
|
13
|
+
* @maxLength 10000
|
|
14
|
+
*/
|
|
7
15
|
plainText?: string;
|
|
8
16
|
/**
|
|
9
17
|
* QuestionEntry ID.
|
|
18
|
+
* @format GUID
|
|
10
19
|
* @readonly
|
|
11
20
|
*/
|
|
12
21
|
_id?: string | null;
|
|
@@ -29,24 +38,36 @@ export interface QuestionEntry extends QuestionEntryAnswerOneOf {
|
|
|
29
38
|
* @readonly
|
|
30
39
|
*/
|
|
31
40
|
_updatedDate?: Date | null;
|
|
32
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* QuestionEntry title.
|
|
43
|
+
* @maxLength 1000
|
|
44
|
+
*/
|
|
33
45
|
question?: string | null;
|
|
34
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* List of up to 100 labels for this question entry.
|
|
48
|
+
* @maxSize 100
|
|
49
|
+
*/
|
|
35
50
|
labels?: Label[];
|
|
36
51
|
/** Order of question out of all questions (and not only in the category). */
|
|
37
52
|
sortOrder?: number | null;
|
|
38
53
|
/** Question's visibility status within the site. */
|
|
39
54
|
status?: QuestionStatus;
|
|
40
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* ID of the category to which this question belongs.
|
|
57
|
+
* @minLength 1
|
|
58
|
+
* @maxLength 50
|
|
59
|
+
*/
|
|
41
60
|
categoryId?: string | null;
|
|
42
61
|
/**
|
|
43
62
|
* FURL slug for this question generated from the question entry's text.
|
|
44
63
|
* @readonly
|
|
64
|
+
* @maxLength 100
|
|
45
65
|
*/
|
|
46
66
|
slug?: string | null;
|
|
47
67
|
/**
|
|
48
68
|
* Unique question URL.
|
|
49
69
|
* @readonly
|
|
70
|
+
* @format WEB_URL
|
|
50
71
|
*/
|
|
51
72
|
shareLink?: string | null;
|
|
52
73
|
/** Data Extensions */
|
|
@@ -54,11 +75,19 @@ export interface QuestionEntry extends QuestionEntryAnswerOneOf {
|
|
|
54
75
|
}
|
|
55
76
|
/** @oneof */
|
|
56
77
|
export interface QuestionEntryAnswerOneOf {
|
|
57
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* draft.js text.
|
|
80
|
+
* @minLength 1
|
|
81
|
+
* @maxLength 100000
|
|
82
|
+
*/
|
|
58
83
|
draftjs?: string;
|
|
59
84
|
/** rich content text. */
|
|
60
85
|
richContent?: RichContent;
|
|
61
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* plain text.
|
|
88
|
+
* @minLength 1
|
|
89
|
+
* @maxLength 10000
|
|
90
|
+
*/
|
|
62
91
|
plainText?: string;
|
|
63
92
|
}
|
|
64
93
|
export interface RichContent {
|
|
@@ -659,11 +688,20 @@ export interface GIFData {
|
|
|
659
688
|
gifType?: GIFType;
|
|
660
689
|
}
|
|
661
690
|
export interface GIF {
|
|
662
|
-
/**
|
|
691
|
+
/**
|
|
692
|
+
* GIF format URL.
|
|
693
|
+
* @format WEB_URL
|
|
694
|
+
*/
|
|
663
695
|
gif?: string | null;
|
|
664
|
-
/**
|
|
696
|
+
/**
|
|
697
|
+
* MP4 format URL.
|
|
698
|
+
* @format WEB_URL
|
|
699
|
+
*/
|
|
665
700
|
mp4?: string | null;
|
|
666
|
-
/**
|
|
701
|
+
/**
|
|
702
|
+
* Thumbnail URL.
|
|
703
|
+
* @format WEB_URL
|
|
704
|
+
*/
|
|
667
705
|
still?: string | null;
|
|
668
706
|
}
|
|
669
707
|
export declare enum GIFType {
|
|
@@ -729,6 +767,25 @@ export interface ImageData {
|
|
|
729
767
|
caption?: string | null;
|
|
730
768
|
/** Sets whether the image's download button is disabled. Defaults to `false`. */
|
|
731
769
|
disableDownload?: boolean | null;
|
|
770
|
+
/** Sets whether the image is decorative and does not need an explanation. Defaults to `false`. */
|
|
771
|
+
decorative?: boolean | null;
|
|
772
|
+
/** Styling for the image. */
|
|
773
|
+
styles?: ImageDataStyles;
|
|
774
|
+
}
|
|
775
|
+
export interface StylesBorder {
|
|
776
|
+
/** Border width in pixels. */
|
|
777
|
+
width?: number | null;
|
|
778
|
+
/**
|
|
779
|
+
* Border color as a hexadecimal value.
|
|
780
|
+
* @format COLOR_HEX
|
|
781
|
+
*/
|
|
782
|
+
color?: string | null;
|
|
783
|
+
/** Border radius in pixels. */
|
|
784
|
+
radius?: number | null;
|
|
785
|
+
}
|
|
786
|
+
export interface ImageDataStyles {
|
|
787
|
+
/** Border attributes. */
|
|
788
|
+
border?: StylesBorder;
|
|
732
789
|
}
|
|
733
790
|
export interface LinkPreviewData {
|
|
734
791
|
/** Styling for the link preview's container. */
|
|
@@ -875,13 +932,22 @@ export declare enum BackgroundType {
|
|
|
875
932
|
export interface Gradient {
|
|
876
933
|
/** The gradient angle in degrees. */
|
|
877
934
|
angle?: number | null;
|
|
878
|
-
/**
|
|
935
|
+
/**
|
|
936
|
+
* The start color as a hexademical value.
|
|
937
|
+
* @format COLOR_HEX
|
|
938
|
+
*/
|
|
879
939
|
startColor?: string | null;
|
|
880
|
-
/**
|
|
940
|
+
/**
|
|
941
|
+
* The end color as a hexademical value.
|
|
942
|
+
* @format COLOR_HEX
|
|
943
|
+
*/
|
|
881
944
|
lastColor?: string | null;
|
|
882
945
|
}
|
|
883
946
|
export interface Background extends BackgroundBackgroundOneOf {
|
|
884
|
-
/**
|
|
947
|
+
/**
|
|
948
|
+
* The background color as a hexademical value.
|
|
949
|
+
* @format COLOR_HEX
|
|
950
|
+
*/
|
|
885
951
|
color?: string | null;
|
|
886
952
|
/** An image to use for the background. */
|
|
887
953
|
image?: Media;
|
|
@@ -892,7 +958,10 @@ export interface Background extends BackgroundBackgroundOneOf {
|
|
|
892
958
|
}
|
|
893
959
|
/** @oneof */
|
|
894
960
|
export interface BackgroundBackgroundOneOf {
|
|
895
|
-
/**
|
|
961
|
+
/**
|
|
962
|
+
* The background color as a hexademical value.
|
|
963
|
+
* @format COLOR_HEX
|
|
964
|
+
*/
|
|
896
965
|
color?: string | null;
|
|
897
966
|
/** An image to use for the background. */
|
|
898
967
|
image?: Media;
|
|
@@ -1204,17 +1273,32 @@ export declare enum VerticalAlignment {
|
|
|
1204
1273
|
export interface CellStyle {
|
|
1205
1274
|
/** Vertical alignment for the cell's text. */
|
|
1206
1275
|
verticalAlignment?: VerticalAlignment;
|
|
1207
|
-
/**
|
|
1276
|
+
/**
|
|
1277
|
+
* Cell background color as a hexadecimal value.
|
|
1278
|
+
* @format COLOR_HEX
|
|
1279
|
+
*/
|
|
1208
1280
|
backgroundColor?: string | null;
|
|
1209
1281
|
}
|
|
1210
1282
|
export interface BorderColors {
|
|
1211
|
-
/**
|
|
1283
|
+
/**
|
|
1284
|
+
* Left border color as a hexadecimal value.
|
|
1285
|
+
* @format COLOR_HEX
|
|
1286
|
+
*/
|
|
1212
1287
|
left?: string | null;
|
|
1213
|
-
/**
|
|
1288
|
+
/**
|
|
1289
|
+
* Right border color as a hexadecimal value.
|
|
1290
|
+
* @format COLOR_HEX
|
|
1291
|
+
*/
|
|
1214
1292
|
right?: string | null;
|
|
1215
|
-
/**
|
|
1293
|
+
/**
|
|
1294
|
+
* Top border color as a hexadecimal value.
|
|
1295
|
+
* @format COLOR_HEX
|
|
1296
|
+
*/
|
|
1216
1297
|
top?: string | null;
|
|
1217
|
-
/**
|
|
1298
|
+
/**
|
|
1299
|
+
* Bottom border color as a hexadecimal value.
|
|
1300
|
+
* @format COLOR_HEX
|
|
1301
|
+
*/
|
|
1218
1302
|
bottom?: string | null;
|
|
1219
1303
|
}
|
|
1220
1304
|
/**
|
|
@@ -1324,7 +1408,11 @@ export interface TextNodeStyle {
|
|
|
1324
1408
|
}
|
|
1325
1409
|
/** Labels are additional groupings of question entries for organizing FAQ questions in specific contexts. */
|
|
1326
1410
|
export interface Label {
|
|
1327
|
-
/**
|
|
1411
|
+
/**
|
|
1412
|
+
* Label title.
|
|
1413
|
+
* @minLength 1
|
|
1414
|
+
* @maxLength 36
|
|
1415
|
+
*/
|
|
1328
1416
|
title?: string;
|
|
1329
1417
|
/** Order of question entry within label. */
|
|
1330
1418
|
sortOrder?: number | null;
|
|
@@ -1354,7 +1442,10 @@ export interface CreateQuestionEntryResponse {
|
|
|
1354
1442
|
questionEntry?: QuestionEntry;
|
|
1355
1443
|
}
|
|
1356
1444
|
export interface GetQuestionEntryRequest {
|
|
1357
|
-
/**
|
|
1445
|
+
/**
|
|
1446
|
+
* ID of the QuestionEntry to retrieve.
|
|
1447
|
+
* @format GUID
|
|
1448
|
+
*/
|
|
1358
1449
|
questionEntryId: string;
|
|
1359
1450
|
}
|
|
1360
1451
|
export interface GetQuestionEntryResponse {
|
|
@@ -1370,33 +1461,55 @@ export interface UpdateQuestionEntryResponse {
|
|
|
1370
1461
|
questionEntry?: QuestionEntry;
|
|
1371
1462
|
}
|
|
1372
1463
|
export interface DeleteQuestionEntryRequest {
|
|
1373
|
-
/**
|
|
1464
|
+
/**
|
|
1465
|
+
* Id of the QuestionEntry to delete.
|
|
1466
|
+
* @format GUID
|
|
1467
|
+
*/
|
|
1374
1468
|
questionEntryId: string;
|
|
1375
1469
|
}
|
|
1376
1470
|
export interface DeleteQuestionEntryResponse {
|
|
1377
1471
|
}
|
|
1378
1472
|
export interface ListQuestionEntriesRequest {
|
|
1379
|
-
/**
|
|
1473
|
+
/**
|
|
1474
|
+
* Category ID.
|
|
1475
|
+
* @minLength 1
|
|
1476
|
+
* @maxLength 50
|
|
1477
|
+
*/
|
|
1380
1478
|
categoryId?: string | null;
|
|
1381
|
-
/**
|
|
1479
|
+
/**
|
|
1480
|
+
* List of question entry IDs.
|
|
1481
|
+
* @format GUID
|
|
1482
|
+
* @maxSize 100
|
|
1483
|
+
*/
|
|
1382
1484
|
questionEntryIds?: string[];
|
|
1383
|
-
/**
|
|
1485
|
+
/**
|
|
1486
|
+
* Question label.
|
|
1487
|
+
* @minLength 1
|
|
1488
|
+
* @maxLength 36
|
|
1489
|
+
*/
|
|
1384
1490
|
questionEntryLabel?: string | null;
|
|
1385
1491
|
/** Not needed if `question_entry_id`s are provided in filter. */
|
|
1386
1492
|
paging?: CursorPaging;
|
|
1387
1493
|
/** Text output format. */
|
|
1388
1494
|
contentFormat?: ContentFormat;
|
|
1389
|
-
/**
|
|
1495
|
+
/**
|
|
1496
|
+
* Include fields inside question entries.
|
|
1497
|
+
* @maxSize 100
|
|
1498
|
+
*/
|
|
1390
1499
|
fieldSet?: FieldSet[];
|
|
1391
1500
|
}
|
|
1392
1501
|
export interface CursorPaging {
|
|
1393
|
-
/**
|
|
1502
|
+
/**
|
|
1503
|
+
* Maximum number of items to return in the results.
|
|
1504
|
+
* @max 100
|
|
1505
|
+
*/
|
|
1394
1506
|
limit?: number | null;
|
|
1395
1507
|
/**
|
|
1396
1508
|
* Pointer to the next or previous page in the list of results.
|
|
1397
1509
|
*
|
|
1398
1510
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1399
1511
|
* Not relevant for the first request.
|
|
1512
|
+
* @maxLength 16000
|
|
1400
1513
|
*/
|
|
1401
1514
|
cursor?: string | null;
|
|
1402
1515
|
}
|
|
@@ -1429,9 +1542,15 @@ export interface PagingMetadataV2 {
|
|
|
1429
1542
|
cursors?: Cursors;
|
|
1430
1543
|
}
|
|
1431
1544
|
export interface Cursors {
|
|
1432
|
-
/**
|
|
1545
|
+
/**
|
|
1546
|
+
* Cursor string pointing to the next page in the list of results.
|
|
1547
|
+
* @maxLength 16000
|
|
1548
|
+
*/
|
|
1433
1549
|
next?: string | null;
|
|
1434
|
-
/**
|
|
1550
|
+
/**
|
|
1551
|
+
* Cursor pointing to the previous page in the list of results.
|
|
1552
|
+
* @maxLength 16000
|
|
1553
|
+
*/
|
|
1435
1554
|
prev?: string | null;
|
|
1436
1555
|
}
|
|
1437
1556
|
export interface QueryQuestionEntriesRequest {
|
|
@@ -1439,7 +1558,10 @@ export interface QueryQuestionEntriesRequest {
|
|
|
1439
1558
|
query?: CursorQuery;
|
|
1440
1559
|
/** Text output format. */
|
|
1441
1560
|
contentFormat?: QueryQuestionEntriesRequestContentFormat;
|
|
1442
|
-
/**
|
|
1561
|
+
/**
|
|
1562
|
+
* Include fields inside question entries.
|
|
1563
|
+
* @maxSize 100
|
|
1564
|
+
*/
|
|
1443
1565
|
fieldSet?: QueryQuestionEntriesRequestFieldSet[];
|
|
1444
1566
|
}
|
|
1445
1567
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -1459,6 +1581,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
1459
1581
|
* Sort object.
|
|
1460
1582
|
*
|
|
1461
1583
|
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1584
|
+
* @maxSize 5
|
|
1462
1585
|
*/
|
|
1463
1586
|
sort?: Sorting[];
|
|
1464
1587
|
}
|
|
@@ -1472,7 +1595,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
1472
1595
|
cursorPaging?: CursorPaging;
|
|
1473
1596
|
}
|
|
1474
1597
|
export interface Sorting {
|
|
1475
|
-
/**
|
|
1598
|
+
/**
|
|
1599
|
+
* Name of the field to sort by.
|
|
1600
|
+
* @maxLength 512
|
|
1601
|
+
*/
|
|
1476
1602
|
fieldName?: string;
|
|
1477
1603
|
/** Sort order. */
|
|
1478
1604
|
order?: SortOrder;
|
|
@@ -1511,11 +1637,20 @@ export interface CursorPagingMetadata {
|
|
|
1511
1637
|
hasNext?: boolean | null;
|
|
1512
1638
|
}
|
|
1513
1639
|
export interface BulkDeleteQuestionEntryRequest {
|
|
1514
|
-
/**
|
|
1640
|
+
/**
|
|
1641
|
+
* QuestionEntry ids to be deleted.
|
|
1642
|
+
* @minSize 1
|
|
1643
|
+
* @maxSize 100
|
|
1644
|
+
* @format GUID
|
|
1645
|
+
*/
|
|
1515
1646
|
questionEntryIds: string[];
|
|
1516
1647
|
}
|
|
1517
1648
|
export interface BulkDeleteQuestionEntryResponse {
|
|
1518
|
-
/**
|
|
1649
|
+
/**
|
|
1650
|
+
* Information about successful action or error for failure.
|
|
1651
|
+
* @minSize 1
|
|
1652
|
+
* @maxSize 100
|
|
1653
|
+
*/
|
|
1519
1654
|
itemMetadata?: ItemMetadata[];
|
|
1520
1655
|
/** Holds metadata of the entire bulk delete operation */
|
|
1521
1656
|
bulkActionMetadata?: BulkActionMetadata;
|
|
@@ -1559,9 +1694,15 @@ export interface UpdateExtendedFieldsResponse {
|
|
|
1559
1694
|
questionEntry?: QuestionEntry;
|
|
1560
1695
|
}
|
|
1561
1696
|
export interface SetQuestionEntryLabelsRequest {
|
|
1562
|
-
/**
|
|
1697
|
+
/**
|
|
1698
|
+
* ID of question entry to add labels to.
|
|
1699
|
+
* @format GUID
|
|
1700
|
+
*/
|
|
1563
1701
|
questionEntryId: string;
|
|
1564
|
-
/**
|
|
1702
|
+
/**
|
|
1703
|
+
* Labels to add to the question entry.
|
|
1704
|
+
* @maxSize 100
|
|
1705
|
+
*/
|
|
1565
1706
|
labels?: Label[];
|
|
1566
1707
|
}
|
|
1567
1708
|
export interface SetQuestionEntryLabelsResponse {
|
|
@@ -1569,7 +1710,11 @@ export interface SetQuestionEntryLabelsResponse {
|
|
|
1569
1710
|
questionEntry?: QuestionEntry;
|
|
1570
1711
|
}
|
|
1571
1712
|
export interface BulkUpdateQuestionEntryRequest {
|
|
1572
|
-
/**
|
|
1713
|
+
/**
|
|
1714
|
+
* List of question entry IDs to change status for.
|
|
1715
|
+
* @minSize 1
|
|
1716
|
+
* @maxSize 100
|
|
1717
|
+
*/
|
|
1573
1718
|
questionEntries?: MaskedQuestionEntry[];
|
|
1574
1719
|
/** set to `true` if you wish to receive back the updated entities in the response */
|
|
1575
1720
|
returnFullEntity?: boolean | null;
|
|
@@ -1579,7 +1724,10 @@ export interface MaskedQuestionEntry {
|
|
|
1579
1724
|
questionEntry?: QuestionEntry;
|
|
1580
1725
|
}
|
|
1581
1726
|
export interface BulkUpdateQuestionEntryResponse {
|
|
1582
|
-
/**
|
|
1727
|
+
/**
|
|
1728
|
+
* Array with all updated items results.
|
|
1729
|
+
* @maxSize 100
|
|
1730
|
+
*/
|
|
1583
1731
|
results?: BulkUpdateQuestionEntryResult[];
|
|
1584
1732
|
/** Holds metadata of the entire bulk update operation */
|
|
1585
1733
|
bulkActionMetadata?: BulkActionMetadata;
|
|
@@ -1663,9 +1811,15 @@ export interface ActionEvent {
|
|
|
1663
1811
|
export interface Empty {
|
|
1664
1812
|
}
|
|
1665
1813
|
export interface MessageEnvelope {
|
|
1666
|
-
/**
|
|
1814
|
+
/**
|
|
1815
|
+
* App instance ID.
|
|
1816
|
+
* @format GUID
|
|
1817
|
+
*/
|
|
1667
1818
|
instanceId?: string | null;
|
|
1668
|
-
/**
|
|
1819
|
+
/**
|
|
1820
|
+
* Event type.
|
|
1821
|
+
* @maxLength 150
|
|
1822
|
+
*/
|
|
1669
1823
|
eventType?: string;
|
|
1670
1824
|
/** The identification type and identity data. */
|
|
1671
1825
|
identity?: IdentificationData;
|
|
@@ -1673,26 +1827,50 @@ export interface MessageEnvelope {
|
|
|
1673
1827
|
data?: string;
|
|
1674
1828
|
}
|
|
1675
1829
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1676
|
-
/**
|
|
1830
|
+
/**
|
|
1831
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1832
|
+
* @format GUID
|
|
1833
|
+
*/
|
|
1677
1834
|
anonymousVisitorId?: string;
|
|
1678
|
-
/**
|
|
1835
|
+
/**
|
|
1836
|
+
* ID of a site visitor that has logged in to the site.
|
|
1837
|
+
* @format GUID
|
|
1838
|
+
*/
|
|
1679
1839
|
memberId?: string;
|
|
1680
|
-
/**
|
|
1840
|
+
/**
|
|
1841
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1842
|
+
* @format GUID
|
|
1843
|
+
*/
|
|
1681
1844
|
wixUserId?: string;
|
|
1682
|
-
/**
|
|
1845
|
+
/**
|
|
1846
|
+
* ID of an app.
|
|
1847
|
+
* @format GUID
|
|
1848
|
+
*/
|
|
1683
1849
|
appId?: string;
|
|
1684
1850
|
/** @readonly */
|
|
1685
1851
|
identityType?: WebhookIdentityType;
|
|
1686
1852
|
}
|
|
1687
1853
|
/** @oneof */
|
|
1688
1854
|
export interface IdentificationDataIdOneOf {
|
|
1689
|
-
/**
|
|
1855
|
+
/**
|
|
1856
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1857
|
+
* @format GUID
|
|
1858
|
+
*/
|
|
1690
1859
|
anonymousVisitorId?: string;
|
|
1691
|
-
/**
|
|
1860
|
+
/**
|
|
1861
|
+
* ID of a site visitor that has logged in to the site.
|
|
1862
|
+
* @format GUID
|
|
1863
|
+
*/
|
|
1692
1864
|
memberId?: string;
|
|
1693
|
-
/**
|
|
1865
|
+
/**
|
|
1866
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1867
|
+
* @format GUID
|
|
1868
|
+
*/
|
|
1694
1869
|
wixUserId?: string;
|
|
1695
|
-
/**
|
|
1870
|
+
/**
|
|
1871
|
+
* ID of an app.
|
|
1872
|
+
* @format GUID
|
|
1873
|
+
*/
|
|
1696
1874
|
appId?: string;
|
|
1697
1875
|
}
|
|
1698
1876
|
export declare enum WebhookIdentityType {
|
|
@@ -2008,9 +2186,15 @@ export interface BulkUpdateQuestionEntryResponseNonNullableFields {
|
|
|
2008
2186
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
2009
2187
|
}
|
|
2010
2188
|
export interface BaseEventMetadata {
|
|
2011
|
-
/**
|
|
2189
|
+
/**
|
|
2190
|
+
* App instance ID.
|
|
2191
|
+
* @format GUID
|
|
2192
|
+
*/
|
|
2012
2193
|
instanceId?: string | null;
|
|
2013
|
-
/**
|
|
2194
|
+
/**
|
|
2195
|
+
* Event type.
|
|
2196
|
+
* @maxLength 150
|
|
2197
|
+
*/
|
|
2014
2198
|
eventType?: string;
|
|
2015
2199
|
/** The identification type and identity data. */
|
|
2016
2200
|
identity?: IdentificationData;
|
|
@@ -2059,6 +2243,8 @@ export interface QuestionEntryCreatedEnvelope {
|
|
|
2059
2243
|
}
|
|
2060
2244
|
/** @webhook
|
|
2061
2245
|
* @eventType wix.faq.question_entry.v2.question_entry_created
|
|
2246
|
+
* @serviceIdentifier wix.faq.questionentry.v2.QuestionEntryService
|
|
2247
|
+
* @slug created
|
|
2062
2248
|
*/
|
|
2063
2249
|
export declare function onQuestionEntryCreated(handler: (event: QuestionEntryCreatedEnvelope) => void | Promise<void>): void;
|
|
2064
2250
|
export interface QuestionEntryDeletedEnvelope {
|
|
@@ -2066,6 +2252,8 @@ export interface QuestionEntryDeletedEnvelope {
|
|
|
2066
2252
|
}
|
|
2067
2253
|
/** @webhook
|
|
2068
2254
|
* @eventType wix.faq.question_entry.v2.question_entry_deleted
|
|
2255
|
+
* @serviceIdentifier wix.faq.questionentry.v2.QuestionEntryService
|
|
2256
|
+
* @slug deleted
|
|
2069
2257
|
*/
|
|
2070
2258
|
export declare function onQuestionEntryDeleted(handler: (event: QuestionEntryDeletedEnvelope) => void | Promise<void>): void;
|
|
2071
2259
|
export interface QuestionEntryUpdatedEnvelope {
|
|
@@ -2074,6 +2262,8 @@ export interface QuestionEntryUpdatedEnvelope {
|
|
|
2074
2262
|
}
|
|
2075
2263
|
/** @webhook
|
|
2076
2264
|
* @eventType wix.faq.question_entry.v2.question_entry_updated
|
|
2265
|
+
* @serviceIdentifier wix.faq.questionentry.v2.QuestionEntryService
|
|
2266
|
+
* @slug updated
|
|
2077
2267
|
*/
|
|
2078
2268
|
export declare function onQuestionEntryUpdated(handler: (event: QuestionEntryUpdatedEnvelope) => void | Promise<void>): void;
|
|
2079
2269
|
/**
|
|
@@ -2126,14 +2316,23 @@ export declare function getQuestionEntry(questionEntryId: string): Promise<Quest
|
|
|
2126
2316
|
*/
|
|
2127
2317
|
export declare function updateQuestionEntry(_id: string | null, questionEntry: UpdateQuestionEntry): Promise<QuestionEntry & QuestionEntryNonNullableFields>;
|
|
2128
2318
|
export interface UpdateQuestionEntry {
|
|
2129
|
-
/**
|
|
2319
|
+
/**
|
|
2320
|
+
* draft.js text.
|
|
2321
|
+
* @minLength 1
|
|
2322
|
+
* @maxLength 100000
|
|
2323
|
+
*/
|
|
2130
2324
|
draftjs?: string;
|
|
2131
2325
|
/** rich content text. */
|
|
2132
2326
|
richContent?: RichContent;
|
|
2133
|
-
/**
|
|
2327
|
+
/**
|
|
2328
|
+
* plain text.
|
|
2329
|
+
* @minLength 1
|
|
2330
|
+
* @maxLength 10000
|
|
2331
|
+
*/
|
|
2134
2332
|
plainText?: string;
|
|
2135
2333
|
/**
|
|
2136
2334
|
* QuestionEntry ID.
|
|
2335
|
+
* @format GUID
|
|
2137
2336
|
* @readonly
|
|
2138
2337
|
*/
|
|
2139
2338
|
_id?: string | null;
|
|
@@ -2156,24 +2355,36 @@ export interface UpdateQuestionEntry {
|
|
|
2156
2355
|
* @readonly
|
|
2157
2356
|
*/
|
|
2158
2357
|
_updatedDate?: Date | null;
|
|
2159
|
-
/**
|
|
2358
|
+
/**
|
|
2359
|
+
* QuestionEntry title.
|
|
2360
|
+
* @maxLength 1000
|
|
2361
|
+
*/
|
|
2160
2362
|
question?: string | null;
|
|
2161
|
-
/**
|
|
2363
|
+
/**
|
|
2364
|
+
* List of up to 100 labels for this question entry.
|
|
2365
|
+
* @maxSize 100
|
|
2366
|
+
*/
|
|
2162
2367
|
labels?: Label[];
|
|
2163
2368
|
/** Order of question out of all questions (and not only in the category). */
|
|
2164
2369
|
sortOrder?: number | null;
|
|
2165
2370
|
/** Question's visibility status within the site. */
|
|
2166
2371
|
status?: QuestionStatus;
|
|
2167
|
-
/**
|
|
2372
|
+
/**
|
|
2373
|
+
* ID of the category to which this question belongs.
|
|
2374
|
+
* @minLength 1
|
|
2375
|
+
* @maxLength 50
|
|
2376
|
+
*/
|
|
2168
2377
|
categoryId?: string | null;
|
|
2169
2378
|
/**
|
|
2170
2379
|
* FURL slug for this question generated from the question entry's text.
|
|
2171
2380
|
* @readonly
|
|
2381
|
+
* @maxLength 100
|
|
2172
2382
|
*/
|
|
2173
2383
|
slug?: string | null;
|
|
2174
2384
|
/**
|
|
2175
2385
|
* Unique question URL.
|
|
2176
2386
|
* @readonly
|
|
2387
|
+
* @format WEB_URL
|
|
2177
2388
|
*/
|
|
2178
2389
|
shareLink?: string | null;
|
|
2179
2390
|
/** Data Extensions */
|
|
@@ -2207,17 +2418,32 @@ export declare function deleteQuestionEntry(questionEntryId: string): Promise<vo
|
|
|
2207
2418
|
*/
|
|
2208
2419
|
export declare function listQuestionEntries(options?: ListQuestionEntriesOptions): Promise<ListQuestionEntriesResponse & ListQuestionEntriesResponseNonNullableFields>;
|
|
2209
2420
|
export interface ListQuestionEntriesOptions {
|
|
2210
|
-
/**
|
|
2421
|
+
/**
|
|
2422
|
+
* Category ID.
|
|
2423
|
+
* @minLength 1
|
|
2424
|
+
* @maxLength 50
|
|
2425
|
+
*/
|
|
2211
2426
|
categoryId?: string | null;
|
|
2212
|
-
/**
|
|
2427
|
+
/**
|
|
2428
|
+
* List of question entry IDs.
|
|
2429
|
+
* @format GUID
|
|
2430
|
+
* @maxSize 100
|
|
2431
|
+
*/
|
|
2213
2432
|
questionEntryIds?: string[];
|
|
2214
|
-
/**
|
|
2433
|
+
/**
|
|
2434
|
+
* Question label.
|
|
2435
|
+
* @minLength 1
|
|
2436
|
+
* @maxLength 36
|
|
2437
|
+
*/
|
|
2215
2438
|
questionEntryLabel?: string | null;
|
|
2216
2439
|
/** Not needed if `question_entry_id`s are provided in filter. */
|
|
2217
2440
|
paging?: CursorPaging;
|
|
2218
2441
|
/** Text output format. */
|
|
2219
2442
|
contentFormat?: ContentFormat;
|
|
2220
|
-
/**
|
|
2443
|
+
/**
|
|
2444
|
+
* Include fields inside question entries.
|
|
2445
|
+
* @maxSize 100
|
|
2446
|
+
*/
|
|
2221
2447
|
fieldSet?: FieldSet[];
|
|
2222
2448
|
}
|
|
2223
2449
|
/**
|
|
@@ -2236,7 +2462,10 @@ export declare function queryQuestionEntries(options?: QueryQuestionEntriesOptio
|
|
|
2236
2462
|
export interface QueryQuestionEntriesOptions {
|
|
2237
2463
|
/** Text output format. */
|
|
2238
2464
|
contentFormat?: QueryQuestionEntriesRequestContentFormat | undefined;
|
|
2239
|
-
/**
|
|
2465
|
+
/**
|
|
2466
|
+
* Include fields inside question entries.
|
|
2467
|
+
* @maxSize 100
|
|
2468
|
+
*/
|
|
2240
2469
|
fieldSet?: QueryQuestionEntriesRequestFieldSet[] | undefined;
|
|
2241
2470
|
}
|
|
2242
2471
|
interface QueryCursorResult {
|
|
@@ -2343,7 +2572,10 @@ export interface UpdateExtendedFieldsOptions {
|
|
|
2343
2572
|
*/
|
|
2344
2573
|
export declare function setQuestionEntryLabels(questionEntryId: string, options?: SetQuestionEntryLabelsOptions): Promise<SetQuestionEntryLabelsResponse & SetQuestionEntryLabelsResponseNonNullableFields>;
|
|
2345
2574
|
export interface SetQuestionEntryLabelsOptions {
|
|
2346
|
-
/**
|
|
2575
|
+
/**
|
|
2576
|
+
* Labels to add to the question entry.
|
|
2577
|
+
* @maxSize 100
|
|
2578
|
+
*/
|
|
2347
2579
|
labels?: Label[];
|
|
2348
2580
|
}
|
|
2349
2581
|
/**
|
|
@@ -2364,7 +2596,11 @@ export interface SetQuestionEntryLabelsOptions {
|
|
|
2364
2596
|
*/
|
|
2365
2597
|
export declare function bulkUpdateQuestionEntry(options?: BulkUpdateQuestionEntryOptions): Promise<BulkUpdateQuestionEntryResponse & BulkUpdateQuestionEntryResponseNonNullableFields>;
|
|
2366
2598
|
export interface BulkUpdateQuestionEntryOptions {
|
|
2367
|
-
/**
|
|
2599
|
+
/**
|
|
2600
|
+
* List of question entry IDs to change status for.
|
|
2601
|
+
* @minSize 1
|
|
2602
|
+
* @maxSize 100
|
|
2603
|
+
*/
|
|
2368
2604
|
questionEntries?: MaskedQuestionEntry[];
|
|
2369
2605
|
/** set to `true` if you wish to receive back the updated entities in the response */
|
|
2370
2606
|
returnFullEntity?: boolean | null;
|