@wix/auto_sdk_faq_question-entry 1.0.24 → 1.0.26
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 +8 -13
- package/build/cjs/index.js +50 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +50 -4
- package/build/cjs/index.typings.js +31 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +37 -3
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +8 -13
- package/build/es/index.mjs +50 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +50 -4
- package/build/es/index.typings.mjs +30 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +37 -3
- package/build/es/meta.mjs +1 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +8 -13
- package/build/internal/cjs/index.js +50 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +50 -4
- package/build/internal/cjs/index.typings.js +31 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +37 -3
- package/build/internal/cjs/meta.js +1 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +8 -13
- package/build/internal/es/index.mjs +50 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +50 -4
- package/build/internal/es/index.typings.mjs +30 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +37 -3
- package/build/internal/es/meta.mjs +1 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { QuestionEntry, UpdateQuestionEntry, ListQuestionEntriesOptions, ListQuestionEntriesResponse,
|
|
3
|
-
export { ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, ApplicationError, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulkActionMetadata, BulkDeleteQuestionEntriesRequest, BulkUpdateQuestionEntryRequest, BulkUpdateQuestionEntryResult, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ContentFormat, ContentFormatWithLiterals, CreateQuestionEntryRequest, CreateQuestionEntryResponse, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata,
|
|
2
|
+
import { QuestionEntry, UpdateQuestionEntry, ListQuestionEntriesOptions, ListQuestionEntriesResponse, BulkDeleteQuestionEntriesResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, SetQuestionEntryLabelsOptions, SetQuestionEntryLabelsResponse, BulkUpdateQuestionEntryOptions, BulkUpdateQuestionEntryResponse, QuestionEntryCreatedEnvelope, QuestionEntryDeletedEnvelope, QuestionEntryUpdatedEnvelope, CursorQuery, QueryQuestionEntriesOptions, typedQueryQuestionEntries, QuestionEntriesQueryBuilder } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, ApplicationError, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulkActionMetadata, BulkDeleteQuestionEntriesRequest, BulkUpdateQuestionEntryRequest, BulkUpdateQuestionEntryResult, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ContentFormat, ContentFormatWithLiterals, CreateQuestionEntryRequest, CreateQuestionEntryResponse, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteQuestionEntryRequest, DeleteQuestionEntryResponse, Design, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, ExtendedFields, FieldSet, FieldSetWithLiterals, FileData, FileSource, FileSourceDataOneOf, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetQuestionEntryRequest, GetQuestionEntryResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionWithLiterals, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Label, Layout, LayoutCellData, LayoutData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListQuestionEntriesRequest, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, MaskedQuestionEntry, Media, MentionData, MessageEnvelope, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, PagingMetadataV2, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, QueryQuestionEntriesRequest, QueryQuestionEntriesRequestContentFormat, QueryQuestionEntriesRequestContentFormatWithLiterals, QueryQuestionEntriesRequestFieldSet, QueryQuestionEntriesRequestFieldSetWithLiterals, QueryQuestionEntriesResponse, QuestionEntriesQueryResult, QuestionEntryAnswerOneOf, QuestionStatus, QuestionStatusWithLiterals, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, SetQuestionEntryLabelsRequest, Settings, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, UpdateExtendedFieldsRequest, UpdateQuestionEntryRequest, UpdateQuestionEntryResponse, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createQuestionEntry$1(httpClient: HttpClient): CreateQuestionEntrySignature;
|
|
6
6
|
interface CreateQuestionEntrySignature {
|
|
@@ -63,15 +63,6 @@ interface ListQuestionEntriesSignature {
|
|
|
63
63
|
*/
|
|
64
64
|
(options?: ListQuestionEntriesOptions): Promise<NonNullablePaths<ListQuestionEntriesResponse, `questionEntries` | `questionEntries.${number}.draftjs` | `questionEntries.${number}.plainText`, 4>>;
|
|
65
65
|
}
|
|
66
|
-
declare function queryQuestionEntries$1(httpClient: HttpClient): QueryQuestionEntriesSignature;
|
|
67
|
-
interface QueryQuestionEntriesSignature {
|
|
68
|
-
/**
|
|
69
|
-
* Retrieves question entries, given the provided paging, filtering, and sorting.
|
|
70
|
-
*
|
|
71
|
-
* 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).
|
|
72
|
-
*/
|
|
73
|
-
(options?: QueryQuestionEntriesOptions): QuestionEntriesQueryBuilder;
|
|
74
|
-
}
|
|
75
66
|
declare function bulkDeleteQuestionEntries$1(httpClient: HttpClient): BulkDeleteQuestionEntriesSignature;
|
|
76
67
|
interface BulkDeleteQuestionEntriesSignature {
|
|
77
68
|
/**
|
|
@@ -121,16 +112,20 @@ declare const onQuestionEntryCreated$1: EventDefinition<QuestionEntryCreatedEnve
|
|
|
121
112
|
declare const onQuestionEntryDeleted$1: EventDefinition<QuestionEntryDeletedEnvelope, "wix.faq.question_entry.v2.question_entry_deleted">;
|
|
122
113
|
declare const onQuestionEntryUpdated$1: EventDefinition<QuestionEntryUpdatedEnvelope, "wix.faq.question_entry.v2.question_entry_updated">;
|
|
123
114
|
|
|
115
|
+
declare function customQueryQuestionEntries(httpClient: HttpClient): {
|
|
116
|
+
(query: CursorQuery, options?: QueryQuestionEntriesOptions): ReturnType<typeof typedQueryQuestionEntries>;
|
|
117
|
+
(options?: QueryQuestionEntriesOptions): QuestionEntriesQueryBuilder;
|
|
118
|
+
};
|
|
124
119
|
declare const createQuestionEntry: MaybeContext<BuildRESTFunction<typeof createQuestionEntry$1> & typeof createQuestionEntry$1>;
|
|
125
120
|
declare const getQuestionEntry: MaybeContext<BuildRESTFunction<typeof getQuestionEntry$1> & typeof getQuestionEntry$1>;
|
|
126
121
|
declare const updateQuestionEntry: MaybeContext<BuildRESTFunction<typeof updateQuestionEntry$1> & typeof updateQuestionEntry$1>;
|
|
127
122
|
declare const deleteQuestionEntry: MaybeContext<BuildRESTFunction<typeof deleteQuestionEntry$1> & typeof deleteQuestionEntry$1>;
|
|
128
123
|
declare const listQuestionEntries: MaybeContext<BuildRESTFunction<typeof listQuestionEntries$1> & typeof listQuestionEntries$1>;
|
|
129
|
-
declare const queryQuestionEntries: MaybeContext<BuildRESTFunction<typeof queryQuestionEntries$1> & typeof queryQuestionEntries$1>;
|
|
130
124
|
declare const bulkDeleteQuestionEntries: MaybeContext<BuildRESTFunction<typeof bulkDeleteQuestionEntries$1> & typeof bulkDeleteQuestionEntries$1>;
|
|
131
125
|
declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
132
126
|
declare const setQuestionEntryLabels: MaybeContext<BuildRESTFunction<typeof setQuestionEntryLabels$1> & typeof setQuestionEntryLabels$1>;
|
|
133
127
|
declare const bulkUpdateQuestionEntry: MaybeContext<BuildRESTFunction<typeof bulkUpdateQuestionEntry$1> & typeof bulkUpdateQuestionEntry$1>;
|
|
128
|
+
declare const queryQuestionEntries: MaybeContext<BuildRESTFunction<typeof customQueryQuestionEntries> & typeof customQueryQuestionEntries>;
|
|
134
129
|
/**
|
|
135
130
|
* Triggered when a question entry is created.
|
|
136
131
|
*/
|
|
@@ -142,4 +137,4 @@ declare const onQuestionEntryDeleted: BuildEventDefinition<typeof onQuestionEntr
|
|
|
142
137
|
*/
|
|
143
138
|
declare const onQuestionEntryUpdated: BuildEventDefinition<typeof onQuestionEntryUpdated$1> & typeof onQuestionEntryUpdated$1;
|
|
144
139
|
|
|
145
|
-
export { BulkDeleteQuestionEntriesResponse, BulkUpdateQuestionEntryOptions, BulkUpdateQuestionEntryResponse, ListQuestionEntriesOptions, ListQuestionEntriesResponse, QueryQuestionEntriesOptions, QuestionEntriesQueryBuilder, QuestionEntry, QuestionEntryCreatedEnvelope, QuestionEntryDeletedEnvelope, QuestionEntryUpdatedEnvelope, SetQuestionEntryLabelsOptions, SetQuestionEntryLabelsResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateQuestionEntry, bulkDeleteQuestionEntries, bulkUpdateQuestionEntry, createQuestionEntry, deleteQuestionEntry, getQuestionEntry, listQuestionEntries, onQuestionEntryCreated, onQuestionEntryDeleted, onQuestionEntryUpdated, queryQuestionEntries, setQuestionEntryLabels, updateExtendedFields, updateQuestionEntry };
|
|
140
|
+
export { BulkDeleteQuestionEntriesResponse, BulkUpdateQuestionEntryOptions, BulkUpdateQuestionEntryResponse, CursorQuery, ListQuestionEntriesOptions, ListQuestionEntriesResponse, QueryQuestionEntriesOptions, QuestionEntriesQueryBuilder, QuestionEntry, QuestionEntryCreatedEnvelope, QuestionEntryDeletedEnvelope, QuestionEntryUpdatedEnvelope, SetQuestionEntryLabelsOptions, SetQuestionEntryLabelsResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateQuestionEntry, bulkDeleteQuestionEntries, bulkUpdateQuestionEntry, createQuestionEntry, deleteQuestionEntry, getQuestionEntry, listQuestionEntries, onQuestionEntryCreated, onQuestionEntryDeleted, onQuestionEntryUpdated, queryQuestionEntries, setQuestionEntryLabels, updateExtendedFields, updateQuestionEntry };
|
package/build/cjs/index.js
CHANGED
|
@@ -1396,6 +1396,7 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
|
|
1396
1396
|
DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
1397
1397
|
DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
1398
1398
|
DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
|
|
1399
|
+
DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
|
|
1399
1400
|
return DecorationType2;
|
|
1400
1401
|
})(DecorationType || {});
|
|
1401
1402
|
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
@@ -1737,6 +1738,34 @@ function queryQuestionEntries2(options) {
|
|
|
1737
1738
|
transformationPaths: {}
|
|
1738
1739
|
});
|
|
1739
1740
|
}
|
|
1741
|
+
async function typedQueryQuestionEntries(query, options) {
|
|
1742
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1743
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
|
1744
|
+
{ query, ...options },
|
|
1745
|
+
[]
|
|
1746
|
+
);
|
|
1747
|
+
const reqOpts = queryQuestionEntries(payload);
|
|
1748
|
+
sideEffects?.onSiteCall?.();
|
|
1749
|
+
try {
|
|
1750
|
+
const result = await httpClient.request(reqOpts);
|
|
1751
|
+
sideEffects?.onSuccess?.(result);
|
|
1752
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, [
|
|
1753
|
+
"questionEntries.richContent"
|
|
1754
|
+
]);
|
|
1755
|
+
} catch (err) {
|
|
1756
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1757
|
+
err,
|
|
1758
|
+
{
|
|
1759
|
+
spreadPathsToArguments: {},
|
|
1760
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1761
|
+
singleArgumentUnchanged: false
|
|
1762
|
+
},
|
|
1763
|
+
["query", "options"]
|
|
1764
|
+
);
|
|
1765
|
+
sideEffects?.onError?.(err);
|
|
1766
|
+
throw transformedError;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1740
1769
|
async function bulkDeleteQuestionEntries2(questionEntryIds) {
|
|
1741
1770
|
const { httpClient, sideEffects } = arguments[1];
|
|
1742
1771
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
|
@@ -1911,6 +1940,14 @@ function queryQuestionEntries3(httpClient) {
|
|
|
1911
1940
|
{ httpClient }
|
|
1912
1941
|
);
|
|
1913
1942
|
}
|
|
1943
|
+
function typedQueryQuestionEntries2(httpClient) {
|
|
1944
|
+
return (query, options) => typedQueryQuestionEntries(
|
|
1945
|
+
query,
|
|
1946
|
+
options,
|
|
1947
|
+
// @ts-ignore
|
|
1948
|
+
{ httpClient }
|
|
1949
|
+
);
|
|
1950
|
+
}
|
|
1914
1951
|
function bulkDeleteQuestionEntries3(httpClient) {
|
|
1915
1952
|
return (questionEntryIds) => bulkDeleteQuestionEntries2(
|
|
1916
1953
|
questionEntryIds,
|
|
@@ -2122,16 +2159,28 @@ var onQuestionEntryUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
2122
2159
|
// src/faq-question-entry-v2-question-entry-question-entry.context.ts
|
|
2123
2160
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
2124
2161
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
2162
|
+
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
2163
|
+
function customQueryQuestionEntries(httpClient) {
|
|
2164
|
+
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
2165
|
+
builderQueryFunction: (options) => queryQuestionEntries3(httpClient)(options),
|
|
2166
|
+
typedQueryFunction: (query, options) => typedQueryQuestionEntries2(httpClient)(query, options),
|
|
2167
|
+
hasOptionsParameter: true
|
|
2168
|
+
});
|
|
2169
|
+
function overloadedQuery(queryOrOptions, options) {
|
|
2170
|
+
return router(...arguments);
|
|
2171
|
+
}
|
|
2172
|
+
return overloadedQuery;
|
|
2173
|
+
}
|
|
2125
2174
|
var createQuestionEntry4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createQuestionEntry3);
|
|
2126
2175
|
var getQuestionEntry4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getQuestionEntry3);
|
|
2127
2176
|
var updateQuestionEntry4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateQuestionEntry3);
|
|
2128
2177
|
var deleteQuestionEntry4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteQuestionEntry3);
|
|
2129
2178
|
var listQuestionEntries4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listQuestionEntries3);
|
|
2130
|
-
var queryQuestionEntries4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryQuestionEntries3);
|
|
2131
2179
|
var bulkDeleteQuestionEntries4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteQuestionEntries3);
|
|
2132
2180
|
var updateExtendedFields4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExtendedFields3);
|
|
2133
2181
|
var setQuestionEntryLabels4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setQuestionEntryLabels3);
|
|
2134
2182
|
var bulkUpdateQuestionEntry4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateQuestionEntry3);
|
|
2183
|
+
var queryQuestionEntries4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryQuestionEntries);
|
|
2135
2184
|
var onQuestionEntryCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
2136
2185
|
onQuestionEntryCreated
|
|
2137
2186
|
);
|