@wix/auto_sdk_faq_question-entry 1.0.18 → 1.0.19
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/index.d.ts +52 -29
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +147 -112
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +61 -55
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +52 -29
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +147 -112
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +61 -55
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +52 -29
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +147 -112
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +61 -55
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +52 -29
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +147 -112
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +61 -55
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -6,48 +6,61 @@ type QuestionEntryNonNullablePaths = `draftjs` | `plainText` | `labels` | `label
|
|
|
6
6
|
declare function createQuestionEntry$1(httpClient: HttpClient): CreateQuestionEntrySignature;
|
|
7
7
|
interface CreateQuestionEntrySignature {
|
|
8
8
|
/**
|
|
9
|
-
* Creates a
|
|
10
|
-
*
|
|
11
|
-
* @
|
|
9
|
+
* Creates a question entry with the provided details including question text, answer content, and category assignment.
|
|
10
|
+
* The question entry must be assigned to an existing category and can optionally include labels for additional organization.
|
|
11
|
+
* @param - Question entry to create.
|
|
12
|
+
* @returns Created question entry.
|
|
12
13
|
*/
|
|
13
14
|
(questionEntry: NonNullablePaths<QuestionEntry, `question`>): Promise<NonNullablePaths<QuestionEntry, QuestionEntryNonNullablePaths>>;
|
|
14
15
|
}
|
|
15
16
|
declare function getQuestionEntry$1(httpClient: HttpClient): GetQuestionEntrySignature;
|
|
16
17
|
interface GetQuestionEntrySignature {
|
|
17
18
|
/**
|
|
18
|
-
* Retrieves a single
|
|
19
|
-
* @param - ID of the
|
|
20
|
-
* @returns
|
|
19
|
+
* Retrieves a single question entry by ID.
|
|
20
|
+
* @param - ID of the question entry to retrieve.
|
|
21
|
+
* @returns Retrieved question entry.
|
|
21
22
|
*/
|
|
22
23
|
(questionEntryId: string): Promise<NonNullablePaths<QuestionEntry, QuestionEntryNonNullablePaths>>;
|
|
23
24
|
}
|
|
24
25
|
declare function updateQuestionEntry$1(httpClient: HttpClient): UpdateQuestionEntrySignature;
|
|
25
26
|
interface UpdateQuestionEntrySignature {
|
|
26
27
|
/**
|
|
27
|
-
* Updates a
|
|
28
|
+
* Updates a question entry.
|
|
28
29
|
*
|
|
29
|
-
* Each time the
|
|
30
|
-
* The current `revision` must be
|
|
31
|
-
* This ensures you're working with the latest
|
|
32
|
-
*
|
|
33
|
-
*
|
|
30
|
+
* Each time the question entry is updated, `revision` increments by 1.
|
|
31
|
+
* The current `revision` must be specified when updating the question entry.
|
|
32
|
+
* This ensures you're working with the latest version of a question entry and prevents unintended overwrites.
|
|
33
|
+
*
|
|
34
|
+
* To update multiple question entries, call the Bulk Update Question Entry method.
|
|
35
|
+
*
|
|
36
|
+
* To update only the question entry's `extendedFields` field, call the Update Extended Fields method.
|
|
37
|
+
*
|
|
38
|
+
* To update only the question entry's labels, call the Set Question Entry Labels method.
|
|
39
|
+
* @param - Question entry ID.
|
|
40
|
+
* @returns Updated question entry.
|
|
34
41
|
*/
|
|
35
42
|
(_id: string, questionEntry: NonNullablePaths<UpdateQuestionEntry, `revision`>): Promise<NonNullablePaths<QuestionEntry, QuestionEntryNonNullablePaths>>;
|
|
36
43
|
}
|
|
37
44
|
declare function deleteQuestionEntry$1(httpClient: HttpClient): DeleteQuestionEntrySignature;
|
|
38
45
|
interface DeleteQuestionEntrySignature {
|
|
39
46
|
/**
|
|
40
|
-
* Deletes a
|
|
41
|
-
*
|
|
42
|
-
*
|
|
47
|
+
* Deletes a question entry.
|
|
48
|
+
*
|
|
49
|
+
* Deleting a question entry permanently removes it from the site's Wix FAQ dashboard page.
|
|
50
|
+
*
|
|
51
|
+
* To delete multiple question entries, call the Bulk Delete Question Entries method.
|
|
52
|
+
* @param - ID of the question entry to delete.
|
|
43
53
|
*/
|
|
44
54
|
(questionEntryId: string): Promise<void>;
|
|
45
55
|
}
|
|
46
56
|
declare function listQuestionEntries$1(httpClient: HttpClient): ListQuestionEntriesSignature;
|
|
47
57
|
interface ListQuestionEntriesSignature {
|
|
48
58
|
/**
|
|
49
|
-
* Retrieves
|
|
50
|
-
*
|
|
59
|
+
* Retrieves a list of question entries, given the specified filters and paging.
|
|
60
|
+
*
|
|
61
|
+
* For field support for filters and sorting, see [Question Entries V2: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/faq-app/faq/question-entry-v2/supported-filters).
|
|
62
|
+
*
|
|
63
|
+
* Use the `fieldSet` parameter to control whether sharing links are included in the response.
|
|
51
64
|
*/
|
|
52
65
|
(options?: ListQuestionEntriesOptions): Promise<NonNullablePaths<ListQuestionEntriesResponse, {
|
|
53
66
|
[P in QuestionEntryNonNullablePaths]: `questionEntries.${number}.${P}`;
|
|
@@ -56,22 +69,28 @@ interface ListQuestionEntriesSignature {
|
|
|
56
69
|
declare function queryQuestionEntries$1(httpClient: HttpClient): QueryQuestionEntriesSignature;
|
|
57
70
|
interface QueryQuestionEntriesSignature {
|
|
58
71
|
/**
|
|
59
|
-
* Retrieves
|
|
72
|
+
* Retrieves question entries, given the provided paging, filtering, and sorting.
|
|
73
|
+
*
|
|
74
|
+
* For field support for filters and sorting, see [Question Entries V2: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/faq-app/faq/question-entry-v2/supported-filters).
|
|
60
75
|
*/
|
|
61
76
|
(options?: QueryQuestionEntriesOptions): QuestionEntriesQueryBuilder;
|
|
62
77
|
}
|
|
63
78
|
declare function bulkDeleteQuestionEntries$1(httpClient: HttpClient): BulkDeleteQuestionEntriesSignature;
|
|
64
79
|
interface BulkDeleteQuestionEntriesSignature {
|
|
65
80
|
/**
|
|
66
|
-
* Deletes multiple
|
|
67
|
-
*
|
|
81
|
+
* Deletes multiple question entries.
|
|
82
|
+
*
|
|
83
|
+
* Deleting a question entry permanently removes it from the site's Wix FAQ dashboard page.
|
|
84
|
+
*
|
|
85
|
+
* To delete a single question entry, call the Delete Question Entry method.
|
|
86
|
+
* @param - IDs of question entries to delete.
|
|
68
87
|
*/
|
|
69
88
|
(questionEntryIds: string[]): Promise<NonNullablePaths<BulkDeleteQuestionEntriesResponse, `itemMetadata` | `itemMetadata.${number}.originalIndex` | `itemMetadata.${number}.success` | `itemMetadata.${number}.error.code` | `itemMetadata.${number}.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
70
89
|
}
|
|
71
90
|
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
72
91
|
interface UpdateExtendedFieldsSignature {
|
|
73
92
|
/**
|
|
74
|
-
* Updates extended fields of a
|
|
93
|
+
* Updates extended fields of a question entry without incrementing `revision`.
|
|
75
94
|
* @param - ID of the entity to update.
|
|
76
95
|
* @param - Identifier for the app whose extended fields are being updated.
|
|
77
96
|
*/
|
|
@@ -82,9 +101,11 @@ interface UpdateExtendedFieldsSignature {
|
|
|
82
101
|
declare function setQuestionEntryLabels$1(httpClient: HttpClient): SetQuestionEntryLabelsSignature;
|
|
83
102
|
interface SetQuestionEntryLabelsSignature {
|
|
84
103
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
104
|
+
* Sets `labels` for a question entry.
|
|
105
|
+
*
|
|
106
|
+
* This method replaces all existing labels for the question entry.
|
|
107
|
+
* To clear all labels, specify an empty labels array.
|
|
108
|
+
* @param - ID of the question entry to update labels for.
|
|
88
109
|
*/
|
|
89
110
|
(questionEntryId: string, options?: SetQuestionEntryLabelsOptions): Promise<NonNullablePaths<SetQuestionEntryLabelsResponse, {
|
|
90
111
|
[P in QuestionEntryNonNullablePaths]: `questionEntry.${P}`;
|
|
@@ -93,11 +114,13 @@ interface SetQuestionEntryLabelsSignature {
|
|
|
93
114
|
declare function bulkUpdateQuestionEntry$1(httpClient: HttpClient): BulkUpdateQuestionEntrySignature;
|
|
94
115
|
interface BulkUpdateQuestionEntrySignature {
|
|
95
116
|
/**
|
|
96
|
-
* Updates multiple question entries
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
117
|
+
* Updates multiple question entries.
|
|
118
|
+
*
|
|
119
|
+
* Each time a question entry is updated, its `revision` increments by 1.
|
|
120
|
+
* The current `revision` must be specified when updating the question entry.
|
|
121
|
+
* This ensures you're working with the latest version of a question entry and prevents unintended overwrites.
|
|
122
|
+
*
|
|
123
|
+
* To update a single question entry, call the Update Question Entry method.
|
|
101
124
|
*/
|
|
102
125
|
(options?: NonNullablePaths<BulkUpdateQuestionEntryOptions, `questionEntries.${number}.questionEntry` | `questionEntries.${number}.questionEntry._id` | `questionEntries.${number}.questionEntry.revision`>): Promise<NonNullablePaths<BulkUpdateQuestionEntryResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
103
126
|
[P in QuestionEntryNonNullablePaths]: `results.${number}.questionEntry.${P}`;
|