@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.
@@ -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 new QuestionEntry.
10
- * @param - QuestionEntry to be created.
11
- * @returns The created QuestionEntry.
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 QuestionEntry by id.
19
- * @param - ID of the QuestionEntry to retrieve.
20
- * @returns The requested QuestionEntry.
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 QuestionEntry, replaces the previous version.
28
+ * Updates a question entry.
28
29
  *
29
- * Each time the QuestionEntry is updated `revision` increments by 1.
30
- * The current `revision` must be passed when updating the QuestionEntry.
31
- * This ensures you're working with the latest QuestionEntry and prevents unintended overwrites.
32
- * @param - QuestionEntry ID.
33
- * @returns Updated QuestionEntry.
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 QuestionEntry.
41
- * Deleting a QuestionEntry permanently removes them from the QuestionEntry List.
42
- * @param - Id of the QuestionEntry to delete.
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 up to 100 question entries, given the provided filtering, paging, and sorting.
50
- * Use the `fieldSet` parameter to set whether sharing links are included in the response.
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 a list of QuestionEntries, given the provided [paging, filtering, and sorting].
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 QuestionEntries in a single request. Works synchronously.
67
- * @param - QuestionEntry ids to be deleted.
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 QuestionEntry without incrementing revision
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
- * Adds or updates a question entry's labels. Replaces existing labels.
86
- * Note: If 'labels' field is empty in the request, it will clear all existing labels for the question entry.
87
- * @param - ID of question entry to add labels to.
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
- * This method replace the following bulk methods from the previous service:
98
- * 1. updateQuestionsVisibility - Updates multiple question entries' visibility within their categories
99
- * 2. bulkSetQuestionStatus - Updates multiple question entries' statuses.
100
- * 3. bulkUpdateLabelOrder - Updates a question entry's labels order.
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}`;